[PATCH 4/8] powernv/eeh: Update the EEH code to use the opal irq domain

2015-04-01 Thread Alistair Popple
The eeh code currently uses the old notifier method to get eeh events from OPAL. It also contains some logic to filter opal events which has been moved into the virtual irqchip. This patch converts the eeh code to the new event interface which simplifies event handling. Signed-off-by: Alistair

[PATCH 2/8] ipmi/powernv: Convert to irq event interface

2015-04-01 Thread Alistair Popple
Convert the opal ipmi driver to use the new irq interface for events. Signed-off-by: Alistair Popple --- drivers/char/ipmi/ipmi_powernv.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char

[PATCH 1/8] powerpc/powernv: Add a virtual irqchip for opal events

2015-04-01 Thread Alistair Popple
via the standard interrupt APIs by adding a new interrupt chip and domain. Drivers can then register for the appropriate events using standard kernel calls such as irq_of_parse_and_map(). Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/opal.h | 2 + arch/powerpc

[PATCH 3/8] hvc: Convert to using interrupts instead of opal events

2015-04-01 Thread Alistair Popple
Convert the opal hvc driver to use the new irqchip to register for opal events. As older firmware version may not have device tree bindings for the interrupt parent we just use a hardcoded hwirq based on the event number. Signed-off-by: Alistair Popple --- drivers/tty/hvc/hvc_opal.c | 29

[PATCH 5/8] powernv/opal: Convert opal message events to opal irq domain

2015-04-01 Thread Alistair Popple
This patch converts the opal message event to use the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch

[PATCH 7/8] powernv/opal-dump: Convert to irq domain

2015-04-01 Thread Alistair Popple
Convert the opal dump driver to the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-dump.c | 33 +++--- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc

[PATCH 8/8] opal: Remove events notifier

2015-04-01 Thread Alistair Popple
All users of the old opal events notifier have been converted over to the irq domain so remove the event notifier functions. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-irqchip.c | 4 -- arch/powerpc/platforms/powernv/opal.c | 84

[PATCH 6/8] powernv/elog: Convert elog to opal irq domain

2015-04-01 Thread Alistair Popple
This patch converts the elog code to use the opal irq domain instead of notifier events. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-elog.c | 32 +++--- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms

[PATCH v3 4/8] powernv/eeh: Update the EEH code to use the opal irq domain

2015-05-06 Thread Alistair Popple
The eeh code currently uses the old notifier method to get eeh events from OPAL. It also contains some logic to filter opal events which has been moved into the virtual irqchip. This patch converts the eeh code to the new event interface which simplifies event handling. Signed-off-by: Alistair

[PATCH v3 2/8] ipmi/powernv: Convert to irq event interface

2015-05-06 Thread Alistair Popple
Convert the opal ipmi driver to use the new irq interface for events. Signed-off-by: Alistair Popple Cc: Corey Minyard Cc: openipmi-develo...@lists.sourceforge.net --- Corey, If this looks ok can you please ack it? Michael Ellerman will then take the whole series via the powerpc tree. Thanks

[PATCH v3 3/8] hvc: Convert to using interrupts instead of opal events

2015-05-06 Thread Alistair Popple
Convert the opal hvc driver to use the new irqchip to register for opal events. As older firmware versions may not have device tree bindings for the interrupt parent we just use a hardcoded hwirq based on the event number. Signed-off-by: Alistair Popple --- drivers/tty/hvc/hvc_opal.c | 33

[PATCH v3 1/8] powerpc/powernv: Add a virtual irqchip for opal events

2015-05-06 Thread Alistair Popple
via the standard interrupt APIs by adding a new interrupt chip and domain. Drivers can then register for the appropriate events using standard kernel calls such as irq_of_parse_and_map(). Signed-off-by: Alistair Popple --- Changes from v2: - Addressed comments by Neelesh Gupta - Fixed soft-lockup

[PATCH v3 5/8] powernv/opal: Convert opal message events to opal irq domain

2015-05-06 Thread Alistair Popple
This patch converts the opal message event to use the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch

[PATCH v3 7/8] powernv/opal-dump: Convert to irq domain

2015-05-06 Thread Alistair Popple
Convert the opal dump driver to the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-dump.c | 56 +- 1 file changed, 17 insertions(+), 39 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc

[PATCH v3 6/8] powernv/elog: Convert elog to opal irq domain

2015-05-06 Thread Alistair Popple
This patch converts the elog code to use the opal irq domain instead of notifier events. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-elog.c | 32 +++--- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms

[PATCH v3 8/8] opal: Remove events notifier

2015-05-06 Thread Alistair Popple
All users of the old opal events notifier have been converted over to the irq domain so remove the event notifier functions. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-irqchip.c | 16 ++--- arch/powerpc/platforms/powernv/opal.c | 84

Re: [PATCH v3 2/8] ipmi/powernv: Convert to irq event interface

2015-05-10 Thread Alistair Popple
Hi, On Thu, 7 May 2015 12:43:11 Corey Minyard wrote: > > The only thing I would suggest is passing the irq level > (IRQ_TYPE_LEVEL_HIGH) as > part of the openfirmware data instead of hard-coding it. I intend to do that in future once our firmware is updated to pass this information (via the de

[PATCH v4 2/9] powerpc/powernv: Add a virtual irqchip for opal events

2015-05-14 Thread Alistair Popple
via the standard interrupt APIs by adding a new interrupt chip and domain. Drivers can then register for the appropriate events using standard kernel calls such as irq_of_parse_and_map(). Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/opal.h | 3 + arch/powerpc

[PATCH v4 4/9] hvc: Convert to using interrupts instead of opal events

2015-05-14 Thread Alistair Popple
Convert the opal hvc driver to use the new irqchip to register for opal events. As older firmware versions may not have device tree bindings for the interrupt parent we just use a hardcoded hwirq based on the event number. Signed-off-by: Alistair Popple --- drivers/tty/hvc/hvc_opal.c | 33

[PATCH v4 3/9] ipmi/powernv: Convert to irq event interface

2015-05-14 Thread Alistair Popple
Convert the opal ipmi driver to use the new irq interface for events. Signed-off-by: Alistair Popple Acked-by: Corey Minyard Cc: Corey Minyard Cc: openipmi-develo...@lists.sourceforge.net --- drivers/char/ipmi/ipmi_powernv.c | 39 ++- 1 file changed, 22

[PATCH v4 0/9] Convert OPAL notifier events to an irqchip

2015-05-14 Thread Alistair Popple
host (eg. mambo) Changes from v2: - Addressed comments by Neelesh Gupta - Fixed soft-lockup bug reported by Neelesh in the opal-dump driver - Rebased on v4.1-rc1 Alistair Popple (9): powerpc/powernv: Reorder OPAL subsystem initialisation powerpc/powernv: Add a virtual irqchip for opal events

[PATCH v4 1/9] powerpc/powernv: Reorder OPAL subsystem initialisation

2015-05-14 Thread Alistair Popple
opal_init. Signed-off-by: Alistair Popple Cc: Mahesh Jagannath Salgaonkar --- arch/powerpc/include/asm/opal.h | 3 +++ arch/powerpc/platforms/powernv/opal-async.c | 3 +-- arch/powerpc/platforms/powernv/opal-hmi.c | 3 +-- arch/powerpc/platforms/powernv/opal

[PATCH v4 5/9] powernv/eeh: Update the EEH code to use the opal irq domain

2015-05-14 Thread Alistair Popple
The eeh code currently uses the old notifier method to get eeh events from OPAL. It also contains some logic to filter opal events which has been moved into the virtual irqchip. This patch converts the eeh code to the new event interface which simplifies event handling. Signed-off-by: Alistair

[PATCH v4 9/9] opal: Remove events notifier

2015-05-14 Thread Alistair Popple
All users of the old opal events notifier have been converted over to the irq domain so remove the event notifier functions. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-irqchip.c | 16 ++--- arch/powerpc/platforms/powernv/opal.c | 84

[PATCH v4 6/9] powernv/opal: Convert opal message events to opal irq domain

2015-05-14 Thread Alistair Popple
This patch converts the opal message event to use the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch

[PATCH v4 7/9] powernv/elog: Convert elog to opal irq domain

2015-05-14 Thread Alistair Popple
This patch converts the elog code to use the opal irq domain instead of notifier events. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-elog.c | 32 +++--- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms

[PATCH v4 8/9] powernv/opal-dump: Convert to irq domain

2015-05-14 Thread Alistair Popple
Convert the opal dump driver to the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-dump.c | 56 +- 1 file changed, 17 insertions(+), 39 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc

Re: [PATCH v4 4/9] hvc: Convert to using interrupts instead of opal events

2015-05-18 Thread Alistair Popple
On Tue, 19 May 2015 14:33:39 Michael Ellerman wrote: > On Fri, 2015-05-15 at 14:06 +1000, Alistair Popple wrote: > > Convert the opal hvc driver to use the new irqchip to register for > > opal events. As older firmware versions may not have device tree > > bindings for the int

Re: [PATCH] IBM Akebono: Remove obsolete config select

2014-09-04 Thread Alistair Popple
On Fri, 5 Sep 2014 00:20:42 Paul Bolle wrote: > > On Fri, 13 Jun 2014 13:56:32 Paul Bolle wrote: > > > On Fri, 2014-05-02 at 18:06 +1000, Alistair Popple wrote: > > > > The original implementation of MMC support for Akebono introduced a > > > > new co

Re: [PATCH] powerpc: Fix build failure

2014-09-15 Thread Alistair Popple
Thanks for fixing these! Acked-by: Alistair Popple On Thu, 21 Aug 2014 09:04:31 Pranith Kumar wrote: > Fix the following build failure > > drivers/built-in.o: In function `nhi_init': > nhi.c:(.init.text+0x63390): undefined reference to `ehci_init_driver' > &g

Re: [PATCH] powerpc: Fix build failure when CONFIG_USB=y

2014-09-15 Thread Alistair Popple
Thanks for fixing these! Acked-by: Alistair Popple On Thu, 21 Aug 2014 09:16:04 Pranith Kumar wrote: > We are enabling USB unconditionally which results in following build failure > > drivers/built-in.o: In function `tb_drom_read': > (.text+0x1b62b70): undefined reference to

Re: [PATCH 0/2] Add IPMI support for powernv powerpc machines

2014-11-09 Thread Alistair Popple
Ben, > > Our OPAL interface can only do one at a time ? Because our underlying FW > driver already has a queue .. The OPAL interface supports sending more than one message at a time using the underlying FW queue as you suggest. However in theory the interface doesn't make any response order gu

Re: [PATCH] powerpc/powernv: Support OPAL requested heartbeat

2014-11-13 Thread Alistair Popple
Hi Ben, On Wed, 12 Nov 2014 17:03:14 Benjamin Herrenschmidt wrote: > + > +static int kopald(void *unused) > +{ > + set_freezable(); > + do { > + try_to_freeze(); > + opal_poll_events(NULL); Do we need to check for outstanding events (and call opal_do_notifier)?

Re: [PATCH] [TRIVIAL] IBM Akebono: Remove select of IBM_EMAC_RGMII_WOL

2014-12-22 Thread Alistair Popple
Hi Paul, These days I've been made maintainer of the PPC4XX tree so maybe adding Acked- by: Alistair Popple might help? Jiri, if you would rather this go via the main PPC tree please let us know and we'll see if Michael Ellerman (added to CC) would be willing to take it (he has

[PATCH 0/2] powerpc: Early debug console configuration clean up

2013-04-28 Thread Alistair Popple
This patch series (based on v3.9) adds a configuration option to enable the use of BootX or OpenFirmware console for early debug console support. Previously the use of BootX/OpenFirmware as an early debug console was selected by CONFIG_BOOTX. However this left the ability to select a different ear

[PATCH 1/2] powerpc: Add a configuration option for early BootX/OpenFirmware debug

2013-04-28 Thread Alistair Popple
Signed-off-by: Alistair Popple --- arch/powerpc/Kconfig.debug |7 +++ arch/powerpc/kernel/udbg.c |2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 5416e28..e826853 100644 --- a/arch/powerpc

[PATCH 2/2] powerpc: Update default configurations

2013-04-28 Thread Alistair Popple
Update default configurations for systems with CONFIG_BOOTX_TEXT selected so that they continue to print early debug messages as is currently the case. Signed-off-by: Alistair Popple --- arch/powerpc/configs/c2k_defconfig|2 ++ arch/powerpc/configs/g5_defconfig |2 ++ arch

[PATCH] powerpc: Add an in memory udbg console

2013-04-28 Thread Alistair Popple
. Signed-off-by: Alistair Popple --- arch/powerpc/Kconfig.debug | 23 ++ arch/powerpc/include/asm/udbg.h|1 + arch/powerpc/kernel/udbg.c |3 ++ arch/powerpc/sysdev/Makefile |2 + arch/powerpc/sysdev/udbg_memcons.c | 85

[PATCH v2] powerpc: Add an in memory udbg console

2013-04-29 Thread Alistair Popple
. This version incorporates comments made by Ben H (thanks!). Changes from v1: - Add memory barriers. - Ensure updating of read/write positions is atomic. Signed-off-by: Alistair Popple --- arch/powerpc/Kconfig.debug | 23 arch/powerpc/include/asm/udbg.h|1

[PATCH] powerpc: Update currituck pci/usb fixup for new board revision

2013-05-08 Thread Alistair Popple
The currituck board uses a different IRQ for the pci usb host controller depending on the board revision. This patch adds support for newer board revisions by retrieving the board revision from the FPGA and mapping the appropriate IRQ. Signed-off-by: Alistair Popple --- arch/powerpc/boot/dts

Re: [PATCH] powerpc: Update currituck pci/usb fixup for new board revision

2013-05-08 Thread Alistair Popple
The currituck board uses a different IRQ for the pci usb host controller depending on the board revision. This patch adds support for newer board revisions by retrieving the board revision from the FPGA and mapping the appropriate IRQ. Signed-off-by: Alistair Popple --- Sorry - I had forgotten

[PATCH] powerpc/powernv: Bump opal_init initcall priority

2015-06-11 Thread Alistair Popple
q-0x9 to VIRQ17 mapping (rc=-22) pnv_eeh_post_init: Can't request OPAL event interrupt (0) This patch solves the issue by making sure opal_init is called prior to the subsystems that may need it. Signed-off-by: Alistair Popple Reported-by: Daniel Axtens --- Michael, This fixes a probl

Re: powerpc/powernv: Bump opal_init initcall priority

2015-06-14 Thread Alistair Popple
On Fri, 12 Jun 2015 19:47:35 Michael Ellerman wrote: > On Thu, 2015-11-06 at 09:25:29 UTC, Alistair Popple wrote: > > opal_init() is called via a machine_subsys_initcall(). Due to a hack > > in the eeh code the eeh driver is initialised with at the same > > initcall level. Th

[PATCH] powerpc/powernv: Increase opal-irqchip initcall priority

2015-06-16 Thread Alistair Popple
terrupt (0) On powernv eeh is initialised from a subsys_initcall due to a check for machine_is(powernv) in eeh_init(). This patch increases the initcall priority of opal_event_init() to an arch_initcall to ensure the opal event interface is initialised prior to any users of it. Signed-off-by:

[PATCH] opal-elog: Fix opal-elog interrupt handler

2015-07-03 Thread Alistair Popple
The conversion of opal events to a proper irqchip means that handlers are called until the relevant opal event has been cleared by processing it. Events that queue work should therefore use a threaded handler to mask the event until processing is complete. Signed-off-by: Alistair Popple

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Alistair Popple
be true (perhaps Gavin can confirm?) Would you mind trying the below patch and seeing if it fixes the problem? Thanks! -- >8 -- From 6eeed1d6dd25e8cf6bfe3423dc50ff855d1cbc42 Mon Sep 17 00:00:00 2001 From: Alistair Popple --- arch/powerpc/platforms/powernv/eeh-powernv.c | 2 +- 1 file changed,

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Alistair Popple
07-28 at 11:28 +1000, Gavin Shan wrote: > > On Tue, Jul 28, 2015 at 11:14:51AM +1000, Alistair Popple wrote: > > >Hi Daniel, > > > > > >I see the problem - pnv_eeh_next_error() re-enables the interrupt but it > > >gets > > >called from a loop if

Re: [PATCH] ipmi/powernv: Fix potential invalid pointer dereference

2015-07-28 Thread Alistair Popple
independent of each other so there's no ordering issues there. Reviewed-By: Alistair Popple On Tue, 28 Jul 2015 13:20:07 Neelesh Gupta wrote: > > On 07/17/2015 02:12 PM, Neelesh Gupta wrote: > > Hi Corey, > > > > On 07/16/2015 08:31 PM, Corey Minyard wrote: > >

[PATCH] powerpc/eeh-powernv: Fix unbalanced IRQ warning

2015-07-29 Thread Alistair Popple
processed. Tested-by: Daniel Axtens Reported-by: Daniel Axtens Signed-off-by: Alistair Popple Acked-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-powernv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc

[PATCH 0/2] iommu: Support pages size other than 4K

2013-09-30 Thread Alistair Popple
This series of patches adds support for iommu page sizes other than 4K. Currently iommu page sizes are hardcoded to 4K. This series does not actually change the page size but adds support for doing so. It has been tested on a pSeries machine. Alistair Popple (2): iommu: Add support for iommu

[PATCH 1/2] iommu: Add support for iommu page sizes other than 4K

2013-09-30 Thread Alistair Popple
Currently the iommu uses hardcoded pages sizes of 4K even though some hardware supports other page sizes. This patch adds a field (it_page_shift) to struct iommu_table to support different page sizes and updates the generic iommu code to use that field. Signed-off-by: Alistair Popple --- arch

[PATCH 2/2] iommu: Update platform initialisation of iommu to use it_page_shift

2013-09-30 Thread Alistair Popple
This patch initialises the iommu page size used for vio, cell, powernv and pseries platforms to 4K. It has been boot tested on a pseries machine with vio. Signed-off-by: Alistair Popple --- arch/powerpc/kernel/vio.c | 20 +++- arch/powerpc/platforms/cell/iommu.c

Re: [PATCH 2/2] iommu: Update platform initialisation of iommu to use it_page_shift

2013-10-01 Thread Alistair Popple
On Tue, 1 Oct 2013 14:12:29 Michael Ellerman wrote: > On Tue, Oct 01, 2013 at 01:54:10PM +1000, Alistair Popple wrote: > > This patch initialises the iommu page size used for vio, cell, powernv > > and pseries platforms to 4K. It has been boot tested on a pseries > > machin

[PATCH] powerpc: Fix 64K page size support for PPC44x

2013-10-16 Thread Alistair Popple
wastage The above patch only implements the new layout for PPC64 so it doesn't compile for PPC32 with a 64K page size. Ideally we should implement the same layout for PPC32 however for the meantime this patch reverts the definition of pgtable_t for PPC32. Signed-off-by: Alistair Popple ---

Re: [PATCH] powerpc: Fix 64K page size support for PPC44x

2013-10-16 Thread Alistair Popple
On Thu, 17 Oct 2013 10:55:25 Aneesh Kumar K.V wrote: > Alistair Popple writes: > > diff --git a/arch/powerpc/include/asm/page.h > > b/arch/powerpc/include/asm/page.h index b9f4262..b142d58 100644 > > --- a/arch/powerpc/include/asm/page.h > > +++ b/arch/powerpc/inclu

[PATCH V2] powerpc: Fix 64K page size support for PPC44x

2013-10-16 Thread Alistair Popple
wastage The above patch only implements the new layout for PPC64 so it doesn't compile for PPC32 with a 64K page size. Ideally we should implement the same layout for PPC32 however for the meantime this patch reverts the definition of pgtable_t for PPC32. Signed-off-by: Alistair Popple ---

[PATCH 1/7] IBM Akebono: Add support to AHCI platform driver

2013-11-04 Thread Alistair Popple
The new IBM Akebono board has an AHCI compliant SATA controller. This patch adds a compatible property for the new board to the AHCI platform driver. Signed-off-by: Alistair Popple Cc: linux-...@vger.kernel.org --- drivers/ata/ahci_platform.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/7] IBM Akebono: Add a SDHCI platform driver

2013-11-04 Thread Alistair Popple
This patch adds a SDHCI platform driver for the new IBM Akebono board. Signed-off-by: Alistair Popple Cc: Chris Ball Cc: linux-...@vger.kernel.org --- drivers/mmc/host/Kconfig| 12 +++ drivers/mmc/host/Makefile |1 + drivers/mmc/host/sdhci-of-akebono.c | 60

[PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-04 Thread Alistair Popple
The IBM Akebono board uses a different ethernet PHY that has wake on lan (WOL) support with the IBM emac. This patch adds suppot to the IBM emac driver for this new PHY. At this stage the wake on lan functionality has not been implemented. Signed-off-by: Alistair Popple Cc: "David S. M

[PATCH 4/7] IBM Akebono: Add support to the OHCI platform driver for Akebono

2013-11-04 Thread Alistair Popple
data is present. This is similar to what is currently done in ehci-platform.c. Signed-off-by: Alistair Popple Cc: Alan Stern Cc: linux-...@vger.kernel.org --- drivers/usb/host/ohci-platform.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers/usb

[PATCH 5/7] IBM Akebono: Add support to the EHCI platform driver for Akebono

2013-11-04 Thread Alistair Popple
The IBM Akebono board has an EHCI compliant USB host interface. This patch adds support for it to the EHCI platform driver. Signed-off-by: Alistair Popple Cc: Alan Stern Cc: linux-...@vger.kernel.org --- drivers/usb/host/ehci-platform.c |5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH 7/7] IBM Akebono: Add the Akebono platform

2013-11-04 Thread Alistair Popple
This patch adds support for the IBM Akebono board. Signed-off-by: Alistair Popple --- .../devicetree/bindings/powerpc/4xx/akebono.txt| 76 arch/powerpc/boot/Makefile |3 + arch/powerpc/boot/dcr.h|2 + arch/powerpc/boot/dts

[PATCH 6/7] IBM Currituck: Clean up board specific code before adding Akebono code

2013-11-04 Thread Alistair Popple
The IBM Akebono code uses the same initialisation functions as the earlier Currituck board. Rather than create a copy of this code for Akebono we will instead integrate support for it into the same file as the Currituck code. This patch simply renames the file. Signed-off-by: Alistair Popple

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Alistair Popple
On Tue, 5 Nov 2013 10:47:22 Florian Fainelli wrote: > [snip] > > > +/* RGMII bridge supports only GMII/TBI and RGMII/RTBI PHYs */ > > +static inline int rgmii_valid_mode(int phy_mode) > > +{ > > + return phy_mode == PHY_MODE_GMII || > > + phy_mode == PHY_MODE_MII || > > +

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Alistair Popple
On Tue, 5 Nov 2013 23:11:50 Ben Hutchings wrote: > On Wed, 2013-11-06 at 06:54 +1100, Benjamin Herrenschmidt wrote: [snip] > > It's an SoC bit so there's little point making it generally > > selectable by the user. > > I think a better way to do this is: > > config IBM_EMAC_RGMII_WOL > bo

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Alistair Popple
On Tue, 5 Nov 2013 16:16:08 Florian Fainelli wrote: [snip] > 2013/11/5 Alistair Popple : > >> Any reasons why you are duplicating what is available in > >> drivers/of/of_net.c ::of_get_phy_mode()? > > > > Unless I'm missing something of_get_phy_mode() is go

Re: [PATCH 5/7] IBM Akebono: Add support to the EHCI platform driver for Akebono

2013-11-05 Thread Alistair Popple
On Wed, 6 Nov 2013 06:52:13 Benjamin Herrenschmidt wrote: [snip] > > Why ? Do we need to add an entry for every platform in there ? Besides, > it probably should be the SoC name not the platform here > > Why not simply a generic compatible "usb-ehci" ? It's a standard > programming interfac

[RFC PATCH] ehci-platform: Merge ppc-of EHCI driver into the ehci-platform driver

2013-11-05 Thread Alistair Popple
r is renamed to ehci-440epx as it contains platform specific work arounds for the 440EPX SoC. Signed-off-by: Alistair Popple --- So I could submit something like this that essentially merges the ppc-of driver into the platform driver instead of adding the "ibm,akebono-ehci" compatib

Re: [RFC PATCH] ehci-platform: Merge ppc-of EHCI driver into the ehci-platform driver

2013-11-06 Thread Alistair Popple
On Wed, 6 Nov 2013 11:14:44 Alan Stern wrote: > On Wed, 6 Nov 2013, Alistair Popple wrote: [snip] > > + /* Initialise platform data from device tree if available. */ > > + if (!dn) { > > Shouldn't this be "if (dn)"? Yep. Thanks. > > +

Re: [RFC PATCH] ehci-platform: Merge ppc-of EHCI driver into the ehci-platform driver

2013-11-06 Thread Alistair Popple
On Thu, 7 Nov 2013 06:57:00 Benjamin Herrenschmidt wrote: > On Wed, 2013-11-06 at 18:39 +1100, Alistair Popple wrote: [snip] > > I would go even further and add the 44x workarounds to the normal > platform device, with a compatible check in there. That isn't the > first time

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-06 Thread Alistair Popple
On Wed, 6 Nov 2013 16:40:10 Ben Hutchings wrote: > On Wed, 2013-11-06 at 12:34 +1100, Alistair Popple wrote: > > On Tue, 5 Nov 2013 23:11:50 Ben Hutchings wrote: > > > On Wed, 2013-11-06 at 06:54 +1100, Benjamin Herrenschmidt wrote: > > [snip] > > > > > &g

Re: [PATCH 4/7] IBM Akebono: Add support to the OHCI platform driver for Akebono

2013-11-06 Thread Alistair Popple
On Tue, 5 Nov 2013 10:04:02 Alan Stern wrote: [snip] > > > > + /* Platforms using DT don't always provide platform data. > > +* This should provide reasonable defaults. */ > > /* >* The accepted format for multi-line >* comments is like this. >*/ > Ok, I'll

[PATCH 0/3] powerpc iommu: Remove hardcoded page sizes

2013-11-10 Thread Alistair Popple
This patch series replaces the hardcoded iommu page sizes used by the iommu backend with a dynamic page size initialised by each platform. This will make it easier to use iommu page sizes other than 4K. The series doesn't actually change the iommu page size as each platform continues to initialis

[PATCH 1/3] powerpc iommu: Update constant names to reflect their hardcoded page size

2013-11-10 Thread Alistair Popple
The powerpc iommu uses a hardcoded page size of 4K. This patch changes the name of the IOMMU_PAGE_* macros to reflect the hardcoded values. A future patch will use the existing names to support dynamic page sizes. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h | 10

[PATCH 2/3] powerpc iommu: Add it_page_shift field to determine iommu page size

2013-11-10 Thread Alistair Popple
This patch adds a it_page_shift field to struct iommu_table and initiliases it to 4K for all platforms. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h |1 + arch/powerpc/kernel/vio.c |5 +++-- arch/powerpc/platforms/cell/iommu.c| 14

[PATCH 3/3] powerpc iommu: Update the generic code to use dynamic iommu page sizes

2013-11-10 Thread Alistair Popple
This patch updates the generic iommu backend code to use the it_page_shift field to determine the iommu page size instead of using hardcoded values. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h | 19 +--- arch/powerpc/kernel/dma-iommu.c|4 +- arch/powerpc

[PATCH] powerpc: Fix audit crash due to save/restore PPR changes

2013-04-14 Thread Alistair Popple
Myneni powerpc: Implement PPR save/restore It was found this patch corrupted r9 when calling SET_DEFAULT_THREAD_PPR() Using r10 as a scratch register instead of r9 solved the problem. Signed-off-by: Alistair Popple Acked-by: Michael Neuling --- diff --git a/arch/powerpc/kernel/entry_64.S b/arch

[PATCH] Make CONFIG_BOOTX an exclusive early debug option

2013-04-23 Thread Alistair Popple
ootX console will be used. However if both CONFIG_BOOTX_TEXT and CONFIG_PPC_EARLY_DEBUG_PS3GELIC are selected then the latter will be used. Signed-off-by: Alistair Popple --- diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 5416e28..659120c 100644 --- a/arch/powerpc/Kcon

Re: [4/5] IBM Akebono: Add the Akebono platform

2014-05-01 Thread Alistair Popple
Paul, On Thu, 1 May 2014 11:27:27 Paul Bolle wrote: > On Thu, 2014-03-06 at 14:52 +1100, Alistair Popple wrote: [...] > > This patch adds support for the IBM Akebono board. > > + select IBM_EMAC_RGMII_WOL > > The patch that added this symbol (and the related driver) was

Re: [PATCH 2/5 V2] IBM Akebono: Add support for a new PHY interface to the IBM emac driver

2014-05-01 Thread Alistair Popple
take this through his tree (with your Ack)? Regards, Alistair On Tue, 11 Mar 2014 11:44:33 Alistair Popple wrote: > The IBM PPC476GTR SoC that is used on the Akebono board uses a > different ethernet PHY interface that has wake on lan (WOL) support > with the IBM emac. This patch adds

[PATCH] IBM Akebono: Remove obsolete config select

2014-05-02 Thread Alistair Popple
the obsolete symbol selection. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/44x/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig index 8beec7d..908bf11 100644 --- a/arch/powerpc/platforms/44x/Kconfig

Re: [PATCH] IBM Akebono: Remove obsolete config select

2014-06-19 Thread Alistair Popple
Hi Ben, It looks like we may have missed this trivial fix? Can you please apply it to your tree? Regards, Alistair On Fri, 13 Jun 2014 13:56:32 Paul Bolle wrote: > On Fri, 2014-05-02 at 18:06 +1000, Alistair Popple wrote: > > The original implementation of MMC support for Akebono int

[PATCH] powerpc/ppc476: Disable BTAC

2014-08-06 Thread Alistair Popple
This patch disables the branch target address CAM which under specific circumstances may cause the processor to skip execution of 1-4 instructions. This fixes IBM Erratum #47. Signed-off-by: Alistair Popple --- arch/powerpc/kernel/head_44x.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH] powerpc: Don't use ELFv2 ABI to build the kernel

2013-11-17 Thread Alistair Popple
The kernel doesn't build correctly using the ELFv2 ABI. This patch ensures that the ELFv1 ABI is used when building a kernel with an ELFv2 enabled compiler. Signed-off-by: Alistair Popple --- arch/powerpc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Makefile b

Re: [PATCH] powerpc: Don't use ELFv2 ABI to build the kernel

2013-11-18 Thread Alistair Popple
On Mon, 18 Nov 2013 13:29:25 Scott Wood wrote: > On Mon, 2013-11-18 at 17:21 +1100, Alistair Popple wrote: [snip] > > How hard would it be to get the kernel to work with the new ABI? We are preparing patches at the moment to allow the kernel to support a userspace compiled with th

Re: [PATCH] powerpc: Don't use ELFv2 ABI to build the kernel

2013-11-18 Thread Alistair Popple
On Tue, 19 Nov 2013 14:25:53 Michael Ellerman wrote: > On Mon, Nov 18, 2013 at 05:21:34PM +1100, Alistair Popple wrote: > > The kernel doesn't build correctly using the ELFv2 ABI. This patch > > ensures that the ELFv1 ABI is used when building a kernel with an > > ELFv2

[PATCH 1/8] IBM Akebono: Add support to AHCI platform driver

2013-11-21 Thread Alistair Popple
The new IBM Akebono board has a PPC476GTR SoC with an AHCI compliant SATA controller. This patch adds a compatible property for the new SoC to the AHCI platform driver. Signed-off-by: Alistair Popple Cc: linux-...@vger.kernel.org --- drivers/ata/ahci_platform.c |1 + 1 file changed, 1

[PATCH 0/8] IBM Akebono/PPC476GTR Support

2013-11-21 Thread Alistair Popple
via the HSTA module. Alistair Popple (8): IBM Akebono: Add support to AHCI platform driver IBM Akebono: Add a SDHCI platform driver IBM Akebono: Add support for a new PHY interface to the IBM emac driver IBM Akebono: Add support to the OHCI platform driver for PPC476GTR ECHI Platform

[PATCH 2/8] IBM Akebono: Add a SDHCI platform driver

2013-11-21 Thread Alistair Popple
This patch adds a SDHCI platform driver for the new IBM PPC476GTR SoC which is on the Akebono board. Signed-off-by: Alistair Popple Cc: Chris Ball Cc: linux-...@vger.kernel.org --- drivers/mmc/host/Kconfig | 12 drivers/mmc/host/Makefile |1 + drivers/mmc/host

[PATCH 3/8] IBM Akebono: Add support for a new PHY interface to the IBM emac driver

2013-11-21 Thread Alistair Popple
. Signed-off-by: Alistair Popple Cc: "David S. Miller" Cc: net...@vger.kernel.org --- .../devicetree/bindings/powerpc/4xx/emac.txt |9 + drivers/net/ethernet/ibm/emac/Kconfig |4 + drivers/net/ethernet/ibm/emac/Makefile |1 + drivers/net/etherne

[PATCH 4/8] IBM Akebono: Add support to the OHCI platform driver for PPC476GTR

2013-11-21 Thread Alistair Popple
reasonable defaults if no platform data is present. This is similar to what is currently done in ehci-platform.c. Signed-off-by: Alistair Popple Acked-by: Alan Stern Cc: linux-...@vger.kernel.org --- drivers/usb/host/ohci-platform.c | 22 +- 1 file changed, 17 insertions(+), 5

[PATCH 5/8] ECHI Platform: Merge ppc-of EHCI driver into the ehci-platform driver

2013-11-21 Thread Alistair Popple
iver is removed and the 440EPX specific quirks are added to the ehci-platform driver. Signed-off-by: Alistair Popple --- drivers/usb/host/Kconfig |7 +- drivers/usb/host/ehci-hcd.c |5 - drivers/usb/host/ehci-platform.c | 86 +- drivers/u

[PATCH 6/8] IBM Currituck: Clean up board specific code before adding Akebono code

2013-11-21 Thread Alistair Popple
code to use a more generic name. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/44x/Kconfig |4 +- arch/powerpc/platforms/44x/Makefile|2 +- arch/powerpc/platforms/44x/currituck.c | 233 arch/powerpc/platforms/44x/ppc476.c| 233

[PATCH 8/8] powerpc: Added PCI MSI support using the HSTA module

2013-11-21 Thread Alistair Popple
allow PCI devices write access to the HSTA module. Signed-off-by: Alistair Popple --- arch/powerpc/boot/dts/akebono.dts | 46 +- arch/powerpc/platforms/44x/Kconfig|2 + arch/powerpc/sysdev/Kconfig |6 + arch/powerpc/sysdev/Makefile |1 + arch/powerpc

[PATCH 7/8] IBM Akebono: Add the Akebono platform

2013-11-21 Thread Alistair Popple
This patch adds support for the IBM Akebono board. Signed-off-by: Alistair Popple --- .../devicetree/bindings/powerpc/4xx/akebono.txt| 54 +++ arch/powerpc/boot/Makefile |3 + arch/powerpc/boot/dcr.h|4 + arch/powerpc/boot/dts

[PATCH V2 0/3] powerpc iommu: Remove hardcoded page sizes

2013-12-08 Thread Alistair Popple
The series doesn't actually change the iommu page size as each platform continues to initialise the iommu page size to a hardcoded value of 4K. At this stage testing has only been carried out on a pSeries machine, other platforms including cell have yet to be tested. Changes from V1: * Rebased

[PATCH V2 1/3] powerpc iommu: Update constant names to reflect their hardcoded page size

2013-12-08 Thread Alistair Popple
The powerpc iommu uses a hardcoded page size of 4K. This patch changes the name of the IOMMU_PAGE_* macros to reflect the hardcoded values. A future patch will use the existing names to support dynamic page sizes. Signed-off-by: Alistair Popple Signed-off-by: Alexey Kardashevskiy --- arch

[PATCH V2 2/3] powerpc iommu: Add it_page_shift field to determine iommu page size

2013-12-08 Thread Alistair Popple
This patch adds a it_page_shift field to struct iommu_table and initiliases it to 4K for all platforms. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h |1 + arch/powerpc/kernel/vio.c |5 +++-- arch/powerpc/platforms/cell/iommu.c|8

[PATCH V2 3/3] powerpc iommu: Update the generic code to use dynamic iommu page sizes

2013-12-08 Thread Alistair Popple
This patch updates the generic iommu backend code to use the it_page_shift field to determine the iommu page size instead of using hardcoded values. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h | 19 +--- arch/powerpc/kernel/dma-iommu.c |4 +- arch

Re: [PATCH 2/8] IBM Akebono: Add a SDHCI platform driver

2013-12-16 Thread Alistair Popple
Popple wrote: > This patch adds a SDHCI platform driver for the new IBM PPC476GTR SoC > which is on the Akebono board. > > Signed-off-by: Alistair Popple > Cc: Chris Ball > Cc: linux-...@vger.kernel.org > --- > drivers/mmc/host/Kconfig | 12 >

  1   2   3   4   5   6   7   >