drm/amdgpu/SRIOV: Navi12 SRIOV VF gets GTT base

Submitted by jianzh@amd.com on Sept. 16, 2019, 7:01 a.m.

Details

Message ID 20190916070114.9250-1-jianzh@amd.com
State New
Headers show
Series "drm/amdgpu/SRIOV: Navi12 SRIOV VF gets GTT base" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

jianzh@amd.com Sept. 16, 2019, 7:01 a.m.
From: Jiange Zhao <Jiange.Zhao@amd.com>

With changes in PSP and HV, SRIOV VF will handle

vram gtt location just like bare metal. There is

no need to differentiate it anymore.

Signed-off-by: Jiange Zhao <Jiange.Zhao@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index 1a8d8f528b01..ed1c3b883f6a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@ -519,8 +519,7 @@  static void gmc_v10_0_vram_gtt_location(struct amdgpu_device *adev,
 {
 	u64 base = 0;
 
-	if (!amdgpu_sriov_vf(adev))
-		base = gfxhub_v2_0_get_fb_location(adev);
+	base = gfxhub_v2_0_get_fb_location(adev);
 
 	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
 	amdgpu_gmc_gart_location(adev, mc);

Comments

Reviewed-by: Emily Deng <Emily.Deng@amd.com>

>-----Original Message-----
>From: Zhao, Jiange <Jiange.Zhao@amd.com>
>Sent: Monday, September 16, 2019 3:02 PM
>To: amd-gfx@lists.freedesktop.org
>Cc: Nieto, David M <David.Nieto@amd.com>; Deng, Emily
><Emily.Deng@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>;
>Zhao, Jiange <Jiange.Zhao@amd.com>
>Subject: [PATCH] drm/amdgpu/SRIOV: Navi12 SRIOV VF gets GTT base
>
>From: Jiange Zhao <Jiange.Zhao@amd.com>
>
>With changes in PSP and HV, SRIOV VF will handle
>
>vram gtt location just like bare metal. There is
>
>no need to differentiate it anymore.
>
>Signed-off-by: Jiange Zhao <Jiange.Zhao@amd.com>
>---
> drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
>b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
>index 1a8d8f528b01..ed1c3b883f6a 100644
>--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
>+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
>@@ -519,8 +519,7 @@ static void gmc_v10_0_vram_gtt_location(struct
>amdgpu_device *adev,  {
> 	u64 base = 0;
>
>-	if (!amdgpu_sriov_vf(adev))
>-		base = gfxhub_v2_0_get_fb_location(adev);
>+	base = gfxhub_v2_0_get_fb_location(adev);
>
> 	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
> 	amdgpu_gmc_gart_location(adev, mc);
>--
>2.20.1