From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Yongbang Shi <shiyongbang@huawei.com>
Cc: xinliang.liu@linaro.org, tiantao6@hisilicon.com,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch,
kong.kongxinwei@hisilicon.com, liangjian010@huawei.com,
chenjianmin@huawei.com, lidongming5@huawei.com,
libaihan@huawei.com, shenjian15@huawei.com, shaojijie@huawei.com,
jani.nikula@linux.intel.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH drm-dp 03/10] drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local
Date: Mon, 9 Jun 2025 17:53:52 +0300 [thread overview]
Message-ID: <a88f479b-e022-4ed7-8286-5d546423bfcf@oss.qualcomm.com> (raw)
In-Reply-To: <c59b893c-dca4-4c7f-a57e-99e60401ebc0@huawei.com>
On 09/06/2025 17:50, Yongbang Shi wrote:
>
>> On Fri, May 30, 2025 at 05:54:25PM +0800, Yongbang Shi wrote:
>>> From: Baihan Li <libaihan@huawei.com>
>>>
>>> The local variable of irq name is passed to devm_request_threaded_irq(),
>>> which will make request_irq failed. Using the global irq name instead
>>> of it to fix.
>> This doesn't explain, why does it fail and which IRQ name is actually
>> expected.
>
> The local variable is passed in request_irq (), and there will be use
> after free problem.
This needs to be explained (in details) in the commit message.
>
>
>>> Fixes: b11bc1ae4658 ("drm/hisilicon/hibmc: Add MSI irq getting and
>>> requesting for HPD")
>>> Signed-off-by: Baihan Li <libaihan@huawei.com>
>>> ---
>>> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 10 +++-------
>>> 1 file changed, 3 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/
>>> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
>>> index 768b97f9e74a..4cdcc34070ee 100644
>>> --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
>>> +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
>>> @@ -32,7 +32,7 @@
>>> DEFINE_DRM_GEM_FOPS(hibmc_fops);
>>> -static const char *g_irqs_names_map[HIBMC_MAX_VECTORS] = { "vblank",
>>> "hpd" };
>>> +static const char *g_irqs_names_map[HIBMC_MAX_VECTORS] = { "hibmc-
>>> vblank", "hibmc-hpd" };
>> Please point to the corresponding IRQ names as currently implemented in
>> the upstream kernel.
>
> Ok.
I was thinking in terms of IRQ lookup. You can ignore this comment (it
makes me wonder, how did you understand it, if you responded with Ok).
>
>
>>> static irqreturn_t hibmc_interrupt(int irq, void *arg)
>>> {
--
With best wishes
Dmitry
next prev parent reply other threads:[~2025-06-09 14:53 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-30 9:54 [PATCH drm-dp 00/10] Fix hibmc driver bugs Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 01/10] drm/hisilicon/hibmc: fix the i2c device resource leak when vdac init failed Yongbang Shi
2025-06-08 11:20 ` Dmitry Baryshkov
2025-06-09 14:45 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 02/10] drm/hisilicon/hibmc: fix dp probabilistical detect errors after HPD irq Yongbang Shi
2025-06-08 11:37 ` Dmitry Baryshkov
2025-06-09 14:47 ` Yongbang Shi
2025-06-09 14:49 ` Dmitry Baryshkov
2025-06-10 13:26 ` Yongbang Shi
2025-06-09 16:57 ` Dmitry Baryshkov
2025-05-30 9:54 ` [PATCH drm-dp 03/10] drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local Yongbang Shi
2025-06-08 11:43 ` Dmitry Baryshkov
2025-06-09 14:50 ` Yongbang Shi
2025-06-09 14:53 ` Dmitry Baryshkov [this message]
2025-06-10 13:28 ` Yongbang Shi
2025-06-16 9:27 ` Zenghui Yu
2025-05-30 9:54 ` [PATCH drm-dp 04/10] drm/hisilicon/hibmc: fix the hibmc loaded failed bug Yongbang Shi
[not found] ` <b0587eda-df65-4abc-b2af-c5dcb717c8b6@163.com>
2025-06-06 8:20 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 05/10] drm/hisilicon/hibmc: fix rare monitors cannot display problem Yongbang Shi
2025-06-08 12:36 ` Dmitry Baryshkov
2025-06-09 14:56 ` Yongbang Shi
2025-06-09 18:53 ` Dmitry Baryshkov
2025-05-30 9:54 ` [PATCH drm-dp 06/10] drm/hisilicon/hibmc: add dp mode valid check Yongbang Shi
2025-06-08 12:39 ` Dmitry Baryshkov
2025-06-09 14:57 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 07/10] drm/hisilicon/hibmc: add dp encoder modeset Yongbang Shi
2025-06-08 12:41 ` Dmitry Baryshkov
2025-06-10 13:30 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 08/10] drm/hisilicon/hibmc: fix DP no showing after HPD with VGA connected Yongbang Shi
2025-06-08 12:44 ` Dmitry Baryshkov
2025-06-10 13:31 ` Yongbang Shi
2025-06-10 14:03 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 09/10] drm/hisilicon/hibmc: fix HPD no showing with VGA para of GRUB Yongbang Shi
2025-06-08 12:47 ` Dmitry Baryshkov
2025-06-11 12:54 ` Yongbang Shi
2025-05-30 9:54 ` [PATCH drm-dp 10/10] drm/hisilicon/hibmc: fix no showing problem with loading hibmc manually Yongbang Shi
2025-06-08 12:54 ` Dmitry Baryshkov
2025-06-11 12:52 ` Yongbang Shi
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=a88f479b-e022-4ed7-8286-5d546423bfcf@oss.qualcomm.com \
--to=dmitry.baryshkov@oss.qualcomm.com \
--cc=airlied@gmail.com \
--cc=chenjianmin@huawei.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=liangjian010@huawei.com \
--cc=libaihan@huawei.com \
--cc=lidongming5@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=shaojijie@huawei.com \
--cc=shenjian15@huawei.com \
--cc=shiyongbang@huawei.com \
--cc=tiantao6@hisilicon.com \
--cc=tzimmermann@suse.de \
--cc=xinliang.liu@linaro.org \
/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®