drm/amdgpu: Fix a bug that vm size is wrong on Raven
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix a bug that vm size is wrong on Raven
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -2534,7 +2534,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size,uint64_t tmp;/* adjust vm size first */ -if (amdgpu_vm_size !=-1 ) { +if (amdgpu_vm_size !=-1 && max_level ==1 ) {unsigned max_size =1 << (max_bits -30 ); vm_size = amdgpu_vm_size;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1513218350-29030-1-git-send-email-yong.zhao-5C7GfCeVMHo@public.gmane.org
Christian König
NAKNAK, that really circumvents the intention of the patch to adjust the number of levels based on the vm_size.
Christian.
Am 14.12.2017 um 03:25 schrieb Yong Zhao:
Quoted 11 lines
Change-Id Id522c1cbadb8c069720f4e64a31cff42cd014733Signed-off-by Yong Zhao <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, · line 2540
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -2534,7 +2534,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size,uint64_t tmp;/* adjust vm size first */ -if (amdgpu_vm_size !=-1 ) { +if (amdgpu_vm_size !=-1 && max_level ==1 ) {unsigned max_size =1 << (max_bits -30 ); vm_size = amdgpu_vm_size;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 24c4613c-ed30-2ac3-cca2-4aec5dd707d5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Hi Christian,
I don't know much about the background. But according to my experiments, as long as we change the vm size to 64G, ATC memory access on Raven will fall apart. How should deal with that or can you come up with a fix?
Regards,
Yong
Quoted 11 lines · Christian König
NAK, that really circumvents the intention of the patch to adjust the number of levels based on the
vm_size.Christian.
Am 14.12.2017 um 03:25 schrieb Yong Zhao:
Quoted 6 lines
Change-Id Id522c1cbadb8c069720f4e64a31cff42cd014733Signed-off-by Yong Zhao <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c void amdgpu_vm_adjust_size(struct amdgpu_device · line 2539
Quoted 12 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -2534,7 +2534,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, uint64_t tmp; /* adjust vm size first */ - if (amdgpu_vm_size != -1) { + if (amdgpu_vm_size != -1 && max_level == 1) { unsigned max_size = 1 << (max_bits - 30); vm_size = amdgpu_vm_size;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 9fc57983-8af9-789d-6e60-e3716f846d6c-5C7GfCeVMHo@public.gmane.org
Hi Yong,
Quoted 1 line
How should deal with that or can you come up with a fix?
well that is the expected effect. So I don't see much we can do here.
Support for the parameter was added to be able to intentionally break support for HMM/SVM for testing the fall back paths.
Didn't thought about ATC while enabling this, but it certainly falls into the same category. Could be that we can still keep ATC working while reducing the GPUVM size, but that would require further testing.
Regards,
Christian.
Am 14.12.2017 um 16:56 schrieb Yong Zhao:
Quoted 35 lines
Hi Christian,
I don't know much about the background. But according to my experiments, as long as we change the vm size to 64G, ATC memory access on Raven will fall apart. How should deal with that or can you come up with a fix?
Regards,
Yong
Quoted 24 lines · Christian König
NAK, that really circumvents the intention of the patch to adjust the number of levels based on the
vm_size.Christian.
Am 14.12.2017 um 03:25 schrieb Yong Zhao:
Quoted 18 lines
Change-Id Id522c1cbadb8c069720f4e64a31cff42cd014733Signed-off-by Yong Zhao <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -2534,7 +2534,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, uint64_t tmp; /* adjust vm size first */ - if (amdgpu_vm_size != -1) { + if (amdgpu_vm_size != -1 && max_level == 1) { unsigned max_size = 1 << (max_bits - 30); vm_size = amdgpu_vm_size;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx