[PATCH 6/7] IBM Akebono: Add the Akebono platform

2014-02-20 Thread Alistair Popple
This patch adds support for the IBM Akebono board. Signed-off-by: Alistair Popple --- .../devicetree/bindings/powerpc/4xx/akebono.txt| 54 +++ arch/powerpc/boot/Makefile |3 + arch/powerpc/boot/dcr.h|4 + arch/powerpc/boot/dts/ake

[PATCH 7/7] powerpc: Added PCI MSI support using the HSTA module

2014-02-20 Thread Alistair Popple
The PPC476GTR SoC supports message signalled interrupts (MSI) by writing to special addresses within the High Speed Transfer Assist (HSTA) module. This patch adds support for PCI MSI with a new system device. The DMA window is also updated to allow access to the entire 42-bit address range to allo

[PATCH 5/7] IBM Currituck: Clean up board specific code before adding Akebono code

2014-02-20 Thread Alistair Popple
The IBM Akebono code uses the same initialisation functions as the earlier Currituck board. Rather than create a copy of this code for Akebono we will instead integrate support for it into the same file as the Currituck code. This patch just renames the board support file and updates the Makefile.

[PATCH 4/7] ECHI Platform: Merge ppc-of EHCI driver into the ehci-platform driver

2014-02-20 Thread Alistair Popple
Currently the ppc-of driver uses the compatibility string "usb-ehci". This means platforms that use device-tree and implement an EHCI compatible interface have to either use the ppc-of driver or add a compatible line to the ehci-platform driver. It would be more appropriate for the platform driver

[PATCH 2/7] IBM Akebono: Add support for a new PHY interface to the IBM emac driver

2014-02-20 Thread Alistair Popple
The IBM PPC476GTR SoC that is used on the Akebono board uses a different ethernet PHY interface that has wake on lan (WOL) support with the IBM emac. This patch adds support to the IBM emac driver for this new PHY interface. At this stage the wake on lan functionality has not been implemented. Si

[PATCH 3/7] IBM Akebono: Add support to the OHCI platform driver for PPC476GTR

2014-02-20 Thread Alistair Popple
The IBM Akebono board uses the PPC476GTR SoC which has a OHCI compliant USB host interface. This patch adds support for it to the OHCI platform driver. As we use device tree to pass platform specific data instead of platform data we remove the check for platform data and instead provide reasonable

[PATCH 1/7] IBM Akebono: Add a SDHCI platform driver

2014-02-20 Thread Alistair Popple
This patch adds a SDHCI platform driver for the new IBM PPC476GTR SoC which is on the Akebono board. Signed-off-by: Alistair Popple --- drivers/mmc/host/Kconfig | 12 drivers/mmc/host/Makefile |1 + drivers/mmc/host/sdhci-of-476gtr.c | 60 +

[PATCH 0/7] IBM Akebono/PPC476GTR Support

2014-02-20 Thread Alistair Popple
The IBM Akebono board is a development board for the new PPC476GTR system on chip (SoC). This is just a resubmission of the previous patches rebased on kernel v3.13. Ben H has indicated the subsystem specific changes should be merged via the appropriate kernel trees. Alistair Popple (7): IBM Ak

[PATCH 4/4 v2] powerpc/fsl-booke: Add initial T208x QDS board support

2014-02-20 Thread Shengzhou Liu
Add support for Freescale T2080/T2081 QDS Development System Board. T2081QDS board shares the same PCB with T1040QDS with some differences. The T2080QDS Development System is a high-performance computing, evaluation, and development platform that supports T2080 QorIQ Power Architecture processor,

[PATCH 3/4 v3] powerpc/fsl-booke: Add support for T2080/T2081 SoC

2014-02-20 Thread Shengzhou Liu
Add support for T2080/T2081 SoC without DPAA components. The T2080 SoC includes the following function and features: - Four dual-threaded 64-bit Power architecture e6500 cores, up to 1.8GHz - 2MB L2 cache and 512KB CoreNet platform cache (CPC) - Hierarchical interconnect fabric - One 32-/64-bit DD

Re: [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files

2014-02-20 Thread Prabhakar Kushwaha
On 2/20/2014 8:10 PM, Paul Gortmaker wrote: On 14-02-20 01:05 AM, Prabhakar Kushwaha wrote: On 2/20/2014 4:16 AM, Paul Gortmaker wrote: commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move Freescale IFC driver to a common driver") introduces this build regression into the mpc85

Re: [PATCH v2] powernv: don't attempt to refetch the FSP dump until the user has explicitly acked it.

2014-02-20 Thread Stewart Smith
Michael Neuling writes: > Stewart Smith wrote: > >> This fixes a bug where we would get two events from OPAL with DUMP_AVAIL >> set (which is valid for OPAL to do) and in the second run of extract_dump() >> we would fail to free the memory previously allocated for the dump >> (leaking ~6MB+) as w

Re: [PATCH v2] powernv: don't attempt to refetch the FSP dump until the user has explicitly acked it.

2014-02-20 Thread Michael Neuling
Stewart Smith wrote: > This fixes a bug where we would get two events from OPAL with DUMP_AVAIL > set (which is valid for OPAL to do) and in the second run of extract_dump() > we would fail to free the memory previously allocated for the dump > (leaking ~6MB+) as well as on the second dump_read_d

[PATCH 1/1] powerpc: correct emulated mtfsf instruction

2014-02-20 Thread Stephen Chivers
The emulated (CONFIG_MATH_EMULATION_FULL) PowerPC Floating Point instruction mtfsf does not correctly copy bits from its source register to the Floating Point Status and Register (FPSCR). The error is in the preparation of the mask used to select the bits to be copied from the source to the FPSCR.

GDB diagnostic for System-supplied DSO.

2014-02-20 Thread Stephen N Chivers
Using GDB to "debug" a trivial PowerPC test program using a kernel derived from yesterdays Linux-next I get: "Can't read symbols from system-supplied DSO at 0x10: File truncated" when the program is run. There is no apparent ill effect from this. It happens for both natively and c

Re: [PATCH v2.1 9/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-02-20 Thread Cody P Schafer
Whoops, should be "[Patch v2.1 10/11]" ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH v2.1 9/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-02-20 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/Makefile | 2 ++ arch/powerpc/platforms/pseries/Kconfig | 12 2 files changed, 14 insertions(+) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index 60d71ee..f9c083a 100644 --- a/arch/powerpc/perf

[PATCH v2] powernv: don't attempt to refetch the FSP dump until the user has explicitly acked it.

2014-02-20 Thread Stewart Smith
This fixes a bug where we would get two events from OPAL with DUMP_AVAIL set (which is valid for OPAL to do) and in the second run of extract_dump() we would fail to free the memory previously allocated for the dump (leaking ~6MB+) as well as on the second dump_read_data() call OPAL would not retri

Re: [PATCH] powerpc/powernv: Read opal error log and export it through sysfs interface.

2014-02-20 Thread Stewart Smith
Mahesh J Salgaonkar writes: > This patch adds support to read error logs from OPAL and export them > to userspace through sysfs interface /sys/firmware/opa/opal-elog. I think we could provide a better interface with instead having a file per log message appear in sysfs. We're never going to

Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-02-20 Thread Scott Wood
On Thu, 2014-02-20 at 21:53 +0100, Sebastian Andrzej Siewior wrote: > A MSI device may have multiple interrupts. That means that the > interrupts numbers should be continuos so that pdev->irq refers to the > first interrupt, pdev->irq + 1 to the second and so on. > This patch adds support for conti

[PATCH 2/2] powerpc: msi: fsl: add support for multiple MSI interrupts

2014-02-20 Thread Sebastian Andrzej Siewior
This patch pushes the check for nvec > 1 && MSI into the check function of each MSI driver except for FSL's MSI where the functionality is added. Cc: Arnd Bergmann Cc: Gavin Shan Cc: Alexey Kardashevskiy Cc: Alistair Popple Cc: Brian King Cc: Anton Blanchard Cc: Scott Wood Cc: Minghuan Lian

multiple MSI interrupts on FSL-MPIC

2014-02-20 Thread Sebastian Andrzej Siewior
This series adds support for multiple MSI interrupts on FSL's MPIC. The code has been tested on v3.2 with custom FPGA device on PCIe and then forward ported. Patch #1 has been created from scratch during porting, patch #2 almost applied as-it. Sebastian ___

[PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-02-20 Thread Sebastian Andrzej Siewior
A MSI device may have multiple interrupts. That means that the interrupts numbers should be continuos so that pdev->irq refers to the first interrupt, pdev->irq + 1 to the second and so on. This patch adds support for continuous allocation of virqs for a range of hwirqs. The function is based on ir

[PATCH 2/2] powerpc: add "force config cmd line" Kconfig option

2014-02-20 Thread Sebastian Andrzej Siewior
powerpc uses early_init_dt_scan_chosen() from common fdt code. By enabling this option, the common code can take the built in command line over the one that is comming from bootloader / DT. Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/Kconfig | 9 + 1 file changed, 9 inserti

[PATCH 1/2] powerpc: 85xx rdb: move np pointer to avoid builderror

2014-02-20 Thread Sebastian Andrzej Siewior
If CONFIG_UCC_GETH or CONFIG_SERIAL_QE is not defined then we get a warning about an used variable which leads to a build error. Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/pow

[PATCH 2/9] ps3-vuart: don't use PREPARE_WORK

2014-02-20 Thread Tejun Heo
PREPARE_[DELAYED_]WORK() are being phased out. They have few users and a nasty surprise in terms of reentrancy guarantee as workqueue considers work items to be different if they don't have the same work function. ps3_vuart wasn't overriding the work item with multiple work functions but was usin

P4080 + EHCI controller question

2014-02-20 Thread Ruchika
Hi, I've been trying to understand why the uboot code is unable to work with USB1.1 devices. On a USB analyzer: I notice on an analyzer that there are no SOF or IN tokens seen on the bus at all. The only after the very first setup packet is sent and ACK'd. The board has a hub chip on it connecte

Re: Question about EHCI on P4080

2014-02-20 Thread Ruchika
linuxppc, Is there another mailing list which is more appropriate ? If so I'd be happy to get a recommendation. Thank you Regards ruchika On 2/19/2014 11:55 PM, Ruchika wrote: Hi, I've been trying to understand why the uboot code is unable to work with USB1.1 devices. On a USB analyzer: I noti

Re: [PATCH 1/3] mm: return NUMA_NO_NODE in local_memory_node if zonelists are not setup

2014-02-20 Thread Nishanth Aravamudan
On 20.02.2014 [10:05:39 -0600], Christoph Lameter wrote: > On Wed, 19 Feb 2014, Nishanth Aravamudan wrote: > > > We can call local_memory_node() before the zonelists are setup. In that > > case, first_zones_zonelist() will not set zone and the reference to > > zone->node will Oops. Catch this case

[PATCH 2/4] KVM: PPC: Book3e: Add TLBSEL/TSIZE defines for MAS0/1

2014-02-20 Thread Mihai Caraman
Add mising defines MAS0_GET_TLBSEL() and MAS1_GET_TSIZE() for Book3E. Signed-off-by: Mihai Caraman --- arch/powerpc/include/asm/mmu-book3e.h |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/mmu-book3e.h b/arch/powerpc/include/asm/mmu-book3e.

[PATCH 1/4] KVM: PPC: e500mc: Revert "add load inst fixup"

2014-02-20 Thread Mihai Caraman
Load external pid (lwepx) execution faults, generated by KVM accessing guest contexts, needs to be handled by KVM. In the current implementation the host kernel handles lwepx faults, searching for the faulting address with its own Logical Partition ID (LPID) context! In case a host translation is f

[PATCH 3/4] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-02-20 Thread Mihai Caraman
On booke3e we got the last instruction on the exist path, using load external pid (lwepx) dedicated instruction. The current implementation proved to be buggy, and the alternative, to hook lwepx exceptions into KVM, is considered too intrusive for host. In the proposed solution we gets the instruc

[PATCH 4/4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-02-20 Thread Mihai Caraman
Load external pid (lwepx) instruction faults (when called from KVM with guest context) needs to be handled by KVM. This implies additional code in DO_KVM macro to identify the source of the exception (which oiginate from KVM host rather than the guest). The hook requires to check the Exception Synd

Re: [PATCH 1/3] mm: return NUMA_NO_NODE in local_memory_node if zonelists are not setup

2014-02-20 Thread Christoph Lameter
On Wed, 19 Feb 2014, Nishanth Aravamudan wrote: > We can call local_memory_node() before the zonelists are setup. In that > case, first_zones_zonelist() will not set zone and the reference to > zone->node will Oops. Catch this case, and, since we presumably running > very early, just return that a

Re: [RFC PATCH 2/3] topology: support node_numa_mem() for determining the fallback node

2014-02-20 Thread Christoph Lameter
On Wed, 19 Feb 2014, David Rientjes wrote: > On Tue, 18 Feb 2014, Christoph Lameter wrote: > > > Its an optimization to avoid calling the page allocator to figure out if > > there is memory available on a particular node. > Thus this patch breaks with memory hot-add for a memoryless node. As soon

Re: [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files

2014-02-20 Thread Paul Gortmaker
On 14-02-20 01:05 AM, Prabhakar Kushwaha wrote: > > On 2/20/2014 4:16 AM, Paul Gortmaker wrote: >> commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move >> Freescale IFC driver to a common driver") introduces this build >> regression into the mpc85xx_defconfig: >> >> drivers/built

[PATCH] powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly

2014-02-20 Thread Tony Breeds
Currently we're storing a host endian RTAS token in rtas_stop_self_args.token. We then pass that directly to rtas. This is fine on big endian however on little endian the token is not what we expect. This will typically result in hitting: panic("Alas, I survived.\n"); To fix this we alw

Re: ppc: RECLAIM_DISTANCE 10?

2014-02-20 Thread Michal Hocko
On Wed 19-02-14 08:33:45, Nishanth Aravamudan wrote: > On 19.02.2014 [08:24:38 -0800], Nishanth Aravamudan wrote: > > On 18.02.2014 [17:43:38 -0800], David Rientjes wrote: > > > On Tue, 18 Feb 2014, Nishanth Aravamudan wrote: > > > > > > > How about the following? > > > > > > > > diff --git a/mm/