diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-14 10:06:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-19 13:38:48 -0400 |
commit | 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd (patch) | |
tree | 6c0eb5f3977246e97ae34339b72b45bd1a65ac21 /drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | |
parent | 403009bfba45163887398652762ed1fc6645181c (diff) |
drm/amdgpu: fix up GDS/GWS/OA shifting
That only worked by pure coincident. Completely remove the shifting and
always apply correct PAGE_SHIFT.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h index e73728d90388..ecbcefe49a98 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | |||
@@ -24,13 +24,6 @@ | |||
24 | #ifndef __AMDGPU_GDS_H__ | 24 | #ifndef __AMDGPU_GDS_H__ |
25 | #define __AMDGPU_GDS_H__ | 25 | #define __AMDGPU_GDS_H__ |
26 | 26 | ||
27 | /* Because TTM request that alloacted buffer should be PAGE_SIZE aligned, | ||
28 | * we should report GDS/GWS/OA size as PAGE_SIZE aligned | ||
29 | * */ | ||
30 | #define AMDGPU_GDS_SHIFT 2 | ||
31 | #define AMDGPU_GWS_SHIFT PAGE_SHIFT | ||
32 | #define AMDGPU_OA_SHIFT PAGE_SHIFT | ||
33 | |||
34 | struct amdgpu_ring; | 27 | struct amdgpu_ring; |
35 | struct amdgpu_bo; | 28 | struct amdgpu_bo; |
36 | 29 | ||