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:
e21eb26
)
drm/amdgpu: add GMC9 support for PDs/PTs in system memory
author
Christian König
<
[email protected]
>
Wed, 22 Aug 2018 10:27:05 +0000
(12:27 +0200)
committer
Alex Deucher
<
[email protected]
>
Mon, 27 Aug 2018 20:19:27 +0000
(15:19 -0500)
Add the necessary handling.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Junwei Zhang <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Reviewed-by: Huang Rui <
[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 a82b3eb429e8b1af003c8fcda4db71a357ac7366..453bd7ea50e7901eee8e466d87455999e8c00869 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@
-560,7
+560,7
@@
static uint64_t gmc_v9_0_get_vm_pte_flags(struct amdgpu_device *adev,
static void gmc_v9_0_get_vm_pde(struct amdgpu_device *adev, int level,
uint64_t *addr, uint64_t *flags)
{
- if (!(*flags & AMDGPU_PDE_PTE))
+ if (!(*flags & AMDGPU_PDE_PTE)
&& !(*flags & AMDGPU_PTE_SYSTEM)
)
*addr = adev->vm_manager.vram_base_offset + *addr -
adev->gmc.vram_start;
BUG_ON(*addr & 0xFFFF00000000003FULL);