Skip to contentSkip to conversation

drm/amdgpu: add VPE IP discovery info to HW IP info query

PATCH In review Alex Deucher 3 participants 3 messages Sep 12, 2023 – Sep 13, 2023

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: add VPE IP discovery info to HW IP info query

Add missing IP discovery info.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +3 -0
index a74ea53899f6..512eb3d8eaf1 100644
@@ -514,6 +514,9 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev,
 		case AMD_IP_BLOCK_TYPE_VCE:
 			result->ip_discovery_version = adev->ip_versions[VCE_HWIP][0];
 			break;
+		case AMD_IP_BLOCK_TYPE_VPE:
+			result->ip_discovery_version = adev->ip_versions[VPE_HWIP][0];
+			break;
 		default:
 			result->ip_discovery_version = 0;
 			break;
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Am 12.09.23 um 23:28 schrieb Alex Deucher:

Quoted 3 lines

Add missing IP discovery info.

Quoted 18 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +3 -0
index a74ea53899f6..512eb3d8eaf1 100644
@@ -514,6 +514,9 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev,
  		case AMD_IP_BLOCK_TYPE_VCE:
  			result->ip_discovery_version = adev->ip_versions[VCE_HWIP][0];
  			break;
+		case AMD_IP_BLOCK_TYPE_VPE:
+			result->ip_discovery_version = adev->ip_versions[VPE_HWIP][0];
+			break;
  		default:
  			result->ip_discovery_version = 0;
  			break;
Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Deucher
Quoted 3 lines · Alex Deucher

Add missing IP discovery info.

Quoted 21 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +3 -0
index a74ea53899f6..512eb3d8eaf1 100644
@@ -514,6 +514,9 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev,
 		case AMD_IP_BLOCK_TYPE_VCE:
 			result->ip_discovery_version = adev->ip_versions[VCE_HWIP][0];
 			break;
+		case AMD_IP_BLOCK_TYPE_VPE:
+			result->ip_discovery_version = adev->ip_versions[VPE_HWIP][0];
+			break;
 		default:
 			result->ip_discovery_version = 0;
 			break;
Signature · 1 line
2.41.0