drm/amdgpu: correct vmhub index in GMC v10/11
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: correct vmhub index in GMC v10/11
From: Lang Yu <[email protected]>
Align with new vmhub definition.
v2: use client_id == VMC to decide vmhub(Hawking)
Signed-off-by Lang Yu <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
(cherry picked from commit 6f38bdb86a056707b9ecb09e3b44adedc8e8d8a0)
Cc [email protected] # 6.5.x
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +3 -1
@@ -109,9 +109,11 @@ static int gmc_v10_0_process_interrupt(struct amdgpu_device *adev,struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { + uint32_t vmhub_index = entry->client_id == SOC15_IH_CLIENTID_VMC ? +AMDGPU_MMHUB0 (0 ) :AMDGPU_GFXHUB (0 ); +struct amdgpu_vmhub *hub = &adev->vmhub[vmhub_index];bool retry_fault = !!(entry->src_data[1 ] &0x80 );bool write_fault = !!(entry->src_data[1 ] &0x20 ); -struct amdgpu_vmhub *hub = &adev->vmhub[entry->vmid_src];struct amdgpu_task_info task_info;uint32_t status =0 ;u64 addr;
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +3 -1
@@ -97,7 +97,9 @@ static int gmc_v11_0_process_interrupt(struct amdgpu_device *adev,struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { - struct amdgpu_vmhub *hub = &adev->vmhub[entry->vmid_src]; + uint32_t vmhub_index = entry->client_id == SOC21_IH_CLIENTID_VMC ? +AMDGPU_MMHUB0 (0 ) :AMDGPU_GFXHUB (0 ); +struct amdgpu_vmhub *hub = &adev->vmhub[vmhub_index];uint32_t status =0 ;u64 addr;
Signature · 1 line
2.41.0
Greg KH
maintainerQuoted 12 lines · Alex Deucher
From: Lang Yu <[email protected]>
Align with new vmhub definition.
v2: use
client_id== VMC to decide vmhub(Hawking)Signed-off-by Lang Yu <[email protected]>Reviewed-by Hawking Zhang <[email protected]>Signed-off-by Alex Deucher <[email protected]>(cherry picked from commit 6f38bdb86a056707b9ecb09e3b44adedc8e8d8a0)Cc [email protected] # 6.5.x
Quoted 5 lines
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
Now queued up, thanks.
greg k-h