Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5474875pxb; Wed, 26 Jan 2022 12:54:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqRiakQTK2MC3u9RExXC6H9Y9YYtxUxihhccbn8QV+IWTYoEYglIb84VEQr5aMSxCiPm7z X-Received: by 2002:a17:90a:15cf:: with SMTP id w15mr713985pjd.79.1643230465669; Wed, 26 Jan 2022 12:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643230465; cv=none; d=google.com; s=arc-20160816; b=rqEuB8QqX+DW4KifCdgHVkebcrKSZP6u06t4ROOaRvHVoLjLtcmYWvoP1vkSINtDqc +O81wuBIOkXfXX0B1H13t+Q1UMmT5p91ZUtrCg9TTe1f1knujHtmXme1JrS7SNtOZSR6 HrxvJaY/2Ey9bntoxSATxbFhIapJ/NbnxJ6XUE2hmFAtvtSYwr7gPLfx2LU7VXjcbOdJ FQ87beDpeq7uupPbtNVbtqmEBD6mGGglwo+y8M0RXZYzqPzFP0/uuLk6hBkNlVuT1vM6 +T0JDgaNrMBylNL+FLttTQ4LoMU/6USeFTyizvSN1pL3x14VfOamo74SNr7iU3R4X+bM JiYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=c5HwTNQCDwJpBQCo/amfqKW6P13LUDJI49qcSLAgTVU=; b=Mm098ThwI4/BUVQdsYNa09Mg1jg41SneHoJzW6s+ZS5+2iWSiltI9ScD4YYe1C+dAS hOycWh+C9t14XDi32DHekPs6q+05mCu1qmS95v3pSpYNc5urN7FhZurIKNH44vdeg5We cK++txLjbK8SGjsA780Ea45A8TbNi+7XQ51h3re5x7fV8hLHjfDWuH7vjzFD0Dm43Lr8 AmsH6y2VpU2syZkkw0tU0Jh5S1SxOsOQ3VehsyfBNEVongUL3Ow0UDzie+tvny13aqnG fqNZTdMzLudPeuXler4tr3HchXs1qPQpxZ8IbSg0NtXKH77RukY/w3jt40e4eCTIKIHX oq4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si232163plg.368.2022.01.26.12.54.13; Wed, 26 Jan 2022 12:54:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239483AbiAZJ7G (ORCPT + 99 others); Wed, 26 Jan 2022 04:59:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbiAZJ7E (ORCPT ); Wed, 26 Jan 2022 04:59:04 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75081C061744 for ; Wed, 26 Jan 2022 01:59:04 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCf4s-0000R5-C2; Wed, 26 Jan 2022 10:58:58 +0100 Message-ID: Subject: Re: [PATCH] arm64: dts: imx8mn-venice-gw7902: disable gpu From: Lucas Stach To: Shawn Guo , Tim Harvey Cc: Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Adam Ford Date: Wed, 26 Jan 2022 10:58:56 +0100 In-Reply-To: <20220126093558.GL4686@dragon> References: <20211216161227.31960-1-tharvey@gateworks.com> <20220126093558.GL4686@dragon> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, dem 26.01.2022 um 17:35 +0800 schrieb Shawn Guo: > On Thu, Dec 16, 2021 at 08:12:27AM -0800, Tim Harvey wrote: > > Since commit 99aa29932271 ("arm64: dts: imx8mn: Enable GPU") > > imx8mn-venice-gw7902 will hang during kernel init because it uses > > a MIMX8MN5CVTI which does not have a GPU. > > I do not quite follow on this. i.MX8MN integrates a GPU, and > MIMX8MN5CVTI is built on i.MX8MN, correct? If so, how comes > MIMX8MN5CVTI doesn't have a GPU? > It's a fused-down variant of the i.MX8MN that has the GPU disabled by fuses. > > > > Disable pgc_gpumix to work around this. We also disable the GPU devices > > that depend on the gpumix power domain and pgc_gpu to avoid them staying > > in a probe deferred state forever. > > Is this an indication that GPU should be disabled in imx8mn.dtsi and > enabled board by board? > There's a trade-off here: most boards will probably use the full variants that include the GPU, so probably less boards will need to disable the GPU, as done here, than boards that need to enable it when the base DT disables the GPU. Same story as with the i.MX6 where there are some SKUs that disable the VPU by fuses: we enable it in the base DT and if you happen to build a very low-cost board that uses the fused-down version you need to disable it in the board DT. Regards, Lucas > Shawn > > > > > Cc: Adam Ford > > Cc: Lucas Stach > > Signed-off-by: Tim Harvey > > --- > > .../boot/dts/freescale/imx8mn-venice-gw7902.dts | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts b/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > > index 236f425e1570..2d58005d20e4 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > > +++ b/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > > @@ -220,6 +220,10 @@ > > }; > > }; > > > > +&disp_blk_ctrl { > > + status = "disabled"; > > +}; > > + > > /* off-board header */ > > &ecspi2 { > > pinctrl-names = "default"; > > @@ -251,6 +255,10 @@ > > }; > > }; > > > > +&gpu { > > + status = "disabled"; > > +}; > > + > > &i2c1 { > > clock-frequency = <100000>; > > pinctrl-names = "default"; > > @@ -546,6 +554,10 @@ > > status = "okay"; > > }; > > > > +&pgc_gpumix { > > + status = "disabled"; > > +}; > > + > > /* off-board header */ > > &sai3 { > > pinctrl-names = "default"; > > -- > > 2.17.1 > >