[PATCh v2 2/2] Corenet: Add QE platform support for Corenet

2014-03-04 Thread Zhao Qiang
There is QE on platform T104x, add support. Call funcs qe_ic_init and qe_init if CONFIG_QUICC_ENGINE is defined. Signed-off-by: Zhao Qiang --- Changes for v2: - use mpc85xx_qe_init() instead arch/powerpc/platforms/85xx/corenet_generic.c | 25 + 1 file changed, 25

[PATCh v2 1/2] QE: split function mpc85xx_qe_init() into two functions.

2014-03-04 Thread Zhao Qiang
New QE doesn't have par_io, it doesn't need to init par_io for new QE. Split function mpc85xx_qe_init() into mpc85xx_qe_init() and mpc85xx_qe_par_io_init(). Call mpc85xx_qe_init() for both new and old while mpc85xx_qe_par_io_init() after mpc85xx_qe_init() for old. Signed-off-by: Zhao Qiang --- Ch

Re: [PATCH 1/2] sched: Remove unused mc_capable() and smt_capable()

2014-03-04 Thread Benjamin Herrenschmidt
On Tue, 2014-03-04 at 14:07 -0700, Bjorn Helgaas wrote: > Remove mc_capable() and smt_capable(). Neither is used. > > Both were added by 5c45bf279d37 ("sched: mc/smt power savings sched > policy"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale > power aware scheduling remnants

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

2014-03-04 Thread Stewart Smith
Benjamin Herrenschmidt writes: > On Wed, 2014-03-05 at 08:56 +0530, Vasant Hegde wrote: >> On 03/05/2014 07:26 AM, Stewart Smith wrote: >> > Vasant Hegde writes: >> >>> +int64_t opal_send_ack_elog(uint64_t log_id); >> >> >> >> Stewart, >> >> >> >> Why are you creating 64bit log ID when actual ID

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

2014-03-04 Thread Benjamin Herrenschmidt
On Wed, 2014-03-05 at 08:56 +0530, Vasant Hegde wrote: > On 03/05/2014 07:26 AM, Stewart Smith wrote: > > Vasant Hegde writes: > >>> +int64_t opal_send_ack_elog(uint64_t log_id); > >> > >> Stewart, > >> > >> Why are you creating 64bit log ID when actual ID is 32bit ? > > > > IIRC it's what OPAL g

ibmveth: Fix endian issues with MAC addresses

2014-03-04 Thread Anton Blanchard
The code to load a MAC address into a u64 for passing to the hypervisor via a register is broken on little endian. Create a helper function called ibmveth_encode_mac_addr which does the right thing in both big and little endian. We were storing the MAC address in a long in struct ibmveth_adapter

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

2014-03-04 Thread Vasant Hegde
On 03/05/2014 07:26 AM, Stewart Smith wrote: Vasant Hegde writes: +int64_t opal_send_ack_elog(uint64_t log_id); Stewart, Why are you creating 64bit log ID when actual ID is 32bit ? IIRC it's what OPAL gives us, even though FSP MBOX spec says 32bit. Stewart, Better ask OPAL folks to fi

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

2014-03-04 Thread Vasant Hegde
On 03/05/2014 07:26 AM, Stewart Smith wrote: Vasant Hegde writes: +int64_t opal_send_ack_elog(uint64_t log_id); Stewart, Why are you creating 64bit log ID when actual ID is 32bit ? IIRC it's what OPAL gives us, even though FSP MBOX spec says 32bit. Stewart, Better ask OPAL folks to fi

Re: [PATCH v3] powerpc/powernv Platform dump interface

2014-03-04 Thread Vasant Hegde
On 03/05/2014 07:25 AM, Stewart Smith wrote: Vasant Hegde writes: index 000..32fe7f5 --- /dev/null +++ b/Documentation/ABI/stable/sysfs-firmware-opal-dump @@ -0,0 +1,41 @@ +What: /sys/firmware/opal/dump +Date: Feb 2014 +Contact: Stewart Smith +Description: +

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

2014-03-04 Thread Stewart Smith
Vasant Hegde writes: >> +int64_t opal_send_ack_elog(uint64_t log_id); > > Stewart, > > Why are you creating 64bit log ID when actual ID is 32bit ? IIRC it's what OPAL gives us, even though FSP MBOX spec says 32bit. ___ Linuxppc-dev mailing list Linuxp

Re: [PATCH v3] powerpc/powernv Platform dump interface

2014-03-04 Thread Stewart Smith
Vasant Hegde writes: >> index 000..32fe7f5 >> --- /dev/null >> +++ b/Documentation/ABI/stable/sysfs-firmware-opal-dump >> @@ -0,0 +1,41 @@ >> +What: /sys/firmware/opal/dump >> +Date: Feb 2014 >> +Contact:Stewart Smith >> +Description: >> +This direc

Re: [PATCH v3] powerpc/powernv Platform dump interface

2014-03-04 Thread Stewart Smith
Vasant Hegde writes: >> +Each dump has the following files: >> +id: An ASCII representation of the dump ID >> +in hex (e.g. '0x01') >> +type: An ASCII representation of the type of >> +

Re: [PATCH 2/3] dts: mpc512x: adjust clock specs for FEC nodes

2014-03-04 Thread Shawn Guo
On Mon, Mar 03, 2014 at 10:22:31AM +0100, Gerhard Sittig wrote: > On Mon, Feb 24, 2014 at 11:25 +0100, Gerhard Sittig wrote: > > > > a recent FEC binding document update that was motivated by i.MX > > development revealed that ARM and PowerPC implementations in Linux > > did not agree on the clock

Re: [PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-03-04 Thread Michael Ellerman
On Mon, 2014-03-03 at 23:01 -0800, Cody P Schafer wrote: > On 03/03/2014 09:19 PM, Michael Ellerman wrote: > > On Thu, 2014-27-02 at 21:04:56 UTC, Cody P Schafer wrote: > >> Rather an having every pmu that needs a function that just returns 0 for > >> .event_idx define their own copy, reuse the one

Re: [tip:irq/core] powerpc: eeh: Fixup the brown paperbag fallout of the "cleanup"

2014-03-04 Thread Thomas Gleixner
On Wed, 5 Mar 2014, Benjamin Herrenschmidt wrote: > On Tue, 2014-03-04 at 15:15 -0800, tip-bot for Thomas Gleixner wrote: > > Commit-ID: 57310c3c99eb6fab2ecbd63aa3f7c323341ca77e > > Gitweb: > > http://git.kernel.org/tip/57310c3c99eb6fab2ecbd63aa3f7c323341ca77e > > Author: Thomas Gleixner

Re: [tip:irq/core] powerpc: eeh: Fixup the brown paperbag fallout of the "cleanup"

2014-03-04 Thread Benjamin Herrenschmidt
On Tue, 2014-03-04 at 15:15 -0800, tip-bot for Thomas Gleixner wrote: > Commit-ID: 57310c3c99eb6fab2ecbd63aa3f7c323341ca77e > Gitweb: http://git.kernel.org/tip/57310c3c99eb6fab2ecbd63aa3f7c323341ca77e > Author: Thomas Gleixner > AuthorDate: Wed, 5 Mar 2014 00:06:11 +0100 > Committer: Tho

[tip:irq/core] powerpc: eeh: Fixup the brown paperbag fallout of the "cleanup"

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: 57310c3c99eb6fab2ecbd63aa3f7c323341ca77e Gitweb: http://git.kernel.org/tip/57310c3c99eb6fab2ecbd63aa3f7c323341ca77e Author: Thomas Gleixner AuthorDate: Wed, 5 Mar 2014 00:06:11 +0100 Committer: Thomas Gleixner CommitDate: Wed, 5 Mar 2014 00:13:33 +0100 powerpc: eeh: Fixup th

Re: [PATCH 1/2] sched: Remove unused mc_capable() and smt_capable()

2014-03-04 Thread Thomas Gleixner
On Tue, 4 Mar 2014, Bjorn Helgaas wrote: > Remove mc_capable() and smt_capable(). Neither is used. > > Both were added by 5c45bf279d37 ("sched: mc/smt power savings sched > policy"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale > power aware scheduling remnants and dysfunct

Re: [PATCH 2/2] sparc64: Remove unused sparc64_multi_core

2014-03-04 Thread David Miller
From: Bjorn Helgaas Date: Tue, 04 Mar 2014 14:07:44 -0700 > Remove sparc64_multi_core because it's not used any more. > > It was added by a2f9f6bbb30e ("Fix {mc,smt}_capable()"), and the last uses > were removed by e637d96bf462 ("sched: Remove unused mc_capable() and > smt_capable()"). > > Sign

Re: [PATCH 1/2] sched: Remove unused mc_capable() and smt_capable()

2014-03-04 Thread David Miller
From: Bjorn Helgaas Date: Tue, 04 Mar 2014 14:07:37 -0700 > Remove mc_capable() and smt_capable(). Neither is used. > > Both were added by 5c45bf279d37 ("sched: mc/smt power savings sched > policy"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale > power aware scheduling remna

[PATCH 2/2] sparc64: Remove unused sparc64_multi_core

2014-03-04 Thread Bjorn Helgaas
Remove sparc64_multi_core because it's not used any more. It was added by a2f9f6bbb30e ("Fix {mc,smt}_capable()"), and the last uses were removed by e637d96bf462 ("sched: Remove unused mc_capable() and smt_capable()"). Signed-off-by: Bjorn Helgaas --- arch/sparc/include/asm/smp_64.h |1 - a

[PATCH 1/2] sched: Remove unused mc_capable() and smt_capable()

2014-03-04 Thread Bjorn Helgaas
Remove mc_capable() and smt_capable(). Neither is used. Both were added by 5c45bf279d37 ("sched: mc/smt power savings sched policy"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale power aware scheduling remnants and dysfunctional knobs"). Signed-off-by: Bjorn Helgaas --- arc

[PATCH 0/2] sched: Removed unused mc_capable() and smt_capable()

2014-03-04 Thread Bjorn Helgaas
This is just cleanup of a couple unused interfaces and (for sparc64) a supporting variable. --- Bjorn Helgaas (2): sched: Remove unused mc_capable() and smt_capable() sparc64: Remove unused sparc64_multi_core arch/arm/include/asm/topology.h |3 --- arch/ia64/include/asm/to

[RFC PATCH] Remove CONFIG_DCACHE_WORD_ACCESS

2014-03-04 Thread Joe Perches
It seems to duplicate CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS so use that instead. This changes the !CPU_LITTLE_ENDIAN powerpc arch to use unaligned accesses in fs/dcache.c and fs/namei.c as CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is enabled for that arch. Remove the now unused DCACHE_WORD_ACCESS d

Re: [PATCH] Corenet: Add QE platform support for Corenet

2014-03-04 Thread Scott Wood
On Tue, 2014-03-04 at 03:09 -0600, Zhao Qiang-B45475 wrote: > On Mar 3, 2014, at 11:51 PM, Kumar Gala [ga...@kernel.crashing.org] wrote: > > > > > -Original Message- > > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > > Sent: Monday, March 03, 2014 11:51 PM > > To: Zhao Qiang-B4547

[tip:irq/core] powerpc: Eeh: Kill another abuse of irq_desc

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: b8a9a11b976810ba12a43c4fe699a14892c97e52 Gitweb: http://git.kernel.org/tip/b8a9a11b976810ba12a43c4fe699a14892c97e52 Author: Thomas Gleixner AuthorDate: Sun, 23 Feb 2014 21:40:09 + Committer: Thomas Gleixner CommitDate: Tue, 4 Mar 2014 17:37:52 +0100 powerpc: Eeh: Kill an

[tip:irq/core] powerpc:eVh_pic: Kill irq_desc abuse

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: c866cda47f2c6c8abb929933b7794e9a92d7c924 Gitweb: http://git.kernel.org/tip/c866cda47f2c6c8abb929933b7794e9a92d7c924 Author: Thomas Gleixner AuthorDate: Sun, 23 Feb 2014 21:40:08 + Committer: Thomas Gleixner CommitDate: Tue, 4 Mar 2014 17:37:51 +0100 powerpc:eVh_pic: Kill

[tip:irq/core] powerpc: Irq: Use generic_handle_irq

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: a4e04c9f219d2c00764ffa7ba45500411815879d Gitweb: http://git.kernel.org/tip/a4e04c9f219d2c00764ffa7ba45500411815879d Author: Thomas Gleixner AuthorDate: Sun, 23 Feb 2014 21:40:08 + Committer: Thomas Gleixner CommitDate: Tue, 4 Mar 2014 17:37:52 +0100 powerpc: Irq: Use gen

Re: [PATCH] powerpc: Align p_dyn, p_rela and p_st symbols

2014-03-04 Thread Laurent Dufour
On 03/03/2014 22:31, Anton Blanchard wrote: > > The 64bit relocation code places a few symbols in the text segment. > These symbols are only 4 byte aligned where they need to be 8 byte > aligned. Add an explicit alignment. > > Signed-off-by: Anton Blanchard > Cc: sta...@vger.kernel.org Fix the

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

2014-03-04 Thread Vasant Hegde
On 02/28/2014 06:28 AM, Stewart Smith wrote: Based on a patch by: Mahesh Salgaonkar This patch adds support to read error logs from OPAL and export them to userspace through a sysfs interface. We export each log entry as a directory in /sys/firmware/opal/elog/ Currently, OPAL will buffer up t

Re: [PATCH v3] powerpc/powernv Platform dump interface

2014-03-04 Thread Vasant Hegde
On 03/03/2014 04:55 AM, Stewart Smith wrote: This enables support for userspace to fetch and initiate FSP and Platform dumps from the service processor (via firmware) through sysfs. Based on original patch from Vasant Hegde Flow: - We register for OPAL notification events. - OPAL sends n

RE: [PATCH] Corenet: Add QE platform support for Corenet

2014-03-04 Thread qiang.z...@freescale.com
On Mar 3, 2014, at 11:51 PM, Kumar Gala [ga...@kernel.crashing.org] wrote: > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Monday, March 03, 2014 11:51 PM > To: Zhao Qiang-B45475 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Xie Xiaobo-R63061

UART Fifo mode

2014-03-04 Thread poonam.aggr...@freescale.com
Hello All I am debugging a UART issue on a Freescale PowerPC SOC. My observations are: When FiFo mode is enabled FCR[FEN]=1, and the Fifo size is 16byte. I see console prints not coming properly, lot of missing characters. But here when I change the tx_loadsz to 8, the UART works fine.

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-04 Thread Cody P Schafer
On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where