drm/amdgpu: Get atomicOps info from Host for sriov setup
authorshaoyunl <shaoyun.liu@amd.com>
Thu, 9 Sep 2021 02:12:55 +0000 (22:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:57:11 +0000 (15:57 -0400)
commit8e6d0b699635ecc5bad8629b8da685621aa416ca
tree2c23b8c8a1b658ed6b38b15e8cd10d7bb1180431
parent3da35006fef89d15d101622445d7f4760953a5f1
drm/amdgpu:  Get atomicOps info from Host for sriov setup

The AtomicOp Requester Enable bit is reserved in VFs and the PF value applies to all
associated VFs. so guest driver can not directly enable the atomicOps for VF, it
depends on PF to enable it. In current design, amdgpu driver  will get the enabled
atomicOps bits through private pf2vf data

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h