Skip to content
  • Shanker Donthineni's avatar
    irqchip/gic-v3-its: Add missing changes to support 52bit physical address · 30ae9610
    Shanker Donthineni authored
    
    
    The current ITS driver works fine as long as normal memory and GICR
    regions are located within the lower 48bit (>=0 && <2^48) physical
    address space. Some of the registers GICR_PEND/PROP, GICR_VPEND/VPROP
    and GITS_CBASER are handled properly but not all when configuring
    the hardware with 52bit physical address.
    
    This patch does the following changes to support 52bit PA.
      -Handle 52bit PA in GITS_BASERn.
      -Fix ITT_addr width to 52bits, bits[51:8].
      -Fix RDbase width to 52bits, bits[51:16].
      -Fix VPT_addr width to 52bits, bits[51:16].
    
    Definition of the GITS_BASERn register when ITS PageSize is 64KB:
      -Bits[47:16] of the register provide bits[47:16] of the table PA.
      -Bits[15:12] of the register provide bits[51:48] of the table PA.
      -Bits[15:00] of the base physical address are 0.
    
    Signed-off-by: default avatarShanker Donthineni <shankerd@codeaurora.org>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    30ae9610