]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Standardize pat_index to u16 type
authorXin Wang <x.wang@intel.com>
Thu, 16 Apr 2026 04:55:24 +0000 (21:55 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 21 Apr 2026 17:20:17 +0000 (10:20 -0700)
commit5f01da06878f48d0ee7919a0af6b2b7217c4ae61
treec86b084fdd54ef1d826466efb78c8b8eb91daf47
parent5627392001802a98ed6cf8cf79a303abd00d1c0f
drm/xe: Standardize pat_index to u16 type

Ensure all pat_index definitions consistently use u16 type across
the XE driver. This addresses two remaining instances where pat_index
was incorrectly typed:

- xe_vm_snapshot structure used int for pat_index field
- xe_device pat.idx array used u32 instead of u16

This cleanup improves type consistency and ensures proper alignment
with the PAT subsystem design.

Signed-off-by: Xin Wang <x.wang@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260416045526.536497-2-x.wang@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_vm.c