AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu: increase the reserved VM size to 2MB
@ 2020-10-13 17:08 Christian König
  2020-10-13 17:08 ` [PATCH 2/2] drm/amdgpu: nuke amdgpu_vm_bo_split_mapping Christian König
  2020-10-14  8:26 ` [PATCH 1/2] drm/amdgpu: increase the reserved VM size to 2MB Chauhan, Madhav
  0 siblings, 2 replies; 10+ messages in thread
From: Christian König @ 2020-10-13 17:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: Madhav.Chauhan, xinhui.pan

Ideally this should be a multiple of the VM block size.
2MB should at least fit for Vega/Navi.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 7c46937c1c0e..81ccd0a0c3db 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -112,8 +112,8 @@ struct amdgpu_bo_list_entry;
 #define AMDGPU_MMHUB_0				1
 #define AMDGPU_MMHUB_1				2
 
-/* hardcode that limit for now */
-#define AMDGPU_VA_RESERVED_SIZE			(1ULL << 20)
+/* Reserve 2MB at top/bottom of address space for kernel use */
+#define AMDGPU_VA_RESERVED_SIZE			(2ULL << 20)
 
 /* max vmids dedicated for process */
 #define AMDGPU_VM_MAX_RESERVED_VMID	1
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH 1/2] drm/amdgpu: increase the reserved VM size to 2MB
@ 2020-10-17 12:07 Christian König
  0 siblings, 0 replies; 10+ messages in thread
From: Christian König @ 2020-10-17 12:07 UTC (permalink / raw)
  To: amd-gfx

Ideally this should be a multiple of the VM block size.
2MB should at least fit for Vega/Navi.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Madhav Chauhan <madhav.chauhan@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 7c46937c1c0e..81ccd0a0c3db 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -112,8 +112,8 @@ struct amdgpu_bo_list_entry;
 #define AMDGPU_MMHUB_0				1
 #define AMDGPU_MMHUB_1				2
 
-/* hardcode that limit for now */
-#define AMDGPU_VA_RESERVED_SIZE			(1ULL << 20)
+/* Reserve 2MB at top/bottom of address space for kernel use */
+#define AMDGPU_VA_RESERVED_SIZE			(2ULL << 20)
 
 /* max vmids dedicated for process */
 #define AMDGPU_VM_MAX_RESERVED_VMID	1
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-10-17 12:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-13 17:08 [PATCH 1/2] drm/amdgpu: increase the reserved VM size to 2MB Christian König
2020-10-13 17:08 ` [PATCH 2/2] drm/amdgpu: nuke amdgpu_vm_bo_split_mapping Christian König
2020-10-14 20:48   ` Luben Tuikov
2020-10-15  7:04     ` Christian König
2020-10-15 18:10       ` Luben Tuikov
2020-10-14  8:26 ` [PATCH 1/2] drm/amdgpu: increase the reserved VM size to 2MB Chauhan, Madhav
2020-10-14  8:36   ` Christian König
2020-10-14 15:06     ` Chauhan, Madhav
2020-10-14 15:10       ` Christian König
  -- strict thread matches above, loose matches on Subject: below --
2020-10-17 12:07 Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox