From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Elkin Cruz <elkin@google.com>,
Rob Clark <robin.clark@oss.qualcomm.com>,
Dmitry Baryshkov <lumag@kernel.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: Sean Paul <sean@poorly.run>,
Konrad Dybcio <konradybcio@kernel.org>,
Akhil P Oommen <akhilpo@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Jessica Zhang <jesszhan0024@gmail.com>,
Marijn Suijten <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
llvm@lists.linux.dev, irogers@google.com
Subject: Re: [PATCH] drm/msm/a6xx: fix error unwind in a6xx_gmu_wrapper_init()
Date: Mon, 30 Nov 2026 12:13:13 +0100 [thread overview]
Message-ID: <c3acd30f-8b9c-4145-aa27-6c65f02751f8@oss.qualcomm.com> (raw)
In-Reply-To: <20261120192446.2874087-1-elkin@google.com>
On 11/20/26 8:24 PM, Elkin Cruz wrote:
> a6xx_gmu_wrapper_init() has three error-unwind bugs when initialization
> fails before gmu->initialized = true:
> 1) When a6xx_gmu_get_mmio() returns an ERR_PTR, goto err_mmio passes
> the error pointer directly to iounmap(gmu->mmio). Jump to err_clk
> instead.
> 2) When dev_pm_domain_attach_by_name(gmu->dev, "gx") returns an ERR_PTR
> (such as -EPROBE_DEFER), goto err_mmio skips detach_cxpd, leaking the
> attached gmu->cxpd domain and its runtime PM device link. Jump to
> detach_cxpd instead.
> 3) err_clk: drops the gmu->dev reference without calling
> pm_runtime_disable(gmu->dev) to balance pm_runtime_enable(gmu->dev),
> causing an unbalanced pm_runtime_enable() warning on the surviving
> GMU platform device across -EPROBE_DEFER retries. Call
> pm_runtime_disable(gmu->dev) at err_clk: before put_device(gmu->dev).
>
> Fixes: 5a903a44a984 ("drm/msm/a6xx: Introduce GMU wrapper support")
> Fixes: 15cc59ac954e ("drm/msm/a6xx: Add support for Adreno 612")
> Signed-off-by: Elkin Cruz <elkin@google.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
prev parent reply other threads:[~2026-11-30 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 19:24 Elkin Cruz
2026-11-30 11:13 ` Konrad Dybcio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3acd30f-8b9c-4145-aa27-6c65f02751f8@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=akhilpo@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=elkin@google.com \
--cc=freedreno@lists.freedesktop.org \
--cc=irogers@google.com \
--cc=jesszhan0024@gmail.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®