aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 44f565465b09..1950c25557de 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -853,6 +853,12 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
853 return 0; 853 return 0;
854} 854}
855 855
856static int amdgpu_cgs_is_virtualization_enabled(void *cgs_device)
857{
858 CGS_FUNC_ADEV;
859 return amdgpu_sriov_vf(adev);
860}
861
856static int amdgpu_cgs_query_system_info(struct cgs_device *cgs_device, 862static int amdgpu_cgs_query_system_info(struct cgs_device *cgs_device,
857 struct cgs_system_info *sys_info) 863 struct cgs_system_info *sys_info)
858{ 864{
@@ -1206,6 +1212,7 @@ static const struct cgs_ops amdgpu_cgs_ops = {
1206 amdgpu_cgs_notify_dpm_enabled, 1212 amdgpu_cgs_notify_dpm_enabled,
1207 amdgpu_cgs_call_acpi_method, 1213 amdgpu_cgs_call_acpi_method,
1208 amdgpu_cgs_query_system_info, 1214 amdgpu_cgs_query_system_info,
1215 amdgpu_cgs_is_virtualization_enabled
1209}; 1216};
1210 1217
1211static const struct cgs_os_ops amdgpu_cgs_os_ops = { 1218static const struct cgs_os_ops amdgpu_cgs_os_ops = {