Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 14:40 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 01:50 PM, Alex Williamson wrote: > > On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: > >> On 04/02/2015 08:48 AM, Alex Williamson wrote: > >>> On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote:

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 01:50 PM, Alex Williamson wrote: On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: This makes use of the it_page_size from the iommu_table struct as page siz

[PATCH 6/8] powernv/elog: Convert elog to opal irq domain

2015-04-01 Thread Alistair Popple
This patch converts the elog code to use the opal irq domain instead of notifier events. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-elog.c | 32 +++--- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms/power

[PATCH 8/8] opal: Remove events notifier

2015-04-01 Thread Alistair Popple
All users of the old opal events notifier have been converted over to the irq domain so remove the event notifier functions. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-irqchip.c | 4 -- arch/powerpc/platforms/powernv/opal.c | 84 +-- a

[PATCH 7/8] powernv/opal-dump: Convert to irq domain

2015-04-01 Thread Alistair Popple
Convert the opal dump driver to the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal-dump.c | 33 +++--- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc/p

[PATCH 5/8] powernv/opal: Convert opal message events to opal irq domain

2015-04-01 Thread Alistair Popple
This patch converts the opal message event to use the new opal irq domain. Signed-off-by: Alistair Popple --- arch/powerpc/platforms/powernv/opal.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/po

[PATCH 3/8] hvc: Convert to using interrupts instead of opal events

2015-04-01 Thread Alistair Popple
Convert the opal hvc driver to use the new irqchip to register for opal events. As older firmware version may not have device tree bindings for the interrupt parent we just use a hardcoded hwirq based on the event number. Signed-off-by: Alistair Popple --- drivers/tty/hvc/hvc_opal.c | 29 +++

[PATCH 1/8] powerpc/powernv: Add a virtual irqchip for opal events

2015-04-01 Thread Alistair Popple
Whenever an interrupt is received for opal the linux kernel gets a bitfield indicating certain events that have occurred and need handling by the various device drivers. Currently this is handled using a notifier interface where we call every device driver that has registered to receive opal events

[PATCH 2/8] ipmi/powernv: Convert to irq event interface

2015-04-01 Thread Alistair Popple
Convert the opal ipmi driver to use the new irq interface for events. Signed-off-by: Alistair Popple --- drivers/char/ipmi/ipmi_powernv.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char/

[PATCH 4/8] powernv/eeh: Update the EEH code to use the opal irq domain

2015-04-01 Thread Alistair Popple
The eeh code currently uses the old notifier method to get eeh events from OPAL. It also contains some logic to filter opal events which has been moved into the virtual irqchip. This patch converts the eeh code to the new event interface which simplifies event handling. Signed-off-by: Alistair Pop

[PATCH v3 12/19] powerpc/pseries: Move controller ops from ppc_md to controller_ops

2015-04-01 Thread Daniel Axtens
This moves the pSeries platform to use the pci_controller_ops structure, rather than ppc_md for PCI controller operations. Signed-off-by: Daniel Axtens --- v2 --> v3: Add a hotplug case in pci_dlpar.c --- arch/powerpc/platforms/pseries/iommu.c | 9 + arch/powerpc/platforms/pseries/

Re: [PATCH kernel v7 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 13:33 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 08:48 AM, Alex Williamson wrote: > > On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > >> Modern IBM POWERPC systems support multiple (currently two) TCE tables > >> per IOMMU group (a.k.a. PE). This adds

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 08:48 AM, Alex Williamson wrote: > > On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > >> This makes use of the it_page_size from the iommu_table struct > >> as page size can differ. > >> > >> This replace

Re: [PATCH kernel v7 28/31] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:55 +1100, Alexey Kardashevskiy wrote: We are adding support for DMA memory pre-registration to be used in conjunction with VFIO. The idea is that the userspace which is going to run a guest may want to pre-register a user sp

Re: [PATCH kernel v7 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is su

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: This makes use of the it_page_size from the iommu_table struct as page size can differ. This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code as recently introduced IOMMU

Re: [PATCH] powerpc/powernv: Add opal-prd channel

2015-04-01 Thread Stewart Smith
Jeremy Kerr writes: > This change adds a char device to access the "PRD" (processor runtime > diagnostics) channel to OPAL firmware. > > Includes contributions from Vaidyanathan Srinivasan, Neelesh Gupta & > Vishal Kulkarni. > > Signed-off-by: Neelesh Gupta > Signed-off-by: Jeremy Kerr Acking

Re: [PATCH 1/2] powerpc/powernv: Add interfaces for flash device access

2015-04-01 Thread Stewart Smith
Jeremy Kerr writes: > From: Cyril Bur > > This change adds the OPAL interface definitions to allow Linux to read, > write and erase from system flash devices. We register platform devices > for the flash devices exported by firmware. > > We clash with the existing opal_flash_init function, which

Re: [PATCH v2 2/3] kernel/reboot.c: Add orderly_reboot for graceful reboot

2015-04-01 Thread Julian Calaby
Hi Joel, On Wed, Apr 1, 2015 at 6:04 PM, Joel Stanley wrote: > The kernel has orderly_poweroff which allows the kernel to initiate a > graceful shutdown of userspace, by running /sbin/poweroff. This adds > orderly_reboot that will cause userspace to shut itself down by calling > /sbin/reboot. > >

Re: [PATCH kernel v7 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-01 Thread Alex Williamson
On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > Modern IBM POWERPC systems support multiple (currently two) TCE tables > per IOMMU group (a.k.a. PE). This adds a iommu_table_group container > for TCE tables. Right now just one table is supported. > > Signed-off-by: Alexey Kardashe

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alex Williamson
On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > This makes use of the it_page_size from the iommu_table struct > as page size can differ. > > This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code > as recently introduced IOMMU_PAGE_XXX macros do not include > IOMMU_

Re: [PATCH kernel v7 28/31] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-04-01 Thread Alex Williamson
On Sat, 2015-03-28 at 01:55 +1100, Alexey Kardashevskiy wrote: > We are adding support for DMA memory pre-registration to be used in > conjunction with VFIO. The idea is that the userspace which is going to > run a guest may want to pre-register a user space memory region so > it all gets pinned on

Re: [PATCH v2 08/10] perf/hv24x7: Whitespace cleanup

2015-04-01 Thread Sukadev Bhattiprolu
Joe Perches [j...@perches.com] wrote: | On Mon, 2015-03-30 at 18:53 -0700, Sukadev Bhattiprolu wrote: | > Fix minor whitespace damages. | | If you are going to do whitespace cleaning, | please verify the patches with scripts/checkpatch.pl --strict. Ok. Will fix up parameter alignment with the ope

Re: [PATCH 4/4] perf/powerpc: Implement group_read() txn interface for 24x7 counters

2015-04-01 Thread Peter Zijlstra
On Wed, Mar 25, 2015 at 10:57:05PM -0700, Sukadev Bhattiprolu wrote: > Would something liks this work? > Sure, that looks fine. Thanks. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH RFC 06/10] dpaa_eth: add ethtool functionality

2015-04-01 Thread Joe Perches
On Wed, 2015-04-01 at 19:19 +0300, Madalin Bucur wrote: > Add support for basic ethtool operations. > diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c > b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c [] > +static int __cold dpa_get_settings(struct net_device *net_dev, > +

Re: [PATCH RFC 02/10] dpaa_eth: add support for DPAA Ethernet

2015-04-01 Thread Joe Perches
On Wed, 2015-04-01 at 19:19 +0300, Madalin Bucur wrote: > This introduces the Freescale Data Path Acceleration Architecture > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > the Freescale DPAA QorIQ platforms. tr

[PATCH RFC 00/10] introduce DPAA Ethernet driver

2015-04-01 Thread Madalin Bucur
This is the second version of a patch series that adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This second version includes the changes requested by Kumar Gala. The PM ops patch was removed as the supporting FMan driver code was de-featured from the

Re: [PATCH RFC 01/10] devres: add devm_alloc_percpu()

2015-04-01 Thread Joe Perches
On Wed, 2015-04-01 at 19:19 +0300, Madalin Bucur wrote: > Introduce managed counterparts for alloc_percpu() and free_percpu(). > Add devm_alloc_percpu() and devm_free_percpu() into the managed > interfaces list. It'd be nice to add include to these files rather than get included indirectly via mo

[PATCH RFC 10/10] dpaa_eth: add trace points

2015-04-01 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale

[PATCH RFC 08/10] dpaa_eth: add debugfs counters

2015-04-01 Thread Madalin Bucur
Add a series of counters to be exported through debugfs: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion gro

[PATCH RFC 05/10] dpaa_eth: add driver's Tx queue selection mechanism

2015-04-01 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 11 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h| 6 +

[PATCH RFC 07/10] dpaa_eth: add sysfs exports

2015-04-01 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + .../net/ethernet/freescale/d

[PATCH RFC 09/10] dpaa_eth: add debugfs entries

2015-04-01 Thread Madalin Bucur
Export per CPU counters through debugfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 7 + drivers/net/ethernet/freescale/dpaa/Makefile | 3 + drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c | 273 + drivers/net/ethernet/f

[PATCH RFC 06/10] dpaa_eth: add ethtool functionality

2015-04-01 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

[PATCH RFC 04/10] dpaa_eth: add support for S/G frames

2015-04-01 Thread Madalin Bucur
Add support for Scater/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 + .../net/ethernet/

[PATCH RFC 02/10] dpaa_eth: add support for DPAA Ethernet

2015-04-01 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/

[PATCH RFC 03/10] dpaa_eth: add configurable bpool thresholds

2015-04-01 Thread Madalin Bucur
Allow the user to tweak the refill threshold and the total number of buffers in the buffer pool. The provided values are for one CPU. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 20 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c|

[PATCH RFC 01/10] devres: add devm_alloc_percpu()

2015-04-01 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur Tested-by: Madalin-Cristian Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c

Re: [PATCH v2 1/3] envctrl: Ignore orderly_poweroff return value

2015-04-01 Thread David Miller
From: Joel Stanley Date: Wed, 1 Apr 2015 17:34:46 +1030 > orderly_poweroff() unconditionally returns 0, so remove the dead code > that checks the return value. > > A future patch will change the return type to void. > > Signed-off-by: Joel Stanley Acked-by: David S. Miller _

[RFC,v2,06/12] soc/fman: Add the FMan MAC FLIB

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The FMan MAC FLib provides basic API used by the drivers to configure and control the FMan MAC hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/Makefile |1 + drivers/soc/fsl/fman/mac/Makefile |5 + drivers/soc/fsl/fman/mac

[RFC,v2,12/12] soc/fman: Add FMan MAC driver

2015-04-01 Thread Igal . Liberman
From: Igal Liberman This patch adds the Ethernet MAC driver code. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/inc/mac.h | 125 drivers/soc/fsl/fman/mac/Makefile |3 +- drivers/soc/fsl/fman/mac/mac-api.c | 605 drivers/soc/fsl/f

[RFC,v2,10/12] soc/fman: Add FMan SP support

2015-04-01 Thread Igal . Liberman
From: Igal Liberman Add Storage Profiles support. The Storage Profiles contain parameters that are used by the FMan in order to store frames being received on the Rx ports, or to determine the parameters that affect writing the Internal Context in the frame margin on Tx. Signed-off-by: Igal Libe

[RFC,v2,07/12] soc/fman: Add FMan MURAM support

2015-04-01 Thread Igal . Liberman
From: Igal Liberman Add Frame Manager Multi-User RAM support. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/Kconfig|1 + drivers/soc/fsl/fman/Makefile |5 +- drivers/soc/fsl/fman/fm_muram.c | 174 +++ drivers/soc/fsl/fm

[RFC,v2,05/12] soc/fman: Add the FMan MAC FLIB headers

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The FMan MAC FLib provides basic API used by the drivers to configure and control the FMan MAC hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/flib/fsl_enet.h | 275 +++ drivers/soc/fsl/fman/flib/fsl_fman_dtsec.h | 791 +++

[RFC,v2,04/12] soc/fman: Add the FMan port FLIB

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The FMan Port FLib provides basic API used by the drivers to configure and control the FMan Port hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/Kconfig |1 + drivers/soc/fsl/fman/Makefile |2 + drivers/soc/fsl/fman/port/Makefile

[RFC,v2,03/12] soc/fman: Add the FMan port FLIB headers

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The FMan Port Flib provides basic API used by the drivers to configure and control the FMan Port hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/flib/fman_common.h | 73 + drivers/soc/fsl/fman/flib/fsl_fman_port.h | 462 +

[RFC,v2,02/12] soc/fman: Add the FMan FLIB

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The FMan FLib provides the basic API used by the FMan drivers to configure and control the FMan hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/Kconfig |2 + drivers/soc/fsl/Makefile |2 + drivers/soc/fsl/fman/Kconfig |7 + drivers/soc/fsl

[RFC,v2,01/12] soc/fman: Add the FMan FLIB headers

2015-04-01 Thread Igal . Liberman
From: Igal Liberman This patch presents the FMan Foundation Libraries (FLIB) headers. The FMan FLib provides the basic API used by the FMan drivers to configure and control the FMan hardware. Signed-off-by: Igal Liberman --- drivers/soc/fsl/fman/flib/common/general.h | 41 ++ drivers/soc/fsl

[RFC,v2,00/12] Freescale DPAA FMan

2015-04-01 Thread Igal . Liberman
From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the

Re: [RESEND PATCH] documentation: memory-barriers: fix smp_mb__before_spinlock() semantics

2015-04-01 Thread Paul E. McKenney
On Tue, Mar 31, 2015 at 09:39:41AM +0100, Will Deacon wrote: > Our current documentation claims that, when followed by an ACQUIRE, > smp_mb__before_spinlock() orders prior loads against subsequent loads > and stores, which isn't actually true. > > Fix the documentation to state that this sequence

[PATCH 4/4] hwmon: (ibmpowernv) pretty print labels

2015-04-01 Thread Cédric Le Goater
The new OPAL device tree adds a few properties which can be used to add extra information on the sensor label. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/i

[PATCH 2/4] hwmon: (ibmpowernv) add support for the new device tree

2015-04-01 Thread Cédric Le Goater
The new OPAL device tree for sensors has a different layout and uses new property names, for the type and for the handler used to capture the sensor data. This patch modifies the ibmpowernv driver to support such a tree in a way preserving compatibility with older OPAL firmwares. This is achieved

[PATCH 3/4] hwmon: (ibmpowernv) add a label attribute

2015-04-01 Thread Cédric Le Goater
Currently, sensors are only identified by their type and index. The new OPAL device tree can expose extra properties to identify some sensors by their name or location. This patch adds the creation of a new hwmon *_label attribute when such properties are detected. Signed-off-by: Cédric Le Goater

[PATCH 1/4] hwmon: (ibmpowernv) add a helper routine create_hwmon_attr

2015-04-01 Thread Cédric Le Goater
This should shorten a bit the code necessary to create a hmwon attribute. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index a6

[PATCH 0/4] hwmon: (ibmpowernv) add DTS support

2015-04-01 Thread Cédric Le Goater
Hello ! These patches extend the ibmpowernv driver to support the new OPAL firmware which now exposes in its device tree the Digital Temperature Sensors of a P8 system. They are based on Linux 4.0.0-rc6 + the initial cleanup serie : http://lists.lm-sensors.org/pipermail/lm-sensors/2015-Ma

Re: [RFC/RFT, RESEND] powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure

2015-04-01 Thread Sudeep Holla
On 01/04/15 05:40, Michael Ellerman wrote: On Tue, 2015-03-31 at 18:14 +0100, Sudeep Holla wrote: On 31/03/15 11:56, Michael Ellerman wrote: On Mon, 2015-23-02 at 18:18:20 UTC, Sudeep Holla wrote: This patch removes the redundant sysfs cacheinfo code by reusing the newly introduced generic

Re: [PATCH] powerpc: fix memory corruption by pnv_alloc_idle_core_states

2015-04-01 Thread Preeti U Murthy
On 03/31/2015 09:41 PM, Jan Stancek wrote: > Space allocated for paca is based off nr_cpu_ids, > but pnv_alloc_idle_core_states() iterates paca with > cpu_nr_cores()*threads_per_core, which is using NR_CPUS. > > This causes pnv_alloc_idle_core_states() to write over memory, > which is outside of p

Re: [PATCH] powerpc: Reword the "returning from prom_init" message

2015-04-01 Thread Benjamin Herrenschmidt
On Wed, 2015-04-01 at 14:56 +0800, Jeremy Kerr wrote: > Hi Michael, > > > Let's try something different. > > > > This prints: > > > > Quiescing Open Firmware ... > > Booting Linux via __start() ... > > "returning from prom_init" has been an emblem of the powerpc kernel boot > since old time

perf report broken for branch stack samples

2015-04-01 Thread Anshuman Khandual
Hello, perf report is not showing up the branch stack sample results in the from_symbol ---> to_symbol format even if the perf.data file has got the samples (through 'perf record -b ' session). Perf report still displays the generic event based relative symbol classification as usual. This problem

Re: [PATCH] powerpc: Remove the celleb support

2015-04-01 Thread Jeremy Kerr
Hi Michael, > The celleb code has seen no actual development for ~7 years. > > We (maintainers) have no access to test hardware, and it is highly > likely the code has bit-rotted. > > As far as we're aware the hardware was never widely available, and is > certainly no longer available, and no on

[PATCH v2 3/3] powerpc/powernv: Reboot when requested by firmware

2015-04-01 Thread Joel Stanley
Use orderly_reboot so userspace will to shut itself down via the reboot path. This is required for graceful reboot initiated by the BMC, such as when a user uses ipmitool to issue a 'chassis power cycle' command. Signed-off-by: Joel Stanley Acked-by: Michael Ellerman --- arch/powerpc/platforms/

[PATCH v2 2/3] kernel/reboot.c: Add orderly_reboot for graceful reboot

2015-04-01 Thread Joel Stanley
The kernel has orderly_poweroff which allows the kernel to initiate a graceful shutdown of userspace, by running /sbin/poweroff. This adds orderly_reboot that will cause userspace to shut itself down by calling /sbin/reboot. This will be used for shutdown initiated by a system controller on platfo

[PATCH v2 1/3] envctrl: Ignore orderly_poweroff return value

2015-04-01 Thread Joel Stanley
orderly_poweroff() unconditionally returns 0, so remove the dead code that checks the return value. A future patch will change the return type to void. Signed-off-by: Joel Stanley --- drivers/sbus/char/bbc_envctrl.c | 3 +-- drivers/sbus/char/envctrl.c | 7 +-- 2 files changed, 2 insert