]> git.hungrycats.org Git - linux/commit
drm/xe: Don't initialize tile_count in xe_info_init_early()
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 9 Jun 2026 20:17:40 +0000 (17:17 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Thu, 2 Jul 2026 21:41:55 +0000 (18:41 -0300)
commit723c3407fb8b4d3a31ddb56cd52ef5194d7684fd
tree0c35849b975d9395a36608dc24ad49d0f241dbd0
parent13bebc7171e6fd47ad7b28989c08283508fb4389
drm/xe: Don't initialize tile_count in xe_info_init_early()

The value of xe->info.tile_count is only really valid after
xe_info_probe_tile_count().  Any use of tile_count before that point
is invalid and, consequently, initializing it in xe_info_init_early()
is pointless.

Move the initialization to xe_info_probe_tile_count().

Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Violet Monti <violet.monti@intel.com>
Link: https://patch.msgid.link/20260609-xe-probe-info-v1-8-21e83e188e60@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/xe/tests/xe_pci.c
drivers/gpu/drm/xe/xe_pci.c