Re: [PATCH] powerpc: thp: Use tlbiel wherever possible

2014-08-07 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Wed, 2014-08-06 at 20:16 +0530, Aneesh Kumar K.V wrote: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: If we know that user address space has never executed on other cpus we could use tlbiel. Signed-off-by: Aneesh

[PATCH] powerpc/mm: Unindent htab_dt_scan_page_sizes()

2014-08-07 Thread Michael Ellerman
We can unindent the bulk of htab_dt_scan_page_sizes() by returning early if the property is not found. That is nice in and of itself, but also has the advantage of making it clear that we always return success once we have found the ibm,segment-page-sizes property. Signed-off-by: Michael Ellerman

Re: mm: BUG in unmap_page_range

2014-08-07 Thread Aneesh Kumar K.V
Mel Gorman mgor...@suse.de writes: On Wed, Aug 06, 2014 at 12:44:45PM +0530, Aneesh Kumar K.V wrote: -#define pmd_mknonnuma pmd_mknonnuma -static inline pmd_t pmd_mknonnuma(pmd_t pmd) +/* + * Generic NUMA pte helpers expect pteval_t and pmdval_t types to exist + * which was inherited

RE: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread qiang.z...@freescale.com
On Thu, Aug 7, 2014 at 4:16 AM, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, August 07, 2014 4:16 AM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061 Subject: Re: qe: move qe from arch/powerpc to drivers On Wed,

[PATCH V2 0/2] refine esai for tdm support

2014-08-07 Thread Shengjiu Wang
These patchs is to refine esai for tdm support. Changes for V2 - update the comments according the reviewer's suggestion - add init value for slots and change pin to pins. Shengjiu Wang (2): ASoC: fsl_esai: refine esai for TDM support Revert ASoC: fsl-esai: Add .xlate_tdm_slot_mask()

[PATCH V2 1/2] ASoC: fsl_esai: refine esai for TDM support

2014-08-07 Thread Shengjiu Wang
Original driver didn't store the number of slots, just fix the slot number to 2, use this default number to calculate bclk and pins for TX/RX. In this patch, add one parameter for slots, and update the calculation of bclk and pins of TX/RX. Then driver will be compatible with slots 2 in TDM mode.

[PATCH V2 2/2] Revert ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support.

2014-08-07 Thread Shengjiu Wang
This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() will invert the mask, which isn't fit for esai. The default function snd_soc_xlate_tdm_slot_mask() is ok for esai. Signed-off-by: Shengjiu Wang shengjiu.w...@freescale.com --- sound/soc/fsl/Kconfig|

Re: [PATCH] ASoC: fsl_sai: Initialize with software reset

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 05:20:21PM +0800, Nicolin Chen wrote: This patch adds software reset code in dai_probe() so as to make a true init by clearing SAI's internal logic, including the bit clock generation, status flags, and FIFO pointers. Applied, thanks. signature.asc Description:

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: From: Nicolin Chen guangyu.c...@freescale.com SAI supports these operation modes: 1) asynchronous mode Both Tx and Rx are set to be asynchronous. 2) synchronous mode (Rx sync with Tx) Tx is set to be asynchronous, Rx is

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Nicolin Chen
On Thu, Aug 07, 2014 at 10:45:27AM +0100, Mark Brown wrote: On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: From: Nicolin Chen guangyu.c...@freescale.com SAI supports these operation modes: 1) asynchronous mode Both Tx and Rx are set to be asynchronous. 2)

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Thu, Aug 07, 2014 at 05:44:05PM +0800, Nicolin Chen wrote: On Thu, Aug 07, 2014 at 10:45:27AM +0100, Mark Brown wrote: Might be worth printing an error here. Hmm...Do I need to send a v2? Send an incremental patch. signature.asc Description: Digital signature

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: From: Nicolin Chen guangyu.c...@freescale.com SAI supports these operation modes: 1) asynchronous mode Both Tx and Rx are set to be asynchronous. Applied, thanks. signature.asc Description: Digital signature

Re: [alsa-devel] [PATCH V2 2/2] Revert ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support.

2014-08-07 Thread Nicolin Chen
Hi Shengjiu, On Thu, Aug 07, 2014 at 05:33:25PM +0800, Shengjiu Wang wrote: This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() will invert the mask, which isn't fit for esai. The default function snd_soc_xlate_tdm_slot_mask() is ok for esai. You

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 04:15 -0500, Zhao Qiang-B45475 wrote: On Thu, Aug 7, 2014 at 4:16 AM, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, August 07, 2014 4:16 AM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On Wed, Aug 6, 2014 at 3:53 AM, qiang.z...@freescale.com qiang.z...@freescale.com wrote: Actually qe is a kind of IP block, so in my opinion, it is proper to put it under driver/(just in my opinion). The QE library is not a driver, however. It doesn't register as a driver with the kernel.

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 13:57 -0500, Timur Tabi wrote: On Wed, Aug 6, 2014 at 3:53 AM, qiang.z...@freescale.com qiang.z...@freescale.com wrote: Actually qe is a kind of IP block, so in my opinion, it is proper to put it under driver/(just in my opinion). The QE library is not a driver,

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On 08/07/2014 03:08 PM, Scott Wood wrote: Scott suggests drivers/soc. I'm not crazy about that, but I don't maintain that code any more. Do you have a better suggestion? Leave it where it is? ___ Linuxppc-dev mailing list

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 15:09 -0500, Timur Tabi wrote: On 08/07/2014 03:08 PM, Scott Wood wrote: Scott suggests drivers/soc. I'm not crazy about that, but I don't maintain that code any more. Do you have a better suggestion? Leave it where it is? We need it on ARM as well. -Scott

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On 08/07/2014 03:11 PM, Scott Wood wrote: Do you have a better suggestion? Leave it where it is? We need it on ARM as well. In that case, drivers/soc is the least-bad option. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH] deb-pkg: support ppc64 and ppc64el Debian archs

2014-08-07 Thread Thadeu Lima de Souza Cascardo
Signed-off-by: Thadeu Lima de Souza Cascardo casca...@linux.vnet.ibm.com --- scripts/package/builddeb |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 35d5a58..c26c28b 100644 --- a/scripts/package/builddeb +++

[PATCH] net: fs_enet: fix reference counting for phy_node

2014-08-07 Thread Uwe Kleine-König
Make sure that fs_enet_probe is left with a reference to the phy node. In the presence of a phy handle this is already the case as of_parse_phandle returns a reference. In the fixed phy case a call to of_node_get is necessary. Otherwise the error path and remove function drop a reference the

Re: [PATCH v2 00/12] defconfigs: add MTD_SPI_NOR (new subsystem dependency for M25P80)

2014-08-07 Thread Geert Uytterhoeven
Hi Brian, On Thu, May 1, 2014 at 8:26 AM, Brian Norris computersforpe...@gmail.com wrote: v1 -- v2: split ARM defconfig changes into their sub-architectures. No change in the overall diff. Hi all, We are introducing a new SPI-NOR subsystem/framework for MTD, to support various

[PATCH 1/3] net: ucc_geth: drop acquired references in probe error path and remove

2014-08-07 Thread Uwe Kleine-König
The ucc_geth_probe function assigns to ug_info-tbi_node and ug_info-phy_node a value returned by of_parse_phandle which returns a new reference. Put this reference again in the error path of ucc_geth_probe and when removing the device. Signed-off-by: Uwe Kleine-König

[PATCH 2/3] net: ucc_geth: make probe consistently acquire a reference to the phy node

2014-08-07 Thread Uwe Kleine-König
When the driver attaches to a device that has a phy handle the probe routine returns with a reference to that node. This reference is correctly dropped in the error path and the remove function. In the fixed phy case however no reference is acquired and so the error path might drop a reference the

[PATCH 3/3] net: ucc_geth: Don't use the MAC as PHY without a fixed link

2014-08-07 Thread Uwe Kleine-König
This matches what the other drivers using fixed-link support do and restores the behaviour before commit 87009814cdbb (ucc_geth: use the new fixed PHY helpers) for the affected device trees (i.e. no phy-handle and no fixed-link). Fixes: 87009814cdbb (ucc_geth: use the new fixed PHY helpers)

Re: [PATCH] net: fs_enet: fix reference counting for phy_node

2014-08-07 Thread David Miller
From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Date: Thu, 7 Aug 2014 23:06:00 +0200 Make sure that fs_enet_probe is left with a reference to the phy node. In the presence of a phy handle this is already the case as of_parse_phandle returns a reference. In the fixed phy case a call to

Re: [PATCH 1/3] net: ucc_geth: drop acquired references in probe error path and remove

2014-08-07 Thread David Miller
From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Date: Thu, 7 Aug 2014 23:48:24 +0200 The ucc_geth_probe function assigns to ug_info-tbi_node and ug_info-phy_node a value returned by of_parse_phandle which returns a new reference. Put this reference again in the error path of

Re: [PATCH 2/3] net: ucc_geth: make probe consistently acquire a reference to the phy node

2014-08-07 Thread David Miller
From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Date: Thu, 7 Aug 2014 23:48:25 +0200 When the driver attaches to a device that has a phy handle the probe routine returns with a reference to that node. This reference is correctly dropped in the error path and the remove function. In the

Re: [PATCH 3/3] net: ucc_geth: Don't use the MAC as PHY without a fixed link

2014-08-07 Thread David Miller
From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Date: Thu, 7 Aug 2014 23:48:26 +0200 This matches what the other drivers using fixed-link support do and restores the behaviour before commit 87009814cdbb (ucc_geth: use the new fixed PHY helpers) for the affected device trees (i.e. no

[PATCH] powerpc: Remove ppc_md.remove_memory

2014-08-07 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard an...@samba.org ---

[PATCH] powerpc: Move htab_remove_mapping function prototype into header file

2014-08-07 Thread Anton Blanchard
A recent patch added a function prototype for htab_remove_mapping in c code. Fix it. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/include/asm/mmu-hash64.h b/arch/powerpc/include/asm/mmu-hash64.h index d765144..92bc3a6 100644 ---

Re: [PATCH v4 1/5] powerpc/eeh: Export eeh_iommu_group_to_pe()

2014-08-07 Thread Benjamin Herrenschmidt
On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: The function is used by VFIO driver, which might be built as a dynamic module. So it should be exported. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org Alex, are you taking

Re: [PATCH v4 2/5] powerpc/eeh: Add warning message in eeh_dev_open()

2014-08-07 Thread Benjamin Herrenschmidt
On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: The patch adds one warning message in eeh_dev_open() in case the PCI device can't be marked as passed through. Suggested-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- Acked-by: Benjamin

Re: [PATCH v4 2/5] powerpc/eeh: Add warning message in eeh_dev_open()

2014-08-07 Thread Alex Williamson
On Fri, 2014-08-08 at 13:50 +1000, Benjamin Herrenschmidt wrote: On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: The patch adds one warning message in eeh_dev_open() in case the PCI device can't be marked as passed through. Suggested-by: Alexey Kardashevskiy a...@ozlabs.ru

[PATCH V3 2/2] Revert ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support.

2014-08-07 Thread Shengjiu Wang
This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() will invert the mask, for esai the enabled bit is changed to be disabled, So the esai will work abnormally. when there is no definition of .xlate_tdm_slot_mask, there is default function

[PATCH V3 1/2] ASoC: fsl_esai: refine esai for TDM support

2014-08-07 Thread Shengjiu Wang
Original driver didn't store the number of slots, just fix the slot number to 2, use this default number to calculate bclk and pins for TX/RX. In this patch, add one parameter for slots, and update the calculation of bclk and pins of TX/RX. Then driver will be compatible with slots 2 in TDM mode.

[PATCH V3 0/2] refine esai for tdm support

2014-08-07 Thread Shengjiu Wang
These patchs is to refine esai for tdm support. Changes for V3 - update the comments for patch 2 Changes for V2 - update the comments according the reviewer's suggestion - add init value for slots and change pin to pins. Shengjiu Wang (2): ASoC: fsl_esai: refine esai for TDM support Revert