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:
4dbda35
)
drm/amdgpu: loosen the criteria for huge pages a bit
author
Christian König
<
[email protected]
>
Thu, 21 Dec 2017 12:30:50 +0000
(13:30 +0100)
committer
Alex Deucher
<
[email protected]
>
Wed, 10 Jan 2018 20:44:52 +0000
(15:44 -0500)
We can actually handle invalid huge pages perfectly fine now.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Chunming Zhou <
[email protected]
>
Acked-by: Felix Kuehling <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index d4510807a692db603c02f66a0b6d19d829e938cb..3632c69f1814d047edd0ce98adfd38b6c8fa27ec 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@
-950,11
+950,8
@@
static void amdgpu_vm_handle_huge_pages(struct amdgpu_pte_update_params *p,
uint64_t pd_addr, pde;
/* In the case of a mixed PT the PDE must point to it*/
- if (p->adev->asic_type < CHIP_VEGA10 ||
- nptes != AMDGPU_VM_PTE_COUNT(p->adev) ||
- p->src ||
- !(flags & AMDGPU_PTE_VALID)) {
-
+ if (p->adev->asic_type < CHIP_VEGA10 || p->src ||
+ nptes != AMDGPU_VM_PTE_COUNT(p->adev)) {
dst = amdgpu_bo_gpu_offset(entry->base.bo);
flags = AMDGPU_PTE_VALID;
} else {