Re: [RFC 07/24] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-06-03 Thread Finn Thain
On Tue, 2 Jun 2015, Darren Hart wrote: > On Tue, Jun 02, 2015 at 07:09:28AM -0300, Henrique de Moraes Holschuh > wrote: > > Test results were sent to me privately, and they are correct, so... > > > > Finn, unless there is some compelling reason not to - like they are MBs > worth of data, plea

Re: [PATCH] of: clean-up unnecessary libfdt include paths

2015-06-03 Thread Ralf Baechle
On Wed, Jun 03, 2015 at 12:10:25AM -0500, Rob Herring wrote: > Date: Wed, 3 Jun 2015 00:10:25 -0500 > From: Rob Herring > To: devicet...@vger.kernel.org, linux-ker...@vger.kernel.org > Cc: Grant Likely , Rob Herring , > Ralf Baechle , Benjamin Herrenschmidt > , Paul Mackerras , Michael > Ell

Re: [PATCH V5 12/13] selftests, powerpc: Add thread based stress test for DSCR sysfs interfaces

2015-06-03 Thread Anshuman Khandual
On 05/21/2015 12:13 PM, Anshuman Khandual wrote: > This patch adds a test to update the system wide DSCR value repeatedly > and then verifies that any thread on any given CPU on the system must > be able to see the same DSCR value whether its is being read through > the problem state based SPR or t

Re: [PATCH v13 03/14] perf, tools: Use pmu_events_map table to create event aliases

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:03AM -0700, Sukadev Bhattiprolu wrote: SNIP > + > +/* > + * From the pmu_events_map, find the table of PMU events that corresponds > + * to the current running CPU. Then, add all PMU events from that table > + * as aliases. > + */ > +static int pmu_add_cpu_aliases(vo

Re: [PATCH v13 02/14] perf, tools, jevents: Program to convert JSON file to C style file

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:02AM -0700, Sukadev Bhattiprolu wrote: SNIP > + > +static char *file_name_to_table_name(char *fname) > +{ > + unsigned int i, j; > + int c; > + int n = 1024; /* use max variable length? */ I think this should be at least PATH_MAX, or you might

Re: [PATCH v13 03/14] perf, tools: Use pmu_events_map table to create event aliases

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:03AM -0700, Sukadev Bhattiprolu wrote: SNIP > > +/* > + * Return the CPU id as a raw string. > + * > + * Each architecture should provide a more precise id string that > + * can be use to match the architecture's "mapfile". > + */ > +char *__attribute__((weak))get_

Re: [PATCH v13 03/14] perf, tools: Use pmu_events_map table to create event aliases

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:03AM -0700, Sukadev Bhattiprolu wrote: > At run time, (i.e when perf is starting up), locate the specific events > table for the current CPU and create event aliases for each of the events. > > Use these aliases to parse user's specified perf event. > > Signed-off-by

Re: [PATCH v13 02/14] perf, tools, jevents: Program to convert JSON file to C style file

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:02AM -0700, Sukadev Bhattiprolu wrote: SNIP > + * If we fail to locate/process JSON and map files, create a NULL mapping > + * table. This would at least allow perf to build even if we can't find/use > + * the aliases. > + */ > +static void create_empty_mapping(const

Re: [PATCH v13 03/14] perf, tools: Use pmu_events_map table to create event aliases

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:03AM -0700, Sukadev Bhattiprolu wrote: SNIP > @@ -225,26 +221,47 @@ static int perf_pmu__new_alias(struct list_head *list, > char *dir, char *name, FI > alias->unit[0] = '\0'; > alias->per_pkg = false; > > - ret = parse_events_terms(&alias->terms,

Re: [PATCH v13 06/14] perf, tools: Support alias descriptions

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:06AM -0700, Sukadev Bhattiprolu wrote: SNIP > @@ -1033,37 +1064,49 @@ void print_pmu_events(const char *event_glob, bool > name_only) > event_glob > continue; > > -

Re: [PATCH v13 04/14] perf, tools: Allow events with dot

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:04AM -0700, Sukadev Bhattiprolu wrote: > From: Andi Kleen > > The Intel events use a dot to separate event name and unit mask. > Allow dot in names in the scanner, and remove special handling > of dot as EOF. Also remove the hack in jevents to replace dot > with unde

Re: [PATCH v13 11/14] perf, tools: Support long descriptions with perf list -v

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:11AM -0700, Sukadev Bhattiprolu wrote: > From: Andi Kleen > > Previously we were dropping the useful longer descriptions that some > events have in the event list completely. This patch makes them appear with > perf list. > > Old perf list: > > baclears: > baclea

Re: [PATCH v13 12/14] perf, tools: Add support for event list topics

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 12:16:41PM -0700, Sukadev Bhattiprolu wrote: SNIP >[Speculative and retired macro-conditional branches] > br_inst_exec.all_direct_jmp >[Speculative and retired macro-unconditional branches excluding calls > and indirects] > br_inst_exec.all_direct_near

Re: [PATCH v13 13/14] perf, tools: Handle header line in mapfile

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:13AM -0700, Sukadev Bhattiprolu wrote: > From: Andi Kleen > > Support a header line in the mapfile.csv, to match the existing > mapfiles 'Suport' means 'skip' in here jirka > > Signed-off-by: Andi Kleen > Signed-off-by: Sukadev Bhattiprolu > > Changelog[v2] >

Re: [PATCH v13 02/14] perf, tools, jevents: Program to convert JSON file to C style file

2015-06-03 Thread Jiri Olsa
On Tue, Jun 02, 2015 at 10:12:02AM -0700, Sukadev Bhattiprolu wrote: SNIP > + > +static int process_mapfile(FILE *outfp, char *fpath) > +{ > + int n = 16384; > + FILE *mapfp; > + char *save; > + char *line, *p; > + int line_num; > + char *tblname; > + > + pr_info("%s:

Re: [RFC 07/24] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-06-03 Thread Henrique de Moraes Holschuh
On Wed, Jun 3, 2015, at 00:34, Darren Hart wrote: > On Tue, Jun 02, 2015 at 07:09:28AM -0300, Henrique de Moraes Holschuh > wrote: > > Test results were sent to me privately, and they are correct, so... > > Finn, unless there is some compelling reason not to - like they are MBs > worth of > data,

Re: [PATCH kernel v11 09/34] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-06-03 Thread Alexey Kardashevskiy
On 06/01/2015 02:28 PM, David Gibson wrote: On Fri, May 29, 2015 at 06:44:33PM +1000, Alexey Kardashevskiy wrote: There moves locked pages accounting to helpers. Later they will be reused for Dynamic DMA windows (DDW). This reworks debug messages to show the current value and the limit. This s

Re: [PATCH kernel v11 26/34] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-06-03 Thread Alexey Kardashevskiy
On 06/02/2015 09:30 AM, David Gibson wrote: On Fri, May 29, 2015 at 06:44:50PM +1000, Alexey Kardashevskiy wrote: This is a part of moving DMA window programming to an iommu_ops callback. pnv_pci_ioda2_set_window() takes an iommu_table_group as a first parameter (not pnv_ioda_pe) as it is going

Re: [PATCH kernel v11 27/34] powerpc/powernv: Implement multilevel TCE tables

2015-06-03 Thread Alexey Kardashevskiy
On 06/02/2015 09:50 AM, David Gibson wrote: On Fri, May 29, 2015 at 06:44:51PM +1000, Alexey Kardashevskiy wrote: TCE tables might get too big in case of 4K IOMMU pages and DDW enabled on huge guests (hundreds of GB of RAM) so the kernel might be unable to allocate contiguous chunk of physical m

Re: [PATCH kernel v11 33/34] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-06-03 Thread Alexey Kardashevskiy
On 06/02/2015 02:17 PM, David Gibson wrote: On Fri, May 29, 2015 at 06:44:57PM +1000, Alexey Kardashevskiy wrote: The existing implementation accounts the whole DMA window in the locked_vm counter. This is going to be worse with multiple containers and huge DMA windows. Also, real-time accountin

Re: [PATCH v13 12/14] perf, tools: Add support for event list topics

2015-06-03 Thread Andi Kleen
> please split at least the jevents Topic parsing from the rest > idelay also the alias update and the display change What's the point of all these splits? It's already one logical unit, not too large, and is bisectable. -andi -- a...@linux.intel.com -- Speaking for myself only

[PATCH 0/4] ppc64 ftrace implementation

2015-06-03 Thread Torsten Duwe
On Tue, May 19, 2015 at 11:52:47AM +0200, Jiri Kosina wrote: > On Tue, 19 May 2015, Michael Ellerman wrote: > > > > ftrace already handles recursion protection by itself (depending on the > > > per-ftrace-ops FTRACE_OPS_FL_RECURSION_SAFE flag). > > > > OK, so I wonder why that's not working for

Re: [PATCH 1/4] ppc64 ftrace implementation

2015-06-03 Thread Torsten Duwe
Implement ftrace on ppc64 Signed-off-by: Torsten Duwe diff --git a/arch/powerpc/include/asm/ftrace.h b/arch/powerpc/include/asm/ftrace.h index e366187..691 100644 --- a/arch/powerpc/include/asm/ftrace.h +++ b/arch/powerpc/include/asm/ftrace.h @@ -46,6 +46,8 @@ extern void _mcount(void);

Re: [PATCH 2/4] ppc64 ftrace configuration

2015-06-03 Thread Torsten Duwe
Add Kconfig variables and Makefile magic for ftrace with -mprofile-kernel Signed-off-by: Torsten Duwe diff --git a/Makefile b/Makefile index 3d16bcc..bbd5e87 100644 --- a/Makefile +++ b/Makefile @@ -733,7 +733,10 @@ export CC_FLAGS_FTRACE ifdef CONFIG_HAVE_FENTRY CC_USING_FENTRY:= $(c

Re: [PATCH 3/4] ppc64 ftrace: spare early boot and low level code

2015-06-03 Thread Torsten Duwe
Using -mprofile-kernel on early boot code not only confuses the checker but is also useless, as the infrastructure is not yet in place. Proceed like with -pg, equally with time.o and ftrace itself. Signed-off-by: Torsten Duwe diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makef

Re: [PATCH 4/4] ppc64 ftrace recursion protection

2015-06-03 Thread Torsten Duwe
As suggested by You and Jikos, a flag in task_struct's trace_recursion is used to block a tracer function to recurse into itself, especially on a data access fault. This should catch all functions called by the fault handlers which are not yet attributed notrace. Signed-off-by: Torsten Duwe diff

Re: [PATCH v13 12/14] perf, tools: Add support for event list topics

2015-06-03 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 03, 2015 at 05:57:33AM -0700, Andi Kleen escreveu: > > please split at least the jevents Topic parsing from the rest > > idelay also the alias update and the display change > > What's the point of all these splits? It's already one logical unit, > not too large, and is bisectable. Eas

Re: [PATCH v13 12/14] perf, tools: Add support for event list topics

2015-06-03 Thread Jiri Olsa
On Wed, Jun 03, 2015 at 05:57:33AM -0700, Andi Kleen wrote: > > please split at least the jevents Topic parsing from the rest > > idelay also the alias update and the display change > > What's the point of all these splits? It's already one logical unit, > not too large, and is bisectable. splitt

Re: [PATCH] cpuidle: powernv/pseries: Decrease the snooze residency

2015-06-03 Thread Vaidyanathan Srinivasan
* Benjamin Herrenschmidt [2015-05-30 20:38:22]: > On Sat, 2015-05-30 at 11:31 +0530, Vaidyanathan Srinivasan wrote: > > In shared lpar case, spinning in guest context may potentially take > > away cycles from other lpars waiting to run on the same physical cpu. > > > > So the policy in shared lp

Re: [PATCH V7 06/10] powerpc/eeh: Create PE for VFs

2015-06-03 Thread Bjorn Helgaas
On Wed, Jun 03, 2015 at 03:10:23PM +1000, Gavin Shan wrote: > On Wed, Jun 03, 2015 at 11:31:42AM +0800, Wei Yang wrote: > >On Mon, Jun 01, 2015 at 06:46:45PM -0500, Bjorn Helgaas wrote: > >>On Tue, May 19, 2015 at 06:50:08PM +0800, Wei Yang wrote: > >>> Current EEH recovery code works with the assu

Re: [v3,33/36] genirq: Use helper function to access irq_data->msi_desc

2015-06-03 Thread Thomas Gleixner
On Tue, 2 Jun 2015, Michael Ellerman wrote: > Though I would point out we already have 16 irq_foo_get_bar() accessors?! Say thanks to the people who mindlessly fiddled in the core managed fields of irqdesc and irqdata. The hard to track down wreckage they caused me to enforce accessors. The new a

Re: [v5] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-03 Thread Vipin K Parashar
Hi Michael, Thanks for review. Responses below On 06/03/2015 10:43 AM, Michael Ellerman wrote: On Mon, 2015-18-05 at 15:18:04 UTC, Vipin K Parashar wrote: This patch adds support for FSP EPOW (Early Power Off Warning) and Please spell out the acronyms the first time you use them,

Re: [PATCH kernel v11 09/34] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-06-03 Thread David Gibson
On Wed, Jun 03, 2015 at 09:11:09PM +1000, Alexey Kardashevskiy wrote: > On 06/01/2015 02:28 PM, David Gibson wrote: > >On Fri, May 29, 2015 at 06:44:33PM +1000, Alexey Kardashevskiy wrote: > >>There moves locked pages accounting to helpers. > >>Later they will be reused for Dynamic DMA windows (DDW

Re: [PATCH kernel v11 27/34] powerpc/powernv: Implement multilevel TCE tables

2015-06-03 Thread David Gibson
On Wed, Jun 03, 2015 at 09:27:10PM +1000, Alexey Kardashevskiy wrote: > On 06/02/2015 09:50 AM, David Gibson wrote: > >On Fri, May 29, 2015 at 06:44:51PM +1000, Alexey Kardashevskiy wrote: > >>TCE tables might get too big in case of 4K IOMMU pages and DDW enabled > >>on huge guests (hundreds of GB

Re: [PATCH kernel v11 33/34] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-06-03 Thread David Gibson
On Wed, Jun 03, 2015 at 09:40:49PM +1000, Alexey Kardashevskiy wrote: > On 06/02/2015 02:17 PM, David Gibson wrote: > >On Fri, May 29, 2015 at 06:44:57PM +1000, Alexey Kardashevskiy wrote: > >>The existing implementation accounts the whole DMA window in > >>the locked_vm counter. This is going to b

Re: [PATCH V7 06/10] powerpc/eeh: Create PE for VFs

2015-06-03 Thread Gavin Shan
On Wed, Jun 03, 2015 at 10:46:38AM -0500, Bjorn Helgaas wrote: >On Wed, Jun 03, 2015 at 03:10:23PM +1000, Gavin Shan wrote: >> On Wed, Jun 03, 2015 at 11:31:42AM +0800, Wei Yang wrote: >> >On Mon, Jun 01, 2015 at 06:46:45PM -0500, Bjorn Helgaas wrote: >> >>On Tue, May 19, 2015 at 06:50:08PM +0800,

[RFT v2 04/48] powerpc, irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

2015-06-03 Thread Jiang Liu
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Note: this patch has been queued for 4.2 by Michael Ellerman Signed-off-by: Jiang Liu --- arch/powerpc/platforms/52xx/mpc52xx_gpt.c |2 +- arch/powerpc/platforms/cel

[RFT v2 26/48] powerpc, irq: Prepare for killing the first parameter 'irq' of irq_flow_handler_t

2015-06-03 Thread Jiang Liu
Change irq flow handler to prepare for killing the first parameter 'irq' of irq_flow_handler_t. Signed-off-by: Jiang Liu --- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c |4 +++- arch/powerpc/platforms/85xx/socrates_fpga_pic.c |2 +- arch/powerpc/platforms/cell/interrupt.c |

[RFT v2 38/48] genirq, powerpc: Kill the first parameter 'irq' of irq_flow_handler_t

2015-06-03 Thread Jiang Liu
Now most IRQ flow handlers make no use of the first parameter 'irq'. And for those who do make use of 'irq', we could easily get the irq number through irq_desc->irq_data->irq. So kill the first parameter 'irq' of irq_flow_handler_t. To ease review, I have split the changes into several parts, tho

Re: [RFC 07/24] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-06-03 Thread Darren Hart
On Wed, Jun 03, 2015 at 07:37:13AM -0300, Henrique de Moraes Holschuh wrote: > On Wed, Jun 3, 2015, at 00:34, Darren Hart wrote: > > On Tue, Jun 02, 2015 at 07:09:28AM -0300, Henrique de Moraes Holschuh > > wrote: > > > Test results were sent to me privately, and they are correct, so... > > > > Fi

Re: [PATCH V7 06/10] powerpc/eeh: Create PE for VFs

2015-06-03 Thread Wei Yang
On Wed, Jun 03, 2015 at 10:46:38AM -0500, Bjorn Helgaas wrote: >On Wed, Jun 03, 2015 at 03:10:23PM +1000, Gavin Shan wrote: >> On Wed, Jun 03, 2015 at 11:31:42AM +0800, Wei Yang wrote: >> >On Mon, Jun 01, 2015 at 06:46:45PM -0500, Bjorn Helgaas wrote: >> >>On Tue, May 19, 2015 at 06:50:08PM +0800,

RE: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-06-03 Thread Zhao Qiang
On Thu, 2015-05-28 at 1:37AM +0800, Wood Scott wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, May 28, 2015 1:37 AM > To: Zhao Qiang-B45475 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Xie Xiaobo-R63061 > Subject: Re: [PATCH 2/2] rheap: move rheap.c from

Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-06-03 Thread Scott Wood
On Thu, 2015-06-04 at 00:56 -0500, Zhao Qiang-B45475 wrote: > On Thu, 2015-05-28 at 1:37AM +0800, Wood Scott wrote: > > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Thursday, May 28, 2015 1:37 AM > > To: Zhao Qiang-B45475 > > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B

Re: [PATCH] cpufreq: qoriq: optimize the CPU frequency switching time

2015-06-03 Thread Viresh Kumar
On 04-06-15, 14:25, yuantian.t...@freescale.com wrote: > From: Tang Yuantian > > Each time the CPU switches its frequency, the clock nodes in > DTS are walked through to find proper clock source. This is > very time-consuming, for example, it is up to 500+ us on T4240. > Besides, switching time v

[PATCH v5 00/42] PowerPC/PowerNV: PCI Slot Management

2015-06-03 Thread Gavin Shan
The series of patches intend to support PCI slot for PowerPC PowerNV platform, which is running on top of skiboot firmware. The patchset requires corresponding changes from skiboot firmware, which is sent to skib...@lists.ozlabs.org for review. The PCI slots are exposed by skiboot with device node

[PATCH v5 02/42] powerpc/powernv: Enable M64 on P7IOC

2015-06-03 Thread Gavin Shan
The patch enables M64 window on P7IOC, which has been enabled on PHB3. Different from PHB3 where 16 M64 BARs are supported and each of them can be owned by one particular PE# exclusively or divided evenly to 256 segments, each P7IOC PHB has 16 M64 BARs and each of them are divided into 8 segments.

[PATCH v5 01/42] PCI: Add pcibios_setup_bridge()

2015-06-03 Thread Gavin Shan
Currently, PowerPC PowerNV platform utilizes ppc_md.pcibios_fixup(), which is called for once after PCI probing and resource assignment are completed, to allocate platform required resources for PCI devices: PE#, IO and MMIO mapping, DMA address translation (TCE) table etc. Obviously, it's not hotp

[PATCH v5 03/42] powerpc/powernv: M64 support improvement

2015-06-03 Thread Gavin Shan
We're having the hardware (on PHB3) or software enforced (on P7IOC) limitation: M64 segment#x can only be assigned to PE#x. IO and M32 segment can be mapped to arbitrary PE# via IODT and M32DT. It means the PE number should be x if M64 segment#x has been assigned to the PE. Also, each PE owns one M

[PATCH v5 23/42] powerpc/powernv: Cleanup on pnv_pci_ioda2_release_dma_pe()

2015-06-03 Thread Gavin Shan
The patch applies cleanup on pnv_pci_ioda2_release_dma_pe(): * Rename it to pnv_pci_ioda2_release_pe_dma() to match the function names used to release resources for one PE in the subsequent patches. * Remove the parameter of PCI device, which is used to figure out device node. VFs

[PATCH v5 26/42] powerpc/powernv: Use PCI slot reset infrastructure

2015-06-03 Thread Gavin Shan
The skiboot firmware might provide the capability of resetting PCI slot by property "ibm,reset-by-firmware" on the PCI slot associated device node. The patch checks on the property and route the reset to firmware if the property exists. Otherwise, we fail back to the old path as before. Signed-off

[PATCH v5 32/42] powerpc/powernv: Introduce pnv_pci_poll()

2015-06-03 Thread Gavin Shan
The patch obsoletes pnv_eeh_poll() with pnv_pci_poll(): * The return value from last OPAL API is passed to the pnv_pci_poll() and handled there. * More information (e.g. PCI slot power status) is retrieved if the last argument is valid. Signed-off-by: Gavin Shan --- v5: * Deriv

[PATCH v5 14/42] powerpc/powernv: Allocate PE# in deasending order

2015-06-03 Thread Gavin Shan
The available PE#, represented by a bitmap in the PHB, is allocated in asending order. It conflicts with the fact that M64 segments are assigned in same order. In order to avoid the conflict, the patch allocates PE# in deasending order. Signed-off-by: Gavin Shan --- v5: * Split from [PATCH v5 v

[PATCH v5 15/42] powerpc/powernv: Reserve PE# for root bus

2015-06-03 Thread Gavin Shan
pcibios_setup_bridge(), called to update PCI bridge windows, will allocate PE for PCI buses. The function isn't called for root bus that doesn't have upstream bridge. The patch reserves PE# for root bus in advance so that we can setup it in next patch. Signed-off-by: Gavin Shan --- v5: * Split

[PATCH v5 18/42] powerpc/powernv: Helper function pnv_ioda_init_pe()

2015-06-03 Thread Gavin Shan
The patch introduces helper function pnv_ioda_init_pe(), which initialize PE instance after reserving or allocating PE#, to simplify the code. The patch doesn't introduce behavioural changes. Signed-off-by: Gavin Shan --- v5: * Split from PATCH[v4 07/21] --- arch/powerpc/platforms/powernv/pci-

[PATCH v5 04/42] powerpc/powernv: Trace consumed IO and M32 segments by PE

2015-06-03 Thread Gavin Shan
The patch introduces two bitmaps to trace the IO and M32 segments consumed by one particular PE, which can be released once the PE is destroyed during PCI unplugging time. Also, we're using fixed quantity of bits to trace the used IO and M32 segments by PEs in one particular PHB. Besides, @pe_array

[PATCH v5 35/42] powerpc/pci: Create eeh_dev while creating pci_dn

2015-06-03 Thread Gavin Shan
The eeh_dev is always created based on pci_dn, but with initcall core_initcall_sync(). The patch creates eeh_dev when pci_dn is created, indicating they have same life cycle. Signed-off-by: Gavin Shan --- v5: * Derived from PATCH[v4 16/21] --- arch/powerpc/include/asm/eeh.h | 6 --

[PATCH v5 39/42] drivers/of: Unflatten nodes equal or deeper than specified level

2015-06-03 Thread Gavin Shan
unflatten_dt_node() is called recursively to unflatten FDT nodes with the assumption that FDT blob has only one root node, which isn't true when the FDT blob represents device sub-tree. The patch improves the function to supporting device sub-tree that have multiple root nodes: * Rename origina

[PATCH v5 42/42] pci/hotplug: PowerPC PowerNV PCI hotplug driver

2015-06-03 Thread Gavin Shan
The patch intends to add standalone driver to support PCI hotplug for PowerPC PowerNV platform, which runs on top of skiboot firmware. The firmware identified hotpluggable slots and marked their device tree node with proper "ibm,slot-pluggable" and "ibm,reset-by-firmware". The driver simply scans d