summaryrefslogtreecommitdiff
path: root/lib/intel_pat.h
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2025-07-10 17:53:10 -0300
committerKamil Konieczny <kamil.konieczny@linux.intel.com>2025-07-11 15:40:11 +0200
commit67f8a0cc3a159bf6f912c08c030dfed5a85af328 (patch)
treea8c3e16a7df84f88388c59fb03d0ba5cef4e5f68 /lib/intel_pat.h
parent64c0be2da10d441f4054f139d6ff14d2d5c2c3e3 (diff)
tests/intel/xe_gt_freq: Fix usage of xe_dev_max_gt() for array allocationHEADmaster
The function xe_dev_max_gt() returns the maximum GT ID. Because the ID is zero-based, if we want to allocate an array that can hold positions for all possible GTs, we need to take xe_dev_max_gt() + 1. Fix the current allocations to conform to that. Cc: Matt Roper <matthew.d.roper@intel.com> Cc: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com> Fixes: edd059dcd652 ("tests/xe: Don't assume max GT ID is num_gt - 1") Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'lib/intel_pat.h')
0 files changed, 0 insertions, 0 deletions