OSDN Git Service

drm/amdgpu: Skip the VRAM base offset on SRIOV
authorYifan Zha <Yifan.Zha@amd.com>
Wed, 27 Jul 2022 06:43:32 +0000 (14:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:45 +0000 (15:11 -0400)
commit40ad3e545b3da75f107450d32bcad8346fce5dcc
treece54f4ec16792fa24abaa77ff09d45064152e703
parent5818eae501c57e003de9e4f52a6001827e123a88
drm/amdgpu: Skip the VRAM base offset on SRIOV

[Why]
As VF cannot read MMMC_VM_FB_OFFSET with L1 Policy(read 0xffffffff).
It leads to driver get the incorrect vram base offset.

[How]
Since SR-IOV is dGPU only, skip reading this register and set the
fb_offest to 0.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Yifan Zha <Yifan.Zha@amd.com>
Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c