Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: separate the mqd_backup for kiq from kcq

This will benifit the mqd indexing for kiq/kcq in multi XCD case.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Le Ma and committed by
Alex Deucher
c38be070 be697aa3

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
··· 75 75 u32 num_mec; 76 76 u32 num_pipe_per_mec; 77 77 u32 num_queue_per_pipe; 78 - void *mqd_backup[AMDGPU_MAX_COMPUTE_RINGS + 1]; 78 + void *mqd_backup[AMDGPU_MAX_COMPUTE_RINGS * AMDGPU_MAX_GC_INSTANCES]; 79 79 }; 80 80 81 81 struct amdgpu_mec_bitmap { ··· 122 122 struct amdgpu_ring ring; 123 123 struct amdgpu_irq_src irq; 124 124 const struct kiq_pm4_funcs *pmf; 125 + void *mqd_backup; 125 126 }; 126 127 127 128 /*