mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
drm/xe: Rename info.supports_* to info.has_*
Rename supports_mmio_ext and supports_usm to use a has_ prefix so the
flags are grouped together. This settles on just one variant for
positive info matching ("has_") and one for negative ("skip_").
Also make sure the has_* flags are grouped together in xe_pci.c.
Reviewed-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://lore.kernel.org/r/20231205145235.2114761-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
f1a5d808b2
commit
5a92da34dd
@@ -37,7 +37,7 @@ static int run_sanity_job(struct xe_migrate *m, struct xe_device *xe,
|
||||
struct xe_bb *bb, u32 second_idx, const char *str,
|
||||
struct kunit *test)
|
||||
{
|
||||
u64 batch_base = xe_migrate_batch_base(m, xe->info.supports_usm);
|
||||
u64 batch_base = xe_migrate_batch_base(m, xe->info.has_usm);
|
||||
struct xe_sched_job *job = xe_bb_create_migration_job(m->q, bb,
|
||||
batch_base,
|
||||
second_idx);
|
||||
@@ -308,7 +308,7 @@ static void xe_migrate_sanity_test(struct xe_migrate *m, struct kunit *test)
|
||||
goto free_pt;
|
||||
}
|
||||
|
||||
bb = xe_bb_new(tile->primary_gt, 32, xe->info.supports_usm);
|
||||
bb = xe_bb_new(tile->primary_gt, 32, xe->info.has_usm);
|
||||
if (IS_ERR(bb)) {
|
||||
KUNIT_FAIL(test, "Failed to create batchbuffer: %li\n",
|
||||
PTR_ERR(bb));
|
||||
|
||||
Reference in New Issue
Block a user