]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add sriov nbio callback structure
authorHorace Chen <horace.chen@amd.com>
Thu, 21 Jul 2022 03:57:44 +0000 (11:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:00 +0000 (15:11 -0400)
commita84022c5d8dd310714abfdfb3a44051aadfc4f32
tree20bc258f21394953298dc1446be618117a672cbb
parent57c67ca79744ae03bac4f3f38287ae5602692c04
drm/amdgpu: add sriov nbio callback structure

[Why]
under SR-IOV, the nbio doorbell range will be defined by PF. So VF
nbio doorbell range registers will be blocked. It will cause violation
if VF access those registers directly.

[How]
create an nbio_v4_3_sriov_funcs for sriov nbio_v4_3 initialization to
skip the setting for the doorbell range registers.

Acked-by: Christian König <christian.koenig@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/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c
drivers/gpu/drm/amd/amdgpu/nbio_v4_3.h