[PATCH 45/48] drm/amdgpu/ras: use the number of JPEG instances

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rather than the number of VCN instances.  This should
be the same, but call it out explicitly.

Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 66ec1a4da7343..571f1c783bc66 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -378,10 +378,13 @@ static void amdgpu_ras_instance_mask_check(struct amdgpu_device *adev,
 		mask = GENMASK(adev->sdma.num_instances - 1, 0);
 		break;
 	case AMDGPU_RAS_BLOCK__VCN:
-	case AMDGPU_RAS_BLOCK__JPEG:
 		inst = amdgpu_device_ip_get_num_inst(adev, AMD_IP_BLOCK_TYPE_VCN);
 		mask = GENMASK(inst - 1, 0);
 		break;
+	case AMDGPU_RAS_BLOCK__JPEG:
+		inst = amdgpu_device_ip_get_num_inst(adev, AMD_IP_BLOCK_TYPE_JPEG);
+		mask = GENMASK(inst - 1, 0);
+		break;
 	default:
 		mask = inst_mask;
 		break;
-- 
2.47.1




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux