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:
052c299
)
drm/amdgpu/gfx9: only init the apertures used by KGD (v2)
author
Alex Deucher
<
[email protected]
>
Mon, 1 Jan 2018 21:14:43 +0000
(16:14 -0500)
committer
Alex Deucher
<
[email protected]
>
Wed, 10 Jan 2018 20:44:50 +0000
(15:44 -0500)
Use adev->vm_manager.id_mgr[0].num_ids rather than hardcoded 16.
v2: use AMDGPU_GFXHUB rather than hardcoded 0 (Christian)
Reviewed-by: Chunming Zhou <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Noticed-by: Felix Kuehling <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 55670dbacaceaab7fd3b96eaab034fb9a32f583c..fc270e2ef91a7baa46baae80ae2b16518894b9e6 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@
-1526,7
+1526,7
@@
static void gfx_v9_0_gpu_init(struct amdgpu_device *adev)
/* XXX SH_MEM regs */
/* where to put LDS, scratch, GPUVM in FSA64 space */
mutex_lock(&adev->srbm_mutex);
- for (i = 0; i <
16
; i++) {
+ for (i = 0; i <
adev->vm_manager.id_mgr[AMDGPU_GFXHUB].num_ids
; i++) {
soc15_grbm_select(adev, 0, 0, 0, i);
/* CP and shaders */
if (i == 0) {