drm/exynos: add render node support
Subsystems (3)
Inki Dae
maintainerFrom: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 39 +++++++++++++++++---------------- 1 file changed, 20 insertions(+), 19 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_drv.c +20 -19
@@ -275,25 +275,25 @@ static const struct vm_operations_struct exynos_drm_gem_vm_ops = {static const struct drm_ioctl_desc exynos_ioctls[] = {DRM_IOCTL_DEF_DRV (EXYNOS_GEM_CREATE , exynos_drm_gem_create_ioctl, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_GEM_GET , exynos_drm_gem_get_ioctl, +DRM_UNLOCKED |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_VIDI_CONNECTION , vidi_connection_ioctl,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_GEM_GET , - exynos_drm_gem_get_ioctl,DRM_UNLOCKED ), -DRM_IOCTL_DEF_DRV (EXYNOS_VIDI_CONNECTION , - vidi_connection_ioctl,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_G2D_GET_VER , - exynos_g2d_get_ver_ioctl,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_G2D_SET_CMDLIST , - exynos_g2d_set_cmdlist_ioctl,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_G2D_EXEC , - exynos_g2d_exec_ioctl,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_IPP_GET_PROPERTY , - exynos_drm_ipp_get_property,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_IPP_SET_PROPERTY , - exynos_drm_ipp_set_property,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_IPP_QUEUE_BUF , - exynos_drm_ipp_queue_buf,DRM_UNLOCKED |DRM_AUTH ), -DRM_IOCTL_DEF_DRV (EXYNOS_IPP_CMD_CTRL , - exynos_drm_ipp_cmd_ctrl,DRM_UNLOCKED |DRM_AUTH ), +DRM_IOCTL_DEF_DRV (EXYNOS_G2D_GET_VER , exynos_g2d_get_ver_ioctl, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_G2D_SET_CMDLIST , exynos_g2d_set_cmdlist_ioctl, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_G2D_EXEC , exynos_g2d_exec_ioctl, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_IPP_GET_PROPERTY , exynos_drm_ipp_get_property, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_IPP_SET_PROPERTY , exynos_drm_ipp_set_property, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_IPP_QUEUE_BUF , exynos_drm_ipp_queue_buf, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (EXYNOS_IPP_CMD_CTRL , exynos_drm_ipp_cmd_ctrl, +DRM_UNLOCKED |DRM_AUTH |DRM_RENDER_ALLOW ), };static const struct file_operations exynos_drm_driver_fops = {
@@ -310,7 +310,8 @@ static const struct file_operations exynos_drm_driver_fops = { };static struct drm_driver exynos_drm_driver = { - .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_PRIME , + .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_PRIME | +DRIVER_RENDER , .load = exynos_drm_load, .unload = exynos_drm_unload, .suspend = exynos_drm_suspend,
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi all,
Quoted 5 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
On the g2d front, can you guys take a look at the work Tobias has been doing ? He seems to be the only one that cares about it :'(
Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainerHi Emil,
Quoted 5 lines · Emil Velikov
Hi all,
Quoted 2 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
Quoted 7 lines
Quoted 3 lines
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
You can refer to the user-space below,
https://review.tizen.org/git/?p=platform/upstream/libdrm.git;a=commit;h=52de1c57e2e6f3b2a1259478d5ae260ed4c5706e
Quoted 3 lines
On the g2d front, can you guys take a look at the work Tobias has been doing ? He seems to be the only one that cares about it :'(
I'd like to say really sorry about that to you and Tobias. Will review it soon.
Thanks,
Inki Dae
Quoted 4 lines
Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Inki Dae
Hi Emil,
Quoted 8 lines · Emil Velikov
Hi all,
Quoted 5 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
Quoted 8 lines
Quoted 4 lines
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
You can refer to the user-space below,
https://review.tizen.org/git/?p=platform/upstream/libdrm.git;a=commit;h=52de1c57e2e6f3b2a1259478d5ae260ed4c5706e
Nice one thanks !
Did those patch(es) ever made it to the list ? Mind giving them a tiny bit of cleanup (move tests to exynos, drop duplication, C99 initializers) and sending them over ?
On a mildly related note:
The tizen people like excessive rebasing :( Another alternative would be to send fixes upstream and keep their changes within ./packaging, which will allow clean merges.
Quoted 7 lines
Quoted 3 lines
On the g2d front, can you guys take a look at the work Tobias has been doing ? He seems to be the only one that cares about it :'(
I'd like to say really sorry about that to you and Tobias. Will review it soon.
Great. Tobias sent a few more drm/exynos and libdrm (g2d utilities) patches that've been around for a while :(
Perhaps he can re-spin then and/or send a list with outstanding ones ?
Cheers,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 31 lines · Emil Velikov
Quoted 11 lines · Inki Dae
Hi Emil,
Quoted 8 lines · Emil Velikov
Hi all,
Quoted 5 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
Quoted 8 lines
Quoted 4 lines
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
You can refer to the user-space below,
https://review.tizen.org/git/?p=platform/upstream/libdrm.git;a=commit;h=52de1c57e2e6f3b2a1259478d5ae260ed4c5706eNice one thanks !
Did those patch(es) ever made it to the list ? Mind giving them a tiny bit of cleanup (move tests to exynos, drop duplication, C99 initializers) and sending them over ?On a mildly related note:
The tizen people like excessive rebasing :( Another alternative would be to send fixes upstream and keep their changes within ./packaging, which will allow clean merges.Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
On the g2d front, can you guys take a look at the work Tobias has been doing ? He seems to be the only one that cares about it :'(
I'd like to say really sorry about that to you and Tobias. Will review it soon.
Great. Tobias sent a few more drm/exynos and libdrm (g2d utilities) patches that've been around for a while :(
Thanks, the size two patches for the kernel (size check) are kinda important. Currently userspace can easily trigger a pagefault due to this being wrong. So maybe it's also a candidate for stable (but I don't know too much about how stable backports work).
With best wishes,
Tobias
P.S.: I also might've some patches ready in 2 weeks or so which should resolve the g2d/userptr issues.
Quoted 6 lines
Perhaps he can re-spin then and/or send a list with outstanding ones ?
Cheers,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainerQuoted 25 lines · Emil Velikov
Quoted 11 lines · Inki Dae
Hi Emil,
Quoted 8 lines · Emil Velikov
Hi all,
Quoted 5 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
Quoted 8 lines
Quoted 4 lines
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
You can refer to the user-space below,
https://review.tizen.org/git/?p=platform/upstream/libdrm.git;a=commit;h=52de1c57e2e6f3b2a1259478d5ae260ed4c5706eNice one thanks !
Did those patch(es) ever made it to the list ? Mind giving them a tiny bit of cleanup (move tests to exynos, drop duplication, C99 initializers) and sending them over ?
Quoted 4 lines
On a mildly related note:
The tizen people like excessive rebasing :( Another alternative would be to send fixes upstream and keep their changes within ./packaging, which will allow clean merges.
I just shared the patch for you and someone who want to know the user-space of the post processor. The patch should be more __really__ cleaned up and refactored. After that, we'd like to post it to mainline in the near future. Currently, we are working on this in kernel and user-space side.
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
On the g2d front, can you guys take a look at the work Tobias has been doing ? He seems to be the only one that cares about it :'(
Quoted 7 lines
Quoted 3 lines
I'd like to say really sorry about that to you and Tobias. Will review it soon.
Great. Tobias sent a few more drm/exynos and libdrm (g2d utilities) patches that've been around for a while :(
Perhaps he can re-spin then and/or send a list with outstanding ones ?
Ok, I will check it.
Thanks,
Inki Dae
Quoted 4 lines
Cheers,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 17 lines · Emil Velikov
Quoted 16 lines · Inki Dae
Hi Emil,
Quoted 12 lines · Emil Velikov
Hi all,
Quoted 5 lines · Inki Dae
From: Joonyoung Shim <[email protected]>
This patch allows clients who want to use render node to access rendering relevant ioctls - g2d, post processor and gem allocation.
I seem to recall Dave and others saying that we must have users of these interfaces prior to merging them into the kernel. Then again I cannot find any open-source userspace using the post-processor. Can anyone kingly share a link ?
Quoted 7 lines
Quoted 3 lines
You can refer to the user-space below,
https://review.tizen.org/git/?p=platform/upstream/libdrm.git;a=commit;h=52de1c57e2e6f3b2a1259478d5ae260ed4c5706eNice one thanks !
Did those patch(es) ever made it to the list ? Mind giving them a tiny bit of cleanup (move tests to exynos, drop duplication, C99 initializers) and sending them over ?
This is stretching the open-source userspace requirements quite a bit since it's just a simple testcase and not really real-world userspace (like a gstreamer module, X driver or whatever). Dave Airlie recently clarified for the atomic series that just a bunch of test apps (specifically for atomic glplanes) isn't good enough, and he wants the real thing.
Where is that?
Also adding Dave.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel