@@ -2429,7 +2429,7 @@ static u64 inherit_vpe_l1_table_from_rd(cpumask_t **mask)
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,7 +2452,7 @@ static bool allocate_vpe_l2_table(int cpu, u32 id)
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,8 +2524,8 @@ static int allocate_vpe_l1_table(void)
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,8 +2548,8 @@ static int allocate_vpe_l1_table(void)
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,7 +2620,7 @@ static int allocate_vpe_l1_table(void)
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,14 +2727,14 @@ static u64 its_clear_vpend_valid(void __iomem *vlpi_base, u64 clr, u64 set)
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,7 +2849,7 @@ static void its_cpu_init_lpis(void)
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,7 +3523,7 @@ static void its_vpe_schedule(struct its_vpe *vpe)
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,7 +3541,7 @@ static void its_vpe_schedule(struct its_vpe *vpe)
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,7 +3741,7 @@ static void its_vpe_4_1_schedule(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 ,
0 commit comments