Re: [PATCH v2 RFC] pasemi: Fix boot failure on 4.7-rc1

2016-06-29 Thread Olof Johansson
Hi, On Wed, Jun 29, 2016 at 1:06 PM, Darren Stevens wrote: > > Commit:d6a9996e84ac4beb7713e9485f4563e100a9b03e (powerpc/mm: > vmalloc abstraction in preparation for radix) turned kernel memory > and IO addresses from #defined constants to variables initialised > at runtime. > >

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Christoph Hellwig
On Thu, Jun 30, 2016 at 02:35:54PM +0800, Fam Zheng wrote: > also more code and less flexible IMO. For example, we need at least two > variants, for attribute_group and device_attribute separately, right? Yes, or maybe just a calling convention that just passes both. _

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
On Wed, 06/29 23:24, Christoph Hellwig wrote: > On Thu, Jun 30, 2016 at 09:59:41AM +0800, Fam Zheng wrote: > > Documentation/kobject.txt: > > > Use the KOBJ_ADD action for when the kobject is first added to the kernel. > > > This should be done only after any attributes or children of the kobject >

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Christoph Hellwig
On Thu, Jun 30, 2016 at 09:59:41AM +0800, Fam Zheng wrote: > Documentation/kobject.txt: > > Use the KOBJ_ADD action for when the kobject is first added to the kernel. > > This should be done only after any attributes or children of the kobject > > have been initialized properly, as userspace will i

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Ian Munsie
Excerpts from andrew.donnellan's message of 2016-06-30 15:15:02 +1000: > On 30/06/16 15:00, Michael Ellerman wrote: > > On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: > >> On 30/06/16 04:55, Ian Munsie wrote: > >>> > >>> From: Ian Munsie > >>> > >>> If a kernel context is initialised a

[PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index

2016-06-29 Thread Akshay Adiga
Refactoring code to use frequency table index instead of pstate_id. This abstraction will make the code independent of the pstate values. - No functional changes - The highest frequency is at frequency table index 0 and the frequency decreases as the index increases. - Macros pstates_to_idx() an

Re: [PATCH v3 3/4] perf annotate: add powerpc support

2016-06-29 Thread Michael Ellerman
On Thu, 2016-06-30 at 11:44 +0530, Ravi Bangoria wrote: > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index 36a5825..b87eac7 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -476,6 +481,125 @@ static int ins__cmp(const void *a, const void

[PATCH v3 4/4] perf: Define macro for normalized arch names

2016-06-29 Thread Ravi Bangoria
Define macro for each normalized arch name and use them instead of using arch name as string Signed-off-by: Ravi Bangoria --- Changes in v3: - No changes tools/perf/arch/common.c | 36 ++-- tools/perf/arch/common.h | 11 +++ tools/pe

[PATCH v3 3/4] perf annotate: add powerpc support

2016-06-29 Thread Ravi Bangoria
From: Naveen N. Rao Powerpc has long list of branch instructions and hardcoding them in table appears to be error-prone. So, add new function to find instruction instead of creating table. This function dynamically create table(list of 'struct ins'), and instead of creating object every time, fi

[PATCH v3 2/4] perf annotate: Enable cross arch annotate

2016-06-29 Thread Ravi Bangoria
Change current data structures and function to enable cross arch annotate. Current implementation does not contain logic of record on one arch and annotating on other. This remote annotate is partially possible with current implementation for x86 (or may be arm as well) only. But, to make remote a

[PATCH v3 1/4] perf: Utility function to fetch arch

2016-06-29 Thread Ravi Bangoria
Add Utility function to fetch arch using evsel. (evsel->env->arch) Signed-off-by: Ravi Bangoria --- Change in v3: - No changes tools/perf/util/evsel.c | 7 +++ tools/perf/util/evsel.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c

[PATCH v3 0/4] perf annotate: Enable cross arch annotate

2016-06-29 Thread Ravi Bangoria
Perf can currently only support code navigation (branches and calls) in annotate when run on the same architecture where perf.data was recorded. But cross arch annotate is not supported. This patchset enables cross arch annotate. Currently I've used x86 and arm instructions which are already avail

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Andrew Donnellan
On 30/06/16 15:00, Michael Ellerman wrote: On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: On 30/06/16 04:55, Ian Munsie wrote: From: Ian Munsie If a kernel context is initialised and does not have any AFU interrupts allocated it will cause a NULL pointer dereference when the cont

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Michael Ellerman
On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: > On 30/06/16 04:55, Ian Munsie wrote: > >  > > From: Ian Munsie > >  > > If a kernel context is initialised and does not have any AFU interrupts > > allocated it will cause a NULL pointer dereference when the context is > > detached since

Re: [PATCH v2 02/12] genhd: Honor gen_uevent and add disk_gen_uevents

2016-06-29 Thread kbuild test robot
Hi, [auto build test WARNING on block/for-next] [also build test WARNING on v4.7-rc5] [cannot apply to next-20160629] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Fam-Zheng/gendisk-Generate

[PATCH V2 7/7] thermal: qoriq: Add thermal management support

2016-06-29 Thread Jia Hongtao
This driver add thermal management support by enabling TMU (Thermal Monitoring Unit) on QorIQ platform. It's based on thermal of framework: - Trip points defined in device tree. - Cpufreq as cooling device registered in qoriq cpufreq driver. Signed-off-by: Jia Hongtao --- Changes of V2: * Add HA

RE: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-06-29 Thread Yuantian Tang
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Thursday, June 30, 2016 10:24 AM > To: Yuantian Tang > Cc: Scott Wood ; Russell King ; > Michael Turquette ; Stephen Boyd > ; Viresh Kumar ; linux- > c...@vger.kernel.org; linux...@vger.kernel.org; linuxppc-

[PATCH v2 12/12] nvme: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/nvme/host/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v2 11/12] mtd: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/mtd/mtd_blkdevs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH v2 10/12] mmc: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/mmc/card/block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v2 09/12] md: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/md/md.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/md.

[PATCH v2 08/12] zram: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/zram/zram_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

[PATCH v2 07/12] pktcdvd: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/pktcdvd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v2 06/12] mtip32xx: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/mtip32xx/mtip32xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --gi

[PATCH v2 05/12] aoeblk: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/aoe/aoeblk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v2 04/12] axonrom: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- arch/powerpc/sysdev/axonram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

[PATCH v2 03/12] virtio-blk: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
Userspace listens to the KOBJ_ADD uevent generated in add_disk. At that point we haven't created the serial attribute file, therefore depending on how fast udev reacts, the /dev/disk/by-id/ entry doesn't always get created. This race condition can be easily reproduced by hot plugging a number of v

[PATCH v2 02/12] genhd: Honor gen_uevent and add disk_gen_uevents

2016-06-29 Thread Fam Zheng
In add_disk(), don't send uevent to userspace when gen_uevent is true; also export the refactored function disk_gen_uevents for later use. Signed-off-by: Fam Zheng --- block/genhd.c | 23 +++ include/linux/genhd.h | 1 + 2 files changed, 20 insertions(+), 4 deletions

[PATCH v2 01/12] genhd: Add "gen_uevent" parameter to add_disk

2016-06-29 Thread Fam Zheng
The parameter will be used to control whether add_disk should generate the KOBJ_ADD uevent already. Signed-off-by: Fam Zheng --- arch/m68k/emu/nfblock.c | 2 +- arch/powerpc/sysdev/axonram.c | 2 +- arch/um/drivers/ubd_kern.c | 2 +- arch/xtensa

[PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
The race condition is noticed between disk_add() and disk attributes, on virtio-blk hotplug. Userspace listens to the KOBJ_ADD uevent generated in add_disk(). At that point we haven't created the serial attribute file, therefore depending on how fast udev reacts, the /dev/disk/by-id/ entry doesn't

Re: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-06-29 Thread Rafael J. Wysocki
On Thursday, June 30, 2016 01:47:09 AM Yuantian Tang wrote: > > -Original Message- > > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > > Sent: Thursday, June 30, 2016 9:47 AM > > To: Yuantian Tang > > Cc: Scott Wood ; Russell King ; > > Michael Turquette ; Stephen Boyd > > ; Viresh K

RE: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-06-29 Thread Yuantian Tang
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Thursday, June 30, 2016 9:47 AM > To: Yuantian Tang > Cc: Scott Wood ; Russell King ; > Michael Turquette ; Stephen Boyd > ; Viresh Kumar ; linux- > c...@vger.kernel.org; linux...@vger.kernel.org; linuxppc-

Re: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-06-29 Thread Rafael J. Wysocki
On Wednesday, June 29, 2016 05:50:26 AM Yuantian Tang wrote: > Hi, > > This patch is acked by clock maintainer. If no comments from anyone else, we > will merge it in next week. There is a cpufreq commit depending on it. Are you going to handle that one too? Thanks, Rafael __

Re: [PATCH v2 RFC] pasemi: Fix boot failure on 4.7-rc1

2016-06-29 Thread Aneesh Kumar K.V
Darren Stevens writes: > Commit:d6a9996e84ac4beb7713e9485f4563e100a9b03e (powerpc/mm: > vmalloc abstraction in preparation for radix) turned kernel memory > and IO addresses from #defined constants to variables initialised > at runtime. > > On PA6T systems the setup_arch

Re: [PATCH 3/5] powerpc: tm: Always use fp_state and vr_state to store live registers

2016-06-29 Thread Cyril Bur
On Tue, 28 Jun 2016 11:53:13 +0800 Simon Guo wrote: > hi Cyril, > > On Wed, Jun 08, 2016 at 02:00:34PM +1000, Cyril Bur wrote: > > @@ -1108,11 +1084,11 @@ struct task_struct *__switch_to(struct task_struct > > *prev, > > */ > > save_sprs(&prev->thread); > > > > - __switch_to_tm(pre

Re: [PATCH 2/2] cxl: Fix allocating a minimum of 2 pages for the SPA

2016-06-29 Thread Andrew Donnellan
On 29/06/16 22:16, Ian Munsie wrote: From: Ian Munsie The Scheduled Process Area is allocated dynamically with enough pages to fit at least as many processes as the AFU descriptor indicated. Since the calculation is non-trivial, it does this by calculating how many processes could fit in an all

Re: [PATCH 1/2] cxl: Fix allowing bogus AFU descriptors with 0 maximum processes

2016-06-29 Thread Andrew Donnellan
On 29/06/16 22:16, Ian Munsie wrote: From: Ian Munsie If the AFU descriptor of an AFU directed AFU indicates that it supports 0 maximum processes, we will accept that value and attempt to use it. The SPA will still be allocated (with 2 pages due to another minor bug and room for 958 processes),

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Andrew Donnellan
On 30/06/16 04:55, Ian Munsie wrote: From: Ian Munsie If a kernel context is initialised and does not have any AFU interrupts allocated it will cause a NULL pointer dereference when the context is detached since the irq_names list will not have been initialised. Move the initialisation of the

Re: Proposed: Patch to fix boot on PA6T

2016-06-29 Thread Darren Stevens
Hello Aneesh On 28/06/2016, Aneesh Kumar K.V wrote: > Another option is to init it along with rest of the variables as done in > hash__early_init_mmu(void)/radix__early_init_mmu(void) *FACEPALM* Why didn't I think of that! I've made this change and seems to work - obviously I can't test on a Radi

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-06-29 Thread Thiago Jung Bauermann
Am Mittwoch, 29 Juni 2016, 15:47:51 schrieb Dave Young: > On 06/28/16 at 07:18pm, Thiago Jung Bauermann wrote: > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > > index e8acb2b43dd9..e16d845d587f 100644 > > --- a/include/linux/kexec.h > > +++ b/include/linux/kexec.h > > @@ -146,7 +14

Re: Proposed: Patch to fix boot on PA6T

2016-06-29 Thread Darren Stevens
Hello Michael > I can't merge this because you didn't sign it off. TBH I wasn't really expecting you too. > See section 11 of: > > https://www.kernel.org/doc/Documentation/SubmittingPatches Read and understood (I hope).. Regards Darren ___ Linuxpp

[PATCH v2 RFC] pasemi: Fix boot failure on 4.7-rc1

2016-06-29 Thread Darren Stevens
Commit:d6a9996e84ac4beb7713e9485f4563e100a9b03e (powerpc/mm: vmalloc abstraction in preparation for radix) turned kernel memory and IO addresses from #defined constants to variables initialised at runtime. On PA6T systems the setup_arch machine call initialises the onboard

Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-06-29 Thread Thiago Jung Bauermann
Am Mittwoch, 29 Juni 2016, 15:45:18 schrieb Dave Young: > On 06/28/16 at 07:18pm, Thiago Jung Bauermann wrote: > > Am Dienstag, 28 Juni 2016, 15:20:55 schrieb Dave Young: > > > On 06/27/16 at 04:21pm, Dave Young wrote: > > > Using one argument for both sounds more reasonable than using a > > > sepa

Re: Proposed: Patch to fix boot on PA6T

2016-06-29 Thread Darren Stevens
Hello Benjamin On 27/06/2016, Benjamin Herrenschmidt wrote: > Tell me more, when is that mapping done ? I'm changing things so that > platform probe is called much later so that might have an impact. > > What consumes pci_io_base before it's been initialized ? pas_pci_init() is the culprit. Follo

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-06-29 Thread Dave Young
On 06/28/16 at 07:18pm, Thiago Jung Bauermann wrote: > Am Donnerstag, 23 Juni 2016, 10:25:06 schrieb Dave Young: > > On 06/22/16 at 08:30pm, Thiago Jung Bauermann wrote: > > > Am Mittwoch, 22 Juni 2016, 18:20:47 schrieb Dave Young: > > > > The patch looks good, but could the subject be more specifi

Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-06-29 Thread Dave Young
On 06/28/16 at 07:18pm, Thiago Jung Bauermann wrote: > Am Dienstag, 28 Juni 2016, 15:20:55 schrieb Dave Young: > > On 06/27/16 at 04:21pm, Dave Young wrote: > > > Please ignore previous reply, I mistakenly send a broken mail without > > > subject, sorry about it. Resend the reply here. > > > > > >

[PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Ian Munsie
From: Ian Munsie If a kernel context is initialised and does not have any AFU interrupts allocated it will cause a NULL pointer dereference when the context is detached since the irq_names list will not have been initialised. Move the initialisation of the irq_names list into the cxl_context_ini

[PATCH 2/2] cxl: Workaround XSL bug that does not clear the RA bit after a reset

2016-06-29 Thread Ian Munsie
From: Ian Munsie An issue was noted in our debug logs where the XSL would leave the RA bit asserted after an AFU reset operation, which would effectively prevent further AFU reset operations from working. Workaround the issue by clearing the RA bit with an MMIO write if it is still asserted afte

[PATCH 1/2] cxl: Fix bug where AFU disable operation had no effect

2016-06-29 Thread Ian Munsie
From: Ian Munsie The AFU disable operation has a bug where it will not clear the enable bit and therefore will have no effect. To date this has likely been masked by fact that we perform an AFU reset before the disable, which also has the effect of clearing the enable bit, making the following di

[PATCH v7] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-06-29 Thread Guilherme G. Piccoli
The domain/PHB field of PCI addresses has its value obtained from a global variable, incremented each time a new domain (represented by struct pci_controller) is added on the system. The domain addition process happens during boot or due to PHB hotplug add. As recent kernels are using predictable

Re: [PATCH][v3] mtd/ifc: Add support for IFC controller version 2.0

2016-06-29 Thread Brian Norris
Hi, On Wed, Jun 29, 2016 at 02:53:03PM +, Raghav Dogra wrote: > > > > -Original Message- > > From: Leo Li [mailto:pku@gmail.com] > > Sent: Saturday, May 28, 2016 3:34 AM 1 month delay? So much for the rush... > > To: Brian Norris ; Raghav Dogra > > > > Cc: Boris Brezillon ; Ya

[PATCH v2 2/2] powerpc/pseries: Remove call to memblock_add()

2016-06-29 Thread Nathan Fontenot
The call to memblock_add is not needed, this is already done by memory_add(). This patch removes this call which shrinks dlpar_add_lmb_memory() enough that it can be merged into dlpar_add_lmb(). Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 37 ++-

[PATCH v2 1/2] powerpc/pseries: Auto-online hotplugged memory

2016-06-29 Thread Nathan Fontenot
A recent update (commit id 31bc3858ea3) allows for automatically onlining memory that is added. This patch sets the config option CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y for pseries and updates the pseries memory hotplug code so that DLPAR added memory can be automatically onlined instead of explici

[PATCH v2 0/2] powerpc/pseries: Auto-online hotplugged memory

2016-06-29 Thread Nathan Fontenot
Recent updates to the core mm code allow for auto-onlining of added memory, commit id 31bc3858ea3. This update to the pseries hotplug memory code takes advantage of this by setting the config option CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y so that we online added memory by default, this maintains the

Re: [PATCH 2/2] cxl: Fix allocating a minimum of 2 pages for the SPA

2016-06-29 Thread Frederic Barrat
Le 29/06/2016 14:16, Ian Munsie a écrit : From: Ian Munsie The Scheduled Process Area is allocated dynamically with enough pages to fit at least as many processes as the AFU descriptor indicated. Since the calculation is non-trivial, it does this by calculating how many processes could fit in

Re: [PATCH 1/2] cxl: Fix allowing bogus AFU descriptors with 0 maximum processes

2016-06-29 Thread Frederic Barrat
Le 29/06/2016 14:16, Ian Munsie a écrit : From: Ian Munsie If the AFU descriptor of an AFU directed AFU indicates that it supports 0 maximum processes, we will accept that value and attempt to use it. The SPA will still be allocated (with 2 pages due to another minor bug and room for 958 proce

Re: [PATCH v3] cpuidle: Fix last_residency division

2016-06-29 Thread Nicolas Pitre
On Wed, 29 Jun 2016, Nicolas Pitre wrote: > On Wed, 29 Jun 2016, Daniel Lezcano wrote: > > > On 06/29/2016 09:06 AM, Shreyas B. Prabhu wrote: > > > diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h > > > index f87f399..c8ea5ad 100644 > > > --- a/drivers/cpuidle/cpuidle.h > > > ++

Re: [PATCH] powerpc/mm: update arch_{add,remove}_memory() for radix

2016-06-29 Thread Reza Arbab
On Tue, Jun 28, 2016 at 09:21:05PM +1000, Michael Ellerman wrote: No, you need to use mmu_linear_psize for the hotplug case. But you can probably factor out a common routine that both cases use, and hide the hash vs radix check in that. Okay, I'm trying to refactor {create,remove}_section_mapp

Re: [PATCH v2 3/4] perf annotate: add powerpc support

2016-06-29 Thread Ravi Bangoria
Thanks Naveen, On Wednesday 29 June 2016 08:15 PM, Naveen N. Rao wrote: On 2016/06/29 04:45PM, Ravi Bangoria wrote: From: Naveen N. Rao Powerpc has long list of branch instructions and hardcoding them in table appears to be error-prone. So, add new function to find instruction instead of crea

RE: [PATCH][v3] mtd/ifc: Add support for IFC controller version 2.0

2016-06-29 Thread Raghav Dogra
> -Original Message- > From: Leo Li [mailto:pku@gmail.com] > Sent: Saturday, May 28, 2016 3:34 AM > To: Brian Norris ; Raghav Dogra > > Cc: Boris Brezillon ; Yang-Leo Li > ; Prabhakar Kushwaha > ; Scott Wood ; linux- > m...@lists.infradead.org; linuxppc-dev ; > Raghav Dogra ; Jaiprak

Re: [PATCH v3] cpuidle: Fix last_residency division

2016-06-29 Thread Nicolas Pitre
On Wed, 29 Jun 2016, Daniel Lezcano wrote: > On 06/29/2016 09:06 AM, Shreyas B. Prabhu wrote: > > diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h > > index f87f399..c8ea5ad 100644 > > --- a/drivers/cpuidle/cpuidle.h > > +++ b/drivers/cpuidle/cpuidle.h > > @@ -68,4 +68,27 @@ stat

Re: [PATCH v2 3/4] perf annotate: add powerpc support

2016-06-29 Thread Naveen N. Rao
On 2016/06/29 04:45PM, Ravi Bangoria wrote: > From: Naveen N. Rao > > Powerpc has long list of branch instructions and hardcoding them in > table appears to be error-prone. So, add new function to find > instruction instead of creating table. This function dynamically > create table(list of 'stru

Re: [PATCH 1/4] kvm/ppc/book3s_hv: Change vcore element runnable_threads from linked-list to array

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 06:44, Suraj Jitindar Singh wrote: > Thanks for catching that, yeah I see. > > I don't think we can trivially move the struct kvmppc_vcore definition into > kvm_book3s.h as other code in kvm_host.h (i.e. struct kvm_vcpu_arch) requires > the definition. I was thinking that I could

[PATCH 2/2] cxl: Fix allocating a minimum of 2 pages for the SPA

2016-06-29 Thread Ian Munsie
From: Ian Munsie The Scheduled Process Area is allocated dynamically with enough pages to fit at least as many processes as the AFU descriptor indicated. Since the calculation is non-trivial, it does this by calculating how many processes could fit in an allocation of a given order, and increasin

[PATCH 1/2] cxl: Fix allowing bogus AFU descriptors with 0 maximum processes

2016-06-29 Thread Ian Munsie
From: Ian Munsie If the AFU descriptor of an AFU directed AFU indicates that it supports 0 maximum processes, we will accept that value and attempt to use it. The SPA will still be allocated (with 2 pages due to another minor bug and room for 958 processes), and when a context is allocated we wil

[PATCH v2] selftests/powerpc: exec() with suspended transaction

2016-06-29 Thread Michael Ellerman
From: Cyril Bur Perform an exec() class syscall with a suspended transaction. Signed-off-by: Cyril Bur [mpe: Fix build errors, use a single binary for the test] Signed-off-by: Michael Ellerman Selftest updates --- tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selftest

[PATCH] powerpc/kernel: Drop unused extern for current_set

2016-06-29 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- arch/powerpc/mm/init_32.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index c899fe340bbd..e2d7ba124618 100644 --- a/arch/powerpc/mm/init_32.c +++ b/arch/powerpc/mm/init_32.c @@ -80,9 +80,6 @@ EXPOR

[PATCH v2 4/4] perf annotate: Define macro for arch names

2016-06-29 Thread Ravi Bangoria
Define macro for each arch name and use them instead of using arch name as string. Signed-off-by: Ravi Bangoria --- Changes in v2: - No changes tools/perf/arch/common.c | 36 ++-- tools/perf/arch/common.h | 11 +++ tools/perf/util/an

[PATCH v2 3/4] perf annotate: add powerpc support

2016-06-29 Thread Ravi Bangoria
From: Naveen N. Rao Powerpc has long list of branch instructions and hardcoding them in table appears to be error-prone. So, add new function to find instruction instead of creating table. This function dynamically create table(list of 'struct ins'), and instead of creating object every time, fir

[PATCH v2 2/4] perf annotate: Enable cross arch annotate

2016-06-29 Thread Ravi Bangoria
Change current data structures and function to enable cross arch annotate. Current implementation does not contain logic of record on one arch and annotating on other. This remote annotate is partially possible with current implementation for x86 (or may be arm as well) only. But, to make remote a

[PATCH v2 1/4] perf: Utility function to fetch arch

2016-06-29 Thread Ravi Bangoria
Add Utility function to fetch arch using evsel. (evsel->env->arch) Signed-off-by: Ravi Bangoria --- Changes in v2: - No changes tools/perf/util/evsel.c | 7 +++ tools/perf/util/evsel.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c

[PATCH v2 0/4] perf annotate: Enable cross arch annotate

2016-06-29 Thread Ravi Bangoria
Perf can currently only support code navigation (branches and calls) in annotate when run on the same architecture where perf.data was recorded. But cross arch annotate is not supported. This patchset enables cross arch annotate. Currently I've used x86 and arm instructions which are already avail

RE: [PATCH v3 1/2] clk: Add consumer APIs for discovering possible parent clocks

2016-06-29 Thread Yuantian Tang
Hi, This patch is acked by clock maintainer. If no comments from anyone else, we will merge it in next week. Thanks, Yuantian > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Thursday, June 16, 2016 2:21 PM > To: Russell King ; Michael Turquette > ; Stephen Boy

Re: [PATCH V5 2/3] powerpc/opal: Add inline function to get rc from an ASYNC_COMP opal_msg

2016-06-29 Thread Stewart Smith
Suraj Jitindar Singh writes: > --- a/arch/powerpc/include/asm/opal.h > +++ b/arch/powerpc/include/asm/opal.h > @@ -276,6 +276,14 @@ extern int opal_error_code(int rc); > > ssize_t opal_msglog_copy(char *to, loff_t pos, size_t count); > > +static inline int opal_get_async_rc(struct opal_msg ms

Re: [PATCH v3] cpuidle: Fix last_residency division

2016-06-29 Thread Shreyas B Prabhu
>> >> +/* >> + * Used for calculating last_residency in usec. Optimized for case >> + * where last_residency in nsecs is < INT_MAX/2 by using faster >> + * approximation. Approximated value has less than 1% error. >> + */ >> +static inline int convert_nsec_to_usec(u64 nsec) >> +{ >> +if (likel

Re: [PATCH 3/5] powerpc: tm: Always use fp_state and vr_state to store live registers

2016-06-29 Thread Simon Guo
hi Cyril, On Wed, Jun 08, 2016 at 02:00:34PM +1000, Cyril Bur wrote: > @@ -1108,11 +1084,11 @@ struct task_struct *__switch_to(struct task_struct > *prev, >*/ > save_sprs(&prev->thread); > > - __switch_to_tm(prev); > - > /* Save FPU, Altivec, VSX and SPE state */ >

Re: [PATCH v3] cpuidle: Fix last_residency division

2016-06-29 Thread Daniel Lezcano
On 06/29/2016 09:06 AM, Shreyas B. Prabhu wrote: Snooze is a poll idle state in powernv and pseries platforms. Snooze has a timeout so that if a cpu stays in snooze for more than target residency of the next available idle state, then it would exit thereby giving chance to the cpuidle governor to

[PATCH v3] cpuidle: Fix last_residency division

2016-06-29 Thread Shreyas B. Prabhu
Snooze is a poll idle state in powernv and pseries platforms. Snooze has a timeout so that if a cpu stays in snooze for more than target residency of the next available idle state, then it would exit thereby giving chance to the cpuidle governor to re-evaluate and promote the cpu to a deeper idle s

Re: [PATCH v2] cpuidle: Fix last_residency division

2016-06-29 Thread Shreyas B Prabhu
On 06/27/2016 02:29 PM, David Laight wrote: > From: Arnd Bergmann >> Sent: 24 June 2016 20:43 >> On Friday, June 24, 2016 9:31:35 PM CEST Shreyas B Prabhu wrote: If those functions are called less often than cpuidle_enter_state(), we could just move the division there. Since the divisor