diff options
| author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2025-07-13 12:36:21 +0200 |
|---|---|---|
| committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2025-07-14 18:19:28 +0200 |
| commit | 76293a83a9db7fb52e48f5ee320c3c6708f05a8e (patch) | |
| tree | 28a7941719f3520c6f514bdad7f2aad91e398aa5 /drivers/gpu/drm/xe/xe_gsc_proxy.c | |
| parent | 73c0e8054fcf36883c1a20d5e2e91fb8ed24d3ea (diff) | |
| download | linux-next-76293a83a9db7fb52e48f5ee320c3c6708f05a8e.tar.gz linux-next-76293a83a9db7fb52e48f5ee320c3c6708f05a8e.zip | |
drm/xe: Introduce xe_tile_is_root helper
Instead of looking at the tile->id member provide a small helper
to explicitly express our intentions.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20250713103625.1964-4-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gsc_proxy.c')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_gsc_proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_gsc_proxy.c b/drivers/gpu/drm/xe/xe_gsc_proxy.c index d0519cd6704a..464282a89eef 100644 --- a/drivers/gpu/drm/xe/xe_gsc_proxy.c +++ b/drivers/gpu/drm/xe/xe_gsc_proxy.c @@ -23,6 +23,7 @@ #include "xe_map.h" #include "xe_mmio.h" #include "xe_pm.h" +#include "xe_tile.h" /* * GSC proxy: @@ -483,7 +484,7 @@ int xe_gsc_proxy_init(struct xe_gsc *gsc) } /* no multi-tile devices with this feature yet */ - if (tile->id > 0) { + if (!xe_tile_is_root(tile)) { xe_gt_err(gt, "unexpected GSC proxy init on tile %u\n", tile->id); return -EINVAL; } |
