diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-04-17 17:34:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-02 13:16:07 -0400 |
commit | fca4ce697f304e5d1f739399d97cbfb2b918fa7f (patch) | |
tree | 1f8bc0b99166294031e189bfac388dfeb828fb40 /drivers | |
parent | 0274a9c55614a5c89dd04bca376dbe252f5ea334 (diff) | |
download | talos-op-linux-fca4ce697f304e5d1f739399d97cbfb2b918fa7f.tar.gz talos-op-linux-fca4ce697f304e5d1f739399d97cbfb2b918fa7f.zip |
drm/amdgpu/gfx9: add additional MQD initialization
Need to properly set the ROQ space setting.
Reviewed-by: monk liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 178fe11bd7f9..5f2ae4cb510f 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1998,6 +1998,11 @@ static int gfx_v9_0_mqd_init(struct amdgpu_ring *ring) tmp = REG_SET_FIELD(tmp, CP_HQD_PERSISTENT_STATE, PRELOAD_SIZE, 0x53); mqd->cp_hqd_persistent_state = tmp; + /* set MIN_IB_AVAIL_SIZE */ + tmp = RREG32_SOC15(GC, 0, mmCP_HQD_IB_CONTROL); + tmp = REG_SET_FIELD(tmp, CP_HQD_IB_CONTROL, MIN_IB_AVAIL_SIZE, 3); + mqd->cp_hqd_ib_control = tmp; + /* activate the queue */ mqd->cp_hqd_active = 1; |