Re: [PATCH] genirq: reduce irqdebug bouncing cachelines

2021-04-14 Thread Cédric Le Goater
On 4/13/21 10:24 PM, Thomas Gleixner wrote: > On Tue, Apr 13 2021 at 14:16, Cédric Le Goater wrote: >>>> We could test irq_settings_no_debug() directly under handle_nested_irq() >>>> and handle_irq_event_percpu() to avoid calling note_interrupt(), just >>>>

Re: [PATCH] genirq: reduce irqdebug bouncing cachelines

2021-04-13 Thread Cédric Le Goater
Thomas, >> We could test irq_settings_no_debug() directly under handle_nested_irq() >> and handle_irq_event_percpu() to avoid calling note_interrupt(), just >> like we do for noirqdebug. > > We can do that, but then we should not just make it: > >if (!irqnodebug &&

Re: [PATCH] genirq: reduce irqdebug bouncing cachelines

2021-04-12 Thread Cédric Le Goater
Hello, On 4/10/21 1:58 PM, Thomas Gleixner wrote: > Nicholas, > > On Fri, Apr 02 2021 at 23:20, Nicholas Piggin wrote: >> note_interrupt increments desc->irq_count for each interrupt even for >> percpu interrupt handlers, even when they are handled successfully. This >> causes cacheline bouncing

Re: [PATCH] powerpc: define the variable 'uaccess_flush' as static

2021-03-12 Thread Cédric Le Goater
On 3/12/21 12:06 PM, He Ying wrote: > The variable 'uaccess_fulsh' is not referenced outside the file. Perhaps we > should define it as static to avoid the warning as follows: > > arch/powerpc/kernel/setup_64.c:953:6: warning: symbol 'uaccess_flush' > was not declared. Should it be static? > >

Re: [PATCH] arch/powerpc/include/asm/book3s/64/: remove duplicate include in mmu-hash.h

2021-03-05 Thread Cédric Le Goater
On 3/4/21 3:42 AM, menglong8.d...@gmail.com wrote: > From: Zhang Yunkai > > 'asm/bug.h' included in 'arch/powerpc/include/asm/book3s/64/mmu-hash.h' > is duplicated.It is also included in the 12th line. > > Signed-off-by: Zhang Yunkai Reviewed-by: Cédric Le Goater >

Re: arch/powerpc/sysdev/xive/common.c:1614 xive_debug_show_irq() warn: variable dereferenced before check 'd' (see line 1596)

2021-03-03 Thread Cédric Le Goater
arnings: > arch/powerpc/sysdev/xive/common.c:280 xmon_xive_get_irq_config() warn: > variable dereferenced before check 'd' (see line 262) This one needs a very similar fix which can come as a followup. Thanks, C. > vim +/d +1614 arch/powerpc/sysdev/xive/common.c > > 930914b7d528fc Cédric

Re: arch/powerpc/sysdev/xive/common.c:279 xmon_xive_get_irq_config() warn: variable dereferenced before check 'd' (see line 261)

2021-03-03 Thread Cédric Le Goater
roject/linuxppc-dev/list/?series=228762 Most of the mess comes from the XIVE IPI HW IRQ number which hijacks IRQ number 0. It should be easier after this is fixed. Thanks, C. > vim +/d +279 arch/powerpc/sysdev/xive/common.c > > 5896163f7f91c05 Cédric Le Goater 2019-09-10 259 int >

Re: [PATCH] powerpc/pseries: Don't enforce MSI affinity with kdump

2021-02-12 Thread Cédric Le Goater
9ea69a55b3b9 ("powerpc/pseries: Pass MSI affinity to > irq_create_mapping()") > Cc: lviv...@redhat.com > Cc: sta...@vger.kernel.org > Signed-off-by: Greg Kurz Reviewed-by: Cédric Le Goater Thanks for tracking this issue. This layer needs a rework. Pat

Re: [PATCH 3/5] powerpc/xive: remove unnecessary unmap_kernel_range

2021-01-26 Thread Cédric Le Goater
On 1/26/21 5:54 AM, Nicholas Piggin wrote: > iounmap will remove ptes. > > Cc: "Cédric Le Goater" > Cc: linuxppc-...@lists.ozlabs.org > Signed-off-by: Nicholas Piggin Looks good. Acked-by: Cédric Le Goater Thanks, C. > --- > arch/powerpc/sysdev/xive/comm

Re: [PATCH] KVM: PPC: Book3S HV: XIVE: Fix vCPU id sanity check

2020-11-30 Thread Cédric Le Goater
place. > > Fix kvmppc_xive_vcpu_id_valid() so that it checks the packed > vCPU id is below xive->nr_servers, which is explicitly what we > want. > > Fixes: 062cfab7069f ("KVM: PPC: Book3S HV: XIVE: Make VP block size > configurable") > Cc: sta...@vger.kernel.org

Re: [PATCH kernel v4 1/8] genirq/ipi: Simplify irq_reserve_ipi

2020-11-24 Thread Cédric Le Goater
On 11/24/20 7:17 AM, Alexey Kardashevskiy wrote: > __irq_domain_alloc_irqs() can already handle virq==-1 and free > descriptors if it failed allocating hardware interrupts so let's skip > this extra step. > > Signed-off-by: Alexey Kardashevskiy LGTM, Reviewed-by: Cédric Le G

Re: [PATCH kernel v3] genirq/irqdomain: Add reference counting to IRQs

2020-11-13 Thread Cédric Le Goater
ng. Except (at least) PPC/pseries > which needs https://lkml.org/lkml/2020/10/27/259 > > Cc: Cédric Le Goater > Cc: Marc Zyngier > Cc: Michael Ellerman > Cc: Qian Cai > Cc: Rob Herring > Cc: Frederic Barrat > Cc: Michal Suchánek > Cc: Thomas Gleixner > Sig

Re: [RFC PATCH kernel 2/2] powerpc/pci: Remove LSI mappings on device teardown

2020-11-13 Thread Cédric Le Goater
s in the Linux interrupt number space but these are never > removed. > > This problem can be fixed by adding the corresponding unmap operation when > the device is removed. There's no pcibios_* hook for the remove case, but > the same effect can be achieved using a bus notifier. > >

Re: [v3 4/4] spi: aspeed: Add ASPEED FMC/SPI memory controller driver

2020-11-05 Thread Cédric Le Goater
Hello Chin-Ting, Thanks for this driver. It's much cleaner than the previous and we should try adding support for the AST2500 SoC also. I guess we can keep the old driver for the AST2400 which has a different register layout. On the patchset, I think we should split this patch in three : -

Re: [PATCH v2] powerpc/pci: unmap legacy INTx interrupts when a PHB is removed

2020-11-02 Thread Cédric Le Goater
On 10/14/20 4:55 AM, Alexey Kardashevskiy wrote: > > > On 23/09/2020 17:06, Cédric Le Goater wrote: >> On 9/23/20 2:33 AM, Qian Cai wrote: >>> On Fri, 2020-08-07 at 12:18 +0200, Cédric Le Goater wrote: >>>> When a passthrough IO adapter is removed from a

Re: [PATCH v2] mtd: spi-nor: Fix address width on flash chips > 16MB

2020-10-06 Thread Cédric Le Goater
anks Bert! Yes. I was starting to add bfpt-fixups for all chips we use on Aspeed based system. Reviewed-by: Cédric Le Goater Tested-by: Cédric Le Goater Thanks, C. > Cheers, > > Joel > >> --- >> drivers/mtd/spi-nor/core.c | 8 +--- >> 1 file change

Re: [PATCH v2] powerpc/pci: unmap legacy INTx interrupts when a PHB is removed

2020-09-24 Thread Cédric Le Goater
On 9/24/20 7:11 AM, Alexey Kardashevskiy wrote: > > > On 23/09/2020 17:06, Cédric Le Goater wrote: >> On 9/23/20 2:33 AM, Qian Cai wrote: >>> On Fri, 2020-08-07 at 12:18 +0200, Cédric Le Goater wrote: >>>> When a passthrough IO adapter is removed from a

Re: [PATCH v2] powerpc/pci: unmap legacy INTx interrupts when a PHB is removed

2020-09-23 Thread Cédric Le Goater
On 9/23/20 2:33 AM, Qian Cai wrote: > On Fri, 2020-08-07 at 12:18 +0200, Cédric Le Goater wrote: >> When a passthrough IO adapter is removed from a pseries machine using >> hash MMU and the XIVE interrupt mode, the POWER hypervisor expects the >> guest OS to clear all page

Re: [PATCH -next v2] KVM: PPC: Book3S HV: XIVE: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-21 Thread Cédric Le Goater
On 9/19/20 3:29 AM, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Qinglang Miao Reviewed-by: Cédric Le Goater > --- > v2: based on linux-next(20200917), and can be applied to > mainline cleanly now. >

Re: [PATCH 5/5] powerpc: use the generic dma_ops_bypass mode

2020-08-31 Thread Cédric Le Goater
On 8/31/20 8:40 AM, Christoph Hellwig wrote: > On Sun, Aug 30, 2020 at 11:04:21AM +0200, Cédric Le Goater wrote: >> Hello, >> >> On 7/8/20 5:24 PM, Christoph Hellwig wrote: >>> Use the DMA API bypass mechanism for direct window mappings. This uses >>> comm

Re: [PATCH 5/5] powerpc: use the generic dma_ops_bypass mode

2020-08-30 Thread Cédric Le Goater
Hello, On 7/8/20 5:24 PM, Christoph Hellwig wrote: > Use the DMA API bypass mechanism for direct window mappings. This uses > common code and speed up the direct mapping case by avoiding indirect > calls just when not using dma ops at all. It also fixes a problem where > the sync_* methods were

Re: [PATCH -next] ipmi: bt-bmc: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Cédric Le Goater
o not do > this. yes. Looks good to me. Reviewed-by: Cédric Le Goater Thanks, C. > -corey > >> >> Signed-off-by: YueHaibing >> --- >> drivers/char/ipmi/bt-bmc.c | 4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/

Re: [PATCH v2] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-11 Thread Cédric Le Goater
round anyway to support older skiboots already > in the field. > > Internally convert 0x to OPAL_RESOURCE which is the usual error > returned upon resource exhaustion. > > Cc: sta...@vger.kernel.org # v4.12+ > Signed-off-by: Greg Kurz Reviewed-by: Cédric Le Goater Thanks,

Re: [PATCH] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-10 Thread Cédric Le Goater
round anyway to support older skiboots already > on the field. > > Internally convert 0x to OPAL_RESOURCE which is the usual error > returned upon resource exhaustion. > > Signed-off-by: Greg Kurz Reviewed-by: Cédric Le Goater Thanks, C. > --- > arch/powerpc/sysdev/xiv

Re: [PATCH] powerpc/xive: Add some error handling code to 'xive_spapr_init()'

2019-08-01 Thread Cédric Le Goater
On 01/08/2019 13:09, Christophe JAILLET wrote: > 'xive_irq_bitmap_add()' can return -ENOMEM. > In this case, we should free the memory already allocated and return > 'false' to the caller. > > Also add an error path which undoes the 'tima = ioremap(...)' > > Signed-off-by: Christophe JAILLET >

Re: [PATCH 1/2] powerpc/xive: Use GFP_KERNEL instead of GFP_ATOMIC in 'xive_irq_bitmap_add()'

2019-08-01 Thread Cédric Le Goater
On 01/08/2019 10:32, Christophe JAILLET wrote: > There is no need to use GFP_ATOMIC here. GFP_KERNEL should be enough. > GFP_KERNEL is also already used for another allocation just a few lines > below. This is correct. > Signed-off-by: Christophe JAILLET Reviewed-by: Cédr

Re: [PATCH 1/4] powerpc/powernv: remove the unused pnv_pci_set_p2p function

2019-06-25 Thread Cédric Le Goater
Hello Christoph, On 25/06/2019 10:15, Christoph Hellwig wrote: > This function has never been used anywhere in the kernel tree since it > was added to the tree. We also now have proper PCIe P2P APIs in the core > kernel, and any new P2P support should be using those. > > Signed-off-by:

Re: [PATCH] powerpc/pseries: Fix xive=off command line

2019-05-15 Thread Cédric Le Goater
during CAS, and ignore xive=off if the hypervisor only supports > XIVE. > > Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt > controller") > Cc: sta...@vger.kernel.org # v4.20 > Reported-by: Pavithra R. Prakash > Signed-off-by: Greg Kurz

Re: KVM: Introduce a 'release' method for KVM devices

2019-05-06 Thread Cédric Le Goater
On 5/2/19 4:35 AM, Alexey Kardashevskiy wrote: > > > On 02/05/2019 00:42, Colin Ian King wrote: >> Hi, >> >> Static analysis with Coverity picked up an issue in the following commit: >> >> commit 2bde9b3ec8bdf60788e9e2ce8c07a2f8d6003dbd >> Author: Céd

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-14 Thread Cédric Le Goater
>>> That seems to suggest that none of the status bits auto-clears, and that >>> the above code clearing intr_status should be removed entirely. >>> Am I missing something ? >> >> You are right. I just pushed another version of the previous patch with this >> new hunk : >> >> @@ -188,7 +200,6 @@

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-14 Thread Cédric Le Goater
>>> That seems to suggest that none of the status bits auto-clears, and that >>> the above code clearing intr_status should be removed entirely. >>> Am I missing something ? >> >> You are right. I just pushed another version of the previous patch with this >> new hunk : >> >> @@ -188,7 +200,6 @@

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
Hello ! On 09/13/2018 06:31 PM, Jae Hyun Yoo wrote: > Hi Cédric, > > On 9/12/2018 10:47 PM, Cédric Le Goater wrote: >> On 09/12/2018 06:54 PM, Jae Hyun Yoo wrote: >>> On 9/11/2018 6:34 PM, Guenter Roeck wrote: >>>> On Tue, Sep 11, 2018 at 04:58:44PM -0700, Ja

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
Hello ! On 09/13/2018 06:31 PM, Jae Hyun Yoo wrote: > Hi Cédric, > > On 9/12/2018 10:47 PM, Cédric Le Goater wrote: >> On 09/12/2018 06:54 PM, Jae Hyun Yoo wrote: >>> On 9/11/2018 6:34 PM, Guenter Roeck wrote: >>>> On Tue, Sep 11, 2018 at 04:58:44PM -0700, Ja

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/13/2018 05:57 PM, Guenter Roeck wrote: > On Thu, Sep 13, 2018 at 05:48:59PM +0200, Cédric Le Goater wrote: >> On 09/13/2018 03:33 PM, Guenter Roeck wrote: > [ ... ] >>>>>   /* >>>>>    * The state machine needs some refinement. It is only used

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/13/2018 05:57 PM, Guenter Roeck wrote: > On Thu, Sep 13, 2018 at 05:48:59PM +0200, Cédric Le Goater wrote: >> On 09/13/2018 03:33 PM, Guenter Roeck wrote: > [ ... ] >>>>>   /* >>>>>    * The state machine needs some refinement. It is only used

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/13/2018 03:33 PM, Guenter Roeck wrote: > On 09/12/2018 10:45 PM, Cédric Le Goater wrote > > [ ... ] > >>> --- >>> qemu: >>> >>> diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c >>> index c762c73..0d4aa08 100644 >>> ---

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/13/2018 03:33 PM, Guenter Roeck wrote: > On 09/12/2018 10:45 PM, Cédric Le Goater wrote > > [ ... ] > >>> --- >>> qemu: >>> >>> diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c >>> index c762c73..0d4aa08 100644 >>> ---

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/12/2018 06:54 PM, Jae Hyun Yoo wrote: > On 9/11/2018 6:34 PM, Guenter Roeck wrote: >> On Tue, Sep 11, 2018 at 04:58:44PM -0700, Jae Hyun Yoo wrote: >>> On 9/11/2018 4:33 PM, Guenter Roeck wrote: Looking into the patch, clearing the interrupt status at the end of an interrupt

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/12/2018 06:54 PM, Jae Hyun Yoo wrote: > On 9/11/2018 6:34 PM, Guenter Roeck wrote: >> On Tue, Sep 11, 2018 at 04:58:44PM -0700, Jae Hyun Yoo wrote: >>> On 9/11/2018 4:33 PM, Guenter Roeck wrote: Looking into the patch, clearing the interrupt status at the end of an interrupt

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/12/2018 10:30 PM, Guenter Roeck wrote: > On Wed, Sep 12, 2018 at 01:10:45PM -0700, Jae Hyun Yoo wrote: >> On 9/12/2018 12:58 PM, Guenter Roeck wrote: >>> On Wed, Sep 12, 2018 at 09:54:51AM -0700, Jae Hyun Yoo wrote: On 9/11/2018 6:34 PM, Guenter Roeck wrote: > On Tue, Sep 11, 2018

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-13 Thread Cédric Le Goater
On 09/12/2018 10:30 PM, Guenter Roeck wrote: > On Wed, Sep 12, 2018 at 01:10:45PM -0700, Jae Hyun Yoo wrote: >> On 9/12/2018 12:58 PM, Guenter Roeck wrote: >>> On Wed, Sep 12, 2018 at 09:54:51AM -0700, Jae Hyun Yoo wrote: On 9/11/2018 6:34 PM, Guenter Roeck wrote: > On Tue, Sep 11, 2018

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-12 Thread Cédric Le Goater
with the I2C aspeed driver. I can not find the thread anymore but we had to move up the ack of the interrupts. QEMU tends to be much faster to fire interrupts than real HW. > conditions (because additional interrupts may have arrived while handling > the existing interrupts, or bec

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-12 Thread Cédric Le Goater
with the I2C aspeed driver. I can not find the thread anymore but we had to move up the ack of the interrupts. QEMU tends to be much faster to fire interrupts than real HW. > conditions (because additional interrupts may have arrived while handling > the existing interrupts, or bec

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-11 Thread Cédric Le Goater
On 09/11/2018 08:37 PM, Guenter Roeck wrote: > Hi, > > On Thu, Aug 23, 2018 at 03:57:31PM -0700, Jae Hyun Yoo wrote: >> In most of cases, interrupt bits are set one by one but there are >> also a lot of other cases that Aspeed I2C IP sends multiple >> interrupt bits with combining master and

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-11 Thread Cédric Le Goater
On 09/11/2018 08:37 PM, Guenter Roeck wrote: > Hi, > > On Thu, Aug 23, 2018 at 03:57:31PM -0700, Jae Hyun Yoo wrote: >> In most of cases, interrupt bits are set one by one but there are >> also a lot of other cases that Aspeed I2C IP sends multiple >> interrupt bits with combining master and

Re: [PATCH 07/13] ocxl: Add AFU interrupt support

2018-01-23 Thread Cédric Le Goater
On 12/19/2017 04:05 AM, Benjamin Herrenschmidt wrote: > On Mon, 2017-12-18 at 16:21 +0100, Frederic Barrat wrote: >> Add user APIs through ioctl to allocate, free, and be notified of an >> AFU interrupt. >> >> For opencapi, an AFU can trigger an interrupt on the host by sending a >> specific

Re: [PATCH 07/13] ocxl: Add AFU interrupt support

2018-01-23 Thread Cédric Le Goater
On 12/19/2017 04:05 AM, Benjamin Herrenschmidt wrote: > On Mon, 2017-12-18 at 16:21 +0100, Frederic Barrat wrote: >> Add user APIs through ioctl to allocate, free, and be notified of an >> AFU interrupt. >> >> For opencapi, an AFU can trigger an interrupt on the host by sending a >> specific

Re: [PATCH] powerpc/xive: Properly use static keyword for inline function

2018-01-15 Thread Cédric Le Goater
gt; extern inline int xive_smp_prepare_cpu(unsigned int cpu) { return -EINVAL; } > ^ > > Signed-off-by: Mathieu Malaterre <ma...@debian.org> Reviewed-by: Cédric Le Goater <c...@kaod.org> Thanks, C. > --- > arch/powerpc/include/asm/xive.h | 2 +-

Re: [PATCH] powerpc/xive: Properly use static keyword for inline function

2018-01-15 Thread Cédric Le Goater
gt; extern inline int xive_smp_prepare_cpu(unsigned int cpu) { return -EINVAL; } > ^ > > Signed-off-by: Mathieu Malaterre Reviewed-by: Cédric Le Goater Thanks, C. > --- > arch/powerpc/include/asm/xive.h | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH v3 18/20] ARM: dts: aspeed-romulus: Update Romulus system

2017-12-20 Thread Cédric Le Goater
On 12/20/2017 04:23 AM, Joel Stanley wrote: > - Fix incorrect RAM size > - Remove alias; these are now specified in the dtsi > - Add newly upstreamed devices > - Include OpenBMC flash layout > > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric

Re: [PATCH v3 18/20] ARM: dts: aspeed-romulus: Update Romulus system

2017-12-20 Thread Cédric Le Goater
On 12/20/2017 04:23 AM, Joel Stanley wrote: > - Fix incorrect RAM size > - Remove alias; these are now specified in the dtsi > - Add newly upstreamed devices > - Include OpenBMC flash layout > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > v3

Re: [PATCH v2 18/19] ARM: dts: aspeed-romulus: Update Romulus system

2017-12-18 Thread Cédric Le Goater
Some comments below, On 12/15/2017 07:24 AM, Joel Stanley wrote: > - Fix incorrect RAM size > - Remove alias; these are now specified in the dtsi > - Add newly upstreamed devices > - Include OpenBMC flash layout > > Signed-off-by: Joel Stanley > --- >

Re: [PATCH v2 18/19] ARM: dts: aspeed-romulus: Update Romulus system

2017-12-18 Thread Cédric Le Goater
Some comments below, On 12/15/2017 07:24 AM, Joel Stanley wrote: > - Fix incorrect RAM size > - Remove alias; these are now specified in the dtsi > - Add newly upstreamed devices > - Include OpenBMC flash layout > > Signed-off-by: Joel Stanley > --- >

Re: [PATCH v2 03/19] ARM: dts: aspeed: Add LPC and child devices

2017-12-18 Thread Cédric Le Goater
reg = <0x0 0x80>; > + status = "disabled"; > + }; > + > + lhc: lhc@20 { > +

Re: [PATCH v2 03/19] ARM: dts: aspeed: Add LPC and child devices

2017-12-18 Thread Cédric Le Goater
status = "disabled"; > + }; > + > + lhc: lhc@20 { > +

Re: [PATCH v2 06/19] ARM: dts: aspeed: Add watchdog clocks

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 2 ++ > arch/arm/boot/dts/aspeed-g5.dtsi | 3 +++ > 2 files changed, 5 insertions(+)

Re: [PATCH v2 06/19] ARM: dts: aspeed: Add watchdog clocks

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 2 ++ > arch/arm/boot/dts/aspeed-g5.dtsi | 3 +++ > 2 files changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dt

Re: [PATCH v2 13/19] ARM: dts: Add OpenBMC flash layout

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > This is a layout used by OpenBMC systems. It describes the fixed flash > layout of a 32MB mtd device. > > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > a

Re: [PATCH v2 13/19] ARM: dts: Add OpenBMC flash layout

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > This is a layout used by OpenBMC systems. It describes the fixed flash > layout of a 32MB mtd device. > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/openbmc-flas

Re: [PATCH] ARM: dts: aspeed-g4: Correct VUART IRQ number

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 06:33 AM, Joel Stanley wrote: > This should have always been 8. > > Fixes: db4d6d9d80fa ("ARM: dts: aspeed: Correctly order UART nodes") > Cc: sta...@vger.kernel.org > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goat

Re: [PATCH] ARM: dts: aspeed-g4: Correct VUART IRQ number

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 06:33 AM, Joel Stanley wrote: > This should have always been 8. > > Fixes: db4d6d9d80fa ("ARM: dts: aspeed: Correctly order UART nodes") > Cc: sta...@vger.kernel.org > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > ARM maint

Re: [PATCH v2 11/19] ARM: dts: aspeed: Remove skeleton.dtsi

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > We don't require it for any of the ASPEED systems. Reviewed-by: Cédric Le Goater <c...@kaod.org> > > Signed-off-by: Joel Stanley <j...@jms.id.au> > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 1 - > arch/arm/boot/dts/a

Re: [PATCH v2 11/19] ARM: dts: aspeed: Remove skeleton.dtsi

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > We don't require it for any of the ASPEED systems. Reviewed-by: Cédric Le Goater > > Signed-off-by: Joel Stanley > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 1 - > arch/arm/boot/dts/aspeed-g5.dtsi | 1 - > 2 files

Re: [PATCH v2 19/19] ARM: dts: aspeed-plametto: Add flash layout

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > The OpenBMC flash layout is used by Palmetto systems. > > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 1 + >

Re: [PATCH v2 19/19] ARM: dts: aspeed-plametto: Add flash layout

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > The OpenBMC flash layout is used by Palmetto systems. > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 1 + > 1 file changed, 1 insertion(+) > > di

Re: [PATCH v2 10/19] ARM: dts: aspeed: Add LPC Snoop device

2017-12-18 Thread Cédric Le Goater
d,ast2500-lpc-snoop"; it should be : aspeed,ast2400-lpc-snoop a part from that : Reviewed-by: Cédric Le Goater <c...@kaod.org> > + reg = <0x0 0x80>; > +

Re: [PATCH v2 10/19] ARM: dts: aspeed: Add LPC Snoop device

2017-12-18 Thread Cédric Le Goater
t;; it should be : aspeed,ast2400-lpc-snoop a part from that : Reviewed-by: Cédric Le Goater > + reg = <0x0 0x80>; > +

Re: [PATCH v2 12/19] ARM: dts: aspeed: Update license headers

2017-12-18 Thread Cédric Le Goater
tions. > > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > arch/arm/boot/dts/aspeed-ast2500-evb.dts | 2 +- > arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 2 +- > arch/arm/boot/dts/aspeed-bmc-opp-rom

Re: [PATCH v2 12/19] ARM: dts: aspeed: Update license headers

2017-12-18 Thread Cédric Le Goater
tions. > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/aspeed-ast2500-evb.dts | 2 +- > arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 2 +- > arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 2 +- > arch/arm/boot/dts/aspeed-g4.dt

Re: [PATCH v2 07/19] ARM: dts: aspeed: Add flash controller clocks

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 2 ++ > arch/arm/boot/dts/aspeed-g5.dtsi | 3 +++ > 2 files changed, 5 insertions(+)

Re: [PATCH v2 07/19] ARM: dts: aspeed: Add flash controller clocks

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 2 ++ > arch/arm/boot/dts/aspeed-g5.dtsi | 3 +++ > 2 files changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dt

Re: [PATCH v2 14/19] ARM: dts: aspeed: Sort ASPEED entries in makefile

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > In preperation for adding more boards. > > Signed-off-by: Joel Stanley <j...@jms.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> > --- > arch/arm/boot/dts/Makefile | 7 --- > 1 file changed, 4 insertions(+),

Re: [PATCH v2 14/19] ARM: dts: aspeed: Sort ASPEED entries in makefile

2017-12-18 Thread Cédric Le Goater
On 12/15/2017 07:24 AM, Joel Stanley wrote: > In preperation for adding more boards. > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > arch/arm/boot/dts/Makefile | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch

Re: about pca955x led driver gpio management

2017-10-25 Thread Cédric Le Goater
On 10/25/2017 12:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > > Il 24/10/2017 07:51, Cédric Le Goater ha scritto: >> On 10/17/2017 11:16 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> >>>> On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems

Re: about pca955x led driver gpio management

2017-10-25 Thread Cédric Le Goater
On 10/25/2017 12:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > > Il 24/10/2017 07:51, Cédric Le Goater ha scritto: >> On 10/17/2017 11:16 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> >>>> On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems

Re: about pca955x led driver gpio management

2017-10-24 Thread Cédric Le Goater
On 10/17/2017 11:16 AM, Andrea Scian - DAVE Embedded Systems wrote: > >> On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> >>> Il 17/10/2017 10:18, Cédric Le Goater ha scritto: >>>> On 10/17/2017 09:36 AM, Andrea Scian - DAVE

Re: about pca955x led driver gpio management

2017-10-24 Thread Cédric Le Goater
On 10/17/2017 11:16 AM, Andrea Scian - DAVE Embedded Systems wrote: > >> On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> >>> Il 17/10/2017 10:18, Cédric Le Goater ha scritto: >>>> On 10/17/2017 09:36 AM, Andrea Scian - DAVE

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > Dear all, > > I'm working on an iMX6 based board with a PCA9555 which is used both to drive > LEDs and manage some GPIOs. The PCA9555 chip and the PCA955[0-3] chips have different control registers. You need a different led

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > Dear all, > > I'm working on an iMX6 based board with a PCA9555 which is used both to drive > LEDs and manage some GPIOs. The PCA9555 chip and the PCA955[0-3] chips have different control registers. You need a different led

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: > > Il 17/10/2017 10:18, Cédric Le Goater ha scritto: >> On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> Dear all, >>> >>> I'm working on an iMX6 based board with a P

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: > > Il 17/10/2017 10:18, Cédric Le Goater ha scritto: >> On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> Dear all, >>> >>> I'm working on an iMX6 based board with a P

Re: linux-next: build warning after merge of the powerpc tree

2017-09-04 Thread Cédric Le Goater
On 09/04/2017 10:53 AM, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > WARNING: vmlinux.o(.text+0xa7cb8): Section mismatch in reference from the > function .xive_spapr_init() to the function

Re: linux-next: build warning after merge of the powerpc tree

2017-09-04 Thread Cédric Le Goater
On 09/04/2017 10:53 AM, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > WARNING: vmlinux.o(.text+0xa7cb8): Section mismatch in reference from the > function .xive_spapr_init() to the function

Re: [PATCH v2] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-09-01 Thread Cédric Le Goater
VALIDATE_DESC(desc); > if (test_bit(FLAG_ACTIVE_LOW, >flags)) >value = !value; > else >value = !!value; > return _gpiod_direction_output_raw(desc, value); > } >

Re: [PATCH v2] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-09-01 Thread Cédric Le Goater
VALIDATE_DESC(desc); > if (test_bit(FLAG_ACTIVE_LOW, >flags)) >value = !value; > else >value = !!value; > return _gpiod_direction_output_raw(desc, value); >

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-16 Thread Cédric Le Goater
On 08/16/2017 08:49 AM, Joel Stanley wrote: > On Tue, Aug 15, 2017 at 4:51 PM, Andrew Jeffery wrote: >> In addition to the base, low and high clock configuration, the AC timing >> register #1 on the AST2400 houses fields controlling: >> >> 1. tBUF: Minimum delay between Stop and

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-16 Thread Cédric Le Goater
On 08/16/2017 08:49 AM, Joel Stanley wrote: > On Tue, Aug 15, 2017 at 4:51 PM, Andrew Jeffery wrote: >> In addition to the base, low and high clock configuration, the AC timing >> register #1 on the AST2400 houses fields controlling: >> >> 1. tBUF: Minimum delay between Stop and Start conditions

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-16 Thread Cédric Le Goater
On 08/16/2017 08:59 AM, Benjamin Herrenschmidt wrote: > On Wed, 2017-08-16 at 08:53 +0200, Cédric Le Goater wrote: >>>> divisor = DIV_ROUND_UP(bus->parent_clk_frequency, >>>> bus->bus_frequency); >>>> - clk_reg_val = bus->get_clk_re

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-16 Thread Cédric Le Goater
On 08/16/2017 08:59 AM, Benjamin Herrenschmidt wrote: > On Wed, 2017-08-16 at 08:53 +0200, Cédric Le Goater wrote: >>>> divisor = DIV_ROUND_UP(bus->parent_clk_frequency, >>>> bus->bus_frequency); >>>> - clk_reg_val = bus->get_clk_re

Re: [RFC v1 4/4] ipmi_bmc: bt-aspeed: port driver to IPMI BMC framework

2017-08-10 Thread Cédric Le Goater
On 08/10/2017 04:31 AM, Jeremy Kerr wrote: > Hi Brendan, > >> The driver was handling interaction with userspace on its own. This >> patch changes it to use the functionality of the ipmi_bmc framework >> instead. >> >> Note that this removes the ability for the BMC to set SMS_ATN by making >> an

Re: [RFC v1 4/4] ipmi_bmc: bt-aspeed: port driver to IPMI BMC framework

2017-08-10 Thread Cédric Le Goater
On 08/10/2017 04:31 AM, Jeremy Kerr wrote: > Hi Brendan, > >> The driver was handling interaction with userspace on its own. This >> patch changes it to use the functionality of the ipmi_bmc framework >> instead. >> >> Note that this removes the ability for the BMC to set SMS_ATN by making >> an

Re: [PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 09:15 AM, Shilpasri G Bhat wrote: > > > On 06/20/2017 11:36 AM, Cédric Le Goater wrote: >> On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: >>> From: Cédric Le Goater <c...@kaod.org> >>> >>> Today, the type of a PowerNV sensor system

Re: [PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 09:15 AM, Shilpasri G Bhat wrote: > > > On 06/20/2017 11:36 AM, Cédric Le Goater wrote: >> On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: >>> From: Cédric Le Goater >>> >>> Today, the type of a PowerNV sensor system is determined wit

Re: [PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: > This patch exports current(A) sensors in inband sensors copied to > main memory by OCC. > > Signed-off-by: Shilpasri G Bhat <shilpa.b...@linux.vnet.ibm.com> Reviewed-by: Cédric Le Goater <c...@kaod.org> Thanks, C.

Re: [PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: > This patch exports current(A) sensors in inband sensors copied to > main memory by OCC. > > Signed-off-by: Shilpasri G Bhat Reviewed-by: Cédric Le Goater Thanks, C. > --- > Changes from V1: > - Rebased on top of Ced

Re: [PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: > From: Cédric Le Goater <c...@kaod.org> > > Today, the type of a PowerNV sensor system is determined with the > "compatible" property for legacy Firmwares and with the "sensor-type" > for newer ones. The sam

Re: [PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-20 Thread Cédric Le Goater
On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote: > From: Cédric Le Goater > > Today, the type of a PowerNV sensor system is determined with the > "compatible" property for legacy Firmwares and with the "sensor-type" > for newer ones. The same array of strings is

Re: [PATCH] hwmon: (ibmpowernv) Add current(A) sensors

2017-06-19 Thread Cédric Le Goater
hy you are doing that but that is the old (cr?@#!y) way to define sensor types. we should try to improve thing a little more and use the "sensor-type" property only. I think the patch below should help you adding new types without too much changes to your skiboot patchset. Could

Re: [PATCH] hwmon: (ibmpowernv) Add current(A) sensors

2017-06-19 Thread Cédric Le Goater
old (cr?@#!y) way to define sensor types. we should try to improve thing a little more and use the "sensor-type" property only. I think the patch below should help you adding new types without too much changes to your skiboot patchset. Could you please check ? Thanks, C. From: Céd

Re: [PATCH 7/8] clocksource/drivers/fttmr010: Merge Moxa into FTTMR010

2017-05-19 Thread Cédric Le Goater
On 05/18/2017 11:09 PM, Cédric Le Goater wrote: > On 05/18/2017 10:20 PM, Linus Walleij wrote: >> On Thu, May 18, 2017 at 2:43 PM, Linus Walleij <linus.wall...@linaro.org> >> wrote: >>> On Thu, May 18, 2017 at 9:22 AM, Joel Stanley <j...@jms.id.au> wrote: &

  1   2   >