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 21:26:52 +0000 (17:26 -0400)
commit1d4473261966bef70ff65ebb303bae98949b8f8a
tree4539da462486d85e53be6abc3da4f19a91bb5830
parentb60646a20c9f61e364c86cc88f50f547361cceb3
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