From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F04B6606A32E for ; Mon, 30 Nov 2026 07:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nEwP49hz Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E44E10E0F7; Mon, 30 Nov 2026 07:07:49 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A6CC10E0F7 for ; Mon, 30 Nov 2026 07:07:42 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 9415F6021D; Mon, 30 Nov 2026 07:07:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C38341F0089F; Mon, 30 Nov 2026 07:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796022460; bh=SiXbh0RBUHhUYF/E0g2BeBqYkhN5TfJ1EJfdq8UkRQ4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nEwP49hz5WdtX3HX75T9/U6SCiGmFRu6+yPWaIts6t5Bindz3/A+pZp80n16g5k6X IxNRq2kABhnb4VyFNpk9O0uVU+j1Eu5GOaKh4R+i/+rtP3ns9qCmUdDaWHHkBsK2I3 gK7mKNaHC2/VMAWgOuhVmDFUby+mDoB3FaNdbUwWVBaGlrt2cCpimdo3OcBwspNDEN cfzXVSl4XYmupElZYkwot2g5hyXcXtBiAuD3/Xpd5PVWtwKWcio7d23sZuhHktxups BgYonZypR0mnn329HvpiVVv9VUkCeOyjJqc9lWtJsW193gc7tEttmg2ehHPVCCXVY5 Jp9Z/OBTTJX/w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 7/9] drm/msm/a6xx: map the GMU rscc and PDC regions against the GPU device To: "Yuanjie Yang" Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261130-dpu_unbind_rebind_display-v1-7-c335387de1bb@oss.qualcomm.com> References: <20261130-dpu_unbind_rebind_display-v1-0-c335387de1bb@oss.qualcomm.com> <20261130-dpu_unbind_rebind_display-v1-7-c335387de1bb@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 07:07:40 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] drm/msm/a6xx: ignored a6xx_gmu_pwrlevels_probe() return in a6xx_gmu_init() [1] -- commit 95ee2296d872dd08a9e4fb839630fa6c9e25a217 Author: Yuanjie Yang drm/msm/a6xx: map the GMU rscc and PDC regions against the GPU device This commit attaches the devres-managed mappings for the GMU rscc, gmu_pdc, and gmu_pdc_seq regions to the GPU device rather than the driverless GMU device so that they are properly released on component unbind or bind failure. > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/= adreno/a6xx_gmu.c > index a1561ca41a5b3..e1178053953ad 100644 > --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c [ ... ] > @@ -2464,7 +2473,7 @@ int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct= device_node *node) > =20 > if (adreno_is_a650_family(adreno_gpu) || > adreno_is_a7xx(adreno_gpu)) { > - gmu->rscc =3D devm_platform_ioremap_resource_byname(pdev, "rscc"); > + gmu->rscc =3D a6xx_gmu_ioremap_byname(gmu, "rscc"); > if (IS_ERR(gmu->rscc)) { > ret =3D -ENODEV; > goto err_mmio; [Severity: High] This problem wasn't introduced by this patch, but should a6xx_gmu_init() check the return value of a6xx_gmu_pwrlevels_probe() [1]? drivers/gpu/drm/msm/adreno/a6xx_gmu.c:a6xx_gmu_init() { ... /* Get the power levels for the GMU and GPU */ a6xx_gmu_pwrlevels_probe(gmu); ret =3D a6xx_gmu_acd_probe(gmu); if (ret) goto detach_gxpd; ... } If a6xx_gmu_pwrlevels_probe() fails (for example, returning -EPROBE_DEFER when OPP tables are not yet ready), probe continues with unpopulated frequency tables (gmu->nr_gmu_freqs and gmu->nr_gpu_freqs remain 0), leading to invalid hardware initialization and a kernel panic when voting for frequencies. [1] https://sashiko.dev/#/bug/linux-0cc3192b-3c52-4862-8d9b-9647c0282109 --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-dpu_unbind= _rebind_display-v1-0-c335387de1bb@oss.qualcomm.com?part=3D7