public inbox for amd-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 01/10] drm/amdgpu: use only the lower address space on GMC9
@ 2018-08-27 16:53 Christian König
       [not found] ` <20180827165337.1651-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 44+ messages in thread
From: Christian König @ 2018-08-27 16:53 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Only use the lower address space on GMC9 for the system domain.
Otherwise we would need to sign extend GMC addresses.

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

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index e44b5191735d..d982956c8329 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -938,11 +938,10 @@ static int gmc_v9_0_sw_init(void *handle)
 	if (r)
 		return r;
 
-	/* Set the internal MC address mask
-	 * This is the max address of the GPU's
-	 * internal address space.
+	/* Use only the lower range for the internal MC address mask. This is
+	 * the max address of the GPU's internal address space.
 	 */
-	adev->gmc.mc_mask = 0xffffffffffffULL; /* 48 bit MC */
+	adev->gmc.mc_mask = 0x7fffffffffffULL;
 
 	/* set DMA mask + need_dma32 flags.
 	 * PCIE - can handle 44-bits.
-- 
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] 44+ messages in thread

end of thread, other threads:[~2018-08-30  6:40 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 16:53 [PATCH 01/10] drm/amdgpu: use only the lower address space on GMC9 Christian König
     [not found] ` <20180827165337.1651-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 16:53   ` [PATCH 02/10] drm/amdgpu: move amdgpu_device_(vram|gtt)_location Christian König
     [not found]     ` <20180827165337.1651-2-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 18:59       ` Alex Deucher
     [not found]         ` <CADnq5_OPp_EgorzVizo4LpcdJj38daZbRrF0aSRg8emouKLzEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-28  1:56           ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 03/10] drm/amdgpu: fix amdgpu_gmc_gart_location a little bit Christian König
     [not found]     ` <20180827165337.1651-3-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 19:03       ` Alex Deucher
     [not found]         ` <CADnq5_OmwbjRufiL30T9EZOrhu4suRDy417xSy=BfdGmb94XJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-29  9:45           ` Christian König
2018-08-28  1:57       ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 04/10] drm/amdgpu: use the smaller hole for GART Christian König
     [not found]     ` <20180827165337.1651-4-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 19:05       ` Alex Deucher
     [not found]         ` <CADnq5_OB2HV16p4_idyqowKDTZxZkJF5GmKGnHG5+DPm2=4qEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-28  1:57           ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 05/10] drm/amdgpu: put GART away from VRAM Christian König
     [not found]     ` <20180827165337.1651-5-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-28  2:01       ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 06/10] drm/amdgpu: add amdgpu_gmc_agp_location Christian König
     [not found]     ` <20180827165337.1651-6-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 18:50       ` Felix Kuehling
     [not found]         ` <995a274e-8478-79ac-bed3-61fe6655a393-5C7GfCeVMHo@public.gmane.org>
2018-08-28 11:57           ` Christian König
2018-08-28  2:35       ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 07/10] drm/amdgpu: stop using gart_start as offset for the GTT domain Christian König
     [not found]     ` <20180827165337.1651-7-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 19:07       ` Alex Deucher
     [not found]         ` <CADnq5_M-ppsYV3dsUZEeHaLKyVOkVU1LsWJyyyWve0_eMD-7qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-28  2:10           ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 08/10] drm/amdgpu: distinct between allocated GART space and GMC addr Christian König
     [not found]     ` <20180827165337.1651-8-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-27 18:57       ` Felix Kuehling
2018-08-28  2:16       ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 09/10] drm/amdgpu: use the AGP aperture for system memory access Christian König
     [not found]     ` <20180827165337.1651-9-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-28  2:50       ` Zhang, Jerry (Junwei)
2018-08-27 16:53   ` [PATCH 10/10] drm/amdgpu: enable AGP aperture for GMC9 Christian König
     [not found]     ` <20180827165337.1651-10-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-08-28  2:52       ` Zhang, Jerry (Junwei)
     [not found]         ` <5B84B901.5010709-5C7GfCeVMHo@public.gmane.org>
2018-08-28 11:55           ` Christian König
2018-08-27 18:58   ` [PATCH 01/10] drm/amdgpu: use only the lower address space on GMC9 Alex Deucher
2018-08-27 19:03   ` Felix Kuehling
     [not found]     ` <e5ef79ee-caef-9df4-aadc-bbd15b5eb9b3-5C7GfCeVMHo@public.gmane.org>
2018-08-28  4:21       ` zhoucm1
     [not found]         ` <75818784-27b6-21bc-274f-f29b0dd479e0-5C7GfCeVMHo@public.gmane.org>
2018-08-28  6:53           ` Christian König
     [not found]             ` <e21d83cd-fee8-fd99-ac02-39b5f29df92e-5C7GfCeVMHo@public.gmane.org>
2018-08-28 18:08               ` Felix Kuehling
2018-08-28  5:31       ` Xiao, Jack
     [not found]         ` <BYAPR12MB2662148F853F560ED08FDBCFEF0A0-ZGDeBxoHBPm6habpV69vmAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-08-28  6:45           ` Christian König
     [not found]             ` <5812c9d9-00bb-9065-fefe-49d661ab9439-5C7GfCeVMHo@public.gmane.org>
2018-08-28  7:06               ` Xiao, Jack
     [not found]                 ` <DM6PR12MB2666F87E35885284AB6B29A7EF0A0-lmeGfMZKVrEbyIpG/Z/xuAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-08-28 11:41                   ` Christian König
     [not found]                     ` <b845f750-d6a7-c8ae-5235-7d961a3db428-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-08-28 18:12                       ` Felix Kuehling
     [not found]                         ` <491b519e-6f02-1c4c-3cc8-c0ed147a82cd-5C7GfCeVMHo@public.gmane.org>
2018-08-29  8:47                           ` Christian König
     [not found]                             ` <a2680c89-493a-2df8-f767-5d0f25e9f7ef-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-08-30  3:48                               ` Xiao, Jack
     [not found]                                 ` <BYAPR12MB2662C7816E74F1C90E2E73BAEF080-ZGDeBxoHBPm6habpV69vmAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-08-30  6:40                                   ` Christian König
2018-08-29  6:30                       ` Xiao, Jack
2018-08-28  1:56   ` Zhang, Jerry (Junwei)
     [not found]     ` <5B84ABBC.40005-5C7GfCeVMHo@public.gmane.org>
2018-08-28  2:09       ` Zhang, Jerry (Junwei)

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