+6
-6
arch/arm/include/asm/arch_gicv3.h
+6
-6
arch/arm/include/asm/arch_gicv3.h
···
326
326
#define gits_write_cwriter(v, c) __gic_writeq_nonatomic(v, c)
327
327
328
328
/*
329
-
* GITS_VPROPBASER - hi and lo bits may be accessed independently.
329
+
* GICR_VPROPBASER - hi and lo bits may be accessed independently.
330
330
*/
331
-
#define gits_read_vpropbaser(c) __gic_readq_nonatomic(c)
332
-
#define gits_write_vpropbaser(v, c) __gic_writeq_nonatomic(v, c)
331
+
#define gicr_read_vpropbaser(c) __gic_readq_nonatomic(c)
332
+
#define gicr_write_vpropbaser(v, c) __gic_writeq_nonatomic(v, c)
333
333
334
334
/*
335
-
* GITS_VPENDBASER - the Valid bit must be cleared before changing
335
+
* GICR_VPENDBASER - the Valid bit must be cleared before changing
336
336
* anything else.
337
337
*/
338
-
static inline void gits_write_vpendbaser(u64 val, void __iomem *addr)
338
+
static inline void gicr_write_vpendbaser(u64 val, void __iomem *addr)
339
339
{
340
340
u32 tmp;
341
341
···
352
352
__gic_writeq_nonatomic(val, addr);
353
353
}
354
354
355
-
#define gits_read_vpendbaser(c) __gic_readq_nonatomic(c)
355
+
#define gicr_read_vpendbaser(c) __gic_readq_nonatomic(c)
356
356
357
357
static inline bool gic_prio_masking_enabled(void)
358
358
{
+4
-4
arch/arm64/include/asm/arch_gicv3.h
+4
-4
arch/arm64/include/asm/arch_gicv3.h
···
140
140
#define gicr_write_pendbaser(v, c) writeq_relaxed(v, c)
141
141
#define gicr_read_pendbaser(c) readq_relaxed(c)
142
142
143
-
#define gits_write_vpropbaser(v, c) writeq_relaxed(v, c)
144
-
#define gits_read_vpropbaser(c) readq_relaxed(c)
143
+
#define gicr_write_vpropbaser(v, c) writeq_relaxed(v, c)
144
+
#define gicr_read_vpropbaser(c) readq_relaxed(c)
145
145
146
-
#define gits_write_vpendbaser(v, c) writeq_relaxed(v, c)
147
-
#define gits_read_vpendbaser(c) readq_relaxed(c)
146
+
#define gicr_write_vpendbaser(v, c) writeq_relaxed(v, c)
147
+
#define gicr_read_vpendbaser(c) readq_relaxed(c)
148
148
149
149
static inline bool gic_prio_masking_enabled(void)
150
150
{
+14
-14
drivers/irqchip/irq-gic-v3-its.c
+14
-14
drivers/irqchip/irq-gic-v3-its.c
···
2429
2429
* ours wrt CommonLPIAff. Let's use its own VPROPBASER.
2430
2430
* Make sure we don't write the Z bit in that case.
2431
2431
*/
2432
-
val = gits_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2432
+
val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2433
2433
val &= ~GICR_VPROPBASER_4_1_Z;
2434
2434
2435
2435
gic_data_rdist()->vpe_l1_base = gic_data_rdist_cpu(cpu)->vpe_l1_base;
···
2452
2452
if (!gic_rdists->has_rvpeid)
2453
2453
return true;
2454
2454
2455
-
val = gits_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2455
+
val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2456
2456
2457
2457
esz = FIELD_GET(GICR_VPROPBASER_4_1_ENTRY_SIZE, val) + 1;
2458
2458
gpsz = FIELD_GET(GICR_VPROPBASER_4_1_PAGE_SIZE, val);
···
2524
2524
* effect of making sure no doorbell will be generated and we can
2525
2525
* then safely clear VPROPBASER.Valid.
2526
2526
*/
2527
-
if (gits_read_vpendbaser(vlpi_base + GICR_VPENDBASER) & GICR_VPENDBASER_Valid)
2528
-
gits_write_vpendbaser(GICR_VPENDBASER_PendingLast,
2527
+
if (gicr_read_vpendbaser(vlpi_base + GICR_VPENDBASER) & GICR_VPENDBASER_Valid)
2528
+
gicr_write_vpendbaser(GICR_VPENDBASER_PendingLast,
2529
2529
vlpi_base + GICR_VPENDBASER);
2530
2530
2531
2531
/*
···
2548
2548
2549
2549
/* First probe the page size */
2550
2550
val = FIELD_PREP(GICR_VPROPBASER_4_1_PAGE_SIZE, GIC_PAGE_SIZE_64K);
2551
-
gits_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2552
-
val = gits_read_vpropbaser(vlpi_base + GICR_VPROPBASER);
2551
+
gicr_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2552
+
val = gicr_read_vpropbaser(vlpi_base + GICR_VPROPBASER);
2553
2553
gpsz = FIELD_GET(GICR_VPROPBASER_4_1_PAGE_SIZE, val);
2554
2554
esz = FIELD_GET(GICR_VPROPBASER_4_1_ENTRY_SIZE, val);
2555
2555
···
2620
2620
val |= GICR_VPROPBASER_4_1_VALID;
2621
2621
2622
2622
out:
2623
-
gits_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2623
+
gicr_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2624
2624
cpumask_set_cpu(smp_processor_id(), gic_data_rdist()->vpe_table_mask);
2625
2625
2626
2626
pr_debug("CPU%d: VPROPBASER = %llx %*pbl\n",
···
2727
2727
bool clean;
2728
2728
u64 val;
2729
2729
2730
-
val = gits_read_vpendbaser(vlpi_base + GICR_VPENDBASER);
2730
+
val = gicr_read_vpendbaser(vlpi_base + GICR_VPENDBASER);
2731
2731
val &= ~GICR_VPENDBASER_Valid;
2732
2732
val &= ~clr;
2733
2733
val |= set;
2734
-
gits_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
2734
+
gicr_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
2735
2735
2736
2736
do {
2737
-
val = gits_read_vpendbaser(vlpi_base + GICR_VPENDBASER);
2737
+
val = gicr_read_vpendbaser(vlpi_base + GICR_VPENDBASER);
2738
2738
clean = !(val & GICR_VPENDBASER_Dirty);
2739
2739
if (!clean) {
2740
2740
count--;
···
2849
2849
val = (LPI_NRBITS - 1) & GICR_VPROPBASER_IDBITS_MASK;
2850
2850
pr_debug("GICv4: CPU%d: Init IDbits to 0x%llx for GICR_VPROPBASER\n",
2851
2851
smp_processor_id(), val);
2852
-
gits_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2852
+
gicr_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
2853
2853
2854
2854
/*
2855
2855
* Also clear Valid bit of GICR_VPENDBASER, in case some
···
3523
3523
val |= (LPI_NRBITS - 1) & GICR_VPROPBASER_IDBITS_MASK;
3524
3524
val |= GICR_VPROPBASER_RaWb;
3525
3525
val |= GICR_VPROPBASER_InnerShareable;
3526
-
gits_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
3526
+
gicr_write_vpropbaser(val, vlpi_base + GICR_VPROPBASER);
3527
3527
3528
3528
val = virt_to_phys(page_address(vpe->vpt_page)) &
3529
3529
GENMASK_ULL(51, 16);
···
3541
3541
val |= GICR_VPENDBASER_PendingLast;
3542
3542
val |= vpe->idai ? GICR_VPENDBASER_IDAI : 0;
3543
3543
val |= GICR_VPENDBASER_Valid;
3544
-
gits_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
3544
+
gicr_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
3545
3545
}
3546
3546
3547
3547
static void its_vpe_deschedule(struct its_vpe *vpe)
···
3741
3741
val |= info->g1en ? GICR_VPENDBASER_4_1_VGRP1EN : 0;
3742
3742
val |= FIELD_PREP(GICR_VPENDBASER_4_1_VPEID, vpe->vpe_id);
3743
3743
3744
-
gits_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
3744
+
gicr_write_vpendbaser(val, vlpi_base + GICR_VPENDBASER);
3745
3745
}
3746
3746
3747
3747
static void its_vpe_4_1_deschedule(struct its_vpe *vpe,