Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2013-05-01 Thread Anthony Foiani
Jeff -- Thanks for the quick reply -- sorry that it took me a few days to get back to you. [Also, apologies if anyone gets a dupe -- I'm working on a new mail configuration, and while I did test it, something went sideways the first time I tried to send this.] Jeff Garzik writes: > Regarding th

[PATCH] powerpc: Emulate non privileged DSCR read and write

2013-05-01 Thread Anton Blanchard
POWER8 allows read and write of the DSCR in userspace. We added kernel emulation so applications could always use the instructions regardless of the CPU type. Unfortunately there are two SPRs for the DSCR and we only added emulation for the privileged one. Add code to match the non privileged on

Re: [PATCH -V7 18/18] powerpc: Update tlbie/tlbiel as per ISA doc

2013-05-01 Thread David Gibson
On Wed, May 01, 2013 at 01:17:41PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Tue, Apr 30, 2013 at 10:51:00PM +0530, Aneesh Kumar K.V wrote: > >> David Gibson writes: > >> > >> > On Mon, Apr 29, 2013 at 01:07:39AM +0530, Aneesh Kumar K.V wrote: > >> >> From: "Aneesh Kumar K.

[PATCH -next] kvm/ppc/mpic: fix missing unlock in set_base_addr()

2013-05-01 Thread Wei Yongjun
From: Wei Yongjun Add the missing unlock before return from function set_base_addr() when disables the mapping. Introduced by commit 5df554ad5b7522ea62b0ff9d5be35183494efc21 (kvm/ppc/mpic: in-kernel MPIC emulation) Signed-off-by: Wei Yongjun --- arch/powerpc/kvm/mpic.c | 2 +- 1 file changed,

net/eth/ibmveth: Fixup retrieval of MAC address

2013-05-01 Thread Benjamin Herrenschmidt
Some ancient pHyp versions used to create a 8 bytes local-mac-address property in the device-tree instead of a 6 bytes one for veth. The Linux driver code to deal with that is an insane hack which also happens to break with some choices of MAC addresses in qemu by testing for a bit in the address

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: > On Wed, 2013-05-01 at 10:25 -0500, Nathan Fontenot wrote: > > On 04/26/2013 04:32 PM, Robert Jennings wrote: > > > With this patch before a migration/hibernation all threads present but > > > not online will be brought online. After migr

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2013-05-01 Thread Scott Wood
On 05/01/2013 06:35:38 PM, Anthony Foiani wrote: Scott -- Thanks again for the quick reply. On 05/01/2013 12:05 PM, Scott Wood wrote: On 04/30/2013 09:06:56 PM, Anthony Foiani wrote: Instead of a new property name, I would instead check for my specific board type (let's call it a foo-8315) i

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Benjamin Herrenschmidt
On Wed, 2013-05-01 at 10:25 -0500, Nathan Fontenot wrote: > On 04/26/2013 04:32 PM, Robert Jennings wrote: > > With this patch before a migration/hibernation all threads present but > > not online will be brought online. After migration/hibernation those > > threads are taken back offline. > > >

Re: PowerPC, P2020RDB, application debug when the application is in tight loop, Sysrq

2013-05-01 Thread Scott Wood
On 04/17/2013 12:04:10 AM, saikrishna gajula wrote: HI All, I am new to this group. I am working on Freescale P2020 platform running linux 2.6.21. I am looking for debug mechanism/utility, when a multi threaded application running on linux , appears to be hung ( running in a

Re: flush_icache_range on AMCC 44x targets

2013-05-01 Thread Josh Boyer
On Tue, Apr 30, 2013 at 02:17:59PM +0200, Mike wrote: >Hi, > >i was reading trough arch/powerpc/kernel/misc32.S looking at the icbi and >iccci instructions, from whats on print in >http://s.eeweb.com/members/kvks_kumar/answers/1356585717-PPC440_UM2013.pdf(page >272) iccci should be used once in the

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Srivatsa S. Bhat
On 04/27/2013 03:02 AM, Robert Jennings wrote: > With this patch before a migration/hibernation all threads present but > not online will be brought online. After migration/hibernation those > threads are taken back offline. > > During migration/hibernation all online CPUs must call H_JOIN, this

Re: [PATCH v2 net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread David Miller
From: Eric Dumazet Date: Wed, 01 May 2013 08:24:03 -0700 > [PATCH v2] af_unix: fix a fatal race with bit fields > > Using bit fields is dangerous on ppc64/sparc64, as the compiler [1] > uses 64bit instructions to manipulate them. > If the 64bit word includes any atomic_t or spinlock_t, we can lo

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2013-05-01 Thread Scott Wood
On 04/30/2013 09:06:56 PM, Anthony Foiani wrote: Scott -- On 04/30/2013 06:42 PM, Scott Wood wrote: I just meant that, for whatever boards you would have put this in the device tree, put it in platform code instead (if the platform file supports more than one board type, then check the compa

RE: [PATCH v2 net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread David Laight
> diff --git a/include/net/af_unix.h b/include/net/af_unix.h > index a8836e8..dbdfd2b 100644 > --- a/include/net/af_unix.h > +++ b/include/net/af_unix.h > @@ -57,9 +57,10 @@ struct unix_sock { > struct list_headlink; > atomic_long_t inflight; > spinlock_t

RE: [PATCH v2 net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread Eric Dumazet
On Wed, 2013-05-01 at 16:53 +0100, David Laight wrote: > Why not just change gc_candidate and gc_maybe_cycle to > unsigned char? > It might reduce the number of pad bytes somewhat. You didn't quite follow the discussion. I used bytes on V1, and we are not 100% sure its safe on all arches. unsign

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Nathan Fontenot
On 04/26/2013 04:32 PM, Robert Jennings wrote: > With this patch before a migration/hibernation all threads present but > not online will be brought online. After migration/hibernation those > threads are taken back offline. > > During migration/hibernation all online CPUs must call H_JOIN, this

[PATCH v2 net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread Eric Dumazet
On Wed, 2013-05-01 at 03:36 -0400, David Miller wrote: > From: Benjamin Herrenschmidt > Date: Wed, 01 May 2013 11:39:53 +1000 > > > I'm not even completely certain bytes are safe to be honest, though > > probably more than bitfields. I'll poke our compiler people. > > Older Alpha only has 32-bit

Re: [PATCH net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread Stephen Hemminger
On Tue, 30 Apr 2013 22:04:32 -0700 Eric Dumazet wrote: > On Wed, 2013-05-01 at 13:24 +0930, Alan Modra wrote: > > On Tue, Apr 30, 2013 at 07:24:20PM -0700, Eric Dumazet wrote: > > > li 11,1 > > > ld 0,0(9) > > > rldimi 0,11,31,32 > > > std 0,0(9) > > > blr > > > .ident "GCC: (GNU) 4.

Re: [PATCH -V7 18/18] powerpc: Update tlbie/tlbiel as per ISA doc

2013-05-01 Thread David Gibson
On Wed, May 01, 2013 at 03:52:30PM +0800, Simon Jeons wrote: > On 05/01/2013 03:47 PM, Aneesh Kumar K.V wrote: > >David Gibson writes: > > > >>On Tue, Apr 30, 2013 at 10:51:00PM +0530, Aneesh Kumar K.V wrote: > >>>David Gibson writes: > >>> > On Mon, Apr 29, 2013 at 01:07:39AM +0530, Aneesh K

Re: [PATCH net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread Ben Hutchings
On Wed, 2013-05-01 at 11:39 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-04-30 at 18:12 -0700, Eric Dumazet wrote: > > From: Eric Dumazet > > > > Using bit fields is dangerous on ppc64, as the compiler uses 64bit > > instructions to manipulate them. If the 64bit word includes any > > atomi

[PATCH 1/1] powerpc: mpc512x_dma: add support for data transfers between memory and i/o memory

2013-05-01 Thread Alexander Popov
The initial version of this driver supports only memory to memory data transfers. Data transfers between memory and i/o memory require more delicate TCD (Transfer Control Descriptor) configuration and DMA channel service requests via hardware. dma_device.device_control callback function is needed

Re: [PATCH net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread Benjamin Herrenschmidt
On Wed, 2013-05-01 at 03:36 -0400, David Miller wrote: > From: Benjamin Herrenschmidt > Date: Wed, 01 May 2013 11:39:53 +1000 > > > I'm not even completely certain bytes are safe to be honest, though > > probably more than bitfields. I'll poke our compiler people. > > Older Alpha only has 32-bit

Re: [PATCH -V7 18/18] powerpc: Update tlbie/tlbiel as per ISA doc

2013-05-01 Thread Simon Jeons
On 05/01/2013 03:47 PM, Aneesh Kumar K.V wrote: David Gibson writes: On Tue, Apr 30, 2013 at 10:51:00PM +0530, Aneesh Kumar K.V wrote: David Gibson writes: On Mon, Apr 29, 2013 at 01:07:39AM +0530, Aneesh Kumar K.V wrote: From: "Aneesh Kumar K.V" Encode the actual page correctly in tlbi

Re: [PATCH -V7 18/18] powerpc: Update tlbie/tlbiel as per ISA doc

2013-05-01 Thread Aneesh Kumar K.V
David Gibson writes: > On Tue, Apr 30, 2013 at 10:51:00PM +0530, Aneesh Kumar K.V wrote: >> David Gibson writes: >> >> > On Mon, Apr 29, 2013 at 01:07:39AM +0530, Aneesh Kumar K.V wrote: >> >> From: "Aneesh Kumar K.V" >> >> >> >> Encode the actual page correctly in tlbie/tlbiel. This make sur

Re: [PATCH net-next] af_unix: fix a fatal race with bit fields

2013-05-01 Thread David Miller
From: Benjamin Herrenschmidt Date: Wed, 01 May 2013 11:39:53 +1000 > I'm not even completely certain bytes are safe to be honest, though > probably more than bitfields. I'll poke our compiler people. Older Alpha only has 32-bit and 64-bit loads and stores, so byte sized accesses are not atomic,