drm/xe/vf: Add sanity check for GGTT configuration
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 2 Jun 2025 10:33:25 +0000 (12:33 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 3 Jun 2025 10:36:00 +0000 (12:36 +0200)
commitc12c729e97508f4cd073a7cd5150d7512fa84f34
treee6c2440d15425acca546aa6a511885161aae0b5b
parenteb9b34734c41a08166e41836bb6a47bc117c77a1
drm/xe/vf: Add sanity check for GGTT configuration

The VF GGTT configuration was prepared by the PF, which should be
trusted, was obtained from the GuC, which likely already did some
sanity checks too, but since it's a received data, we should have
our own sanity checks to detect early any misconfiguration.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Link: https://lore.kernel.org/r/20250602103325.549-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_tile_sriov_vf.c