Re: [RFC PATCH 14/17] powerpc/book3e-64/kexec: Enable SMP release

2015-08-19 Thread Michael Ellerman
Hi Scott, Sorry for the delay. So I'm back to square one on this patch. On Sat, 2015-07-18 at 15:08 -0500, Scott Wood wrote: > booted_from_exec is similar to __run_at_load, except that it is set for > regular kexec as well as kdump. > > The flag is needed because the SMP release mechanism for FS

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-19 Thread Michael Ellerman
On Thu, 2015-08-20 at 11:40 +1000, Michael Ellerman wrote: > On Wed, 2015-08-19 at 23:53 +0200, Laurent Dufour wrote: > > On 04/08/2015 02:51, Michael Ellerman wrote: > > > On Fri, 2015-07-31 at 11:29 +0200, Laurent Dufour wrote: > > >> This patch fixes several endianness issues detected when runni

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-19 Thread Michael Ellerman
On Wed, 2015-08-19 at 23:53 +0200, Laurent Dufour wrote: > On 04/08/2015 02:51, Michael Ellerman wrote: > > On Fri, 2015-07-31 at 11:29 +0200, Laurent Dufour wrote: > >> This patch fixes several endianness issues detected when running the HVSI > >> driver in little endian mode. > >> > >> These issu

Re: provide more common DMA API functions V2

2015-08-19 Thread Michael Ellerman
On Thu, 2015-08-20 at 09:52 +1000, Stephen Rothwell wrote: > Hi Andrew (sorry, I can't tell who made the incorrect statement below > that I am replying to), > > On Wed, 19 Aug 2015 14:36:56 -0700 Andrew Morton > wrote: > > > > On Wed, 19 Aug 2015 10:08:14 +0200 Christoph Hellwig wrote: > > > >

Re: [1/1] powerpc/xmon: Paged output for paca display

2015-08-19 Thread Michael Ellerman
On Thu, 2015-08-20 at 10:42 +1000, Sam Bobroff wrote: > On Tue, Aug 18, 2015 at 04:26:32PM +1000, Michael Ellerman wrote: > > On Fri, 2015-14-08 at 02:55:14 UTC, Sam bobroff wrote: > > > The paca display is already more than 24 lines, which can be problematic > > > if you have an old school 80x24 t

Re: [PATCH v2 1/2] PCI: Make pci_msi_setup_pci_dev() non-static for use by arch code

2015-08-19 Thread Michael Ellerman
On Wed, 2015-08-19 at 15:45 -0300, Guilherme G. Piccoli wrote: > Thanks very much for your suggestions Michael. I agree with them all, > so I'm sending the patch v2 (see below). > > About the relevant mailing lists, I already sent to the linux-pci and > already cc'ed Bjorn Helgaas - the problem is

Re: [1/1] powerpc/xmon: Paged output for paca display

2015-08-19 Thread Sam Bobroff
On Tue, Aug 18, 2015 at 04:26:32PM +1000, Michael Ellerman wrote: > On Fri, 2015-14-08 at 02:55:14 UTC, Sam bobroff wrote: > > The paca display is already more than 24 lines, which can be problematic > > if you have an old school 80x24 terminal, or more likely you are on a > > virtual terminal whic

Re: provide more common DMA API functions V2

2015-08-19 Thread Stephen Rothwell
Hi Andrew (sorry, I can't tell who made the incorrect statement below that I am replying to), On Wed, 19 Aug 2015 14:36:56 -0700 Andrew Morton wrote: > > On Wed, 19 Aug 2015 10:08:14 +0200 Christoph Hellwig wrote: > > > On Tue, Aug 18, 2015 at 09:51:07AM +0200, Ingo Molnar wrote: > > > I.e. sh

Re: Ping Re: [PATCH 0/8] math-emu: Update kernel math-emu code from current glibc soft-fp

2015-08-19 Thread Michael Ellerman
On Wed, 2015-08-19 at 14:39 +, Joseph Myers wrote: > I'd like to ping this patch series, not having seen any comments on it. > > [PATCH 0/8] math-emu: Update kernel math-emu code from current glibc soft-fp > https://lkml.org/lkml/2015/7/2/394 > > [PATCH 1/8] math-emu: Move math-emu to math-em

Re: [05/31] arch/powerpc/nvram: use kmemdup rather than duplicating its implementation

2015-08-19 Thread Michael Ellerman
On Fri, 2015-07-08 at 07:59:11 UTC, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > Reviewed-by: Nathan Fontenot App

Re: [RESEND] powerpc/configs: enable RTC class support

2015-08-19 Thread Michael Ellerman
On Fri, 2015-03-07 at 05:11:20 UTC, Vaibhav Jain wrote: > A working rtc kernel driver is needed so that hwclock can synchronize > system clock to rtc during shutdown/boot. We already have a powernv > platform rtc driver located at drivers/rtc/rtc-opal.c. However it depends > on CONFIG_RTC_CLASS whi

Re: cxl: Add alternate MMIO error handling

2015-08-19 Thread Michael Ellerman
On Thu, 2015-23-07 at 06:43:56 UTC, Ian Munsie wrote: > From: Ian Munsie > > userspace programs using cxl currently have to use two strategies for > dealing with MMIO errors simultaneously. They have to check every read > for a return of all Fs in case the adapter has gone away and the kernel > h

Re: powerpc: Export include/uapi/asm/eeh.h

2015-08-19 Thread Michael Ellerman
On Tue, 2015-18-08 at 00:57:40 UTC, Gavin Shan wrote: > This adds include/uapi/asm/eeh.h to kbuild so that the header > file will be exported automatically with below command. The > header file was added by commit ed3e81f ("powerpc/eeh: Move PE > state constants around") > >make INSTALL_HDR_PA

Re: [v1,1/1] mpc512x: silence a USB Kconfig dependency warning

2015-08-19 Thread Michael Ellerman
On Mon, 2013-03-06 at 11:18:06 UTC, Gerhard Sittig wrote: > the PPC_MPC512x config automatically selected USB_EHCI_BIG_ENDIAN_* > switches, which made Kconfig warn about "unmet direct dependencies": > > scripts/kconfig/conf --silentoldconfig Kconfig > warning: (PPC_MPC512x && 440EPX) selects U

Re: [1/5] powerpc/mm: Fix pte_pagesize_index() crash on 4K w/64K hash

2015-08-19 Thread Michael Ellerman
On Fri, 2015-07-08 at 06:19:43 UTC, Michael Ellerman wrote: > The powerpc kernel can be built to have either a 4K PAGE_SIZE or a 64K > PAGE_SIZE. ... > This fix is ugly, but simple. When we're called for a kernel address we > return 4K, which is always correct in this configuration, otherwise we >

Re: powerpc/powernv: move dma_get_required_mask from pnv_phb to pci_controller_ops

2015-08-19 Thread Michael Ellerman
On Fri, 2015-07-08 at 03:45:54 UTC, Andrew Donnellan wrote: > Simplify the dma_get_required_mask call chain by moving it from pnv_phb to > pci_controller_ops, similar to commit 763d2d8df1ee2b92ff09c > ("powerpc/powernv: Move dma_set_mask from pnv_phb to pci_controller_ops"). > > Previous call chai

Re: nvram: print no error message when nvram is not set as pstore backend

2015-08-19 Thread Michael Ellerman
On Mon, 2015-11-05 at 08:23:43 UTC, Hari Bathini wrote: > Pstore only supports one backend at a time. The preferred > pstore backend is set by passing the pstore.backend= > argument to the kernel at boot time. Currently, while trying > to register with pstore, nvram throws an error message even > w

Re: powerpc/eeh: Disable automatically blocked PCI config

2015-08-19 Thread Michael Ellerman
On Wed, 2015-29-07 at 23:26:51 UTC, Gavin Shan wrote: > pcibios_set_pcie_reset_state() could be called to complete > reset request when passing through PCI device, flag > EEH_PE_ISOLATED is set before saving the PCI config sapce. > On some Broadcom adapters, EEH_PE_CFG_BLOCKED is automatically > se

Re: [06/31] arch/powerpc/pseries: use kmemdup rather than duplicating its implementation

2015-08-19 Thread Michael Ellerman
On Fri, 2015-07-08 at 07:59:12 UTC, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > Reviewed-by: Nathan Fontenot App

Re: [RESEND] powerpc/numa: initialize distance lookup table from drconf path

2015-08-19 Thread Michael Ellerman
On Thu, 2015-02-07 at 05:39:01 UTC, Nikunj A Dadhania wrote: > In some situations, a NUMA guest that supports > ibm,dynamic-memory-reconfiguration node will end up having flat NUMA > distances between nodes. This is because of two problems in the > current code. > > 1) Different representations of

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-19 Thread Laurent Dufour
On 04/08/2015 02:51, Michael Ellerman wrote: > On Fri, 2015-07-31 at 11:29 +0200, Laurent Dufour wrote: >> This patch fixes several endianness issues detected when running the HVSI >> driver in little endian mode. >> >> These issues are raised in little endian mode because the data exchanged in >>

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-19 Thread Benjamin Herrenschmidt
On Wed, 2015-08-19 at 23:37 +0200, Laurent Dufour wrote: > On 03/08/2015 13:00, David Laight wrote: From: Laurent Dufour > > > Sent: 31 July 2015 10:30 > > > This patch fixes several endianness issues detected when running > > > the HVSI > > > driver in little endian mode. > > > > > > These issues

[PATCH v2 0/5] drivers/tty: make more bool drivers explicitly non-modular

2015-08-19 Thread Paul Gortmaker
[v2: drop dead module code removal from 8250_lpc18xx.c ; instead convert it from bool to tristate ; also add ack to hvc_console commit.] This second set of patches to drivers/tty steps outside of the serial dir, and an improved auditing finds two more serial drivers pretending to be modular that

[PATCH 3/5] drivers/tty: make hvc_console.c explicitly non-modular

2015-08-19 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/hvc/Kconfig:config HVC_DRIVER drivers/tty/hvc/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-19 Thread Laurent Dufour
On 03/08/2015 13:00, David Laight wrote: > From: Laurent Dufour >> Sent: 31 July 2015 10:30 >> This patch fixes several endianness issues detected when running the HVSI >> driver in little endian mode. >> >> These issues are raised in little endian mode because the data exchanged in >> memory betwe

Re: provide more common DMA API functions V2

2015-08-19 Thread Andrew Morton
On Wed, 19 Aug 2015 10:08:14 +0200 Christoph Hellwig wrote: > On Tue, Aug 18, 2015 at 09:51:07AM +0200, Ingo Molnar wrote: > > I.e. shouldn't this be: > > > > > I'll merge these 5 patches for 4.4. That means I'll release them into > > > linux-next after 4.2 is released. > > > > > > [...] > > >

Re: [PATCH 1/2] powerpc/qman: Change fsl,qman-channel-id to cell-index

2015-08-19 Thread Scott Wood
On Wed, Aug 19, 2015 at 03:52:55PM -0500, Pledge Roy-R01356 wrote: > Sorry for digging up an old thread here Scott, but we never did close on this > discussion. See my replies inline below > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Tuesday, May 12, 2015 6:46 PM >

RE: [PATCH 1/2] powerpc/qman: Change fsl,qman-channel-id to cell-index

2015-08-19 Thread Roy Pledge
Sorry for digging up an old thread here Scott, but we never did close on this discussion. See my replies inline below > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, May 12, 2015 6:46 PM > To: Pledge Roy-R01356 > Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kern

[PATCH v2 2/2] powerpc/PCI: Disable MSI/MSI-X interrupts at PCI probe time in OF case

2015-08-19 Thread Guilherme G. Piccoli
Changes since v2: * Added "Fixes" line * Improved commit reference by using 12 first chars of SHA >8--8< Since the commit 1851617cd2da ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI"), MSI/MSI-X interrupts aren't being disabled at PCI probe time, as the logic r

[PATCH v2 1/2] PCI: Make pci_msi_setup_pci_dev() non-static for use by arch code

2015-08-19 Thread Guilherme G. Piccoli
Thanks very much for your suggestions Michael. I agree with them all, so I'm sending the patch v2 (see below). About the relevant mailing lists, I already sent to the linux-pci and already cc'ed Bjorn Helgaas - the problem is that I made a mistake and sent 2 different emails using git send-email.

[PATCH v10 2/3] powerpc/powernv: Create LED platform device

2015-08-19 Thread Vasant Hegde
This patch adds platform devices for leds. Also export LED related OPAL API's so that led driver can use these APIs. Signed-off-by: Vasant Hegde Acked-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/opal.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --

[PATCH v10 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
This patch implements LED driver for PowerNV platform using the existing generic LED class framework. PowerNV platform has below type of LEDs: - System attention Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a particula

[PATCH v10 1/3] powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states

2015-08-19 Thread Vasant Hegde
From: Anshuman Khandual This patch registers the following two new OPAL interfaces calls for the platform LED subsystem. With the help of these new OPAL calls, the kernel will be able to get or set the state of various individual LEDs on the system at any given location code which is passed throu

[PATCH v10 0/3] LED driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
The following series implements LED driver for PowerNV platform. PowerNV platform has below type of LEDs: - System attention Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a particular FRU or resource in the system

Re: [PATCH v9 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
On 08/19/2015 06:08 PM, Jacek Anaszewski wrote: > Hi Vasant, Hello Jacek, > > I've found two superfluous lines. Please find my remarks below. Thanks for the review. I will fix both issues and will send v10 soon. -Vasant ___ Linuxppc-dev mailing list

Ping Re: [PATCH 0/8] math-emu: Update kernel math-emu code from current glibc soft-fp

2015-08-19 Thread Joseph Myers
I'd like to ping this patch series, not having seen any comments on it. [PATCH 0/8] math-emu: Update kernel math-emu code from current glibc soft-fp https://lkml.org/lkml/2015/7/2/394 [PATCH 1/8] math-emu: Move math-emu to math-emu-old https://lkml.org/lkml/2015/7/2/395 [PATCH 2/8] math-emu: Imp

Re: [V3] powerpc/irq: Enable some more exceptions in /proc/interrupts interface

2015-08-19 Thread Anshuman Khandual
On 08/14/2015 08:22 AM, Michael Ellerman wrote: > On Thu, 2015-08-06 at 18:54 +0530, Anshuman Khandual wrote: >> On 08/04/2015 03:27 PM, Michael Ellerman wrote: >>> On Mon, 2015-13-07 at 08:16:06 UTC, Anshuman Khandual wrote: This patch enables facility unavailable exceptions for generic facil

Re: [PATCH v9 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Jacek Anaszewski
Hi Vasant, I've found two superfluous lines. Please find my remarks below. On 08/19/2015 12:41 PM, Vasant Hegde wrote: This patch implements LED driver for PowerNV platform using the existing generic LED class framework. PowerNV platform has below type of LEDs: - System attention Ind

Re: [PATCH v8 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
On 08/19/2015 05:24 PM, Jacek Anaszewski wrote: > Hi Vasant, > > On 07/28/2015 07:40 PM, Jacek Anaszewski wrote: >> Vasant, >> >>> Without my core changes your driver won't work with led triggers, but AFAIR this use case is not relevant for your LEDs? Eventually, we could produ

Re: [PATCH v8 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Jacek Anaszewski
Hi Vasant, On 07/28/2015 07:40 PM, Jacek Anaszewski wrote: Vasant, On 28.07.2015 15:40, Vasant Hegde wrote: On 07/27/2015 03:20 PM, Jacek Anaszewski wrote: Hi Vasant, On 27.07.2015 05:41, Vasant Hegde wrote: On 07/27/2015 03:11 AM, Jacek Anaszewski wrote: Hi Vasant, Hi Jacek, Two triv

[PATCH v9 1/3] powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states

2015-08-19 Thread Vasant Hegde
From: Anshuman Khandual This patch registers the following two new OPAL interfaces calls for the platform LED subsystem. With the help of these new OPAL calls, the kernel will be able to get or set the state of various individual LEDs on the system at any given location code which is passed throu

[PATCH v9 3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
This patch implements LED driver for PowerNV platform using the existing generic LED class framework. PowerNV platform has below type of LEDs: - System attention Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a particula

[PATCH v9 0/3] LED driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
The following series implements LED driver for PowerNV platform. PowerNV platform has below type of LEDs: - System attention Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a particular FRU or resource in the system

[PATCH v9 2/3] powerpc/powernv: Create LED platform device

2015-08-19 Thread Vasant Hegde
This patch adds platform devices for leds. Also export LED related OPAL API's so that led driver can use these APIs. Signed-off-by: Vasant Hegde Acked-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/opal.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --

Re: [v8,3/3] leds/powernv: Add driver for PowerNV platform

2015-08-19 Thread Vasant Hegde
On 08/18/2015 03:51 PM, Michael Ellerman wrote: > On Sat, 2015-25-07 at 05:21:10 UTC, Vasant Hegde wrote: >> This patch implements LED driver for PowerNV platform using the existing >> generic LED class framework. >> >> PowerNV platform has below type of LEDs: >> - System attention >> Indic

Re: provide more common DMA API functions V2

2015-08-19 Thread Christoph Hellwig
On Tue, Aug 18, 2015 at 09:51:07AM +0200, Ingo Molnar wrote: > I.e. shouldn't this be: > > > I'll merge these 5 patches for 4.4. That means I'll release them into > > linux-next after 4.2 is released. > > > > [...] > > > > Linus will be releasing 4.2 in 1-2 weeks and until then, linux-next is

Re: [05/27] macintosh: therm_windtunnel: Export I2C module alias information

2015-08-19 Thread Javier Martinez Canillas
Hello Michael, On 08/19/2015 02:51 AM, Michael Ellerman wrote: > On Tue, 2015-08-18 at 12:35 +0200, Javier Martinez Canillas wrote: >> Hello Michael, >> >> On 08/18/2015 12:24 PM, Michael Ellerman wrote: >>> On Thu, 2015-30-07 at 16:18:30 UTC, Javier Martinez Canillas wrote: The I2C core alwa

Re: [PATCH 1/2] cxl: Add mechanism for delivering AFU driver specific events

2015-08-19 Thread Ian Munsie
Excerpts from Michael Ellerman's message of 2015-08-19 15:30:46 +1000: > On Wed, 2015-08-19 at 14:19 +1000, Ian Munsie wrote: > > From: Ian Munsie > > > > This adds an afu_driver_ops structure with event_pending and > > deliver_event callbacks. An AFU driver can fill these out and associate > > i