mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] drm: Fix up and error handling after fbdev changes
@ 2024-10-02 15:06 Dave Stevenson
  2024-10-02 15:06 ` [PATCH 1/2] drm/vc4: Run default client setup for all variants Dave Stevenson
  2024-10-02 15:06 ` [PATCH 2/2] drm/fbdev: Ensure that one of the probe functions is defined Dave Stevenson
  0 siblings, 2 replies; 6+ messages in thread
From: Dave Stevenson @ 2024-10-02 15:06 UTC (permalink / raw)
  To: Maxime Ripard, Raspberry Pi Kernel Maintenance,
	Maarten Lankhorst, Thomas Zimmermann, David Airlie,
	Simona Vetter, Javier Martinez Canillas
  Cc: dri-devel, linux-kernel, Dave Stevenson

I was trying dri-misc-next on Pi4 and getting a NULL deref as vc4
started. The cause was having missed adding DRM_FBDEV_DMA_DRIVER_OPS
to the 2711 struct drm_driver, but also showed up that the handling
in drm_fb_helper_single_fb_probe could fail to call any fbdev_probe
function, and hence the NULL deref.

These two patches fix up vc4, but also throw an error if neither
driver->fbdev_probe nor funcs->fb_probe are defined.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
Dave Stevenson (2):
      drm/vc4: Run default client setup for all variants.
      drm/fbdev: Ensure that one of the probe functions is defined

 drivers/gpu/drm/drm_fb_helper.c | 2 ++
 drivers/gpu/drm/vc4/vc4_drv.c   | 1 +
 2 files changed, 3 insertions(+)
---
base-commit: 86fdd6b9b1e98cfd26249505e8ce72f4fc0de37f
change-id: 20241002-vc4_fbdev_fix-f4c8b11928cd

Best regards,
-- 
Dave Stevenson <dave.stevenson@raspberrypi.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-21 16:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-02 15:06 [PATCH 0/2] drm: Fix up and error handling after fbdev changes Dave Stevenson
2024-10-02 15:06 ` [PATCH 1/2] drm/vc4: Run default client setup for all variants Dave Stevenson
2024-10-09 11:02   ` Maíra Canal
2024-10-09 12:15     ` Dave Stevenson
2024-10-21 16:10       ` Dave Stevenson
2024-10-02 15:06 ` [PATCH 2/2] drm/fbdev: Ensure that one of the probe functions is defined Dave Stevenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome