mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 12:13:51 -04:00
drm/xe: Use xe_tile_info() in alloc_primary_gt() and alloc_media_gt()
alloc_primary_gt() and alloc_media_gt() both operate in the context of a specific tile, and the configfs-disabled messages describe a per-tile primary/media GT. Switch from xe_info(xe, ...) to xe_tile_info(tile, ...) so the log lines are prefixed with "Tile%u:", which disambiguates the message on multi-tile devices. Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260708221233.3251663-1-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "xe_step.h"
|
||||
#include "xe_survivability_mode.h"
|
||||
#include "xe_tile.h"
|
||||
#include "xe_tile_printk.h"
|
||||
|
||||
enum toggle_d3cold {
|
||||
D3COLD_DISABLE,
|
||||
@@ -875,7 +876,7 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,
|
||||
struct xe_gt *gt;
|
||||
|
||||
if (!xe_configfs_primary_gt_allowed(to_pci_dev(xe->drm.dev))) {
|
||||
xe_info(xe, "Primary GT disabled via configfs\n");
|
||||
xe_tile_info(tile, "Primary GT disabled via configfs\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -923,7 +924,7 @@ static struct xe_gt *alloc_media_gt(struct xe_tile *tile,
|
||||
struct xe_gt *gt;
|
||||
|
||||
if (!xe_configfs_media_gt_allowed(to_pci_dev(xe->drm.dev))) {
|
||||
xe_info(xe, "Media GT disabled via configfs\n");
|
||||
xe_tile_info(tile, "Media GT disabled via configfs\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user