Re: can't access PCIe card under sbc8548

2013-05-29 Thread tiejun.chen
On 05/30/2013 11:42 AM, wolfking wrote: hi, all I'm doing some developing on the windriver's sbc8548 board. The kernel I use is 3.6.10 and the u-boot version is 2012-10. I changed the board's configuration: the board now boot from the 64MB SODIMM Flash (not the default 8MB on-board Flash memor

[PATCH] powerpc/pseries: Improve stream generation comments in copypage/user

2013-05-29 Thread Michael Neuling
No code changes, just documenting what's happening a little better. Signed-off-by: Michael Neuling diff --git a/arch/powerpc/lib/copypage_power7.S b/arch/powerpc/lib/copypage_power7.S index 0ef75bf..395c594 100644 --- a/arch/powerpc/lib/copypage_power7.S +++ b/arch/powerpc/lib/copypage_power7.S

[PATCH] powerpc/pseries: Kill all prefetch streams on context switch

2013-05-29 Thread Michael Neuling
On context switch, we should have no prefetch streams leak from one userspace process to another. This frees up prefetch resources for the next process. Based on patch from Milton Miller. Signed-off-by: Michael Neuling diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm

can't access PCIe card under sbc8548

2013-05-29 Thread wolfking
hi, all I'm doing some developing on the windriver's sbc8548 board. The kernel I use is 3.6.10 and the u-boot version is 2012-10. I changed the board's configuration: the board now boot from the 64MB SODIMM Flash (not the default 8MB on-board Flash memory), and the PCI clock rate is changed to 33

Re: [PATCH] powerpc/mpc85xx: match with the pci bus address used by u-boot for all p1_p2_rdb_pc boards

2013-05-29 Thread Kevin Hao
On Tue, May 28, 2013 at 05:45:56PM -0500, Scott Wood wrote: > On 05/16/2013 01:29:45 AM, Kevin Hao wrote: > >All these boards use the same configuration file p1_p2_rdb_pc.h in > >u-boot. So they have the same pci bus address set by the u-boot. > >But in some of these boards the bus address set in d

Re: [PATCH] KVM: PPC: Book3S: Add support for H_IPOLL and H_XIRR_X in XICS emulation

2013-05-29 Thread Scott Wood
On 05/29/2013 06:57:32 PM, Benjamin Herrenschmidt wrote: On Wed, 2013-05-29 at 18:38 -0500, Scott Wood wrote: > > Yes. I'd like to have them in. Their implementation is actually fairly > > trivial and they cannot be emulated by qemu if the rest of the XICS is > > in the kernel, so it's a pr

Re: [PATCH] KVM: PPC: Book3S: Add support for H_IPOLL and H_XIRR_X in XICS emulation

2013-05-29 Thread Benjamin Herrenschmidt
On Wed, 2013-05-29 at 18:38 -0500, Scott Wood wrote: > > Yes. I'd like to have them in. Their implementation is actually fairly > > trivial and they cannot be emulated by qemu if the rest of the XICS is > > in the kernel, so it's a problem. > > OK. Does it make more sense for you to take it as P

Re: [PATCH] KVM: PPC: Book3S: Add support for H_IPOLL and H_XIRR_X in XICS emulation

2013-05-29 Thread Scott Wood
On 05/28/2013 07:41:18 PM, Benjamin Herrenschmidt wrote: On Tue, 2013-05-28 at 12:41 -0500, Scott Wood wrote: > I believe Alex is staying far away from e-mail on his vacation. He's > asked me to fill in for him while he's gone. > > The patch itself seems reasonable (though I don't know much

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

2013-05-29 Thread Scott Wood
On 05/29/2013 06:29:13 PM, Alexey Kardashevskiy wrote: On 05/30/2013 09:14 AM, Scott Wood wrote: > On 05/29/2013 06:10:33 PM, Alexey Kardashevskiy wrote: >> On 05/30/2013 06:05 AM, Scott Wood wrote: >> > But you didn't put it in the same section as KVM_CREATE_SPAPR_TCE. 0xe0 >> > begins a dif

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

2013-05-29 Thread Alexey Kardashevskiy
On 05/30/2013 09:14 AM, Scott Wood wrote: > On 05/29/2013 06:10:33 PM, Alexey Kardashevskiy wrote: >> On 05/30/2013 06:05 AM, Scott Wood wrote: >> > On 05/28/2013 07:12:32 PM, Alexey Kardashevskiy wrote: >> >> On 05/29/2013 09:35 AM, Scott Wood wrote: >> >> > On 05/28/2013 06:30:40 PM, Alexey Karda

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

2013-05-29 Thread Scott Wood
On 05/29/2013 06:10:33 PM, Alexey Kardashevskiy wrote: On 05/30/2013 06:05 AM, Scott Wood wrote: > On 05/28/2013 07:12:32 PM, Alexey Kardashevskiy wrote: >> On 05/29/2013 09:35 AM, Scott Wood wrote: >> > On 05/28/2013 06:30:40 PM, Alexey Kardashevskiy wrote: >> >> >> >>> @@ -939,6 +940,9 @@ struc

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

2013-05-29 Thread Alexey Kardashevskiy
On 05/30/2013 06:05 AM, Scott Wood wrote: > On 05/28/2013 07:12:32 PM, Alexey Kardashevskiy wrote: >> On 05/29/2013 09:35 AM, Scott Wood wrote: >> > On 05/28/2013 06:30:40 PM, Alexey Kardashevskiy wrote: >> >> >> >>> @@ -939,6 +940,9 @@ struct kvm_s390_ucas_mapping { >> >> >> >>> #define KVM_GET_DE

[PATCH 3/3] powerpc/perf: Add e6500 PMU driver

2013-05-29 Thread Lijun Pan
e6500 core performance monitors has the following features: - 6 performance monitor counters - 512 events supported - no threshold events e6500 PMU has more specific events (Data L1 cache misses, Instruction L1 cache misses, etc ) than e500 PMU (which only had Data L1 cache reloads, etc). Where av

[PATCH 2/3] powerpc/perf: add 2 additional performance monitor counters for e6500 core

2013-05-29 Thread Lijun Pan
There are 6 counters in e6500 core instead of 4 in e500 core. Signed-off-by: Lijun Pan --- arch/powerpc/include/asm/reg_fsl_emb.h | 12 arch/powerpc/kernel/cputable.c |2 +- arch/powerpc/oprofile/op_model_fsl_emb.c | 30 ++ arch/powerp

[PATCH 1/3] powerpc/perf: correct typos in counter enumeration

2013-05-29 Thread Lijun Pan
Signed-off-by: Lijun Pan --- arch/powerpc/include/asm/reg_fsl_emb.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/reg_fsl_emb.h b/arch/powerpc/include/asm/reg_fsl_emb.h index 77bb71c..1cf8ab0 100644 --- a/arch/powerpc/include/asm/reg_fsl_

Re: [RFC PATCH v3 0/5] powerpc: Support context tracking for Power pSeries

2013-05-29 Thread Frederic Weisbecker
On Mon, May 13, 2013 at 06:59:23PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2013-05-13 at 16:03 +0800, Li Zhong wrote: > > > > To my understanding, it is used to enable RCU user extended quiescent > > state, so RCU on that cpu doesn't need scheduler ticks. And together > > with some other co

Re: [RFC PATCH v3 0/5] powerpc: Support context tracking for Power pSeries

2013-05-29 Thread Frederic Weisbecker
On Mon, May 13, 2013 at 04:03:13PM +0800, Li Zhong wrote: > On Mon, 2013-05-13 at 15:51 +1000, Benjamin Herrenschmidt wrote: > > On Mon, 2013-05-13 at 13:21 +0800, Li Zhong wrote: > > > These patches try to support context tracking for Power arch, beginning > > > with > > > 64-bit pSeries. The cod

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

2013-05-29 Thread Scott Wood
On 05/28/2013 07:12:32 PM, Alexey Kardashevskiy wrote: On 05/29/2013 09:35 AM, Scott Wood wrote: > On 05/28/2013 06:30:40 PM, Alexey Kardashevskiy wrote: >> >> >>> @@ -939,6 +940,9 @@ struct kvm_s390_ucas_mapping { >> >> >>> #define KVM_GET_DEVICE_ATTR _IOW(KVMIO, 0xe2, struct >> >> >>> kvm

Re: [PATCH v5 01/13] net: mv643xx_eth: use phy_disconnect instead of phy_detach

2013-05-29 Thread Jason Cooper
Sebastian, On Wed, May 29, 2013 at 09:32:43PM +0200, Sebastian Hesselbarth wrote: > Using a separated mdio bus driver with mvmdio, phy_detach on network device > removal will not stop the phy and finally lead to NULL pointer dereference > in mvmdio due to non-existent network device. Use phy_disco

[PATCH v5 12/13] ARM: kirkwood: remove redundant DT board files

2013-05-29 Thread Sebastian Hesselbarth
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: Sebastian Hesselbarth --- Note: board-km_kirkwood.c is also removed, as Valentin Longchamp confirmed

[PATCH v5 11/13] ARM: kirkwood: remove legacy clk alias for mv643xx_eth

2013-05-29 Thread Sebastian Hesselbarth
With all boards converted to DT enabled mv643xx_eth we can now remove the clock alias for gbe clocks. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Herrenschmidt Cc: net...@vger.kernel.org Cc: linux-arm-ker...@li

[PATCH v5 13/13] ARM: orion5x: remove legacy mv643xx_eth board setup

2013-05-29 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards. This patch removes eth setup for all orion5x DT board files. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Her

[PATCH v5 10/13] ARM: dove: remove legacy mv643xx_eth setup

2013-05-29 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards anymore. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Herrenschmidt Cc: net...@vger.kernel.org Cc: linux-arm-

[PATCH v5 09/13] ARM: orion5x: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Orion5x boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth --- Changelog: v3->v4: - convert to new device tree binding Cc: David Miller Cc: Lennert Buytenhek C

[PATCH v5 08/13] ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Kirkwood boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth --- Changelog: v4->v5: - use Kirkwood specific compatible string Cc: David Miller Cc: Lennert Buyten

[PATCH v5 07/13] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
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 set its reg property on a per-board basis. Signed-off-by: Sebastian Hesselbarth --- Changelog: v3->v4: - convert to

[PATCH v5 05/13] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-29 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_device_is_compa

[PATCH v5 06/13] net: mv643xx_eth: add DT parsing support

2013-05-29 Thread Sebastian Hesselbarth
This adds device tree parsing support for the shared driver of mv643xx_eth. As the bindings are slightly different from current PPC bindings new binding documentation is also added. Following PPC-style device setup, the shared driver now also adds port platform_devices and sets up port platform_dat

[PATCH v5 00/13] net: mv643xx_eth DT support and fixes

2013-05-29 Thread Sebastian Hesselbarth
This patch set picks up work by Florian Fainelli bringing full DT support to mv643xx_eth and Marvell SoCs using it. The current v5 patch set drops 1:1 compatibiliy with PPC binding for two reasons: (a) PPC parses DT nodes in arch/ppc/sysdev and creates non-DT platform_devices itself, (b) prope

[PATCH v5 04/13] net: mv643xx_eth: use of_phy_connect if phy_node present

2013-05-29 Thread Sebastian Hesselbarth
This connects to a phy node passed to the port device instead of probing the phy by phy_addr. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Herrenschmidt Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infr

[PATCH v5 02/13] net: mv643xx_eth: use managed devm_ioremap for port registers

2013-05-29 Thread Sebastian Hesselbarth
Make use of managed devm_ioremap and remove corresponding iounmap. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Herrenschmidt Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linuxppc-dev@

[PATCH v5 03/13] net: mv643xx_eth: add phy_node to platform_data struct

2013-05-29 Thread Sebastian Hesselbarth
This adds a struct device_node pointer for a phy passed by phandle to mv643xx_eth node. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek Cc: Jason Cooper Cc: Andrew Lunn Cc: Benjamin Herrenschmidt Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.

[PATCH v5 01/13] net: mv643xx_eth: use phy_disconnect instead of phy_detach

2013-05-29 Thread Sebastian Hesselbarth
Using a separated mdio bus driver with mvmdio, phy_detach on network device removal will not stop the phy and finally lead to NULL pointer dereference in mvmdio due to non-existent network device. Use phy_disconnect instead to properly stop phy device from accessing network device prior removal of

Re: IBM OpenPower 720 ipr driver woes

2013-05-29 Thread Brian King
On 05/29/2013 10:15 AM, Robert Knight wrote: > Sometime after kernel 3.3.4, Fedora 17 running on an IBM OpenPower > 720 stopped being able to read the SCSI disks with an error > concerning a return code -1. In the updates since, it has not > resumed working. > > Does the ipr driver no longer supp

IBM OpenPower 720 ipr driver woes

2013-05-29 Thread Robert Knight
Sometime after kernel 3.3.4, Fedora 17 running on an IBM OpenPower 720 stopped being able to read the SCSI disks with an error concerning a return code -1. In the updates since, it has not resumed working. Does the ipr driver no longer support this (admittedly ancient) hardware? __

[PATCH, v2 09/13] mm/PPC: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Alexander Graf Cc: "Suzuki K. Poulose" Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org --- arch/powerpc/mm/mem.c | 16 +--

[PATCH v6, part4 31/41] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org --- arch/powerpc/mm/mem.c | 56 +++ 1 file chang

Re: [PATCH] powerpc/pci: Improve device hotplug initialization

2013-05-29 Thread Chen Yuanquan-B41889
On 05/29/2013 01:35 AM, Guenter Roeck wrote: bios_add_device(). Drop explicit calls to pcibios_setup_device(); this makes pcibios_setup_bus_devices() a noop function which could eve Yeah, it's more reasonable to do the irq and DMA related initialization in one code path for all devices. Regard

[PATCH] [TRIVIAL] Fix error typo "CONFIG_START_KERNEL"

2013-05-29 Thread Paul Bolle
Signed-off-by: Paul Bolle --- Untested. Please note that a quick scan of this code suggests that the preceding test should read #if (CONFIG_LOWMEM_SIZE > (0xF000 - CONFIG_KERNEL_START)) But this fix is correct anyhow. arch/powerpc/mm/init_32.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH 1/1] Add a new platform tree for ib8315.

2013-05-29 Thread Stephen Rothwell
Hi Sergey, On Mon, 27 May 2013 14:26:21 +0200 Sergey Gerasimov wrote: > > arch/powerpc/configs/83xx/ib8315_defconfig | 2152 > Please submit the result of "make savedefconfig" instead of this as it will be much smaller. Thanks. -- Cheers, Stephen Rothwell