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
This commit is contained in:
Michal Wajdeczko 2025-10-05 19:39:46 +02:00
commit 0faa22e706
2 changed files with 19 additions and 2 deletions