From: Michal Wajdeczko Date: Wed, 19 Jun 2024 21:45:53 +0000 (+0200) Subject: drm/xe/vf: Don't initialize OA if VF X-Git-Tag: configfs-6.13-2024-11-19~902^2~16^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5aa326f52872b25906d7dca8e0c4f7e6c597f40f;p=users%2Fhch%2Fconfigfs.git drm/xe/vf: Don't initialize OA if VF We don't support Observation Architecture on the VF device. Signed-off-by: Michal Wajdeczko Cc: Rodrigo Vivi Cc: Ashutosh Dixit Reviewed-by: Ashutosh Dixit Link: https://patchwork.freedesktop.org/patch/msgid/20240619214557.905-6-michal.wajdeczko@intel.com --- 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;