All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] drm/amdgpu: remove extra root PD alignment
@ 2018-08-22 15:05 Christian König
       [not found] ` <20180822150517.2330-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 39+ messages in thread
From: Christian König @ 2018-08-22 15:05 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Just another leftover from radeon.

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

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 662aec5c81d4..73b8dcaf66e6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2566,8 +2566,6 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
 {
 	struct amdgpu_bo_param bp;
 	struct amdgpu_bo *root;
-	const unsigned align = min(AMDGPU_VM_PTB_ALIGN_SIZE,
-		AMDGPU_VM_PTE_COUNT(adev) * 8);
 	unsigned long size;
 	uint64_t flags;
 	int r, i;
@@ -2615,7 +2613,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
 	size = amdgpu_vm_bo_size(adev, adev->vm_manager.root_level);
 	memset(&bp, 0, sizeof(bp));
 	bp.size = size;
-	bp.byte_align = align;
+	bp.byte_align = AMDGPU_GPU_PAGE_SIZE;
 	bp.domain = AMDGPU_GEM_DOMAIN_VRAM;
 	bp.flags = flags;
 	bp.type = ttm_bo_type_kernel;
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 1162c2bf3138..1c9049feaaea 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -48,9 +48,6 @@ struct amdgpu_bo_list_entry;
 /* number of entries in page table */
 #define AMDGPU_VM_PTE_COUNT(adev) (1 << (adev)->vm_manager.block_size)
 
-/* PTBs (Page Table Blocks) need to be aligned to 32K */
-#define AMDGPU_VM_PTB_ALIGN_SIZE   32768
-
 #define AMDGPU_PTE_VALID	(1ULL << 0)
 #define AMDGPU_PTE_SYSTEM	(1ULL << 1)
 #define AMDGPU_PTE_SNOOPED	(1ULL << 2)
-- 
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] 39+ messages in thread

end of thread, other threads:[~2018-08-23 13:02 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-22 15:05 [PATCH 01/11] drm/amdgpu: remove extra root PD alignment Christian König
     [not found] ` <20180822150517.2330-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 15:05   ` [PATCH 02/11] drm/amdgpu: validate the VM root PD from the VM code Christian König
     [not found]     ` <20180822150517.2330-2-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-23  2:46       ` Zhang, Jerry (Junwei)
2018-08-23  7:28       ` Huang Rui
2018-08-23 12:01         ` Christian König
2018-08-22 15:05   ` [PATCH 03/11] drm/amdgpu: cleanup VM handling in the CS a bit Christian König
     [not found]     ` <20180822150517.2330-3-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 19:49       ` Alex Deucher
2018-08-23  7:54       ` Huang Rui
2018-08-22 15:05   ` [PATCH 04/11] drm/amdgpu: move setting the GART addr into TTM Christian König
     [not found]     ` <20180822150517.2330-4-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 19:50       ` Alex Deucher
2018-08-23 11:23       ` Huang Rui
2018-08-22 15:05   ` [PATCH 05/11] drm/amdgpu: rename gart.robj into gart.bo Christian König
     [not found]     ` <20180822150517.2330-5-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 19:50       ` Alex Deucher
2018-08-23 11:27       ` Huang Rui
2018-08-22 15:05   ` [PATCH 06/11] drm/amdgpu: remove gart.table_addr Christian König
2018-08-22 15:05   ` [PATCH 07/11] drm/amdgpu: add GMC9 support for PDs/PTs in system memory Christian König
     [not found]     ` <20180822150517.2330-7-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-23  2:50       ` Zhang, Jerry (Junwei)
     [not found]         ` <5B7E2109.3020406-5C7GfCeVMHo@public.gmane.org>
2018-08-23 11:39           ` Huang Rui
2018-08-23 11:40       ` Huang Rui
2018-08-22 15:05   ` [PATCH 08/11] drm/amdgpu: add amdgpu_gmc_pd_addr helper Christian König
     [not found]     ` <20180822150517.2330-8-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 22:09       ` Felix Kuehling
2018-08-23  3:07       ` Zhang, Jerry (Junwei)
     [not found]         ` <5B7E2507.5050205-5C7GfCeVMHo@public.gmane.org>
2018-08-23 12:18           ` Christian König
2018-08-23 11:42       ` Huang Rui
2018-08-22 15:05   ` [PATCH 09/11] drm/amdgpu: add amdgpu_gmc_get_pde_for_bo helper Christian König
     [not found]     ` <20180822150517.2330-9-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-23 12:45       ` Huang Rui
2018-08-22 15:05   ` [PATCH 10/11] drm/amdgpu: add helper for VM PD/PT allocation parameters Christian König
     [not found]     ` <20180822150517.2330-10-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 19:55       ` Alex Deucher
2018-08-23  3:19       ` Zhang, Jerry (Junwei)
2018-08-23 12:46       ` Huang Rui
2018-08-22 15:05   ` [PATCH 11/11] drm/amdgpu: enable GTT PD/PT for raven Christian König
     [not found]     ` <20180822150517.2330-11-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-22 15:44       ` Andrey Grodzovsky
     [not found]         ` <f5c10bb6-4d93-5102-2c3b-ae0e161b70e1-5C7GfCeVMHo@public.gmane.org>
2018-08-23 12:54           ` Huang Rui
2018-08-23 13:02             ` Christian König
2018-08-23  5:28       ` Zhang, Jerry (Junwei)
2018-08-22 19:46   ` [PATCH 01/11] drm/amdgpu: remove extra root PD alignment Alex Deucher
     [not found]     ` <CADnq5_OscxLwhzUnR9pcQ9cRVLPK1YyqEp6kCGOdVWahWPKEUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-23  2:36       ` Zhang, Jerry (Junwei)
2018-08-23  6:52       ` Christian König
2018-08-23  7:21   ` Huang Rui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.