• Pali Rohár's avatar
    irqchip/armada-370-xp: Add support for 32 MSI interrupts on non-IPI platforms · 986b6ad0
    Pali Rohár authored
    The doorbell interrupts have the following layout on IPI vs no-IPI
    platforms:
    
                        |  0...7  |  8...15  |       16...31       |
      ------------------+---------+----------+---------------------+
           IPI platform |   IPI   |   n/a    |         MSI         |
      ------------------+---------+----------+---------------------+
       non-IPI platform |                   MSI                    |
      ------------------+------------------------------------------+
    
    Currently the driver only allows for the upper 16...31 interrupts for
    MSI domain (i.e. the MSI domain has only 16 interrupts).
    
    On platforms where IPI is not available, we can use whole 32 MSI
    interrupts.
    
    Implement support also for the lower 16 MSI interrupts on non-IPI
    platforms.
    
    [ Marek: refactored, changed commit message ]
    Signed-off-by: default avatarPali Rohár <pali@kernel.org>
    Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    986b6ad0
irq-armada-370-xp.c 24 KB