[PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-22 Thread Nicolin Chen
strcpy(ssi_private->name, p) in probe() sets "name" by "p", gotten from dts, while the length of "p", if the devicetree node name of SSI is commonly set, would always be larger than 1 char size, so need a larger size for "name". Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl_ssi.c |2 +-

RE: SATA hang on 8315E triggered by heavy flash write?

2013-05-22 Thread Xie Shaohui-B21989
Hi, Anthony Foiani, Thanks for the confirmation. So it seems the NOR write break the signal Integrity of SATA. I don't have schematic and board right now, could you please measure signals related to NOR write to see if anything abnormal? Is the board use FPGA or CPLD to control signal? If sto

Re: SATA hang on 8315E triggered by heavy flash write?

2013-05-22 Thread Anthony Foiani
Shaohui -- Thanks for the quick reply! Please find my investigation and results below. Xie Shaohui-B21989 writes: > 1. only update NOR for a long enough time, for ex. tens of seconds, >see if error happens; It seems that I can do this without any errors: / # flash_erase /dev/mtd1 0 0

3.9.2/3.9.3: stack overrun on s390x and ppc64 (WAS Re: 3.9.2: xfstests triggered panic)

2013-05-22 Thread CAI Qian
Original report: http://oss.sgi.com/archives/xfs/2013-05/msg00683.html Also seen on Power7: http://marc.info/?l=linux-kernel&m=136927904900692&w=2 CAI Qian - Original Message - > From: "Dave Chinner" > To: "CAI Qian" > Cc: "LKML" , sta...@vger.kernel.org, > x...@oss.sgi.com > Sent: Th

Re: [PATCH] perf: Power7: Make CPI stack events available in sysfs

2013-05-22 Thread Paul Mackerras
On Sat, Apr 06, 2013 at 09:48:03AM -0700, Sukadev Bhattiprolu wrote: > >From bdeacf7175241f6c79b5b2be0fa6b20b0d0b7d1c Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Sat, 6 Apr 2013 08:48:26 -0700 > Subject: [PATCH] perf: Power7: Make CPI stack events available in sysfs > > A set of

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 11:02 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 10:55:43PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 10:36 PM, Simon Baatz wrote: Hi Sebastian, On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: With DT support for mv643xx_eth, board specific in

[PATCHv2 1/1] powerpc: Force 32 bit MSIs on systems lacking firmware support

2013-05-22 Thread Brian King
Recent commit e61133dda480062d221f09e4fc18f66763f8ecd0 added support for a new firmware feature to force an adapter to use 32 bit MSIs. However, this firmware is not available for all systems. The hack below allows devices needing 32 bit MSIs to work on these systems as well. It is careful to only

Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-05-22 Thread Scott Wood
On 05/20/2013 10:06:46 PM, Alexey Kardashevskiy wrote: diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 8465c2a..da6bf61 100644 --- a/arch/powerpc/kvm/powerpc.c @@ -396,6 +396,7 @@ int kvm_dev_ioctl_check_extension(long ext) +++ b/arch/powerpc/kvm/powerpc.c

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 10:55:43PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 10:36 PM, Simon Baatz wrote: > >Hi Sebastian, > > > >On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: > >>With DT support for mv643xx_eth, board specific init for some boards now > >>is unne

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 10:16 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 10:04:02PM +0200, Sebastian Hesselbarth wrote: Ethernet controllers found on Kirkwood SoCs not only suffer from loosing MAC address register contents on clock gating but also some important registers are reset to values that

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 10:36 PM, Simon Baatz wrote: Hi Sebastian, On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: With DT support for mv643xx_eth, board specific init for some boards now is unneccessary. Remove those board files, Kconfig entries, and corresponding entries in kirkw

Re: [PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-22 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 01:57:34PM +0200, Peter Zijlstra wrote: > On Sun, May 19, 2013 at 12:35:26PM +0300, Michael S. Tsirkin wrote: > > > > --- a/include/linux/kernel.h > > > > +++ b/include/linux/kernel.h > > > > @@ -198,7 +198,6 @@ void might_fault(void); > > > > #else > > > > static inline v

Re: [PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-22 Thread Michael S. Tsirkin
On Thu, May 16, 2013 at 08:40:41PM +0200, Peter Zijlstra wrote: > On Thu, May 16, 2013 at 02:16:10PM +0300, Michael S. Tsirkin wrote: > > There are several ways to make sure might_fault > > calling function does not sleep. > > One is to use it on kernel or otherwise locked memory - apparently > > n

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Simon Baatz
Hi Sebastian, On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: > With DT support for mv643xx_eth, board specific init for some boards now > is unneccessary. Remove those board files, Kconfig entries, and > corresponding entries in kirkwood_defconfig. > > Signed-off-by: Sebas

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2013 at 10:04:02PM +0200, Sebastian Hesselbarth wrote: > Ethernet controllers found on Kirkwood SoCs not only suffer from loosing > MAC address register contents on clock gating but also some important > registers are reset to values that would break ethernet. This patch FWIW, we

[PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-22 Thread Sebastian Hesselbarth
Ethernet controllers found on Kirkwood SoCs not only suffer from loosing MAC address register contents on clock gating but also some important registers are reset to values that would break ethernet. This patch clears the CLK125_BYPASS_EN bit for DT enabled Kirkwood only by using of_machine_is_comp

[PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-22 Thread Sebastian Hesselbarth
Kirkwood ethernet controllers suffer from loosing MAC register content on gated clocks. In the past this was prevented by not gating the ethernet controller clocks. With DT support for mv643xx_eth and corresponding nodes available, a different approach is more reasonable. This patch replaces the f

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 07:35 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: Just tested on Dockstar with gated clocks and modular DT mv643xx

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 08:55:01PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 08:49 PM, Jason Cooper wrote: > >On Wed, May 22, 2013 at 08:44:20PM +0200, Sebastian Hesselbarth wrote: > >>On 05/22/2013 07:48 PM, Jason Cooper wrote: > >>>On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hes

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 08:49 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 08:44:20PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: Hmm, maybe a little bit too early. While restoring the MAC addre

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 08:24 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: Not neccessary anyway, after talking Jason C in a Kirkwood-only workaround I prepared a patch that reads mac address registers early and stores it in the local-mac-address proper

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 08:44:20PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 07:48 PM, Jason Cooper wrote: > >On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: > >>Hmm, maybe a little bit too early. While restoring the MAC address now > >>works, another bug arises whi

Re: Build regressions/improvements in v3.10-rc2

2013-05-22 Thread Geert Uytterhoeven
On Wed, 22 May 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.10-rc2 to v3.10-rc1[3], the summaries are: > - build errors: +2/-13 One false positive due to a line concatenation, and + error: drivers/built-in.o: undefined reference to `il_pm_ops': => .data+0x51ce4) powerpc-randco

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: Hmm, maybe a little bit too early. While restoring the MAC address now works, another bug arises which I guess is related with phy setup and aneg. Will investigate and update patch

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: > Not neccessary anyway, after talking Jason C in a Kirkwood-only > workaround I prepared a patch that reads mac address registers early > and stores it in the local-mac-address property. That sounds great, but, FWIW, our boo

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 07:35 PM, Jason Cooper wrote: > >On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: > >>On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: > >>>On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Coop

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:35 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: iirc, our solution to this was to parse the ATAGs for the mac addr and

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: > >On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: > >>iirc, our solution to this was to parse the ATAGs for the mac addr and > >>update the appended dtb. This way,

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: iirc, our solution to this was to parse the ATAGs for the mac addr and update the appended dtb. This way, module load and unload would work without loosing the mac address. I believe Ja

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: > iirc, our solution to this was to parse the ATAGs for the mac addr and > update the appended dtb. This way, module load and unload would work > without loosing the mac address. I believe Jason Gunthorpe has a patch > to atags_to_fdt

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 10:59:08AM -0600, Jason Gunthorpe wrote: > On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: > > > iirc, our solution to this was to parse the ATAGs for the mac addr and > > update the appended dtb. This way, module load and unload would work > > without loosin

[PATCH -V9 19/20] powerpc: use smp_rmb when looking at deposisted pgtable to store hash index

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We need to use smb_rmb when looking at hpte slot array. Otherwise we could reorder the hpte_slot array load bfore even we marked the pmd trans huge. Related smb_wmb()s is done in pgtable_trans_huge_deposit when we deposit a pgtable. Signed-off-by: Aneesh Kumar K.V ---

[PATCH -V9 20/20] powerpc: split hugepage when using subpage protection

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We find all the overlapping vma and mark them such that we don't allocate hugepage in that range. Also we split existing huge page so that the normal page hash can be invalidated and new page faulted in with new protection bits. Signed-off-by: Aneesh Kumar K.V --- arch

[PATCH -V9 18/20] powerpc: disable assert_pte_locked for collapse_huge_page

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" With THP we set pmd to none, before we do pte_clear. Hence we can't walk page table to get the pte lock ptr and verify whether it is locked. THP do take pte lock before calling pte_clear. So we don't change the locking rules here. It is that we can't use page table walkin

[PATCH -V9 08/20] powerpc/THP: Implement transparent hugepages for ppc64

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We now have pmd entries covering 16MB range and the PMD table double its original size. We use the second half of the PMD table to deposit the pgtable (PTE page). The depoisted PTE page is further used to track the HPTE information. The information include [ secondary g

[PATCH -V9 13/20] powerpc/THP: Add code to handle HPTE faults for hugepages

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" The deposted PTE page in the second half of the PMD table is used to track the state on hash PTEs. After updating the HPTE, we mark the coresponding slot in the deposted PTE page valid. Reviewed-by: David Gibson Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include

[PATCH -V9 15/20] powerpc: Prevent gcc to re-read the pagetables

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" GCC is very likely to read the pagetables just once and cache them in the local stack or in a register, but it is can also decide to re-read the pagetables. The problem is that the pagetable in those places can change from under gcc. With THP/hugetlbfs the pmd (and pgd f

[PATCH -V9 05/20] mm/THP: Don't use HPAGE_SHIFT in transparent hugepage code

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" For architectures like powerpc that support multiple explicit hugepage sizes, HPAGE_SHIFT indicate the default explicit hugepage shift. For THP to work the hugepage size should be same as PMD_SIZE. So use PMD_SHIFT directly. So move the define outside CONFIG_TRANSPARENT_H

[PATCH -V9 04/20] mm/THP: withdraw the pgtable after pmdp related operations

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" For architectures like ppc64 we look at deposited pgtable when calling pmdp_get_and_clear. So do the pgtable_trans_huge_withdraw after finishing pmdp related operations. Reviewed-by: Andrea Arcangeli Signed-off-by: Aneesh Kumar K.V --- mm/huge_memory.c | 8 +++- 1

[PATCH -V9 09/20] powerpc: move find_linux_pte_or_hugepte and gup_hugepte to common code

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We will use this in the later patch for handling THP pages Reviewed-by: David Gibson Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/hugetlb.h | 8 +- arch/powerpc/include/asm/pgtable-ppc64.h | 13 -- arch/powerpc/include/asm/pgtable.h |

[PATCH -V9 14/20] powerpc: Make linux pagetable walk safe with THP enabled

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We need to have irqs disabled to handle all the possible parallel update for linux page table without holding locks. Events that we are intersted in while walking page tables are 1) Page fault 2) umap 3) THP split 4) THP collapse A) local_irq_disabled: -

[PATCH -V9 16/20] powerpc/THP: Enable THP on PPC64

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We enable only if the we support 16MB page size. Reviewed-by: David Gibson Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h | 3 +-- arch/powerpc/mm/pgtable_64.c | 29 + 2 files changed, 30 insertion

[PATCH -V9 17/20] powerpc: Optimize hugepage invalidate

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Hugepage invalidate involves invalidating multiple hpte entries. Optimize the operation using H_BULK_REMOVE on lpar platforms. On native, reduce the number of tlb flush. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/machdep.h| 3 + arch/powerpc/mm/

[PATCH -V9 10/20] powerpc: Update find_linux_pte_or_hugepte to handle transparent hugepages

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Reviewed-by: David Gibson Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/hugetlbpage.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 2865077

[PATCH -V9 07/20] powerpc/THP: Double the PMD table size for THP

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" THP code does PTE page allocation along with large page request and deposit them for later use. This is to ensure that we won't have any failures when we split hugepages to regular pages. On powerpc we want to use the deposited PTE page for storing hash pte slot and seco

[PATCH -V9 11/20] powerpc: Replace find_linux_pte with find_linux_pte_or_hugepte

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Replace find_linux_pte with find_linux_pte_or_hugepte and explicitly document why we don't need to handle transparent hugepages at callsites. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h | 24 arch/powerpc/kernel

[PATCH -V9 12/20] powerpc: Update gup_pmd_range to handle transparent hugepages

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Reviewed-by: David Gibson Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/gup.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/gup.c b/arch/powerpc/mm/gup.c index 4b921af..3d36fd7 100644 --- a/arch/powerpc/mm/gu

[PATCH -V9 01/20] mm/THP: Use pmd_populate to update the pmd with pgtable_t pointer

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We should not use set_pmd_at to update pmd_t with pgtable_t pointer. set_pmd_at is used to set pmd with huge pte entries and architectures like ppc64, clear few flags from the pte when saving a new entry. Without this change we observe bad pte errors like below on ppc64 w

[PATCH -V9 00/20] THP support for PPC64

2013-05-22 Thread Aneesh Kumar K.V
Hi, This is the second patchset needed to support THP on ppc64. Some of the changes included in this series are tricky in that it changes the powerpc linux page table walk subtly. We also overload few of the pte flags for ptes at PMD level (huge page PTEs). mm/ changes are already merged to Andr

[PATCH -V9 03/20] mm/THP: Add pmd args to pgtable deposit and withdraw APIs

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This will be later used by powerpc THP support. In powerpc we want to use pgtable for storing the hash index values. So instead of adding them to mm_context list, we would like to store them in the second half of pmd Reviewed-by: Andrea Arcangeli Reviewed-by: David Gibs

[PATCH -V9 02/20] mm/THP: Use the right function when updating access flags

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We should use pmdp_set_access_flags to update access flags. Archs like powerpc use extra checks(_PAGE_BUSY) when updating a hugepage PTE. A set_pmd_at doesn't do those checks. We should use set_pmd_at only when updating a none hugepage PTE. Signed-off-by: Aneesh Kumar K

[PATCH -V9 06/20] mm/THP: deposit the transpare huge pgtable before set_pmd

2013-05-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Architectures like powerpc use the deposited pgtable to store hash index values. We need to make the deposted pgtable visible to other cpus before we are ready to take a hash fault. Signed-off-by: Aneesh Kumar K.V --- mm/huge_memory.c | 8 1 file changed, 4 in

Re: [PATCH v4 00/12] net: mv643xx_eth DT support and fixes

2013-05-22 Thread Andrew Lunn
On Tue, May 21, 2013 at 06:41:38PM +0200, Sebastian Hesselbarth wrote: > This patch set picks up work by Florian Fainelli bringing full DT > support to mv643xx_eth and Marvell SoCs using it. Hi Sebastian I tested on my QNAP and topkick. Works great. Tested-by: Andrew Lunn Andrew ___

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-22 Thread Anshuman Khandual
On 05/22/2013 05:53 PM, Stephane Eranian wrote: > Hi, > > > > On Wed, May 22, 2013 at 8:43 AM, Anshuman Khandual > wrote: >> On 05/21/2013 07:25 PM, Stephane Eranian wrote: >>> On Thu, May 16, 2013 at 12:15 PM, Michael Neuling wrote: Peter Zijlstra wrote: > On Wed, May 15, 2013

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 04:04:48PM +0200, Arnd Bergmann wrote: > On Wednesday 22 May 2013, Russell King - ARM Linux wrote: > > On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > > > Given the most commonly used functions and a couple of architectures > > > I'm familiar with, these are

Re: [PATCH v2 07/10] powerpc: uaccess s/might_sleep/might_fault/

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 03:59:01PM +0200, Arnd Bergmann wrote: > On Thursday 16 May 2013, Michael S. Tsirkin wrote: > > @@ -178,7 +178,7 @@ do { > > \ > > long __pu_err; \ > > __

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Arnd Bergmann
On Wednesday 22 May 2013, Russell King - ARM Linux wrote: > On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > > Given the most commonly used functions and a couple of architectures > > I'm familiar with, these are the ones that currently call might_fault() > > > >

Re: [PATCH v2 07/10] powerpc: uaccess s/might_sleep/might_fault/

2013-05-22 Thread Arnd Bergmann
On Thursday 16 May 2013, Michael S. Tsirkin wrote: > @@ -178,7 +178,7 @@ do { > \ > long __pu_err; \ > __typeof__(*(ptr)) __user *__pu_addr = (ptr); \ > if (!is

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Russell King - ARM Linux
On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > Given the most commonly used functions and a couple of architectures > I'm familiar with, these are the ones that currently call might_fault() > > x86-32 x86-64 arm arm64 powerpc s390generic > copy_t

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Jason Cooper
On Wed, May 22, 2013 at 12:13:58PM +0200, Sebastian Hesselbarth wrote: > On 05/22/2013 12:04 PM, tiejun.chen wrote: > >On 05/22/2013 05:43 PM, Sebastian Hesselbarth wrote: > >>On 05/21/2013 07:48 PM, Andrew Lunn wrote: > >>>On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: > >>

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-05-22 Thread Benjamin Herrenschmidt
On Wed, 2013-05-22 at 07:26 -0500, Rob Herring wrote: > Did you have a chance to test this? I want to get this into -next. Ah sorry, skipped out of my mind, I'll get to it asap... Cheers, Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.or

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-05-22 Thread Rob Herring
On Thu, Apr 25, 2013 at 3:45 PM, Rob Herring wrote: > On 04/25/2013 03:12 PM, Benjamin Herrenschmidt wrote: >> On Thu, 2013-04-25 at 14:14 -0500, Rob Herring wrote: >>> On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: > > [...] > >>> You need patch 2 of this series to fix this: >>> >>> driver

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-22 Thread Stephane Eranian
Hi, On Wed, May 22, 2013 at 8:43 AM, Anshuman Khandual wrote: > On 05/21/2013 07:25 PM, Stephane Eranian wrote: >> On Thu, May 16, 2013 at 12:15 PM, Michael Neuling wrote: >>> Peter Zijlstra wrote: >>> On Wed, May 15, 2013 at 03:37:22PM +0200, Stephane Eranian wrote: > On Fri, May 3,

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Peter Zijlstra
On Wed, May 22, 2013 at 02:07:29PM +0300, Michael S. Tsirkin wrote: > On Wed, May 22, 2013 at 12:19:16PM +0200, Peter Zijlstra wrote: > > On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > > > Calling might_fault() for every __get_user/__put_user is rather expensive > > > because it t

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 12:19:16PM +0200, Peter Zijlstra wrote: > On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > > Calling might_fault() for every __get_user/__put_user is rather expensive > > because it turns what should be a single instruction (plus fixup) into an > > external f

Re: [PATCH 2/5] powerpc, perf: Enable conditional branch filter for POWER8

2013-05-22 Thread Michael Neuling
Peter Zijlstra wrote: > On Wed, May 22, 2013 at 11:52:38AM +0530, Anshuman Khandual wrote: > > Enables conditional branch filter support for POWER8 > > utilizing MMCRA register based filter and also invalidates > > a BHRB branch filter combination involving conditional > > branches. > > > > Sign

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Peter Zijlstra
On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > Calling might_fault() for every __get_user/__put_user is rather expensive > because it turns what should be a single instruction (plus fixup) into an > external function call. We could hide it all behind CONFIG_DEBUG_ATOMIC_SLEEP jus

Re: [PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-22 Thread Peter Zijlstra
On Wed, May 22, 2013 at 12:47:09PM +0300, Michael S. Tsirkin wrote: > > > > +static inline bool __can_fault(void) > > +{ > > + /* > > +* Some code (nfs/sunrpc) uses socket ops on kernel memory while > > +* holding the mmap_sem, this is safe because kernel memory doesn't > > +* get p

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 12:04 PM, tiejun.chen wrote: On 05/22/2013 05:43 PM, Sebastian Hesselbarth wrote: On 05/21/2013 07:48 PM, Andrew Lunn wrote: On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. A

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread tiejun.chen
On 05/22/2013 05:43 PM, Sebastian Hesselbarth wrote: On 05/21/2013 07:48 PM, Andrew Lunn wrote: On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. As there is only one ethernet controller on D

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:25:36AM +0200, Arnd Bergmann wrote: > On Thursday 16 May 2013, Michael S. Tsirkin wrote: > > This improves the might_fault annotations used > > by uaccess routines: > > > > 1. The only reason uaccess routines might sleep > >is if they fault. Make this explicit for >

Re: [PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-22 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 01:57:34PM +0200, Peter Zijlstra wrote: > On Sun, May 19, 2013 at 12:35:26PM +0300, Michael S. Tsirkin wrote: > > > > --- a/include/linux/kernel.h > > > > +++ b/include/linux/kernel.h > > > > @@ -198,7 +198,6 @@ void might_fault(void); > > > > #else > > > > static inline v

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/21/2013 07:48 PM, Andrew Lunn wrote: On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. As there is only one ethernet controller on Dove, a default phy node is also added with a note to s

Re: [PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-22 Thread Arnd Bergmann
On Thursday 16 May 2013, Michael S. Tsirkin wrote: > This improves the might_fault annotations used > by uaccess routines: > > 1. The only reason uaccess routines might sleep >is if they fault. Make this explicit for >all architectures. > 2. Accesses (e.g through socket ops) to kernel memo

[PATCH] clk/mpc85xx: Update the compatible string

2013-05-22 Thread Yuantian.Tang
From: Tang Yuantian The compatible string of clock is changed from *-2 to *-2.0 on chassis 2. So updated it accordingly. Signed-off-by: Tang Yuantian --- drivers/clk/clk-ppc-corenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/cl

[PATCH] powerpc/powernv: Build a zImage.epapr

2013-05-22 Thread Benjamin Herrenschmidt
The zImage.epapr wrapper allows to use zImages when booting via a flat device-tree which can be used on powernv. Signed-off-by: Benjamin Herrenschmidt --- TODO: Make the main zImage.pseries cope with an epapr boot... diff --git a/arch/powerpc/platforms/powernv/Kconfig b/arch/powerpc/platforms/

Re: [PATCH 1/2] powerpc, perf: Ignore separate BHRB privilege state filter request

2013-05-22 Thread Anshuman Khandual
> > Your description from patch 0 should be here. > Sure, will bring it here. > >> diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c >> index f7d1c4f..8ed323d 100644 >> --- a/arch/powerpc/perf/power8-pmu.c >> +++ b/arch/powerpc/perf/power8-pmu.c >> @@ -525,16 +525,17

[PATCH] powerpc: Make radeon 32-bit MSI quirk work on powernv

2013-05-22 Thread Benjamin Herrenschmidt
This moves the quirk itself to pci_64.c as to get built on all ppc64 platforms (the only ones with a pci_dn), factors the two implementations of get_pdn() into a single pci_get_dn() and use the quirk to do 32-bit MSIs on IODA based powernv platforms. Signed-off-by: Benjamin Herrenschmidt --- (We

Re: [PATCH 2/5] powerpc, perf: Enable conditional branch filter for POWER8

2013-05-22 Thread Peter Zijlstra
On Wed, May 22, 2013 at 11:52:38AM +0530, Anshuman Khandual wrote: > Enables conditional branch filter support for POWER8 > utilizing MMCRA register based filter and also invalidates > a BHRB branch filter combination involving conditional > branches. > > Signed-off-by: Anshuman Khandual > --- >

Re: [PATCH 1/2] powerpc, perf: Ignore separate BHRB privilege state filter request

2013-05-22 Thread Michael Ellerman
On Wed, 2013-05-22 at 11:17 +0530, Anshuman Khandual wrote: > Completely ignore BHRB privilege state filter request as we are > already configuring MMCRA register with privilege state filtering > attribute for the accompanying PMU event. This would help achieve > cleaner user space interaction for