Re: [Qemu-devel] [PATCH 18/27] ppc/pnv: add a LPC Controller model for POWER9

2019-03-07 Thread Cédric Le Goater
On 3/8/19 1:19 AM, David Gibson wrote: > On Thu, Mar 07, 2019 at 08:07:41AM +0100, Cédric Le Goater wrote: >> On 3/7/19 5:18 AM, David Gibson wrote: >>> On Wed, Mar 06, 2019 at 09:50:23AM +0100, Cédric Le Goater wrote: > [snip] +static uint64_t pnv_lpc_mmio_read(void *opaque, hwaddr addr, unsi

Re: [Qemu-devel] [PATCH 18/27] ppc/pnv: add a LPC Controller model for POWER9

2019-03-07 Thread David Gibson
On Thu, Mar 07, 2019 at 08:07:41AM +0100, Cédric Le Goater wrote: > On 3/7/19 5:18 AM, David Gibson wrote: > > On Wed, Mar 06, 2019 at 09:50:23AM +0100, Cédric Le Goater wrote: [snip] > >> +static uint64_t pnv_lpc_mmio_read(void *opaque, hwaddr addr, unsigned > >> size) > >> +{ > >> +PnvLpcCon

Re: [Qemu-devel] [PATCH 18/27] ppc/pnv: add a LPC Controller model for POWER9

2019-03-06 Thread Cédric Le Goater
On 3/7/19 5:18 AM, David Gibson wrote: > On Wed, Mar 06, 2019 at 09:50:23AM +0100, Cédric Le Goater wrote: >> The LPC Controller on POWER9 is very similar to the one found on >> POWER8 but accesses are now done via on MMIOs, without the XSCOM and >> ECCB logic. The device tree is populated differen

Re: [Qemu-devel] [PATCH 18/27] ppc/pnv: add a LPC Controller model for POWER9

2019-03-06 Thread David Gibson
On Wed, Mar 06, 2019 at 09:50:23AM +0100, Cédric Le Goater wrote: > The LPC Controller on POWER9 is very similar to the one found on > POWER8 but accesses are now done via on MMIOs, without the XSCOM and > ECCB logic. The device tree is populated differently so we add a > specific POWER9 routine fo

[Qemu-devel] [PATCH 18/27] ppc/pnv: add a LPC Controller model for POWER9

2019-03-06 Thread Cédric Le Goater
The LPC Controller on POWER9 is very similar to the one found on POWER8 but accesses are now done via on MMIOs, without the XSCOM and ECCB logic. The device tree is populated differently so we add a specific POWER9 routine for the purpose. SerIRQ routing is yet to be done. Signed-off-by: Cédric L