drm/amdgpu: Skip some registers config for SRIOV
authorLiu ChengZhe <ChengZhe.Liu@amd.com>
Thu, 6 Aug 2020 06:54:08 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Aug 2020 22:06:35 +0000 (18:06 -0400)
commitd5bbb4761c9ffbe8e3a547b74ec26fb6ce31bf32
treea89725ceb31ee4147d6fa36874348d649fae7692
parent78484d7c747e30468b35bd5f19edf602f50162a7
drm/amdgpu: Skip some registers config for SRIOV

Some registers are not accessible to virtual function setup, so
skip their initialization when in VF-SRIOV mode.

v2: move SRIOV VF check into specify functions;
modify commit description and comment.

Signed-off-by: Liu ChengZhe <ChengZhe.Liu@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c