From nobody Tue Oct 03 12:43:36 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S0HYh3xSkz4wChr for ; Tue, 3 Oct 2023 12:43:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S0HYh11gVz4XkC for ; Tue, 3 Oct 2023 12:43:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696337016; a=rsa-sha256; cv=none; b=jvye0NH+fCpmYn4NQqaYJ9cw4a8lyVJiVs3oEffMLbIRyDJ3NIw7SWTIPR8cbxbKk0Surf DUFTq8lcxelcxgfU1WZp7uXt4TACka0JSwOTHVCWoAJq715AhvJthfc9UzDgfqTaBwk66X 9b2jK33Y1+PrRBh5NWMmbtMhe6o2BQDjSOCcnGRwYttZgb2R4pIh76uBci8Xp0vOVQi7tV SD8vqrdsfydtV8787sav9bXqEKg2wsD2xeeUX+2BBc1USGvLfY4q8as5IBEX65apbJXzp6 7uZHfcrQM4UKth5xuV7Whg+YDfIrtWXe5ZYl6x92NpvpVO2ZDIxz/XeW/kZhYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696337016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cXdpO0oFzm7CrT1Vs19IL6YchwM3PEwbAHkSeHHCAcE=; b=OmltLamog/acXC6fqVVjyLHtzIBQb4fNsmCXxROyHTyZEi3qIp2iUpD+lSzlAYAxd9H1Ya epvw1+mN9yKTRQQ9Bbq8/ZWgViObjzwYQEx8i+2L5yCJddbH4TpAXAw/RcPUEFAXMtlUKe ZqbJUgAnXas7QfrGxPyVY3/7MJ3q8scNWKPcft4cbMSr04l1g1wy3HbjsgpF0BqIcE87YB UGvBXoYupGFN+XmjqUzXjVHxrRZZ+4YKS9bASEBPejWQfysOozs3Ru1pVCTVbuy8BIN9Cg xL5m5kEsBTH7MfYQRp+CjXcDEWvteHolPX9E9qhbNDju24nD5qQo2+ly/3BaaQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S0HYh04bqzw21 for ; Tue, 3 Oct 2023 12:43:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 393ChZ41009113 for ; Tue, 3 Oct 2023 12:43:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 393ChZEC009112 for freebsd-arm@FreeBSD.org; Tue, 3 Oct 2023 12:43:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 274237] boot hangs on initializing XHCI controller on SBSA Reference Platform Date: Tue, 03 Oct 2023 12:43:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marcin.juszkiewicz@linaro.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274237 Bug ID: 274237 Summary: boot hangs on initializing XHCI controller on SBSA Reference Platform Product: Base System Version: 13.2-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: marcin.juszkiewicz@linaro.org I work on SBSA Reference Platform (sbsa-ref in QEMU) and decided to check h= ow *BSD systems work on it. NetBSD 10 boots, OpenBSD 7.3 boots, FreeBSD 14/15 boot fine. FreeBSD 13.2 hangs on initializing XHCI controller: OK set hw.usb.debug=3D255 OK set hw.usb.xhci.debug=3D255 OK boot Loading kernel... /boot/kernel/kernel text=3D0x2a8 text=3D0x8d5250 text=3D0x212d5c data=3D0x1= ae510 data=3D0x 0+0x2a9000 0x8+0x1295d0+0x8+0x14e631- Loading configured modules... can't find '/boot/entropy' can't find '/etc/hostid' No valid device tree blob found! WARNING! Trying to fire up the kernel, but no device tree blob found! EFI framebuffer information: addr, size 0x80000000, 0x3e8000 dimensions 1280 x 800 stride 1280 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ---<>--- Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC arm64 FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c) VT(efifb): resolution 1280x800 module firmware already present! real memory =3D 4294967296 (4096 MB) avail memory =3D 4160184320 (3967 MB) Starting CPU 1 (1) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random devi= ce because it was not yet seeded and the knob 'bypass_before_seeding' was enab= led. random: entropy device external interface MAP 100fbdf0000 mode 2 pages 128 MAP 100fbe70000 mode 2 pages 160 MAP 100fbf10000 mode 2 pages 80 MAP 100fbfb0000 mode 2 pages 80 MAP 100ff500000 mode 2 pages 400 MAP 100ff690000 mode 2 pages 592 MAP 10000000 mode 0 pages 1728 MAP 60010000 mode 0 pages 1 kbd0 at kbdmux0 acpi0: acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) acpi0: Could not update all GPEs: AE_NOT_CONFIGURED psci0: on acpi0 gic0: iomem 0x40060000-0x4007ffff,0x40080000-0x4407ffff on acpi0 its0: mem 0x44081000-0x440a0fff on = gic0 generic_timer0: irq 3,4,5 on acpi0 Timecounter "ARM MPCore Timecounter" frequency 62500000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 62500000 Hz quality 1000 efirtc0: efirtc0: registered as a time-of-day clock, resolution 1.000000s uart0: iomem 0x60000000-0x60000fff irq 0 on acpi0 uart0: console (115200,n,8,1) ahci0: iomem 0x60100000-0x6010ffff irq 1 on acpi0 ahci0: AHCI v1.00 with 6 1.5Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 xhci0: iomem 0x60110000-0x6011ffff irq 2 on ac= pi0 xhci_init: xhci_init: CAPLENGTH=3D0x40 xhci_init: RUNTIMEOFFSET=3D0x1000 xhci_init: DOOROFFSET=3D0x2000 xhci_init: xHCI version =3D 0x0000 xhci_init: HCS0 =3D 0x00087001 xhci0: 32 bytes context size, 32-bit DMA xhci_init: Max slots: 64 xhci_init: HCS2=3D0x0000000f xhci_init: Max scratch: 0 FreeBSD 14 it works: xhci0: iomem 0x60110000-0x6011ffff irq 2 on ac= pi0 xhci_init: xhci_init: CAPLENGTH=3D0x40 xhci_init: RUNTIMEOFFSET=3D0x1000 xhci_init: DOOROFFSET=3D0x2000 xhci_init: xHCI version =3D 0x0000 xhci_init: HCS0 =3D 0x00087001 xhci0: 32 bytes context size, 64-bit DMA xhci_init: Max slots: 64 xhci_init: HCS2=3D0x0000000f xhci_init: Max scratch: 0 xhci_start_controller: xhci_reset_controller: xhci_start_controller: CONFIG=3D0x00000000 -> 0x00000040 xhci_start_controller: ERSTSZ=3D0x00000000 -> 0x00000001 xhci_start_controller: ERDP(0)=3D0x00000100fb109080 xhci_start_controller: ERSTBA(0)=3D0x00000100fb109000 xhci_start_controller: CRCR=3D0x00000100fb109f00 usbus0 on xhci0 Platform is QEMU HEAD version 8.1.50 (v8.1.0-1146-g50d0bfd0ed) QEMU command line arguments: -drive file=3Ddisks/FreeBSD-13.2-RELEASE-arm64-aarch64-bootonly.iso,media= =3Dcdrom -machine sbsa-ref -m 4096 -smp 2 -cpu neoverse-v1 -drive file=3Dfat:rw:/home/marcin/devel/linaro/sbsa-qemu/sbsa-ref-status/disks/vir= tual/,format=3Draw -drive format=3Draw,file=3D/home/marcin/devel/linaro/sbsa-qemu/sbsa-ref-status/dis= ks/full-debian.hddimg -device usb-kbd -device usb-tablet -watchdog-action none -no-reboot -monitor telnet::45454,server,nowait -serial stdio -nographic -drive if=3Dpflash,file=3Dfirmware/SBSA_FLASH0.fd,format=3Draw -drive if=3Dpflash,file=3Dfirmware/SBSA_FLASH1.fd,format=3Draw Firmware files are available: https://fedora.juszkiewicz.com.pl/sbsa-ref/ --=20 You are receiving this mail because: You are the assignee for the bug.=