mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm: renesas: rcar-du: Add drm_panic support for non-vsp
Add support for the drm_panic module for DU variants not using the VSP-compositor, to display a message on the screen when a kernel panic occurs. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Acked-by: Sui Jingfeng <sui.jingfeng@linux.dev> Link: https://patchwork.freedesktop.org/patch/msgid/b633568d2e3f405b21debdd60854fe39780254d6.1716816897.git.geert+renesas@glider.be Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
parent
8ae5bfb0d9
commit
b558053fcf
|
|
@ -680,6 +680,12 @@ static const struct drm_plane_helper_funcs rcar_du_plane_helper_funcs = {
|
|||
.atomic_update = rcar_du_plane_atomic_update,
|
||||
};
|
||||
|
||||
static const struct drm_plane_helper_funcs rcar_du_primary_plane_helper_funcs = {
|
||||
.atomic_check = rcar_du_plane_atomic_check,
|
||||
.atomic_update = rcar_du_plane_atomic_update,
|
||||
.get_scanout_buffer = drm_fb_dma_get_scanout_buffer,
|
||||
};
|
||||
|
||||
static struct drm_plane_state *
|
||||
rcar_du_plane_atomic_duplicate_state(struct drm_plane *plane)
|
||||
{
|
||||
|
|
@ -812,8 +818,12 @@ int rcar_du_planes_init(struct rcar_du_group *rgrp)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
drm_plane_helper_add(&plane->plane,
|
||||
&rcar_du_plane_helper_funcs);
|
||||
if (type == DRM_PLANE_TYPE_PRIMARY)
|
||||
drm_plane_helper_add(&plane->plane,
|
||||
&rcar_du_primary_plane_helper_funcs);
|
||||
else
|
||||
drm_plane_helper_add(&plane->plane,
|
||||
&rcar_du_plane_helper_funcs);
|
||||
|
||||
drm_plane_create_alpha_property(&plane->plane);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user