From: sashiko-bot@kernel.org
To: "Alex Kazinsky" <a.kazinsky@ideco.ru>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 4/5] drm/connector: Handle scaling mode property allocation failures
Date: Fri, 27 Nov 2026 08:39:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-236889@kernel.org> (raw)
In-Reply-To: <20261126081602.2901498-5-a.kazinsky@ideco.ru>
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/gma500: unhandled gma_irq_install() error in
psb_driver_load() [1]
--
commit 0fa9a1743597a5d0174fd433239776d4d22bf483
Author: Alex Kazinsky <a.kazinsky@ideco.ru>
drm/connector: Handle scaling mode property allocation failures
This commit returns -ENOMEM from drm_mode_create_scaling_mode_property()
when property creation fails and checks the return value in AMDGPU, GMA500,
Nouveau, and Radeon.
> diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
> index d17cb5b4a4bf2..6321cbc305bfd 100644
> --- a/drivers/gpu/drm/gma500/psb_drv.c
> +++ b/drivers/gpu/drm/gma500/psb_drv.c
> @@ -386,7 +386,9 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags)
>
> dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */
>
> - psb_modeset_init(dev);
> + ret = psb_modeset_init(dev);
> + if (ret)
> + goto out_err;
> drm_kms_helper_poll_init(dev);
>
> /* Only add backlight support if we have LVDS or MIPI output */
[Severity: High]
This problem wasn't introduced by this patch, but right above this hunk,
does psb_driver_load() (and similarly gma_power_resume()) ignore errors
from gma_irq_install() [1]?
drivers/gpu/drm/gma500/psb_drv.c:psb_driver_load() {
...
gma_irq_install(dev);
dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */
...
}
If request_irq() fails inside gma_irq_install(), the driver continues
initializing modesetting without working interrupts, causing vblank waits
and modeset operations to time out.
[1] https://sashiko.dev/#/bug/linux-c478675b-0011-4ea4-9556-c75f52fd7d08
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126081602.2901498-1-a.kazinsky@ideco.ru?part=4
next prev parent reply other threads:[~2026-11-27 8:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:15 [PATCH 0/5] drm/connector: Handle connector property allocation failures Alex Kazinsky
2026-11-26 8:15 ` Alex Kazinsky
2026-11-26 8:15 ` [PATCH 1/5] drm/connector: Check DP subconnector property before attaching it Alex Kazinsky
2026-11-27 8:40 ` sashiko-bot
2026-11-26 8:15 ` [PATCH 2/5] drm/connector: Handle DVI-I property allocation failures Alex Kazinsky
2026-11-26 8:15 ` Alex Kazinsky
2026-11-26 8:15 ` [PATCH 3/5] drm/connector: Propagate content type property creation errors Alex Kazinsky
2026-11-26 15:46 ` Albert Esteve
2026-11-27 8:38 ` sashiko-bot
2026-11-26 8:15 ` [PATCH 4/5] drm/connector: Handle scaling mode property allocation failures Alex Kazinsky
2026-11-26 8:15 ` Alex Kazinsky
2026-11-27 8:39 ` sashiko-bot [this message]
2026-11-29 3:53 ` Mario Limonciello
2026-11-29 3:53 ` Mario Limonciello
2026-11-26 8:16 ` [PATCH 5/5] drm/connector: Handle privacy-screen " Alex Kazinsky
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=sashiko-outbox-236889@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=a.kazinsky@ideco.ru \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.