diff options
| author | Emily Deng <[email protected]> | 2025-02-06 05:09:00 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-14 03:12:52 +0000 |
| commit | 8d5e70ba5da21452735474b70322446aeb442c94 (patch) | |
| tree | de18138331e82104e2536a7839e49073f186b95a /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amdgpu/pm: enable vcn busy sysfs for GC 9.3.0 (diff) | |
| download | kernel-8d5e70ba5da21452735474b70322446aeb442c94.tar.gz kernel-8d5e70ba5da21452735474b70322446aeb442c94.zip | |
drm/amdgpu: Add amdgpu_sriov_multi_vf_mode function
Use amdgpu_sriov_multi_vf_mode to replace amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev).
Signed-off-by: Emily Deng <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h index 9f65487e60f5..df03dba67ab8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h @@ -364,6 +364,8 @@ static inline bool is_virtual_machine(void) #define amdgpu_sriov_is_pp_one_vf(adev) \ ((adev)->virt.gim_feature & AMDGIM_FEATURE_PP_ONE_VF) +#define amdgpu_sriov_multi_vf_mode(adev) \ + (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev)) #define amdgpu_sriov_is_debug(adev) \ ((!amdgpu_in_reset(adev)) && adev->virt.tdr_debug) #define amdgpu_sriov_is_normal(adev) \ |
