From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1030FC282C5 for ; Mon, 3 Mar 2025 12:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qz2gT65tKEyX/mlnqUdSTa1mSxYeWW9ElhabrUmaOkA=; b=Ugt5PoF6f14cn86WkYLcwZLPkY FyUnP5fV8FpERnQ2/wvoFehYBkieqpNsHERrh7f9BCGg2w18Yfpsttl6cuni0dyLrAk+DDguVgxUr Iy/bEQRpJfBm34v186u2u7wzrOXDtZ7N6VKCQgz43EK5Cl9aE7LiVG4AU32mRSpvK8hD0S+AdtU49 uDasZR/P/InInlyrQuZPxgPgQlJ8Nn1lsn51yPaUIOufWYLaYVo7BhsWGWPnfrl4eHahAWyKJ5QWV AGLP5ntTaXM4tOIvYYsJRn8duh9fpGgsLQEICgkgk90dktLd9bEb5LX+AcU3ueDxrEAbzdWJ4C1Oe UzPv5OJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tp5Ck-00000000njY-39uM; Mon, 03 Mar 2025 12:47:30 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tp519-00000000lSe-048A for linux-arm-kernel@lists.infradead.org; Mon, 03 Mar 2025 12:35:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1741005328; bh=glM8HnRBpbjggci7dgcesL2SapPah0cTwpevxpY1ovM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lJfhqijB/q7asCs/XRPjiLjWBv5C3nKVtgn0+R4DqUELIAidEQ9WmCiK9X+KkjW6y HcYoEcQu7soIq/iYJUcBK+08wfkVZM7B6+Nc+lOUA4+Fx24KPbDtJ3YDtYRzj20j8r SBXsTldqCl2kqYRB7Zfrs6M04B7FvaPfCzzsymq6b8P8ni8KY+1+/3Q/SdaFd6TFdJ RTxJY4MuqUqV3xb4KUj+O++f7nyiqfQUa1oSpXFcOxz9dMOTwb+Z7KayOQtjTgsAez GXHbsQrq9YujNCoON8Wdy2mzvqj9KY6Y4s3Sz5+YYjeEq3vnBLAZXHOZmG/j09ei5o xxeh+9XCUrwYA== Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (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) (No client certificate requested) (Authenticated sender: bbrezillon) by bali.collaboradmins.com (Postfix) with ESMTPSA id A1A4617E0881; Mon, 3 Mar 2025 13:35:27 +0100 (CET) Date: Mon, 3 Mar 2025 13:35:23 +0100 From: Boris Brezillon To: Liviu Dudau Cc: Marek Vasut , linux-arm-kernel@lists.infradead.org, Conor Dooley , David Airlie , Fabio Estevam , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Pengutronix Kernel Team , Philipp Zabel , Rob Herring , Sascha Hauer , Sebastian Reichel , Shawn Guo , Simona Vetter , Steven Price , Thomas Zimmermann , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, imx@lists.linux.dev Subject: Re: [PATCH 6/9] drm/panthor: Reset GPU after L2 cache power off Message-ID: <20250303133523.2c5153ed@collabora.com> In-Reply-To: References: <20250227170012.124768-1-marex@denx.de> <20250227170012.124768-7-marex@denx.de> Organization: Collabora X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250303_043531_207301_266C9D03 X-CRM114-Status: GOOD ( 26.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 3 Mar 2025 12:08:51 +0000 Liviu Dudau wrote: > On Fri, Feb 28, 2025 at 06:05:36PM +0100, Marek Vasut wrote: > > On 2/28/25 12:06 PM, Liviu Dudau wrote: > > > Hi Marek, > > > > Hi, > > > > > On Thu, Feb 27, 2025 at 05:58:06PM +0100, Marek Vasut wrote: > > > > This seems necessary on Freescale i.MX95 Mali G310 to reliably resume > > > > from runtime PM suspend. Without this, if only the L2 is powered down > > > > on RPM entry, the GPU gets stuck and does not indicate the firmware is > > > > booted after RPM resume. > > > > > > That doesn't sound right. Can you tell me what GPU firmware are you running > > > (we are now printing the git sha of the image at boot time). > > Please see below. It could be some sort of NXP firmware fork ? > > > > It comes from the NXP firmware repo , mali-imx-r50.2-710cfb6 . > > > > panthor 4d900000.gpu: [drm] clock rate = 1000000000 > > panthor 4d900000.gpu: EM: created perf domain > > panthor 4d900000.gpu: [drm] mali-unknown id 0xac74 major 0x0 minor 0x0 > > status 0x1 > > panthor 4d900000.gpu: [drm] Features: L2:0x7110306 Tiler:0x809 Mem:0x1 > > MMU:0x2830 AS:0xff > > panthor 4d900000.gpu: [drm] shader_present=0x1 l2_present=0x1 > > tiler_present=0x1 > > panthor 4d900000.gpu: [drm] Firmware protected mode entry not be supported, > > ignoring > > panthor 4d900000.gpu: [drm] Firmware git sha: > > 8e5cfcfec20cc8aff8509d37e72babc935d34a3b > > This looks like it has been part of a R50 release of the DDK, which is recent > enough to consider it up-to-date. The issues you're seeing with fast resume are > probably due to some integration issues or other quirks. > > Boris has the most recent experience with playing with fast resume, maybe > he can share some tips on where to add messages in Panthor to try to debug > your problem. If you end up with fast_reset=true, that means the FW claims it entered a suspend state from which is can resume quickly (fast-reset), and in that case, we're only supposed to power on the L2 block at resume time AFAIK. If there's a component that can tell us more, it's probably the FW, unfortunately, it doesn't tell us much through the FW interface, especially if it's not booting properly. Do you hit this error [1] without this patch, and if you do, what's the status reported there? [1]https://elixir.bootlin.com/linux/v6.14-rc4/source/drivers/gpu/drm/panthor/panthor_fw.c#L1051