]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Ratelimit diagnostic messages from the relay
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sun, 5 Oct 2025 17:39:46 +0000 (19:39 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 6 Oct 2025 17:44:43 +0000 (19:44 +0200)
commit0faa22e70643211213ba13e7317600da9e96e44b
tree03d42af439bda060527cec2d9891ebb0185ef4a5
parent430d3288776f790a05da02b81b53c8dec231ecd6
drm/xe/guc: Ratelimit diagnostic messages from the relay

There might be some malicious VFs that by sending an invalid VF2PF
relay messages will flood PF's dmesg with our diagnostics messages.

Rate limit all relay messages, unless running in DEBUG_SRIOV mode.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20251005173946.2784-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_relay.c
drivers/gpu/drm/xe/xe_guc_relay_types.h