Skip to content

Commit

Permalink
powerpc/xive: add the HW IRQ number under xive_irq_data
Browse files Browse the repository at this point in the history
It will be required later by the H_INT_ESB hcall.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Cédric Le Goater authored and Michael Ellerman committed Sep 2, 2017
1 parent 99f1225 commit c58a14a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/xive.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct xive_irq_data {
void __iomem *trig_mmio;
u32 esb_shift;
int src_chip;
u32 hw_irq;

/* Setup/used by frontend */
int target;
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/sysdev/xive/native.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)
return -ENOMEM;
}

data->hw_irq = hw_irq;

if (!data->trig_page)
return 0;
if (data->trig_page == data->eoi_page) {
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/sysdev/xive/spapr.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)
return -ENOMEM;
}

data->hw_irq = hw_irq;

/* Full function page supports trigger */
if (flags & XIVE_SRC_TRIGGER) {
data->trig_mmio = data->eoi_mmio;
Expand Down

0 comments on commit c58a14a

Please sign in to comment.