drm/xe/rtp: Replace XE_WARN_ON
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 26 May 2023 16:43:40 +0000 (09:43 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:34:01 +0000 (18:34 -0500)
Now that rule_matches() always has an xe pointer, replace the XE_WARN_ON
with the more appropriate drm_warn().

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230526164358.86393-4-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_rtp.c

index 5be25fe0e8e480899ea76bce7cee38f1ebf82e66..5dcdfe45f0cbdbcc4736cf4385148d18f3b963b2 100644 (file)
@@ -84,7 +84,9 @@ static bool rule_matches(const struct xe_device *xe,
                        match = r->match_func(gt, hwe);
                        break;
                default:
-                       XE_WARN_ON(r->match_type);
+                       drm_warn(&xe->drm, "Invalid RTP match %u\n",
+                                r->match_type);
+                       match = false;
                }
 
                if (!match)