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:
f7effef
)
drm/amdgpu: adapt vm size for multi vmpt
author
Chunming Zhou
<
[email protected]
>
Mon, 27 Mar 2017 03:53:12 +0000
(11:53 +0800)
committer
Alex Deucher
<
[email protected]
>
Thu, 30 Mar 2017 03:55:30 +0000
(23:55 -0400)
Signed-off-by: Chunming Zhou <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Reviewed-by: Junwei Zhang <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 5b4eb7ad24cd7ad5cd0b64bb28e25c891ed250e2..ab090fcb78ad9b7b968a199e7ee2a884fbe19a5a 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@
-500,6
+500,12
@@
static int gmc_v9_0_vm_init(struct amdgpu_device *adev)
* amdkfd will use VMIDs 8-15
*/
adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+ /* Because of four level VMPTs, vm size at least is 256GB.
+ 256TB is OK as well */
+ if (amdgpu_vm_size < 256) {
+ DRM_WARN("vm size at least is 256GB!\n");
+ amdgpu_vm_size = 256;
+ }
adev->vm_manager.num_level = 1;
amdgpu_vm_manager_init(adev);