Commit c38be070 authored by Le Ma's avatar Le Ma Committed by Alex Deucher

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: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent be697aa3
...@@ -75,7 +75,7 @@ struct amdgpu_mec { ...@@ -75,7 +75,7 @@ struct amdgpu_mec {
u32 num_mec; u32 num_mec;
u32 num_pipe_per_mec; u32 num_pipe_per_mec;
u32 num_queue_per_pipe; u32 num_queue_per_pipe;
void *mqd_backup[AMDGPU_MAX_COMPUTE_RINGS + 1]; void *mqd_backup[AMDGPU_MAX_COMPUTE_RINGS * AMDGPU_MAX_GC_INSTANCES];
}; };
struct amdgpu_mec_bitmap { struct amdgpu_mec_bitmap {
...@@ -122,6 +122,7 @@ struct amdgpu_kiq { ...@@ -122,6 +122,7 @@ struct amdgpu_kiq {
struct amdgpu_ring ring; struct amdgpu_ring ring;
struct amdgpu_irq_src irq; struct amdgpu_irq_src irq;
const struct kiq_pm4_funcs *pmf; const struct kiq_pm4_funcs *pmf;
void *mqd_backup;
}; };
/* /*
......
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