From: Myeonghun Pak <mhun512@gmail.com>
To: Huacai Chen <chenhuacai@kernel.org>
Cc: dri-devel@lists.freedesktop.org,
Icenowy Zheng <zhengxingda@iscas.ac.cn>,
Thomas Zimmermann <tzimmermann@suse.de>,
Sui Jingfeng <suijingfeng@loongson.cn>,
Jianmin Lv <lvjianmin@loongson.cn>,
Qianhai Wu <wuqianhai@loongson.cn>,
Mingcong Bai <jeffbai@aosc.io>, Xi Ruoyao <xry111@xry111.site>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Ijae Kim <ae878000@gmail.com>
Subject: Re: [PATCH v2] drm/loongson: use managed KMS polling
Date: Wed, 13 May 2026 15:56:35 +0900 [thread overview]
Message-ID: <CAGEsz8E37y4+sk4kMVsZ1nHJ4e_qLbCWx=a5iK6-stG5KwtB0w@mail.gmail.com> (raw)
In-Reply-To: <CAAhV-H5Q5_xgi8WDgGGYLo4ivXv7tKeK2i97sZng2LzncsmgTw@mail.gmail.com>
Hi Huacai,
Thanks, I sent a v3 with the subject fixed and added the Reviewed-by and
Acked-by tags.
Best regards,
Myeonghun
2026년 5월 12일 (화) 오후 5:11, Huacai Chen <chenhuacai@kernel.org>님이 작성:
>
> On Tue, May 12, 2026 at 2:37 PM Myeonghun Pak <mhun512@gmail.com> wrote:
> >
> > lsdc_pci_probe() initializes KMS polling before setting up vblank support,
> > requesting the IRQ and registering the DRM device. If any of those later
> > steps fails, probe returns without finalizing polling. The driver also
> > never finalizes polling on regular removal.
> >
> > Use drmm_kms_helper_poll_init() so polling is tied to the DRM device
> > lifetime and automatically finalized on probe failure and device removal.
> >
> > This issue was identified during our ongoing static-analysis research while
> > reviewing kernel code.
> In the subject line please s/use/Use/g, others LGTM.
> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
>
> >
> > Fixes: f39db26c5428 ("drm: Add kms driver for loongson display controller")
> > Cc: stable@vger.kernel.org
> > Co-developed-by: Ijae Kim <ae878000@gmail.com>
> > Signed-off-by: Ijae Kim <ae878000@gmail.com>
> > Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
> > ---
> > Changes in v2:
> > - Switch to drmm_kms_helper_poll_init() as suggested by Icenowy Zheng
> > and Thomas Zimmermann instead of adding manual cleanup paths.
> >
> > drivers/gpu/drm/loongson/lsdc_drv.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/loongson/lsdc_drv.c b/drivers/gpu/drm/loongson/lsdc_drv.c
> > index abf5bf68ee..4b97750897 100644
> > --- a/drivers/gpu/drm/loongson/lsdc_drv.c
> > +++ b/drivers/gpu/drm/loongson/lsdc_drv.c
> > @@ -292,7 +292,7 @@ static int lsdc_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
> >
> > vga_client_register(pdev, lsdc_vga_set_decode);
> >
> > - drm_kms_helper_poll_init(ddev);
> > + drmm_kms_helper_poll_init(ddev);
> >
> > if (loongson_vblank) {
> > ret = drm_vblank_init(ddev, descp->num_of_crtc);
> > --
> > 2.47.1
> >
next prev parent reply other threads:[~2026-05-13 6:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 6:36 [PATCH v2] drm/loongson: use managed KMS polling Myeonghun Pak
2026-05-12 6:40 ` Thomas Zimmermann
2026-05-12 7:55 ` Jianmin Lv
2026-05-12 8:11 ` Huacai Chen
2026-05-13 6:56 ` Myeonghun Pak [this message]
2026-05-16 4:17 ` Claude review: " Claude Code Review Bot
2026-05-16 4:17 ` Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-05-12 6:53 [PATCH v2] " Myeonghun Pak
2026-05-12 6:56 ` Myeonghun Pak
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='CAGEsz8E37y4+sk4kMVsZ1nHJ4e_qLbCWx=a5iK6-stG5KwtB0w@mail.gmail.com' \
--to=mhun512@gmail.com \
--cc=ae878000@gmail.com \
--cc=airlied@gmail.com \
--cc=chenhuacai@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jeffbai@aosc.io \
--cc=linux-kernel@vger.kernel.org \
--cc=lvjianmin@loongson.cn \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=stable@vger.kernel.org \
--cc=suijingfeng@loongson.cn \
--cc=tzimmermann@suse.de \
--cc=wuqianhai@loongson.cn \
--cc=xry111@xry111.site \
--cc=zhengxingda@iscas.ac.cn \
/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