summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_oa.c
diff options
context:
space:
mode:
authorAshutosh Dixit <ashutosh.dixit@intel.com>2024-06-19 15:56:17 -0700
committerAshutosh Dixit <ashutosh.dixit@intel.com>2024-06-20 09:18:20 -0700
commit93d2d3e4c5d075ed691bf940f7eaf938cf8c6632 (patch)
treeae4f0561e241b303a86fb593c0032f27ac777baa /drivers/gpu/drm/xe/xe_oa.c
parent3516b2913ead50c5649cafcd1fe97b9c9dc41e59 (diff)
downloadlwn-93d2d3e4c5d075ed691bf940f7eaf938cf8c6632.tar.gz
lwn-93d2d3e4c5d075ed691bf940f7eaf938cf8c6632.zip
drm/xe/oa: Remove WARN_ON's for unsupported configurations
The OA ioctl's already have drm_dbg's which are sufficient to tell the user that OA is not supported on unsupported configurations (execlist mode and platform gen < 12). Having additional WARN_ON's for these during driver probe create unnecessary noise. Just remove these WARN_ON's. Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240619225617.3465899-1-ashutosh.dixit@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_oa.c')
-rw-r--r--drivers/gpu/drm/xe/xe_oa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 36b2e89b78b6..eaa5fe5fd75b 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -2385,7 +2385,7 @@ int xe_oa_init(struct xe_device *xe)
int ret;
/* Support OA only with GuC submission and Gen12+ */
- if (XE_WARN_ON(!xe_device_uc_enabled(xe)) || XE_WARN_ON(GRAPHICS_VER(xe) < 12))
+ if (!xe_device_uc_enabled(xe) || GRAPHICS_VER(xe) < 12)
return 0;
oa->xe = xe;