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 <[email protected]> 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/[email protected]?part=4
