drm/xe: rename bypass_mtcfg to skip_mtcfg
authorKoby Elbaz <kelbaz@habana.ai>
Tue, 28 Nov 2023 16:53:16 +0000 (18:53 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:09 +0000 (11:45 -0500)
Per device, set this flag to access the MTCFG register or to skip it.
This is done to standardise Xe driver naming if an access to any HW
should be avoided.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_pci.c

index 1a95b1587c86b82b7e87fad797371671fbfa21c3..9a212dbdb8a4934cb9db9c829ad92ce2df0124d0 100644 (file)
@@ -258,8 +258,8 @@ struct xe_device {
                u8 has_sriov:1;
                /** @enable_display: display enabled */
                u8 enable_display:1;
-               /** @bypass_mtcfg: Bypass Multi-Tile configuration from MTCFG register */
-               u8 bypass_mtcfg:1;
+               /** @skip_mtcfg: skip Multi-Tile configuration from MTCFG register */
+               u8 skip_mtcfg:1;
                /** @skip_pcode: skip access to PCODE uC */
                u8 skip_pcode:1;
                /** @supports_mmio_ext: supports MMIO extension/s */
index 0f846272e39c7286822649b5dfb71d08b39bca1d..883610fc0abf2bee1abd4fc306ad00918b10353b 100644 (file)
@@ -330,7 +330,7 @@ static void xe_mmio_probe_tiles(struct xe_device *xe)
        if (tile_count == 1)
                goto add_mmio_ext;
 
-       if (!xe->info.bypass_mtcfg) {
+       if (!xe->info.skip_mtcfg) {
                mtcfg = xe_mmio_read64_2x32(gt, XEHP_MTCFG_ADDR);
                tile_count = REG_FIELD_GET(TILE_COUNT, mtcfg) + 1;
                if (tile_count < xe->info.tile_count) {
index 57eecaac53b53858f18c2584781c4f3a36360208..1f3b2ce7c04459d9a8ad0cbb7aeb3c2c1f64f94f 100644 (file)
@@ -62,7 +62,7 @@ struct xe_device_desc {
 
        u8 has_llc:1;
        u8 has_sriov:1;
-       u8 bypass_mtcfg:1;
+       u8 skip_mtcfg:1;
        u8 skip_pcode:1;
        u8 supports_mmio_ext:1;
        u8 skip_guc_pc:1;
@@ -581,7 +581,7 @@ static int xe_info_init(struct xe_device *xe,
        xe->info.media_name = media_desc ? media_desc->name : "none";
        xe->info.has_llc = desc->has_llc;
        xe->info.has_sriov = desc->has_sriov;
-       xe->info.bypass_mtcfg = desc->bypass_mtcfg;
+       xe->info.skip_mtcfg = desc->skip_mtcfg;
        xe->info.skip_pcode = desc->skip_pcode;
        xe->info.supports_mmio_ext = desc->supports_mmio_ext;
        xe->info.tile_mmio_ext_size = graphics_desc->tile_mmio_ext_size;