Skip to content

drm: Fix up and error handling after fbdev changes

Dave Stevenson dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20241002-vc4_fbdev_fix-f4c8b11928cd

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/vc4: Run default client setup for all variants.drivers/gpu/drm/vc4/vc4_drv.c+1 -03 replies
2/2drm/fbdev: Ensure that one of the probe functions is defineddrivers/gpu/drm/drm_fb_helper.c+2 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMaíra Canal
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm: Fix up and error handling after fbdev changes

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.

---
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,

Signature · 1 line
Dave Stevenson <[email protected]>