mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
drm/xe/vf: Don't initialize OA if VF
We don't support Observation Architecture on the VF device. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240619214557.905-6-michal.wajdeczko@intel.com
This commit is contained in:
parent
f2800572cc
commit
5aa326f528
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user