mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
drm/amdgpu: Add SRIOV crit_region_version support
1. Added enum amd_sriov_crit_region_version to support multi versions 2. Added logic in SRIOV mailbox to regonize crit_region version during req_gpu_init_data Signed-off-by: Ellen Pan <yunru.pan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -150,9 +150,10 @@ void amdgpu_virt_request_init_data(struct amdgpu_device *adev)
|
||||
virt->ops->req_init_data(adev);
|
||||
|
||||
if (adev->virt.req_init_data_ver > 0)
|
||||
DRM_INFO("host supports REQ_INIT_DATA handshake\n");
|
||||
dev_info(adev->dev, "host supports REQ_INIT_DATA handshake of critical_region_version %d\n",
|
||||
adev->virt.req_init_data_ver);
|
||||
else
|
||||
DRM_WARN("host doesn't support REQ_INIT_DATA handshake\n");
|
||||
dev_warn(adev->dev, "host doesn't support REQ_INIT_DATA handshake\n");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user