Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-02 Thread Michael Ellerman
On Tue, Jul 02, 2013 at 07:30:37AM +0200, Thomas Petazzoni wrote: Dear Michael Ellerman, On Tue, 02 Jul 2013 10:53:16 +1000, Michael Ellerman wrote: On Mon, 2013-07-01 at 15:42 +0200, Thomas Petazzoni wrote: Until now, the MSI architecture-specific functions could be overloaded using a

Re: [PATCH v3 10/45] smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-07-02 Thread Michael Wang
Hi, Srivatsa On 06/28/2013 03:54 AM, Srivatsa S. Bhat wrote: [snip] @@ -625,8 +632,9 @@ EXPORT_SYMBOL(on_each_cpu_mask); * The function might sleep if the GFP flags indicates a non * atomic allocation is allowed. * - * Preemption is disabled to protect against CPUs going offline but

Re: Pull request: scottwood/linux.git next

2013-07-02 Thread Benjamin Herrenschmidt
On Mon, 2013-07-01 at 18:43 -0500, Scott Wood wrote: Note to contributors: This is only a fraction of the outstanding patches for FSL PPC. I haven't been able to process the entire backlog since starting to help Kumar with this a few weeks ago. If your patch is still action required in

Re: Please pull 'next' branch of 5xxx tree

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 00:36 +0200, Anatolij Gustschin wrote: Hi Ben ! Please pull mpc5xxx patches for v3.11. There are small cleanups and fixes for mpc512x common code, mpc512x_defconfig updates and soft reboot support for mpc5125 based boards. Looks like your server is down... Cheers,

Re: Please pull 'next' branch of 5xxx tree

2013-07-02 Thread Anatolij Gustschin
On Tue, 02 Jul 2013 17:46:01 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2013-07-02 at 00:36 +0200, Anatolij Gustschin wrote: Hi Ben ! Please pull mpc5xxx patches for v3.11. There are small cleanups and fixes for mpc512x common code, mpc512x_defconfig updates

RE: [PATCH] DTS: Add compatible list for eSDHC

2013-07-02 Thread Zhang Haijun-B42677
Regards Haijun. -Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 02, 2013 8:05 AM To: Zhang Haijun-B42677 Cc: ga...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org; Zhang Haijun-B42677; Fleming Andy-AFLEMING Subject: Re: [PATCH] DTS: Add compatible list for

Re: [PATCH -V3 1/4] mm/cma: Move dma contiguous changes into a seperate config

2013-07-02 Thread Marek Szyprowski
Hello, On 7/2/2013 7:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We want to use CMA for allocating hash page table and real mode area for PPC64. Hence move DMA contiguous related changes into a seperate config so that ppc64 can enable CMA without

server mode on SMU based machines (Quad G5, iMac G5, ...)

2013-07-02 Thread Benjamin Herrenschmidt
People keep asking about it ... so I rewrote the tool I whipped up a while ago and lost :-) https://gate.crashing.org/~benh/smu_servermode.tar.bz2 It's pretty primitive. Run as root without arguments to query the current HW setting. Run with argument 0 or 1 to clear or set the server mode in the

Re: [PATCH v3 10/45] smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-07-02 Thread Srivatsa S. Bhat
Hi Michael, On 07/02/2013 11:02 AM, Michael Wang wrote: Hi, Srivatsa On 06/28/2013 03:54 AM, Srivatsa S. Bhat wrote: [snip] @@ -625,8 +632,9 @@ EXPORT_SYMBOL(on_each_cpu_mask); * The function might sleep if the GFP flags indicates a non * atomic allocation is allowed. * - *

Re: Please pull 'next' branch of 5xxx tree

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 10:00 +0200, Anatolij Gustschin wrote: On Tue, 02 Jul 2013 17:46:01 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2013-07-02 at 00:36 +0200, Anatolij Gustschin wrote: Hi Ben ! Please pull mpc5xxx patches for v3.11. There are small

Re: [PATCH v3 10/45] smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-07-02 Thread Michael Wang
On 07/02/2013 04:25 PM, Srivatsa S. Bhat wrote: Hi Michael, On 07/02/2013 11:02 AM, Michael Wang wrote: Hi, Srivatsa On 06/28/2013 03:54 AM, Srivatsa S. Bhat wrote: [snip] @@ -625,8 +632,9 @@ EXPORT_SYMBOL(on_each_cpu_mask); * The function might sleep if the GFP flags indicates a non

Re: [PATCH] Add hsize argument in write_buf call of pstore_ftrace_call

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 11:06 +0530, Aruna Balakrishnaiah wrote: Incorporate the addition of hsize argument in write_buf callback of pstore. Thanks. I've added that to powerpc-next. It should hit Stephen tomorrow. Cheers, Ben. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com ---

Re: [PATCH v3 10/45] smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-07-02 Thread Srivatsa S. Bhat
On 07/02/2013 02:17 PM, Michael Wang wrote: On 07/02/2013 04:25 PM, Srivatsa S. Bhat wrote: Hi Michael, On 07/02/2013 11:02 AM, Michael Wang wrote: Hi, Srivatsa On 06/28/2013 03:54 AM, Srivatsa S. Bhat wrote: [snip] @@ -625,8 +632,9 @@ EXPORT_SYMBOL(on_each_cpu_mask); * The function

Re: [PATCH v3 10/45] smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-07-02 Thread Michael Wang
On 07/02/2013 05:51 PM, Srivatsa S. Bhat wrote: [snip] Well, as I said, its timing dependent. We might miss the newly onlined CPU in the for_each_online_cpu() loop itself, based on when exactly the CPU was added to the cpu_online_mask. So you can't exactly pin-point the places where you'll

Re: Please pull 'next' branch of 5xxx tree

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 10:00 +0200, Anatolij Gustschin wrote: On Tue, 02 Jul 2013 17:46:01 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2013-07-02 at 00:36 +0200, Anatolij Gustschin wrote: Hi Ben ! Please pull mpc5xxx patches for v3.11. There are small

Re: Please pull 'next' branch of 5xxx tree

2013-07-02 Thread Anatolij Gustschin
On Tue, 02 Jul 2013 20:29:02 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: ... The server should be up, a recent test pull succeeded here. Could you please try again? Just a fluke indeed, works now. Pulled pushed. Thanks! Cheers, Anatolij

[PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-02 Thread Laurentiu Tudor
At console init, when the kernel tries to flush the log buffer the ePAPR byte-channel based console write fails silently, losing the buffered messages. This happens because The ePAPR para-virtualization init isn't done early enough so that the hcall instruction to be set, causing the byte-channel

[PATCH 0/2] hvc_console: Add DTR/RTS callbacks to handle HUPCL conditions

2013-07-02 Thread Hendrik Brueckner
Hi folks, this series resolves an issue for hvc back-ends that transfer terminal data over an established communication path. The current implementation of the hvc_console layer notifies its back-ends for tty open, close, and hangups. However, there are conditions where the hangup-on-close

[PATCH 1/2] tty/hvc_console: Add DTR/RTS callback to handle HUPCL control

2013-07-02 Thread Hendrik Brueckner
Introduce a new callback to explicitly handle the HUPCL termios control flag. This prepares for a follow-up commit for the hvc_iucv device driver to improve handling when to drop an established network connection. The callback naming is based on the recently added tty_port interface to facilitate

[PATCH 2/2] tty/hvc_iucv: Disconnect IUCV connection when lowering DTR

2013-07-02 Thread Hendrik Brueckner
Implement the dtr_rts() hvc console callback to improve control when to disconnect the IUCV connection. Previously, the IUCV connection was disconnected during the notifier_del() callback, i.e., when the last file descriptor to the hvc terminal device was closed. Recent changes in login programs

Re: [PATCH -V3 2/4] powerpc/kvm: Contiguous memory allocator based hash page table allocation

2013-07-02 Thread Alexander Graf
On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Powerpc architecture uses a hash based page table mechanism for mapping virtual addresses to physical address. The architecture require this hash page table to be physically contiguous. With

Re: [PATCH -V3 3/4] powerpc/kvm: Contiguous memory allocator based RMA allocation

2013-07-02 Thread Alexander Graf
On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Older version of power architecture use Real Mode Offset register and Real Mode Limit Selector for mapping guest Real Mode Area. The guest RMA should be physically contigous since we use the

Re: [PATCH -V3 3/4] powerpc/kvm: Contiguous memory allocator based RMA allocation

2013-07-02 Thread Aneesh Kumar K.V
Alexander Graf ag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Older version of power architecture use Real Mode Offset register and Real Mode Limit Selector for mapping guest Real Mode Area. The guest RMA should

Re: [PATCH -V3 3/4] powerpc/kvm: Contiguous memory allocator based RMA allocation

2013-07-02 Thread Alexander Graf
On 07/02/2013 05:29 PM, Aneesh Kumar K.V wrote: Alexander Grafag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Older version of power architecture use Real Mode Offset register and Real Mode Limit Selector for

Re: [PATCH -V3 2/4] powerpc/kvm: Contiguous memory allocator based hash page table allocation

2013-07-02 Thread Aneesh Kumar K.V
Alexander Graf ag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Powerpc architecture uses a hash based page table mechanism for mapping virtual addresses to physical address. The architecture require this hash page

Re: [PATCH -V3 2/4] powerpc/kvm: Contiguous memory allocator based hash page table allocation

2013-07-02 Thread Alexander Graf
On 07/02/2013 05:31 PM, Aneesh Kumar K.V wrote: Alexander Grafag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Powerpc architecture uses a hash based page table mechanism for mapping virtual addresses to physical

Re: [PATCH -V3 1/4] mm/cma: Move dma contiguous changes into a seperate config

2013-07-02 Thread Aneesh Kumar K.V
Marek Szyprowski m.szyprow...@samsung.com writes: Hello, On 7/2/2013 7:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We want to use CMA for allocating hash page table and real mode area for PPC64. Hence move DMA contiguous related changes into a

Re: [PATCH -V3 3/4] powerpc/kvm: Contiguous memory allocator based RMA allocation

2013-07-02 Thread Aneesh Kumar K.V
Alexander Graf ag...@suse.de writes: On 07/02/2013 05:29 PM, Aneesh Kumar K.V wrote: Alexander Grafag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Older version of power architecture use Real Mode Offset register

Re: [PATCH -V3 3/4] powerpc/kvm: Contiguous memory allocator based RMA allocation

2013-07-02 Thread Alexander Graf
On 07/02/2013 06:28 PM, Aneesh Kumar K.V wrote: Alexander Grafag...@suse.de writes: On 07/02/2013 05:29 PM, Aneesh Kumar K.V wrote: Alexander Grafag...@suse.de writes: On 07/02/2013 07:45 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com Older version of

Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-02 Thread Bjorn Helgaas
On Mon, Jul 1, 2013 at 11:30 PM, Thomas Petazzoni thomas.petazz...@free-electrons.com wrote: Dear Michael Ellerman, On Tue, 02 Jul 2013 10:53:16 +1000, Michael Ellerman wrote: On Mon, 2013-07-01 at 15:42 +0200, Thomas Petazzoni wrote: Until now, the MSI architecture-specific functions could

Re: [PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-02 Thread Scott Wood
On 07/02/2013 07:46:29 AM, Laurentiu Tudor wrote: diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c index d44a571..d05f9da 100644 --- a/arch/powerpc/kernel/epapr_paravirt.c +++ b/arch/powerpc/kernel/epapr_paravirt.c @@ -30,38 +30,45 @@ extern u32

[PATCH] powerpc/powernv: Mark pnv_pci_init_ioda2_phb() as __init

2013-07-02 Thread Bjorn Helgaas
Mark pnv_pci_init_ioda2_phb() as __init. It is called only from an init function (pnv_pci_init()), and it calls an init function (pnv_pci_init_ioda_phb()): pnv_pci_init# init pnv_pci_init_ioda2_phb# non-init pnv_pci_init_ioda_phb # init This should fix a

Re: [PATCH] DTS: Add compatible list for eSDHC

2013-07-02 Thread Scott Wood
On 07/02/2013 03:00:43 AM, Zhang Haijun-B42677 wrote: Regards Haijun. -Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 02, 2013 8:05 AM To: Zhang Haijun-B42677 Cc: ga...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org; Zhang Haijun-B42677; Fleming Andy-AFLEMING

compile custom kernel for custom board with mpc5200b

2013-07-02 Thread neorf3k
Hello, i'm developing an embedded linux system on a custom mpc5200b board, at University. We have a problem with a custom version of kernel: 2.6.23 and 2.6.33. We can't use newer version at the moment. We are able to compile and load the kernel on Freescale Lite5200b and on Custom Board.

[PATCH 02/13] ppc/cell: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-07-02 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH 00/13] Getting rid of get_unused_fd()

2013-07-02 Thread Yann Droneaud
the macro is not going to break modules ABI. In linux-next tag 20130702, they're currently: - 15 calls to get_unused_fd_flags() not counting get_unused_fd() and anon_inode_getfd() - 14 calls to get_unused_fd() - 11 calls to anon_inode_getfd() The following patchset try to convert all calls

Re: [PATCH] powerpc/powernv: Mark pnv_pci_init_ioda2_phb() as __init

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 12:20 -0600, Bjorn Helgaas wrote: Mark pnv_pci_init_ioda2_phb() as __init. It is called only from an init function (pnv_pci_init()), and it calls an init function (pnv_pci_init_ioda_phb()): pnv_pci_init# init pnv_pci_init_ioda2_phb#

Re: [PATCH -V3 2/4] powerpc/kvm: Contiguous memory allocator based hash page table allocation

2013-07-02 Thread Benjamin Herrenschmidt
On Tue, 2013-07-02 at 17:12 +0200, Alexander Graf wrote: Is CMA a mandatory option in the kernel? Or can it be optionally disabled? If it can be disabled, we should keep the preallocated fallback case around for systems that have CMA disabled. Why ? More junk code to keep around ... If CMA

Re: [PATCH -V3 2/4] powerpc/kvm: Contiguous memory allocator based hash page table allocation

2013-07-02 Thread Alexander Graf
On 03.07.2013, at 00:28, Benjamin Herrenschmidt wrote: On Tue, 2013-07-02 at 17:12 +0200, Alexander Graf wrote: Is CMA a mandatory option in the kernel? Or can it be optionally disabled? If it can be disabled, we should keep the preallocated fallback case around for systems that have CMA

Re: [PATCH 1/2] powerpc: enable the relocatable support for the fsl booke 32bit kernel

2013-07-02 Thread Scott Wood
On 07/01/2013 10:24:47 PM, Kevin Hao wrote: On Mon, Jul 01, 2013 at 07:30:45PM -0500, Scott Wood wrote: On 06/30/2013 02:33:10 AM, Kevin Hao wrote: On Thu, Jun 27, 2013 at 08:47:27PM -0500, Scott Wood wrote: On 06/27/2013 08:36:37 PM, Kevin Hao wrote: On Thu, Jun 27, 2013 at 02:58:34PM

Re: [PATCH 2/2] powerpc/fsl_booke: enable the relocatable for the kdump kernel

2013-07-02 Thread Scott Wood
On 07/01/2013 10:45:14 PM, Kevin Hao wrote: On Mon, Jul 01, 2013 at 08:00:06PM -0500, Scott Wood wrote: On 06/30/2013 02:35:21 AM, Kevin Hao wrote: On Thu, Jun 27, 2013 at 09:19:06PM -0500, Scott Wood wrote: On 06/26/2013 09:00:34 PM, Kevin Hao wrote: diff --git

Re: [PATCH 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-02 Thread Scott Wood
On 06/30/2013 10:46:18 PM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang

RE: [PATCH] DTS: Add compatible list for eSDHC

2013-07-02 Thread Zhang Haijun-B42677
Regards Haijun. -Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 03, 2013 2:55 AM To: Zhang Haijun-B42677 Cc: Wood Scott-B07421; ga...@kernel.crashing.org; linuxppc- d...@lists.ozlabs.org; Fleming Andy-AFLEMING Subject: Re: [PATCH] DTS: Add compatible list for

Re: [PATCH 1/2] powerpc: enable the relocatable support for the fsl booke 32bit kernel

2013-07-02 Thread Kevin Hao
On Tue, Jul 02, 2013 at 05:39:18PM -0500, Scott Wood wrote: On 07/01/2013 10:24:47 PM, Kevin Hao wrote: On Mon, Jul 01, 2013 at 07:30:45PM -0500, Scott Wood wrote: On 06/30/2013 02:33:10 AM, Kevin Hao wrote: On Thu, Jun 27, 2013 at 08:47:27PM -0500, Scott Wood wrote: On 06/27/2013

Re: [PATCH 2/2] powerpc/fsl_booke: enable the relocatable for the kdump kernel

2013-07-02 Thread Kevin Hao
On Tue, Jul 02, 2013 at 05:41:05PM -0500, Scott Wood wrote: On 07/01/2013 10:45:14 PM, Kevin Hao wrote: On Mon, Jul 01, 2013 at 08:00:06PM -0500, Scott Wood wrote: On 06/30/2013 02:35:21 AM, Kevin Hao wrote: On Thu, Jun 27, 2013 at 09:19:06PM -0500, Scott Wood wrote: On 06/26/2013

Re: [PATCH 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-02 Thread Hongbo Zhang
On 07/03/2013 07:13 AM, Scott Wood wrote: On 06/30/2013 10:46:18 PM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines.

Re: [PATCH 1/2] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-02 Thread Hongbo Zhang
hmm...add the devicetree-disc...@lists.ozlabs.org into list. Note that we are discussing a better naming for this new compatible property in the corresponding [PATCH 2/2], so I will resend a v2 of this patch. On 07/01/2013 11:46 AM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang