Commit 6a944ccb authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher

drm/amdgpu: Fix harvest reporting of VCN

Use VCN instance mask to check if an instance is harvested or not.
Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarJames Zhu <James.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fd91d38b
...@@ -313,6 +313,7 @@ static void amdgpu_discovery_harvest_config_quirk(struct amdgpu_device *adev) ...@@ -313,6 +313,7 @@ static void amdgpu_discovery_harvest_config_quirk(struct amdgpu_device *adev)
case 0xCF: case 0xCF:
case 0xDF: case 0xDF:
adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1; adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1;
adev->vcn.inst_mask &= ~AMDGPU_VCN_HARVEST_VCN1;
break; break;
default: default:
break; break;
...@@ -899,7 +900,7 @@ static uint8_t amdgpu_discovery_get_harvest_info(struct amdgpu_device *adev, ...@@ -899,7 +900,7 @@ static uint8_t amdgpu_discovery_get_harvest_info(struct amdgpu_device *adev,
/* Until a uniform way is figured, get mask based on hwid */ /* Until a uniform way is figured, get mask based on hwid */
switch (hw_id) { switch (hw_id) {
case VCN_HWID: case VCN_HWID:
harvest = (1 << inst) & adev->vcn.harvest_config; harvest = ((1 << inst) & adev->vcn.inst_mask) == 0;
break; break;
case DMU_HWID: case DMU_HWID:
if (adev->harvest_ip_mask & AMD_HARVEST_IP_DMU_MASK) if (adev->harvest_ip_mask & AMD_HARVEST_IP_DMU_MASK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment