projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d78c1fa
)
drm/amdgpu: use the smaller hole for GART
author
Christian König
<
[email protected]
>
Fri, 24 Aug 2018 07:40:10 +0000
(09:40 +0200)
committer
Alex Deucher
<
[email protected]
>
Wed, 29 Aug 2018 17:35:52 +0000
(12:35 -0500)
Instead of the larger one use the smaller hole in the MC address
space for the GART mappings.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Junwei Zhang <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index 8269197df8e0cac5d7529904526aa5c44fa4d5d1..265ec68071304d5594e46be94564393f2e2501a2 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@
-132,7
+132,8
@@
void amdgpu_gmc_gart_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc)
mc->gart_size = max(size_bf, size_af);
}
- if (size_bf > size_af)
+ if ((size_bf >= mc->gart_size && size_bf < size_af) ||
+ (size_af < mc->gart_size))
mc->gart_start = 0;
else
mc->gart_start = ALIGN(mc->vram_end + 1, 0x100000000ULL);