mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 02:52:27 -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:
@@ -262,6 +262,11 @@ struct amdgpu_virt_ras {
|
||||
|
||||
DECLARE_ATTR_CAP_CLASS(amdgpu_virt, AMDGPU_VIRT_CAPS_LIST);
|
||||
|
||||
struct amdgpu_virt_region {
|
||||
uint32_t offset;
|
||||
uint32_t size_kb;
|
||||
};
|
||||
|
||||
/* GPU virtualization */
|
||||
struct amdgpu_virt {
|
||||
uint32_t caps;
|
||||
@@ -289,6 +294,9 @@ struct amdgpu_virt {
|
||||
bool ras_init_done;
|
||||
uint32_t reg_access;
|
||||
|
||||
/* dynamic(v2) critical regions */
|
||||
struct amdgpu_virt_region init_data_header;
|
||||
|
||||
/* vf2pf message */
|
||||
struct delayed_work vf2pf_work;
|
||||
uint32_t vf2pf_update_interval_ms;
|
||||
|
||||
Reference in New Issue
Block a user