File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 23
23
#include "xe_map.h"
24
24
#include "xe_mmio.h"
25
25
#include "xe_pm.h"
26
+ #include "xe_tile.h"
26
27
27
28
/*
28
29
* GSC proxy:
@@ -483,7 +484,7 @@ int xe_gsc_proxy_init(struct xe_gsc *gsc)
483
484
}
484
485
485
486
/* no multi-tile devices with this feature yet */
486
- if (tile -> id > 0 ) {
487
+ if (! xe_tile_is_root ( tile ) ) {
487
488
xe_gt_err (gt , "unexpected GSC proxy init on tile %u\n" , tile -> id );
488
489
return - EINVAL ;
489
490
}
Original file line number Diff line number Diff line change 23
23
#include "xe_mmio.h"
24
24
#include "xe_pxp.h"
25
25
#include "xe_sriov.h"
26
+ #include "xe_tile.h"
26
27
27
28
/*
28
29
* Interrupt registers for a unit are always consecutive and ordered
@@ -552,7 +553,7 @@ static void xelp_irq_reset(struct xe_tile *tile)
552
553
553
554
static void dg1_irq_reset (struct xe_tile * tile )
554
555
{
555
- if (tile -> id == 0 )
556
+ if (xe_tile_is_root ( tile ) )
556
557
dg1_intr_disable (tile_to_xe (tile ));
557
558
558
559
gt_irq_reset (tile );
Original file line number Diff line number Diff line change @@ -27,4 +27,10 @@ static inline struct drm_pagemap *xe_tile_local_pagemap(struct xe_tile *tile)
27
27
return NULL ;
28
28
}
29
29
#endif
30
+
31
+ static inline bool xe_tile_is_root (struct xe_tile * tile )
32
+ {
33
+ return tile -> id == 0 ;
34
+ }
35
+
30
36
#endif
You can’t perform that action at this time.
0 commit comments