]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Use FIELD_PREP/FIELD_GET for tile id encoding
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 18 Jul 2023 19:39:24 +0000 (12:39 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:51 +0000 (11:37 -0500)
commit4d18eac03212fc2d8c3d9715e2261ac50e989403
tree49618abdcc3436a5764b26986d13f96f7a2ae321
parent0d39b6daa5455354c485cb4d521b08740456758e
drm/xe: Use FIELD_PREP/FIELD_GET for tile id encoding

Use FIELD_PREP()/FIELD_GET() to encode the tile id into flags. Besides
protecting for eventual overflow it also makes it easier to see a new
flag can't be added as BIT(7).

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20230718193924.3084759-2-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm_types.h