drm/xe/pf: Clamp maximum execution quantum to 100s
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 19 Apr 2024 12:35:43 +0000 (14:35 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 24 Apr 2024 13:32:26 +0000 (15:32 +0200)
commit49f853c78e688780cacb9712be4136869f3e34fe
treef07127a8ac8391e725d3e17fd0d72fd3e0abb89d
parent5a8c292f74c2b0dc84653c7b59323368a849a3ad
drm/xe/pf: Clamp maximum execution quantum to 100s

GuC is silently clamping values of the execution quantum and
preemption timeout KLVs to 100s. Perform explicit clamping on the
driver side as later there is no way to read back values used by
the firmware and we shouldn't mislead the user about actual values
being used when we print them in dmesg or debugfs.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419123543.270-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c