drm/amdgpu: update SET_HW_RESOURCES definition for UMSCH
authorLang Yu <Lang.Yu@amd.com>
Mon, 17 Jul 2023 06:30:25 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 21:14:21 +0000 (17:14 -0400)
Align with FW changes.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/umsch_mm_v4_0.c
drivers/gpu/drm/amd/include/umsch_mm_4_0_api_def.h

index d3dec5f..6716499 100644 (file)
@@ -279,6 +279,9 @@ static int umsch_mm_v4_0_set_hw_resources(struct amdgpu_umsch_mm *umsch)
               sizeof(uint32_t) * 5);
        set_hw_resources.osssys_version = adev->ip_versions[OSSSYS_HWIP][0];
 
+       set_hw_resources.vcn_version = adev->ip_versions[VCN_HWIP][0];
+       set_hw_resources.vpe_version = adev->ip_versions[VPE_HWIP][0];
+
        set_hw_resources.api_status.api_completion_fence_addr = umsch->ring.fence_drv.gpu_addr;
        set_hw_resources.api_status.api_completion_fence_value = ++umsch->ring.fence_drv.sync_seq;
 
index 086ce77..beadb9e 100644 (file)
@@ -212,6 +212,7 @@ union UMSCHAPI__SET_HW_RESOURCES {
                union UMSCH_API_HEADER header;
                uint32_t vmid_mask_mm_vcn;
                uint32_t vmid_mask_mm_vpe;
+               uint32_t collaboration_mask_vpe;
                uint32_t engine_mask;
                uint32_t logging_vmid;
                uint32_t vcn0_hqd_mask[MAX_VCN0_INSTANCES];
@@ -223,6 +224,8 @@ union UMSCHAPI__SET_HW_RESOURCES {
                uint32_t mmhub_version;
                uint32_t osssys_base[UMSCH_MAX_HWIP_SEGMENT];
                uint32_t osssys_version;
+               uint32_t vcn_version;
+               uint32_t vpe_version;
                struct UMSCH_API_STATUS api_status;
                union {
                        struct {