@@ -151,10 +151,21 @@ pr_info("%s\n", __func__);
kfree(fb);
}
+static void *sdrm_panic_vmap(struct drm_framebuffer *fb)
+{
+ struct sdrm_device *sdrm = fb->dev->dev_private;
+
+ fb->pixel_format = sdrm->hw->format;
+ fb->pitches[0] = sdrm->hw->stride;
+
+ return sdrm->hw->map;
+}
+
static const struct drm_framebuffer_funcs sdrm_fb_ops = {
.create_handle = sdrm_fb_create_handle,
.dirty = sdrm_fb_dirty,
.destroy = sdrm_fb_destroy,
+ .panic_vmap = sdrm_panic_vmap,
};
struct sdrm_fb *sdrm_fb_new(struct sdrm_bo *bo,
This enables panic message output support in simpledrm. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> --- drivers/gpu/drm/simpledrm/simpledrm_kms.c | 11 +++++++++++ 1 file changed, 11 insertions(+)