drm/radeon: add video usability info support for VCE
Subsystems (2)
PATCH 1/1 drm/radeon: add video usability info support for VCE
--- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/radeon/radeon_vce.c +1 -0
@@ -571,6 +571,7 @@ int radeon_vce_cs_parse(struct radeon_cs_parser *p)case 0x04000005 :// rate control case 0x04000007 :// motion estimation case 0x04000008 :// rdo +case 0x04000009 :// vui break ;case 0x03000001 :// encode
Signature · 6 lines
2.1.0 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
How will userspace know that it's safe to use this command on a particular kernel? Normally the driver's drm version is incremented, and then userspace is gated it... Or does this not matter here?
Quoted 20 lines · Leo Liu
Signed-off-by Leo Liu <[email protected]>--- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/radeon/radeon_vce.c +1
-1@@ -571,6 +571,7 @@ int radeon_vce_cs_parse(struct radeon_cs_parser *p)case 0x04000005 :// rate control case 0x04000007 :// motion estimation case 0x04000008 :// rdo +case 0x04000009 :// vui break ;case 0x03000001 :// encode --2.1.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 1/1 drm/radeon: add video usability info support for VCE
In reply to Leo Liuv2: bump version to make sure userspace backward compatibility
--- drivers/gpu/drm/radeon/radeon_drv.c | 3 ++- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_drv.c +2 -1
@@ -89,9 +89,10 @@* 2.40.0 - Add RADEON_GEM_GTT_WC/UC, flush HDP cache before submitting * CS to GPU on >= r600 * 2.41.0 - evergreen/cayman: Add SET_BASE/DRAW_INDIRECT command parsing support +* 2.42.0 - Add VCE/VUI (Video Usability Information) support */ #define KMS_DRIVER_MAJOR 2 -#define KMS_DRIVER_MINOR 41 +#define KMS_DRIVER_MINOR 42#define KMS_DRIVER_PATCHLEVEL 0int radeon_driver_load_kms (struct drm_device *dev,unsigned long flags);int radeon_driver_unload_kms (struct drm_device *dev);
drivers/gpu/drm/radeon/radeon_vce.c +1 -0
@@ -571,6 +571,7 @@ int radeon_vce_cs_parse(struct radeon_cs_parser *p)case 0x04000005 :// rate control case 0x04000007 :// motion estimation case 0x04000008 :// rdo +case 0x04000009 :// vui break ;case 0x03000001 :// encode
Signature · 6 lines
2.1.0 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · Leo Liu
v2: bump version to make sure userspace backward compatibility
Signed-off-by Leo Liu <[email protected]>
Quoted 26 lines
--- drivers/gpu/drm/radeon/radeon_drv.c | 3 ++- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_drv.c +2
-1@@ -89,9 +89,10 @@* 2.40.0 - Add RADEON_GEM_GTT_WC/UC, flush HDP cache before submitting * CS to GPU on >= r600 * 2.41.0 - evergreen/cayman: Add SET_BASE/DRAW_INDIRECT command parsing support +* 2.42.0 - Add VCE/VUI (Video Usability Information) support */ #define KMS_DRIVER_MAJOR 2 -#define KMS_DRIVER_MINOR 41 +#define KMS_DRIVER_MINOR 42#define KMS_DRIVER_PATCHLEVEL 0int radeon_driver_load_kms (struct drm_device *dev,unsigned long flags);int radeon_driver_unload_kms (struct drm_device *dev);drivers/gpu/drm/radeon/radeon_vce.c +0
-0
drivers/gpu/drm/radeon/radeon_vce.c int radeon_vce_cs_parse(struct radeon_cs_parser *p) · line 577
Quoted 7 lines
drivers/gpu/drm/radeon/radeon_vce.c +1
-0@@ -571,6 +571,7 @@ int radeon_vce_cs_parse(struct radeon_cs_parser *p)case 0x04000005 :// rate control case 0x04000007 :// motion estimation case 0x04000008 :// rdo +case 0x04000009 :// vui break ;case 0x03000001 :// encode
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 8 lines · Christian König
Quoted 4 lines · Leo Liu
v2: bump version to make sure userspace backward compatibility
Signed-off-by Leo Liu <[email protected]>Reviewed-by Christian König <[email protected]>
Applied to my -next tree. Thanks!
Alex
Quoted 36 lines
Quoted 36 lines
--- drivers/gpu/drm/radeon/radeon_drv.c | 3 ++- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_drv.c +0
-0@@ -89,9 +89,10 @@* 2.40.0 - Add RADEON_GEM_GTT_WC/UC, flush HDP cache before submitting
* CS to GPU on >= r600
* 2.41.0 - evergreen/cayman: Add SET_BASE/DRAW_INDIRECT command
parsing support
+ * 2.42.0 - Add VCE/VUI (Video Usability Information) support
*/
#defineKMS_DRIVER_MAJOR2drivers/gpu/drm/radeon/radeon_drv.c +1
-1-#define KMS_DRIVER_MINOR 41 +#define KMS_DRIVER_MINOR 42#define KMS_DRIVER_PATCHLEVEL 0int radeon_driver_load_kms (struct drm_device *dev,unsigned long flags);int radeon_driver_unload_kms (struct drm_device *dev);drivers/gpu/drm/radeon/radeon_vce.c +1
-0@@ -571,6 +571,7 @@ int radeon_vce_cs_parse(struct radeon_cs_parser *p)case 0x04000005 :// rate control case 0x04000007 :// motion estimation case 0x04000008 :// rdo +case 0x04000009 :// vui
Quoted 8 lines
drivers/gpu/drm/radeon/radeon_vce.c int radeon_vce_cs_parse(struct radeon_cs_parser *p) · line 577
Quoted 2 lines
drivers/gpu/drm/radeon/radeon_vce.c +0
-0break ;case 0x03000001 :// encode _______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel