[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Improve anti-pre-emption w/a for compute workloads (rev2)

Patchwork patchwork at emeril.freedesktop.org
Sat Feb 26 01:04:40 UTC 2022


== Series Details ==

Series: Improve anti-pre-emption w/a for compute workloads (rev2)
URL   : https://patchwork.freedesktop.org/series/100428/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
57800ec7188b drm/i915/guc: Limit scheduling properties to avoid overflow
-:42: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'field' - possible side-effects?
#42: FILE: drivers/gpu/drm/i915/gt/intel_engine_cs.c:403:
+#define CLAMP_PROP(field) \
+	do { \
+		u64 clamp = intel_clamp_##field(engine, engine->props.field); \
+		if (clamp != engine->props.field) { \
+			drm_notice(&engine->i915->drm, \
+				   "Warning, clamping %s to %lld to prevent overflow\n", \
+				   #field, clamp); \
+			engine->props.field = clamp; \
+		} \
+	} while (0)

total: 0 errors, 0 warnings, 1 checks, 191 lines checked
5faecf54eba0 drm/i915/gt: Make the heartbeat play nice with long pre-emption timeouts
ada91b27b412 drm/i915: Improve long running OCL w/a for GuC submission




More information about the Intel-gfx mailing list