Skip to content

Commit

Permalink
drm/amdgpu: add AMDGPU_MAX_SDMA_INSTANCES
Browse files Browse the repository at this point in the history
Remove the hardcoded usage

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Jammy Zhou authored and Alex Deucher committed Sep 2, 2015
1 parent 18111de commit 36f523a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ extern int amdgpu_sched_hw_submission;
#define AMDGPU_MAX_COMPUTE_RINGS 8
#define AMDGPU_MAX_VCE_RINGS 2

/* max number of IP instances */
#define AMDGPU_MAX_SDMA_INSTANCES 2

/* number of hw syncs before falling back on blocking */
#define AMDGPU_NUM_SYNCS 4

Expand Down Expand Up @@ -2057,7 +2060,7 @@ struct amdgpu_device {
struct amdgpu_gfx gfx;

/* sdma */
struct amdgpu_sdma sdma[2];
struct amdgpu_sdma sdma[AMDGPU_MAX_SDMA_INSTANCES];
struct amdgpu_irq_src sdma_trap_irq;
struct amdgpu_irq_src sdma_illegal_inst_irq;

Expand Down

0 comments on commit 36f523a

Please sign in to comment.