Skip to content

Commit 72d7f45

Browse files
Alan Liualexdeucher
authored andcommitted
drm/amdgpu: Fix query for VPE block_type and ip_count
[Why] Query for VPE block_type and ip_count is missing. [How] Add VPE case in ip_block_type and hw_ip_count query. Reviewed-by: Lang Yu <lang.yu@amd.com> Signed-off-by: Alan Liu <haoping.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit a6ea0a4) Cc: stable@vger.kernel.org
1 parent e0d20a7 commit 72d7f45

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ static enum amd_ip_block_type
201201
type = (amdgpu_device_ip_get_ip_block(adev, AMD_IP_BLOCK_TYPE_JPEG)) ?
202202
AMD_IP_BLOCK_TYPE_JPEG : AMD_IP_BLOCK_TYPE_VCN;
203203
break;
204+
case AMDGPU_HW_IP_VPE:
205+
type = AMD_IP_BLOCK_TYPE_VPE;
206+
break;
204207
default:
205208
type = AMD_IP_BLOCK_TYPE_NUM;
206209
break;
@@ -721,6 +724,9 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
721724
case AMD_IP_BLOCK_TYPE_UVD:
722725
count = adev->uvd.num_uvd_inst;
723726
break;
727+
case AMD_IP_BLOCK_TYPE_VPE:
728+
count = adev->vpe.num_instances;
729+
break;
724730
/* For all other IP block types not listed in the switch statement
725731
* the ip status is valid here and the instance count is one.
726732
*/

0 commit comments

Comments
 (0)