From nobody Mon Nov 29 23:56:07 2021 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 5EFE818B7AD0 for ; Mon, 29 Nov 2021 23:56:07 +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 4J32LH0Flvz4gWG for ; Mon, 29 Nov 2021 23:56:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 DDC4C3C6D for ; Mon, 29 Nov 2021 23:56:06 +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 1ATNu6tB060285 for ; Mon, 29 Nov 2021 23:56:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATNu6Zp060283 for freebsd-arm@FreeBSD.org; Mon, 29 Nov 2021 23:56:06 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 260127] Kernel Panic enumerating PI7C9X2G304SV PCIe Switch on Ten64 board (NXP QorIQ LS1088A) Date: Mon, 29 Nov 2021 23:56:07 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt@traverse.com.au 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 attachments.created 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638230167; 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=aAPQsRmdGHZlPtbKjx2FyPyvWIWYEkb9i78+2y8HE50=; b=irpQ1CdgNTkZmDJcdAa8IA2z+EKuatzx8E0WvUZkO+I3xE35EuuOaTT11W5GBSlIylY5nO uwEpdr37qQWZvZF14v5iqk5KgKI2v4sOPt3L0wkPf4/nur1KlzWpLqP+6GWjG7Bj1/Xb8U euarzU/KHY43zbMxxvqmcFWLIy1IBgq4pNK1+u2uvhvOKlZZOwGshlSFQPYPzRAITMhFp7 hz4/BlS3vkoDCJrrvPzoUUMH00fqDQtCg/qmHpAgwelKyxQNMlNzmqMTgvuLha8mcCIyyz 9NV041uIdJtvX2EU7FDyl02LuTmtuRy2yQn/Uzn3N1cloEwApTd/HQc36uiS4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638230167; a=rsa-sha256; cv=none; b=AMekkMDJnbEvQNKvtuVHMajhWy46c1f++L8omUPa8kF0dximhUib4uCeOiKNe5ZlYgzK5N RdZESDxMcrfLDk3kQwl9gQse5E363UTmuP7bATyoFlPY42PG3o0/QDvLUdxYknWeCG97tn ZK1nCcHY4AnFh4Ch6Uj4FGteP12wSRxTOhnuA4FfOPFgELJ1G9hhENovkH7/sVpdNpJwxL DHqp1HB+qd6Y5rJr9jvpP+FHFkXyx4l8C+t7XWPpZN0DWPrXDmOXsuUhb3zJGwkBoxQ63B IJNZTQtJfMrmsEr+NL5TvbCUV4TXpWRG1iN5DaUteRs85PJvqdjPmcCiTevbAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260127 Bug ID: 260127 Summary: Kernel Panic enumerating PI7C9X2G304SV PCIe Switch on Ten64 board (NXP QorIQ LS1088A) Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: matt@traverse.com.au Created attachment 229803 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229803&action= =3Dedit dmesg kernel panic with PI7C9X2G304SV enabled Thanks to the recent addition of various NXP/Freescale QorIQ drivers, particularly qoriq_dw_pci, as well as the upcoming DPAA2 driver by dsl@mcusim.org, FreeBSD is very close to being usable on the Traverse Technologies Ten64 board. Unfortunately there appears to be an issue enumerating the Diodes (Pericom) PI7C9X2G304SV PCIe switch. This is used on this board to create two PCIe sl= ots from one PCIe 2.0 lane (specifically, the MiniPCIe slots, see https://ten64doc.traverse.com.au/hardware/architecture/) The panic occurs even when there are no downstream devices connected to the PI7C9X2G304SV. When the PCIe controller that the PI7C9X2G304SV is connected to is disabled= in the FDT, FreeBSD is able to boot and use the PCIe controller without issue, including using an NVMe SSD as the boot device. Here is the PCIe topology from Linux: # lspci -nn 0000:00:00.0 PCI bridge [0604]: Freescale Semiconductor Inc Device [1957:80= c0] (rev 10) 0001:00:00.0 PCI bridge [0604]: Freescale Semiconductor Inc Device [1957:80= c0] (rev 10) 0001:01:00.0 PCI bridge [0604]: Pericom Semiconductor Device [12d8:b304] (r= ev 01) 0001:02:01.0 PCI bridge [0604]: Pericom Semiconductor Device [12d8:b304] (r= ev 01) 0001:02:02.0 PCI bridge [0604]: Pericom Semiconductor Device [12d8:b304] (r= ev 01) 0002:00:00.0 PCI bridge [0604]: Freescale Semiconductor Inc Device [1957:80= c0] (rev 10) 0002:01:00.0 Non-Volatile memory controller [0108]: Silicon Motion, Inc. SM2263EN/SM2263XT SSD Controller [126f:2263] (rev 03) # lspci -t -+-[0002:00]---00.0-[01-ff]----00.0 +-[0001:00]---00.0-[01-ff]----00.0-[02-04]--+-01.0-[03]-- | \-02.0-[04]-- \-[0000:00]---00.0-[01-ff]-- Note: The PCIe controller instance that the switch is connected to is at 0x3500000. The NVMe SSD is connected to pcie@3600000 (bus 0002:00:00.0 in Linux), pcie@3400000 is connected to the M.2 Key B ("cellular" slot) which = is empty in this example. By manipulating the FDT in U-Boot pcie@3500000 can be disabled allowing Fre= eBSD to boot: setenv setup_distroboot_efi 'sf read 0x80001000 0x580000 0x40000 && fsl_mc lazyapply dpl 0x80001000; sf read $fdt_addr_r 0x600000 0x40000 && fdt addr $fdt_addr_r && fdt resize 10000 && fdt boardsetup && fdt set "/soc/spi@20c0= 000" "status" "disabled" && fdt set "/soc/pcie@3500000" "status" "disabled"' saveenv reboot --=20 You are receiving this mail because: You are the assignee for the bug.=