]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fdd5c1cb7f767f17d2b3caff2f5b31f1feb2755
tree4539da462486d85e53be6abc3da4f19a91bb5830
parentb5c21fbc29ac7d8c7a5935aeffca437d06644560
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