diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 |
1 files changed, 9 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 f4c4eea62526..1cf639a51178 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -1918,6 +1918,15 @@ static void gfx_v9_0_init_compute_vmid(struct amdgpu_device *adev) | |||
1918 | } | 1918 | } |
1919 | soc15_grbm_select(adev, 0, 0, 0, 0); | 1919 | soc15_grbm_select(adev, 0, 0, 0, 0); |
1920 | mutex_unlock(&adev->srbm_mutex); | 1920 | mutex_unlock(&adev->srbm_mutex); |
1921 | |||
1922 | /* Initialize all compute VMIDs to have no GDS, GWS, or OA | ||
1923 | acccess. These should be enabled by FW for target VMIDs. */ | ||
1924 | for (i = FIRST_COMPUTE_VMID; i < LAST_COMPUTE_VMID; i++) { | ||
1925 | WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_BASE, 2 * i, 0); | ||
1926 | WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_SIZE, 2 * i, 0); | ||
1927 | WREG32_SOC15_OFFSET(GC, 0, mmGDS_GWS_VMID0, i, 0); | ||
1928 | WREG32_SOC15_OFFSET(GC, 0, mmGDS_OA_VMID0, i, 0); | ||
1929 | } | ||
1921 | } | 1930 | } |
1922 | 1931 | ||
1923 | static void gfx_v9_0_constants_init(struct amdgpu_device *adev) | 1932 | static void gfx_v9_0_constants_init(struct amdgpu_device *adev) |