drm: mali-dp: Add support for setting plane's rotation property from userspace.
Subsystems (3)
Liviu Dudau
maintainerPATCH 1/1 drm: mali-dp: Add support for setting plane's rotation property from userspace.
In order to support DRM_IOCTL_MODE_OBJ_SETPROPERTY for the rotation property we need to have a ->set_property hook defined for the planes. Set the plane's ->set_property hook to drm_atomic_helper_plane_set_property()
--- drivers/gpu/drm/arm/malidp_planes.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/arm/malidp_planes.c +1 -0
@@ -89,6 +89,7 @@ void malidp_destroy_plane_state(struct drm_plane *plane,static const struct drm_plane_funcs malidp_de_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, + .set_property = drm_atomic_helper_plane_set_property, .destroy = malidp_de_plane_destroy, .reset = drm_atomic_helper_plane_reset, .atomic_duplicate_state = malidp_duplicate_plane_state,
Signature · 1 line
2.10.0
Quoted 14 lines · Liviu Dudau
In order to support
DRM_IOCTL_MODE_OBJ_SETPROPERTYfor the rotation property we need to have a ->set_property hook defined for the planes. Set the plane's ->set_property hook todrm_atomic_helper_plane_set_property()Signed-off-by Liviu Dudau <[email protected]>--- drivers/gpu/drm/arm/malidp_planes.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/arm/malidp_planes.c +0
-0
drivers/gpu/drm/arm/malidp_planes.c void malidp_destroy_plane_state(struct drm_plane *plane, · line 92
Quoted 4 lines
drivers/gpu/drm/arm/malidp_planes.c +1
-0@@ -89,6 +89,7 @@ void malidp_destroy_plane_state(struct drm_plane *plane,static const struct drm_plane_funcs malidp_de_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, + .set_property = drm_atomic_helper_plane_set_property,
We discussed this a bit, I think it'd be nice to simply make this the default for all atomic drivers (and demote all the set_prop helpers from exported helpers to internal static functions). But can be done as a cleanup later on, ack for this patch meanwhile.
-Daniel
Quoted 10 lines
drivers/gpu/drm/arm/malidp_planes.c +0
-0.destroy = malidp_de_plane_destroy, .reset = drm_atomic_helper_plane_reset, .atomic_duplicate_state = malidp_duplicate_plane_state,Signature · 6 lines
2.10.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Liviu Dudau
maintainerQuoted 10 lines · Daniel Vetter
Quoted 9 lines · Liviu Dudau
In order to support
DRM_IOCTL_MODE_OBJ_SETPROPERTYfor the rotation property we need to have a ->set_property hook defined for the planes. Set the plane's ->set_property hook todrm_atomic_helper_plane_set_property()Signed-off-by Liviu Dudau <[email protected]>--- drivers/gpu/drm/arm/malidp_planes.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
drivers/gpu/drm/arm/malidp_planes.c void malidp_destroy_plane_state(struct drm_plane *plane, · line 92
Quoted 9 lines
drivers/gpu/drm/arm/malidp_planes.c +1
-0@@ -89,6 +89,7 @@ void malidp_destroy_plane_state(struct drm_plane *plane,static const struct drm_plane_funcs malidp_de_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, + .set_property = drm_atomic_helper_plane_set_property,We discussed this a bit, I think it'd be nice to simply make this the default for all atomic drivers (and demote all the
set_prophelpers from exported helpers to internal static functions). But can be done as a cleanup later on, ack for this patch meanwhile.
Thanks for the ACK! Yes, I will work on the cleanup and fix all other affected drivers as well, this is my attempt to get the patches into v4.9 ;)
Best regards,
Liviu
Quoted 17 lines
-Daniel
Quoted 10 lines
drivers/gpu/drm/arm/malidp_planes.c +0
-0.destroy = malidp_de_plane_destroy, .reset = drm_atomic_helper_plane_reset, .atomic_duplicate_state = malidp_duplicate_plane_state,Signature · 6 lines
2.10.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-develSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Signature · 12 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel