Skip to contentSkip to conversation

drm/radeon: add video usability info support for VCE

PATCH Superseded Leo Liu 4 participants 5 messages Mar 30, 2015 – Mar 31, 2015

Subsystems (2)
lore
Share & tools
lore

Leo Liu

author
#0 lore raw

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
index 976fe43..24f849f 100644
@@ -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
#1 lore raw

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
---
 drivers/gpu/drm/radeon/radeon_vce.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/radeon/radeon_vce.c +1 -1
index 976fe43..24f849f 100644
@@ -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

author
#2 lore raw

PATCH v2 1/1 drm/radeon: add video usability info support for VCE

In reply to Leo Liu

v2: 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
index d688f6c..7d620d4 100644
@@ -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	0
 int 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
index 976fe43..24f849f 100644
@@ -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
Reviewed-by on v2 1/1
#3 lore raw
Quoted 3 lines · Leo Liu

v2: bump version to make sure userspace backward compatibility

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
index d688f6c..7d620d4 100644
@@ -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	0
  int 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
index 976fe43..24f849f 100644

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

Applied
#4 lore raw
Quoted 8 lines · Christian König
Quoted 4 lines · Leo Liu

v2: bump version to make sure userspace backward compatibility

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
index d688f6c..7d620d4 100644
@@ -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

drivers/gpu/drm/radeon/radeon_drv.c +1 -1
-#define KMS_DRIVER_MINOR       41
+#define KMS_DRIVER_MINOR       42
  #define KMS_DRIVER_PATCHLEVEL 0
  int 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
index 976fe43..24f849f 100644
@@ -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 -0
                        break;
                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