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

>-----Original Message-----
>From: Emily Deng <[email protected]>
>Sent: Wednesday, August 15, 2018 5:48 PM
>To: [email protected]
>Cc: Deng, Emily <[email protected]>
>Subject: [PATCH] drm/amdgpu: MC_VM_FB_OFFSET is pf only register.
>
>Signed-off-by: Emily Deng <[email protected]>
>---
> 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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to