drm/amdgpu: Add new PF2VF flags for VF register access method
authorRohit Khaire <rohit.khaire@amd.com>
Mon, 29 Mar 2021 19:40:13 +0000 (15:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:49:22 +0000 (16:49 -0400)
commit4d675e1eb863596811f005802116a3c4afbfa95a
tree92b6cd75a4873b49f6dd8c11aca3d47f171fca1a
parent1c0f04303b217984222261a98738676ecf193130
drm/amdgpu: Add new PF2VF flags for VF register access method

Add 3 sub flags to notify guest for indirect reg access of
gc, mmhub and ih

The host sets these flags depending on L1 RAP version,
asic and other scenarios. These flags ensure that
there is compatibility between different guest/host/vbios versions.

Signed-off-by: Rohit Khaire <rohit.khaire@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h