Re: [PATCH V2 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-01-20 Thread Michael Ellerman
On Tue, 2015-01-20 at 16:40 -0500, Dave Jones wrote: > On Wed, Jan 14, 2015 at 10:44:31AM +1100, Michael Ellerman wrote: > > > > Also, I would like to see the test results reports using > > > kselftest.h - it can be separate patch in the interest of > > > getting tests in. > > > > Sorry but

Re: PowerMac G5 Quad Issue reporting

2015-01-20 Thread Michel Dänzer
On 20.01.2015 20:52, luigi burdo wrote: > Hello all LinuxPPc Developer, > need to report a issue that im facing from kernel 3.16 and up. > > The fans of powermac g5 quad start boosting like a turbo jet after the > system is > been loaded and up. > Usually this become after about 30-60 seconds when

Re: [alsa-devel] [PATCH 0/3] Add master mode, tmd and right-j mode support

2015-01-20 Thread Nicolin Chen
On Tue, Jan 20, 2015 at 11:15:54PM -0200, Fabio Estevam wrote: > Not related to your series, but do you have a patch for imx6sx-sdb.dts > that adds sai support? > > In the FSL version they use 'fsl,sdma-event-remap' property to specify > the SAI sdma channels, but this is not present in mainline?

Re: [PATCH 0/8] clk: ppc-corenet: Add support for the platform PLL

2015-01-20 Thread Emil Medve
Hello Yuan-Tian, On 01/20/2015 07:40 PM, Tang Yuantian-B29983 wrote: > Hi Emil, > > Thanks for fixing those warnings. The patch set you based on is merged. > I sent another two patches and one of them got merged. You probably need to > rebase your patches. > My patch link: > http://patchwork.oz

Re: [alsa-devel][PATCH 1/3] SoC: fsl_sai: add sai master mode support

2015-01-20 Thread Nicolin Chen
On Tue, Jan 20, 2015 at 08:21:18PM +0800, Zidan Wang wrote: > +static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) > + if ((tx && sai->synchronous[TX]) || (!tx && !sai->synchronous[RX])) { > + regmap_update_bits(sai->regmap, FSL_SAI_RCR2, > +

RE: [PATCH 8/8] clk: ppc-corenet: Add support for the platform PLL

2015-01-20 Thread Yuantian Tang
Which platform are you trying to use this on? Can this be initialized by core pll function core_pll_init()? I just saw most of this function is silimar to the core_pll_init(). Thanks, Yuantian > -Original Message- > From: Emil Medve [mailto:emilian.me...@freescale.com] > Sent: Tuesday, J

Re: [PATCH 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-20 Thread Stewart Smith
Pranith Kumar writes: > When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() > return 0. Check for these return values and skip registering the dump buffer. > > Signed-off-by: Pranith Kumar > CC: Michael Ellerman (investigating what would occur on systems with current fir

Re: [PATCH 3/3] powerpc: Include linux/jump_label.h to get HAVE_JUMP_LABEL define

2015-01-20 Thread Anton Blanchard
Hi Jason, > > diff --git a/arch/powerpc/platforms/pseries/lpar.c > > b/arch/powerpc/platforms/pseries/lpar.c index 469751d..14ac1ad > > 100644 --- a/arch/powerpc/platforms/pseries/lpar.c > > +++ b/arch/powerpc/platforms/pseries/lpar.c > > @@ -27,6 +27,7 @@ > > #include > > #include > > #inclu

[PATCH 1/2] oprofile: Add HAVE_OPROFILE_NMI_TIMER

2015-01-20 Thread Anton Blanchard
HAVE_PERF_EVENTS_NMI is used for two things - the oprofile NMI timer and the hardlockup detector. Create HAVE_OPROFILE_NMI_TIMER so an architecture can select them separately. On ppc64 we want to add the hardlockup detector, but not the oprofile NMI timer fallback. Signed-off-by: Anton Blanchard

[PATCH 2/2] powerpc: Add ppc64 hard lockup detector support

2015-01-20 Thread Anton Blanchard
The hard lockup detector uses a PMU event as a periodic NMI to detect if we are stuck (where stuck means no timer interrupts have occurred). Ben's rework of the ppc64 soft disable code has made ppc64 PMU exceptions a partial NMI. They can get disabled if an external interrupt comes in, but otherwi

Re: [PATCH] powerpc/pseries: fix endian problems with LE migration

2015-01-20 Thread Michael Ellerman
On Wed, 2015-01-21 at 13:32 +1100, Cyril Bur wrote: > The need to handle ibm,suspend_me specially from within ppc_rtas has left an > endian bug exposed as rtas_ibm_suspend_me actually performs HCALLs and should > have its params in CPU endian. That needs a much better explanation. Key points: -

Re: [PATCH] powerpc/mm: Add trace point for tracking hash pte fault

2015-01-20 Thread Michael Ellerman
On Tue, 2015-01-20 at 17:05 +0530, Aneesh Kumar K.V wrote: > This enables us to understand how many hash fault we are taking > when running benchmarks. > > For ex: > -bash-4.2# ./perf stat -e powerpc:hash_fault -e page-faults > /tmp/ebizzy.ppc64 -S 30 -P -n 1000 > ... > > Performance counter

[PATCH] powerpc/pseries: fix endian problems with LE migration

2015-01-20 Thread Cyril Bur
The need to handle ibm,suspend_me specially from within ppc_rtas has left an endian bug exposed as rtas_ibm_suspend_me actually performs HCALLs and should have its params in CPU endian. Have ppc_rtas send the params correctly and also interpret the result correctly. Removed the convoluted use of

[PATCH v2 07/30] PCI: Pass PCI domain number combined with root bus number

2015-01-20 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for a

[PATCH v2 17/30] PCI/powerpc: Rename pcibios_root_bridge_prepare()

2015-01-20 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. Rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +- arch/powerpc/

[PATCH v2 18/30] PCI/powerpc: Use pci_scan_root_bridge() for simplicity

2015-01-20 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/machdep.h |2 +- arch/powerpc/kern

RE: [PATCH 0/8] clk: ppc-corenet: Add support for the platform PLL

2015-01-20 Thread Yuantian Tang
Hi Emil, Thanks for fixing those warnings. The patch set you based on is merged. I sent another two patches and one of them got merged. You probably need to rebase your patches. My patch link: http://patchwork.ozlabs.org/patch/429257/ http://patchwork.ozlabs.org/patch/429258/ Thanks, Yuantian >

[PATCH 2/2] powerpc: Add memcmp testcase

2015-01-20 Thread Anton Blanchard
Add a testcase for the new ppc64 memcmp. Signed-off-by: Anton Blanchard --- .../testing/selftests/powerpc/stringloops/Makefile | 21 + .../selftests/powerpc/stringloops/asm/ppc_asm.h| 7 ++ .../selftests/powerpc/stringloops/memcmp_64.S | 1 + .../selftests/powerpc/stringloops/t

[PATCH 1/2] powerpc: Add 64bit optimised memcmp

2015-01-20 Thread Anton Blanchard
I noticed ksm spending quite a lot of time in memcmp on a large KVM box. The current memcmp loop is very unoptimised - byte at a time compares with no loop unrolling. We can do much much better. Optimise the loop in a few ways: - Unroll the byte at a time loop - For large (at least 32 byte) comp

Re: [alsa-devel] [PATCH 0/3] Add master mode, tmd and right-j mode support

2015-01-20 Thread Fabio Estevam
Hi Zidan, On Tue, Jan 20, 2015 at 10:21 AM, Zidan Wang wrote: > Add sai master mode support. > Add tdm slots support. > Add Right-J mode support. > > Zidan Wang (3): > SoC: fsl_sai: add sai master mode support > ASoC: fsl_sai: Add support for tdm slots operation > ASoC: fsl_sai: Add support

Re: [PATCH] powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN

2015-01-20 Thread Scott Wood
On Tue, 2015-01-20 at 14:03 -0600, Kim Phillips wrote: > Fix this: > > CC arch/powerpc/sysdev/fsl_pci.o > arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pcie_check_link': > arch/powerpc/sysdev/fsl_pci.c:91:1: error: the frame size of 1360 bytes is > larger than 1024 bytes [-Werror=frame-l

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-20 Thread Andrew Morton
On Tue, 20 Jan 2015 15:01:50 -0800 j...@joshtriplett.org wrote: > On Tue, Jan 20, 2015 at 02:02:00PM -0600, Kim Phillips wrote: > > It's possible to configure DEBUG_PAGEALLOC without PAGE_POISONING on > > ppc. Fix building the generic kernel_map_pages() implementation in > > this case: > > > >

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-20 Thread Gavin Shan
On Wed, Jan 21, 2015 at 09:56:07AM +1100, Gavin Shan wrote: >On Tue, Jan 20, 2015 at 10:28:16AM +0100, Benjamin Herrenschmidt wrote: >>On Mon, 2015-01-19 at 09:47 +1100, Gavin Shan wrote: >>> On pseries platform, the EEH reset backend pseries_eeh_reset() can >>> be called in atomic context as follo

[PATCH 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-20 Thread Pranith Kumar
When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() return 0. Check for these return values and skip registering the dump buffer. Signed-off-by: Pranith Kumar CC: Michael Ellerman --- arch/powerpc/platforms/powernv/opal.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH] powerpc/perf: fix fsl_emb_pmu_start to write correct pmc value

2015-01-20 Thread Tom Huynh
PMCs on PowerPC increases towards 0x8000 and triggers an overflow interrupt when the msb is set to collect a sample. Therefore, to setup for the next sample collection, pmu_start should set the pmc value to 0x8000 - left instead of left which incorrectly delays the next overflow interrupt.

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-20 Thread josh
On Tue, Jan 20, 2015 at 02:02:00PM -0600, Kim Phillips wrote: > It's possible to configure DEBUG_PAGEALLOC without PAGE_POISONING on > ppc. Fix building the generic kernel_map_pages() implementation in > this case: > > LD init/built-in.o > mm/built-in.o: In function `free_pages_prepare': >

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-20 Thread Gavin Shan
On Tue, Jan 20, 2015 at 10:28:16AM +0100, Benjamin Herrenschmidt wrote: >On Mon, 2015-01-19 at 09:47 +1100, Gavin Shan wrote: >> On pseries platform, the EEH reset backend pseries_eeh_reset() can >> be called in atomic context as follows. For this case, we should >> call udelay() instead of msleep(

Re: [PATCH V2 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-01-20 Thread Dave Jones
On Wed, Jan 14, 2015 at 10:44:31AM +1100, Michael Ellerman wrote: > > Also, I would like to see the test results reports using > > kselftest.h - it can be separate patch in the interest of > > getting tests in. > > Sorry but kselftest.h doesn't do anything useful for us. > > We have exist

[PATCH] powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN

2015-01-20 Thread Kim Phillips
Fix this: CC arch/powerpc/sysdev/fsl_pci.o arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pcie_check_link': arch/powerpc/sysdev/fsl_pci.c:91:1: error: the frame size of 1360 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] when configuring FRAME_WARN, by converting the alloca

[PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-20 Thread Kim Phillips
It's possible to configure DEBUG_PAGEALLOC without PAGE_POISONING on ppc. Fix building the generic kernel_map_pages() implementation in this case: LD init/built-in.o mm/built-in.o: In function `free_pages_prepare': mm/page_alloc.c:770: undefined reference to `.kernel_map_pages' mm/built-in

[PATCH] clk: ppc-corenet: Add support for the FMD clock

2015-01-20 Thread Igal . Liberman
From: Igal Liberman Signed-off-by: Igal Liberman This patch is based on https://patchwork.ozlabs.org/patch/430966/ --- drivers/clk/clk-ppc-corenet.c | 250 + 1 file changed, 250 insertions(+) diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk

PowerMac G5 Quad Issue reporting

2015-01-20 Thread luigi burdo
Hello all LinuxPPc Developer, need to report a issue that im facing from kernel 3.16 and up. The fans of powermac g5 quad start boosting like a turbo jet after the system is been loaded and up. Usually this become after about 30-60 seconds when the system is loaded. This issue start with Xorg l

PowerMac G5 Quad Issue reporting

2015-01-20 Thread luigi burdo
Hello all LinuxPPc Developer, need to report a issue that im facing from kernel 3.16 and up. The fans of powermac g5 quad start boosting like a turbo jet after the system is been loaded and up. Usually this become after about 30-60 seconds when the system is loaded. This issue start with Xorg l

[alsa-devel][PATCH 2/3] ASoC: fsl_sai: Add support for tdm slots operation

2015-01-20 Thread Zidan Wang
slots and slot width is set from set_dai_tdm_slot in machine driver. We should calculate the actual slots per channel using slots/channels. When using tdm slots, we should generate bclk depends channels, slots and slot width. And there may be unused BCLK cycles before each LRCLK transition. Set T

[alsa-devel][PATCH 3/3] ASoC: fsl_sai: Add support for Right-J mode

2015-01-20 Thread Zidan Wang
Add Right-J mode and set TCR5 FBT bit to let data right justify. Signed-off-by: Zidan Wang --- sound/soc/fsl/fsl_sai.c | 14 +++--- sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 4c50

[alsa-devel][PATCH 0/3] Add master mode, tmd and right-j mode support

2015-01-20 Thread Zidan Wang
Add sai master mode support. Add tdm slots support. Add Right-J mode support. Zidan Wang (3): SoC: fsl_sai: add sai master mode support ASoC: fsl_sai: Add support for tdm slots operation ASoC: fsl_sai: Add support for Right-J mode sound/soc/fsl/fsl_sai.c | 164 +

[alsa-devel][PATCH 1/3] SoC: fsl_sai: add sai master mode support

2015-01-20 Thread Zidan Wang
When sai works on master mode, set its bit clock and frame clock. SAI has 4 MCLK source, bus clock, MCLK1, MCLK2 and MCLK3. fsl_sai_set_bclk will select proper MCLK source, then calculate and set the bit clock divider. After fsl_sai_set_bclk, enable the selected mclk in hw_params(), and add hw_fr

How long am I allowed to disable preemption? (was How to make use of SPE instructions?)

2015-01-20 Thread Markus Stockhausen
> Von: Scott Wood [scottw...@freescale.com] > Gesendet: Dienstag, 20. Januar 2015 08:38 > An: Markus Stockhausen > Cc: Michael Ellerman; linuxppc-dev@lists.ozlabs.org > Betreff: Re: AW: How to make use of SPE instructions? > ... > > I did some tests with the tcrypt module and I get a hashing speed

RE: [PATCH v2 07/11] powerpc/8xx: macro for handling CPU15 errata

2015-01-20 Thread David Laight
From: leroy > Le 20/01/2015 12:09, David Laight a écrit : > > From Christophe Leroy > >> Having a macro will help keep clear code. > > It might remove an #if but it doesn't really help. > > All it means is that anyone reading the code has to hunt for > > the definition before proceeding. > > > >

[PATCH] powerpc/mm: Add trace point for tracking hash pte fault

2015-01-20 Thread Aneesh Kumar K.V
This enables us to understand how many hash fault we are taking when running benchmarks. For ex: -bash-4.2# ./perf stat -e powerpc:hash_fault -e page-faults /tmp/ebizzy.ppc64 -S 30 -P -n 1000 ... Performance counter stats for '/tmp/ebizzy.ppc64 -S 30 -P -n 1000': 1,10,04,075 powe

Re: [PATCH] i2c: drop ancient protection against sysfs refcounting issues

2015-01-20 Thread Wolfram Sang
> > Right, and I'm not saying it should be, just move the existing logic > > into the release callback, and the code flow should be the same and we > > don't end up with an "empty" release callback. But as Russell says, even if we don't have the empty callback, we still create the problem shown b

Re: [PATCH v2 07/11] powerpc/8xx: macro for handling CPU15 errata

2015-01-20 Thread leroy christophe
Le 20/01/2015 12:09, David Laight a écrit : From Christophe Leroy Having a macro will help keep clear code. It might remove an #if but it doesn't really help. All it means is that anyone reading the code has to hunt for the definition before proceeding. Some comment about what (and why) the

Re: cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-20 Thread Preeti U Murthy
On 01/20/2015 11:15 AM, Michael Ellerman wrote: > On Mon, 2015-19-01 at 11:32:51 UTC, Preeti U Murthy wrote: >> The device tree now exposes the residency values for different idle states. >> Read >> these values instead of calculating residency from the latency values. The >> values >> exposed in

Re: [PATCH] idle/tick-broadcast: Exit cpu idle poll loop when cleared from tick_broadcast_force_mask

2015-01-20 Thread Preeti U Murthy
On 01/20/2015 04:51 PM, Thomas Gleixner wrote: > On Mon, 19 Jan 2015, Preeti U Murthy wrote: >> An idle cpu enters cpu_idle_poll() if it is set in the >> tick_broadcast_force_mask. >> This is so that it does not incur the overhead of entering idle states when >> it is expected >> to be woken up a

Re: [PATCH] idle/tick-broadcast: Exit cpu idle poll loop when cleared from tick_broadcast_force_mask

2015-01-20 Thread Thomas Gleixner
On Mon, 19 Jan 2015, Preeti U Murthy wrote: > An idle cpu enters cpu_idle_poll() if it is set in the > tick_broadcast_force_mask. > This is so that it does not incur the overhead of entering idle states when > it is expected > to be woken up anytime then through a broadcast IPI. The condition tha

RE: [PATCH v2 07/11] powerpc/8xx: macro for handling CPU15 errata

2015-01-20 Thread David Laight
From Christophe Leroy > Having a macro will help keep clear code. It might remove an #if but it doesn't really help. All it means is that anyone reading the code has to hunt for the definition before proceeding. Some comment about what (and why) the extra code is needed might help. ... > + > +#i

[PATCH V3] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-20 Thread Preeti U Murthy
Today if the cpu handling broadcasting of wakeups goes offline, the job of broadcasting is handed over to another cpu in the CPU_DEAD phase. The CPU_DEAD notifiers are run only after the offline cpu sets its state as CPU_DEAD. Meanwhile, the kthread doing the offline is scheduled out while waiting

[PATCH 8/8] clk: ppc-corenet: Add support for the platform PLL

2015-01-20 Thread Emil Medve
Change-Id: Iac11ed95f274485a86d2c11f32a3dc502bcd020f Signed-off-by: Emil Medve --- drivers/clk/clk-ppc-corenet.c | 85 +++ 1 file changed, 85 insertions(+) diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-ppc-corenet.c index 91816b1..ff425e1 10

Re: [PATCH V2] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-20 Thread Thomas Gleixner
On Tue, 20 Jan 2015, Preeti U Murthy wrote: > --- a/kernel/time/tick-broadcast.c > +++ b/kernel/time/tick-broadcast.c > @@ -675,8 +675,8 @@ static void broadcast_move_bc(int deadcpu) > > if (!bc || !broadcast_needs_cpu(bc, deadcpu)) > return; > - /* This moves the broadcas

[PATCH 1/8] clk: ppc-corenet: Fix checkpatch type PARENTHESIS_ALIGNMENT

2015-01-20 Thread Emil Medve
CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis + rc = of_property_read_string_index(np, "clock-output-names", + 0, &clk_name); CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis + pr_err("Could not register clock pro

[PATCH 4/8] clk: ppc-corenet: Fix checkpatch type OOM_MESSAGE

2015-01-20 Thread Emil Medve
WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message + if (!parent_names) { + pr_err("%s: could not allocate parent_names\n", __func__); WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message + if (!cmux_clk) { + pr_err("%s: could not

Re: [PATCH] i2c: drop ancient protection against sysfs refcounting issues

2015-01-20 Thread Russell King - ARM Linux
On Tue, Jan 20, 2015 at 03:12:56PM +0800, Greg Kroah-Hartman wrote: > On Tue, Jan 20, 2015 at 08:05:20AM +0100, Lars-Peter Clausen wrote: > > On 01/20/2015 02:41 AM, Greg Kroah-Hartman wrote: > > >On Mon, Jan 19, 2015 at 11:04:27PM +, Russell King - ARM Linux wrote: > > >>On Tue, Jan 20, 2015 a

[PATCH 6/8] clk: ppc-corenet: Replace kzalloc() with kmalloc()

2015-01-20 Thread Emil Medve
Where the memset() is not necessary Signed-off-by: Emil Medve --- drivers/clk/clk-ppc-corenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-ppc-corenet.c index d84a7f0..91816b1 100644 --- a/drivers/clk/clk-ppc-corenet.c +++

[PATCH 7/8] powerpc/corenet: Enable CLK_PPC_CORENET

2015-01-20 Thread Emil Medve
Change-Id: I1a80ad7b9f6854791bd270b746f93a91439155a6 Signed-off-by: Emil Medve --- arch/powerpc/configs/corenet32_smp_defconfig | 1 + arch/powerpc/configs/corenet64_smp_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/powerpc/configs/corenet32_smp_defconfig b/arch/powerpc/co

[PATCH 5/8] clk: ppc-corenet: Make local symbol 'static'

2015-01-20 Thread Emil Medve
drivers/clk/clk-ppc-corenet.c:63:22: warning: symbol 'cmux_ops' was not declared. Should it be static? Signed-off-by: Emil Medve --- drivers/clk/clk-ppc-corenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-ppc-corenet.c in

[PATCH 2/8] clk: ppc-corenet: Fix checkpatch type ALLOC_WITH_MULTIPLY

2015-01-20 Thread Emil Medve
WARNING:ALLOC_WITH_MULTIPLY: Prefer kcalloc over kzalloc with multiply + subclks = kzalloc(sizeof(struct clk *) * count, GFP_KERNEL); Signed-off-by: Emil Medve --- drivers/clk/clk-ppc-corenet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-ppc-core

[PATCH 3/8] clk: ppc-corenet: Fix checkpatch type ALLOC_SIZEOF_STRUCT

2015-01-20 Thread Emil Medve
CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*cmux_clk)...) over kzalloc(sizeof(struct cmux_clk)...) + cmux_clk = kzalloc(sizeof(struct cmux_clk), GFP_KERNEL); CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*onecell_data)...) over kzalloc(sizeof(struct clk_onecell_data)...) + o

[PATCH 0/8] clk: ppc-corenet: Add support for the platform PLL

2015-01-20 Thread Emil Medve
These patches are based on: http://patchwork.ozlabs.org/patch/417297 http://patchwork.ozlabs.org/patch/417295 http://patchwork.ozlabs.org/patch/417292 The first 5 patches below are checkpatch/static analysis fixes Emil Medve (8): clk: ppc-corenet: Fix checkpatch type PARENTHESIS_ALIGNMENT cl

[PATCH v2 09/11] powerpc/8xx: dont save CR in SCRATCH registers

2015-01-20 Thread Christophe Leroy
CR only needs to be preserved when checking if we are handling a kernel address. So we can preserve CR in a register: - In ITLBMiss, check is done only when CONFIG_MODULES is defined. Otherwise we don't need to do anything at all with CR. - We use r10, then we reload SRR0/MD_EPN into r10 when CR is

[PATCH v2 11/11] powerpc/8xx: Add support for TASK_SIZE greater than 0x80000000

2015-01-20 Thread Christophe Leroy
By default, TASK_SIZE is set to 0x8000 for PPC_8xx, which is most likely sufficient for most cases. However, kernel configuration allows to set TASK_SIZE to another value, so the 8xx shall handle it. Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 25

[PATCH v2 07/11] powerpc/8xx: macro for handling CPU15 errata

2015-01-20 Thread Christophe Leroy
Having a macro will help keep clear code. Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index a1571b3..0658

[PATCH v2 08/11] powerpc/8xx: Handle CR out of exception PROLOG/EPILOG

2015-01-20 Thread Christophe Leroy
In order to be able to reduce scope during which CR is saved, we take CR saving/restoring out of exception PROLOG and EPILOG Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/powe

[PATCH v2 10/11] powerpc/8xx: Use SPRG2 instead of DAR for saving r3

2015-01-20 Thread Christophe Leroy
We now have SPRG2 available as in it not used anymore for saving CR, so we don't need to crash DAR anymore for saving r3 for CPU6 ERRATA handling. Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) di

[PATCH v2 06/11] powerpc/8xx: Remove duplicated code in set_context()

2015-01-20 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index a485ad7..a1571b3 100644 --- a/arch/powerpc/kernel/head_8xx.S +++

[PATCH v2 04/11] powerpc/8xx: Take benefit of aligned PGDIR

2015-01-20 Thread Christophe Leroy
L1 base address is now aligned so we can insert L1 index into r11 directly and then preserve r10 Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/arch/powerp

[PATCH v2 02/11] powerpc/8xx: remove tests on PGDIR entry validity

2015-01-20 Thread Christophe Leroy
Kernel MMU handling code handles validity of entries via _PMD_PRESENT which corresponds to V bit in MD_TWC and MI_TWC. When the V bit is not set, MPC8xx triggers TLBError exception. So we don't have to check that and branch ourself to TLBError. We can set TLB entries with non present entries, remov

[PATCH v2 05/11] powerpc/8xx: Optimise access to swapper_pg_dir

2015-01-20 Thread Christophe Leroy
All accessed to PGD entries are done via 0(r11). By using lower part of swapper_pg_dir as load index to r11, we can remove the ori instruction. Signed-off-by: Christophe Leroy --- v2: fixed/added comments to explain what is the real content of M_TW arch/powerpc/kernel/head_8xx.S | 35 +

[PATCH v2 03/11] powerpc32: Use kmem_cache memory for PGDIR

2015-01-20 Thread Christophe Leroy
When pages are not 4K, PGDIR table is allocated with kmalloc(). In order to optimise TLB handlers, aligned memory is needed. kmalloc() doesn't provide aligned memory blocks, so lets use a kmem_cache pool instead. Signed-off-by: Christophe Leroy --- v2: changed to apply cleanly to linux-next (due

[PATCH v2 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-01-20 Thread Christophe Leroy
Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), MD_EPN and MD_TWC are not writen anymore in FixupDAR so saving r3 has become useless. Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/kernel/head_8xx.S | 6 -- 1 file changed, 6 deletions(-) diff --git a/

[PATCH v2 00/11] powerpc8xx: Further optimisation of TLB handling

2015-01-20 Thread Christophe Leroy
This patchset provides a further optimisation of TLB handling in the 8xx. Main changes are based on: - Using processor handling of PGD/PTE Validity bits instead of testing ourselves the entries validity - Aligning PGD address to allow direct bit manipulation - Not saving registers like CR when not

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-20 Thread Benjamin Herrenschmidt
On Mon, 2015-01-19 at 09:47 +1100, Gavin Shan wrote: > On pseries platform, the EEH reset backend pseries_eeh_reset() can > be called in atomic context as follows. For this case, we should > call udelay() instead of msleep() to avoid context switching. > > drivers/scsi/ipr.c::ipr_reset_slot_r

RE: [PATCH] powerpc/dts: Update platform PLL node

2015-01-20 Thread igal.liber...@freescale.com
Regaeds, Igal Liberman. > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, January 20, 2015 9:44 AM > To: Liberman Igal-B31950 > Cc: linuxppc-dev@lists.ozlabs.org; Medve Emilian-EMMEDVE1 > Subject: Re: [PATCH] powerpc/dts: Update platform PLL node > > On Mon, 2015-01-12 at

[PATCH V2] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-20 Thread Preeti U Murthy
Today if the cpu handling broadcasting of wakeups goes offline, the job of broadcasting is handed over to another cpu in the CPU_DEAD phase. The CPU_DEAD notifiers are run only after the offline cpu sets its state as CPU_DEAD. Meanwhile, the kthread doing the offline is scheduled out while waiting