mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 06:13:53 -06:00
ppc/pnv: Fix loss of LPC SERIRQ interrupts
The LPC HC irq status register bits are set when an LPC IRQSER input is asserted. These irq status bits drive the PSI irq to the CPU interrupt controller. The LPC HC irq status bits are cleared by software writing to the register with 1's for the bits to clear. Existing register write was clearing the irq status bits even when the input was asserted, this results in interrupts being lost. This fix changes the behavior to keep track of the device IRQ status in internal state that is separate from the irq status register, and only allowing the irq status bits to be cleared if the associated input is not asserted. Signed-off-by: Glenn Miles <milesg@linux.ibm.com> [np: rebased before P9 PSI SERIRQ patch, adjust changelog/comments] Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
977e789c4a
commit
c6e07f03f7
2 changed files with 22 additions and 3 deletions
|
@ -73,6 +73,9 @@ struct PnvLpcController {
|
|||
uint32_t opb_irq_pol;
|
||||
uint32_t opb_irq_input;
|
||||
|
||||
/* LPC device IRQ state */
|
||||
uint32_t lpc_hc_irq_inputs;
|
||||
|
||||
/* LPC HC registers */
|
||||
uint32_t lpc_hc_fw_seg_idsel;
|
||||
uint32_t lpc_hc_fw_rd_acc_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue