[PATCH] drm/amdgpu: MC_VM_FB_OFFSET is pf only register.

Deng, Emily Emily.Deng at amd.com
Wed Aug 15 09:52:12 UTC 2018


Sorry, sent the wrong patch, please ignore this email.

>-----Original Message-----
>From: Emily Deng <Emily.Deng at amd.com>
>Sent: Wednesday, August 15, 2018 5:48 PM
>To: amd-gfx at lists.freedesktop.org
>Cc: Deng, Emily <Emily.Deng at amd.com>
>Subject: [PATCH] drm/amdgpu: MC_VM_FB_OFFSET is pf only register.
>
>Signed-off-by: Emily Deng <Emily.Deng at amd.com>
>---
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>index b60ed28..52b13e6 100644
>--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>@@ -693,7 +693,10 @@ static void gmc_v9_0_vram_gtt_location(struct
>amdgpu_device *adev,
> 	amdgpu_device_vram_location(adev, &adev->gmc, base);
> 	amdgpu_device_gart_location(adev, mc);
> 	/* base offset of vram pages */
>-	adev->vm_manager.vram_base_offset =
>gfxhub_v1_0_get_mc_fb_offset(adev);
>+	if (!amdgpu_sriov_vf(adev))
>+		adev->vm_manager.vram_base_offset =
>gfxhub_v1_0_get_mc_fb_offset(adev);
>+	else
>+		adev->vm_manager.vram_base_offset = 0;
> }
>
> /**
>--
>2.7.4



More information about the amd-gfx mailing list