From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 15 Mar 2024 22:12:49 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rlErB-008SJt-1s for lore@lore.pengutronix.de; Fri, 15 Mar 2024 22:12:49 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rlErA-0004gy-UO; Fri, 15 Mar 2024 22:12:48 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rlEr4-0004W7-Ik; Fri, 15 Mar 2024 22:12:42 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlEr4-006ZiE-5y; Fri, 15 Mar 2024 22:12:42 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rlEr3-00Cggo-1t; Fri, 15 Mar 2024 22:12:42 +0100 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 15 Mar 2024 22:12:31 +0100 Message-Id: <20240315211240.3016716-4-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315211240.3016716-1-a.fatoum@pengutronix.de> References: <20240315211240.3016716-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 03/12] v8a: imx8mq-evk: disable PCI nodes X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false When Linux probed the PCI on the i.MX8M-EVK, the system hangs completely. We've seen the same effect with other i.MX8M EVKs too, where between EVK revisions, NXP changed how the PCI PHY is clocked and because the DT only supported one variant, probing PCI on the other variant led to system hang while probing the PCI address space. If this turns out to be the issue on the i.MX8M-EVK as well, we should probably try to identify what variant we run on and then fix up the DT in the bootloader. For now though, just take the easy route and disable PCI, which we don't use anyway. Signed-off-by: Ahmad Fatoum --- .../barebox-common-defaultenv/init/disable-imx8mq-pci | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 configs/platform-v8a/barebox-common-defaultenv/init/disable-imx8mq-pci diff --git a/configs/platform-v8a/barebox-common-defaultenv/init/disable-imx8mq-pci b/configs/platform-v8a/barebox-common-defaultenv/init/disable-imx8mq-pci new file mode 100755 index 000000000000..68536e7baa5f --- /dev/null +++ b/configs/platform-v8a/barebox-common-defaultenv/init/disable-imx8mq-pci @@ -0,0 +1,7 @@ +#!/bin/sh + +if of_compatible -k fsl,imx8mq-evk; then + echo "Disabling PCI to avoid issues with older EVK revisions" + of_property -fs /soc@0/pcie@33800000 status disabled + of_property -fs /soc@0/pcie@33c00000 status disabled +fi -- 2.39.2