summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/xe/xe_oa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index eaa5fe5fd75b..4168b51cf7b5 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -35,6 +35,7 @@
#include "xe_perf.h"
#include "xe_pm.h"
#include "xe_sched_job.h"
+#include "xe_sriov.h"
#define DEFAULT_POLL_FREQUENCY_HZ 200
#define DEFAULT_POLL_PERIOD_NS (NSEC_PER_SEC / DEFAULT_POLL_FREQUENCY_HZ)
@@ -2388,6 +2389,9 @@ int xe_oa_init(struct xe_device *xe)
if (!xe_device_uc_enabled(xe) || GRAPHICS_VER(xe) < 12)
return 0;
+ if (IS_SRIOV_VF(xe))
+ return 0;
+
oa->xe = xe;
oa->oa_formats = oa_formats;