Re: When do i need to allocate DMA buffer

2009-01-13 Thread wael showair
1. so my question is: is there any difference between the DMA engine & the DMA controller? 2. i have read the following section in my reference manual: "The MPC8555E DMA engine is capable of transferring blocks of data from any legal address range to any other legal address range. Therefore, it ca

Re: [PATCH 1/4] hvc_console: do not set low_latency

2009-01-13 Thread Christian Borntraeger
Am Donnerstag 08 Januar 2009 schrieb Milton Miller: > hvc_console is setting low_latency unconditionally, but some clients are > interrupt driven and will call hvc_poll from irq context. This will cause > tty_flip_buffer_push to be called from irq context, and it very clearly > states it must not

Re: [PATCH 1/4] hvc_console: do not set low_latency

2009-01-13 Thread Christian Borntraeger
Am Dienstag 13 Januar 2009 schrieb Christian Borntraeger: > drivers/char/hvc_console.c |5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > Index: linux-2.6/drivers/char/hvc_console.c > === > --- linux-2.6.orig/drivers

Re: [PATCH 1/4] hvc_console: do not set low_latency

2009-01-13 Thread Hendrik Brueckner
Here is yet another bug trace related to the low_latency issue, that is experienced using the hvc_iucv backend. The hvc_iucv backend now also uses irq notifiers. The bug trace below appears if hvc_kick() is called. On Tue, Jan 13, 2009 at 10:04:22AM +0100, Christian Borntraeger wrote: > Am Donner

Re: [PATCH 5/5] ide: Force VIA IDE legacy interrupts for AmigaOne boards

2009-01-13 Thread Gerhard Pircher
Original-Nachricht > Datum: Tue, 13 Jan 2009 16:02:38 +1100 > Von: Benjamin Herrenschmidt > An: Gerhard Pircher > CC: Bartlomiej Zolnierkiewicz , > grant.lik...@secretlab.ca, linuxppc-dev@ozlabs.org, linux-...@vger.kernel.org > Betreff: Re: [PATCH 5/5] ide: Force VIA IDE legac

Re: [PATCH 2/5] powerpc: Generic device tree for all AmigaOne boards

2009-01-13 Thread Gerhard Pircher
Original-Nachricht > Datum: Tue, 13 Jan 2009 16:01:42 +1100 > Von: Benjamin Herrenschmidt > An: Gerhard Pircher > CC: linuxppc-dev@ozlabs.org, grant.lik...@secretlab.ca > Betreff: Re: [PATCH 2/5] powerpc: Generic device tree for all AmigaOne boards > > I think I throw away the

Re: [PATCH] powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/chips/

2009-01-13 Thread Kumar Gala
On Jan 11, 2009, at 10:55 AM, Anton Vorontsov wrote: This patch is used to help Jean Delvare to get rid of drivers/i2c/ chips/ directory. The new location suggested by Kumar Gala: as the driver is 83xx specific it's placed into arch/powerpc/platforms/83xx/. Signed-off-by: Anton Vorontsov ---

Re: [PATCH] powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/chips/

2009-01-13 Thread Jean Delvare
On Tue, 13 Jan 2009 08:39:37 -0600, Kumar Gala wrote: > > On Jan 11, 2009, at 10:55 AM, Anton Vorontsov wrote: > > > This patch is used to help Jean Delvare to get rid of drivers/i2c/ > > chips/ > > directory. The new location suggested by Kumar Gala: as the driver is > > 83xx specific it's plac

Please pull from 'next' branch (2.6.29)

2009-01-13 Thread Kumar Gala
Please pull from 'next' branch of (this is my last pull request of 'next' for 2.6.29. I would like to see the 'powerpc: Unify opcode definitions and support' patch go in but leave that for you to pull in directly). master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git next to re

Re: [PATCH 3/5] powerpc: booke: Remove code duplication in lowmem mapping

2009-01-13 Thread Kumar Gala
On Dec 8, 2008, at 9:34 PM, Trent Piepho wrote: The code to map lowmem uses three CAM aka TLB[1] entries to cover it. The size of each is stored in three globals named __cam0, __cam1, and __cam2. All the code that uses them is duplicated three times for each of the three variables. We h

Re: [PATCH 4/5] powerpc: booke: Make CAM entries used for lowmem configurable

2009-01-13 Thread Kumar Gala
On Dec 8, 2008, at 9:34 PM, Trent Piepho wrote: On booke processors, the code that maps low memory only uses up to three CAM entries, even though there are sixteen and nothing else uses them. Make this number configurable in the advanced options menu along with max low memory size. If on

Re: [PATCH 5/5] powerpc: booke: Allow larger CAM sizes than 256 MB

2009-01-13 Thread Kumar Gala
On Dec 8, 2008, at 9:34 PM, Trent Piepho wrote: The code that maps kernel low memory would only use page sizes up to 256 MB. On E500v2 pages up to 4 GB are supported. However, a page must be aligned to a multiple of the page's size. I.e. 256 MB pages must aligned to a 256 MB boundary. T

Re: [PATCH 0/5 + 2] kexec updates

2009-01-13 Thread Milton Miller
On Jan 12, 2009, at 12:24 AM, Simon Horman wrote: On Fri, Jan 02, 2009 at 02:42:38PM -0600, Milton Miller wrote: Follwing this mail are 5 patches for kexec userspace and two for the kernel. The first fixes an array overflow and the second updates userspace to the merged 2.6.28 kdump support. T

Re: [PATCH 0/6] USB: Fixes for fsl_qe_udc driver

2009-01-13 Thread Kumar Gala
On Jan 6, 2009, at 10:53 PM, Greg KH wrote: On Tue, Jan 06, 2009 at 10:44:13PM -0600, Kumar Gala wrote: On Dec 25, 2008, at 8:14 AM, Anton Vorontsov wrote: Hi all, Just resending some fixes that seem to be lost... Greg, What happened w/this patch set? As it was sent during the hollida

Re: [PATCH 1/4] hvc_console: do not set low_latency

2009-01-13 Thread Milton Miller
On Jan 13, 2009, at 5:35 AM, Hendrik Brueckner wrote: Here is yet another bug trace related to the low_latency issue, that is experienced using the hvc_iucv backend. The hvc_iucv backend now also uses irq notifiers. The bug trace below appears if hvc_kick() is called. On Tue, Jan 13, 2009 a

[PATCH] phylib: Fix Freescale TBI PHY detection

2009-01-13 Thread Anton Vorontsov
Freescale on-chip TBI PHYs reports PHY ID as 0x0, but as of commit 3ee82383f0098a2e13acc8cf1be8e47512f41e5a Author: Giulio Benetti Date: Thu Nov 13 21:53:13 2008 + phy: fix phy address bug PHYID returns 0x and not 0x when not found and in some case(at91sam9263) 0x0

Re[2]: mal_probe crash

2009-01-13 Thread Geert Uytterhoeven
On Tue, 13 Jan 2009, Yuri Tikhonov wrote: > On Tuesday, January 13, 2009 you wrote: > > On Mon, 2009-01-12 at 14:37 +0100, Geert Uytterhoeven wrote: > >> On Fri, 9 Jan 2009, Roland Dreier wrote: > >> > > Can you double check that the e1000 isn't copying the PCI resources > >> > into > >> > > a u

Re: [PATCH v2] powerpc/fs_enet: Add missing irq free in error path.

2009-01-13 Thread Kumar Gala
On Oct 27, 2008, at 4:46 PM, Mike Ditto wrote: If something goes wrong attaching to phy driver, we weren't freeing the IRQ. Signed-off-by: Mike Ditto --- Reposting to CC netdev list. (Thanks, Kumar) diff -r -upN 2.6.28-rc1/drivers/net/fs_enet/fs_enet-main.c NEW/ drivers/net/fs_enet/fs_enet

Unsubscribe me

2009-01-13 Thread Bangar Raju
Please unsubscribe me from this group ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: linux-next: origin tree build failure

2009-01-13 Thread Stephen Rothwell
Hi Ingo, On Mon, 12 Jan 2009 10:32:14 +0100 Ingo Molnar wrote: > > * Stephen Rothwell wrote: > > > > It slipped through because it didnt get caught in build tests because > > > cpufreq isnt enabled in the powerpc defconfig. > > > > Which is one of the reasons we have linux-next: "integration

Re: [PATCH RFC v5] net: add PCINet driver

2009-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2009, Ira Snyder wrote: > On Tue, Jan 13, 2009 at 01:02:52PM +1030, Rusty Russell wrote: > > > >Interesting system: the guest being able to access the > >host's memory but not (fully) vice-versa makes this a > >little different from the current implementations whe

Re: [PATCH RFC v5] net: add PCINet driver

2009-01-13 Thread Ira Snyder
On Tue, Jan 13, 2009 at 05:33:03PM +0100, Arnd Bergmann wrote: > On Tuesday 13 January 2009, Ira Snyder wrote: > > On Tue, Jan 13, 2009 at 01:02:52PM +1030, Rusty Russell wrote: > > > > > >Interesting system: the guest being able to access the > > >host's memory but not (fully) vice-versa

Re: [PATCH 0/6] USB: Fixes for fsl_qe_udc driver

2009-01-13 Thread Greg KH
On Tue, Jan 13, 2009 at 09:49:39AM -0600, Kumar Gala wrote: > > On Jan 6, 2009, at 10:53 PM, Greg KH wrote: > >> On Tue, Jan 06, 2009 at 10:44:13PM -0600, Kumar Gala wrote: >>> >>> On Dec 25, 2008, at 8:14 AM, Anton Vorontsov wrote: >>> Hi all, Just resending some fixes that seem to

Re: [PATCH 0/6] USB: Fixes for fsl_qe_udc driver

2009-01-13 Thread Kumar Gala
Just resending some fixes that seem to be lost... Greg, What happened w/this patch set? As it was sent during the hollidays (on Christmas day at that), it's still in my "to-review" queue. I'll get to it in a few days after I resync the USB tree with Linus. Any update on the review of these

Re: [PATCH RFC v5] net: add PCINet driver

2009-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2009, Ira Snyder wrote: > So do you program one channel of the DMA engine from the host side and > another channel from the guest side? Yes. > I tried to avoid having the host program the DMA controller at all. > Using the DMAEngine API on the guest did better than I could a

Re: [PATCH] powerpc: Enable PS3 options and QPACE in ppc64_defconfig

2009-01-13 Thread Geoff Levand
Michael Ellerman wrote: > To increase the amount of code that's built for a defconfig build. > > Signed-off-by: Michael Ellerman > --- > arch/powerpc/configs/ppc64_defconfig | 26 +- > 1 files changed, 25 insertions(+), 1 deletions(-) > -# CONFIG_PPC_PS3 is not set > +

Re: Please pull from 'next' branch (2.6.29)

2009-01-13 Thread Benjamin Herrenschmidt
On Tue, 2009-01-13 at 09:21 -0600, Kumar Gala wrote: > Please pull from 'next' branch of > > (this is my last pull request of 'next' for 2.6.29. I would like to see > the 'powerpc: Unify opcode definitions and support' patch go in but leave > that for you to pull in directly). This is really ver

Re: [PATCH 1/4] hvc_console: do not set low_latency

2009-01-13 Thread Benjamin Herrenschmidt
> So the simplest is to never set it. I already applied your previous patch. Please send an incremental fix. Cheers, Ben. > milton > > > BUG: sleeping function called from invalid context at > > /root/cvs/linux-2.6.git/kernel/mutex.c:207 > > in_atomic(): 1, irqs_disabled(): 0, pid: 748, name:

Re: Please pull from 'next' branch (2.6.29)

2009-01-13 Thread Kumar Gala
On Jan 13, 2009, at 2:59 PM, Benjamin Herrenschmidt wrote: On Tue, 2009-01-13 at 09:21 -0600, Kumar Gala wrote: Please pull from 'next' branch of (this is my last pull request of 'next' for 2.6.29. I would like to see the 'powerpc: Unify opcode definitions and support' patch go in but le

Re: Please pull from 'next' branch (2.6.29)

2009-01-13 Thread Kumar Gala
On Jan 13, 2009, at 3:17 PM, Kumar Gala wrote: powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/ chips/ At Jean's request to move i2c clients out of drivers/i2c. Getting this into .29 might be useful since its just a driver move and saves us merge headache's later. -

[PATCH v3] powerpc: Unify opcode definitions and support

2009-01-13 Thread Kumar Gala
Create a new header that becomes a single location for defining PowerPC opcodes used by code that is either generationg instructions at runtime (fixups, debug, etc.), emulating instructions, or just compiling instructions old assemblers don't know about. We currently don't handle the floating poin

Re: Please pull from 'next' branch (2.6.29)

2009-01-13 Thread Benjamin Herrenschmidt
On Tue, 2009-01-13 at 15:17 -0600, Kumar Gala wrote: > On Jan 13, 2009, at 2:59 PM, Benjamin Herrenschmidt wrote: > > > On Tue, 2009-01-13 at 09:21 -0600, Kumar Gala wrote: > >> Please pull from 'next' branch of > >> > >> (this is my last pull request of 'next' for 2.6.29. I would like > >> to

Please pull from 'next' branch (for 2.6.29)(updated)

2009-01-13 Thread Kumar Gala
Updated to just be the small bug fixes and the move of the driver - k Please pull from 'next' branch of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git next to receive the following updates: arch/powerpc/boot/dts/mpc8315erdb.dts |4 arch/powerpc/kernel/head_

[git pull] Please pull powerpc.git merge branch

2009-01-13 Thread Benjamin Herrenschmidt
Hi Linus ! Here's another batch for before -rc2. The main highlight is the u64 conversion to unsigned long long along with a bunch of patches fixing warnings due to this conversion. There will be a few more, for example the PS3 code is still pretty bad in this area, but that's about it. The rest

[PATCH] Add init_dummy_netdev() and fix EMAC driver using it

2009-01-13 Thread Benjamin Herrenschmidt
This adds an init_dummy_netdev() function that gets a network device structure (allocation and lifetime entirely under caller's control) and initialize the minimum amount of fields so it can be used to schedule NAPI polls without registering a full blown interface. This is to be used by drivers tha

Fwd: [PATCH] powerpc/mpc52xx: Properly update irq_desc when set_type() is called.

2009-01-13 Thread Grant Likely
On Tue, Jan 13, 2009 at 6:00 AM, Matt Sealey wrote: > Grant Likely wrote: >> >> >> Theoretically it could call IRQ handlers to be called too often. It >> might possibly be the cause of too many 'BAD' irqs being recorded > > That might explain a few USB explosions, where high bandwidth transfe

[PATCH 01/13] powerpc/ps3: set_dabr takes an unsigned long

2009-01-13 Thread Stephen Rothwell
Also silences this warning: arch/powerpc/platforms/ps3/setup.c:275: warning: initialization from incompatible pointer type Signed-off-by: Stephen Rothwell --- arch/powerpc/platforms/ps3/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3

[PATCH 02/13] powerpc/ps3: use dma_addr_t down through the stack

2009-01-13 Thread Stephen Rothwell
Push the dma_addr_t type usage all the way down to where the actual values are manipulated. Now that u64 is "unsigned long long", this removes warnings like: arch/powerpc/platforms/ps3/system-bus.c:532: warning: passing argument 4 of 'ps3_dma_map' from incompatible pointer type arch/powerpc/plat

[PATCH 03/13] powerpc/ps3: the lv1_ routines have u64 parameters

2009-01-13 Thread Stephen Rothwell
We just fix up the reference parameters as the others are dealt with by arithmetic promotion rules and don't cause warnings. This removes warnings like this: arch/powerpc/platforms/ps3/interrupt.c:327: warning: passing argument 1 of 'lv1_construct_event_receive_port' from incompatible pointer ty

[PATCH 04/13] powerpc/ps3: clear_bit/set_bit operate on unsigned longs

2009-01-13 Thread Stephen Rothwell
This fixes these compiler warning: arch/powerpc/platforms/ps3/interrupt.c:109: warning: passing argument 2 of 'clear_bit' from incompatible pointer type arch/powerpc/platforms/ps3/interrupt.c:130: warning: passing argument 2 of 'set_bit' from incompatible pointer type Signed-off-by: Stephen Rot

[PATCH 05/13] powerpc/ps3: ps3_repository_read_mm_info takes u64 * arguments

2009-01-13 Thread Stephen Rothwell
Fixes compiler warnings: arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 2 of 'ps3_repository_read_mm_info' from incompatible pointer type arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 3 of 'ps3_repository_read_mm_info' from incompatible pointer type Signed-off

[PATCH 06/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: arch/powerpc

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- arch/powerpc/platforms/ps3/device-init.c | 26 +- arch/powerpc/platforms/ps3/htab.c|2 +- arch/powerpc/platforms/ps3/interrupt.c | 16 arch/powerpc/platforms/ps3/mm.c | 10 +- arch/p

[PATCH 08/13] powerpc/ps3: printing fixups for l64 to ll64 convserion: drivers/char

2009-01-13 Thread Stephen Rothwell
Also a couple of min -> min_t changes. Signed-off-by: Stephen Rothwell --- drivers/char/ps3flash.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/char/ps3flash.c b/drivers/char/ps3flash.c index 79b6f46..afbe456 100644 --- a/drivers/char/ps3flas

[PATCH 07/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/block

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- drivers/block/ps3disk.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) Jens, if its OK by you, this could go in via the PowerPC tree. diff --git a/drivers/block/ps3disk.c b/drivers/block/ps3disk.c index 936466f..bccc42b 100644 --

[PATCH 09/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: sound/ppc

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- sound/ppc/snd_ps3.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Takashi, if it is OK with you, this could go in via the PowerPC tree. diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index 8f9e385..ff32111 100644 --- a/sound/ppc/snd_p

[PATCH 10/13] powerpc/ps3: printing fixups for l64 to ll64 convserion: drivers/net

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- drivers/net/ps3_gelic_wireless.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index ec23142..335da48 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/ne

[PATCH 11/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/ps3

2009-01-13 Thread Stephen Rothwell
Also some min -> mint_t conversion. Signed-off-by: Stephen Rothwell --- drivers/ps3/ps3-lpm.c | 16 drivers/ps3/ps3-vuart.c |8 drivers/ps3/ps3stor_lib.c | 14 +++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/ps3/ps3

[PATCH 12/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/scsi

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- drivers/scsi/ps3rom.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) James, if it is OK with you, this could go in via the PowerPC tree. diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index ce48e2d..ca0dd33 100644 --- a/drivers/s

[PATCH 13/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/video

2009-01-13 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- drivers/video/ps3fb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Antonino, if it is OK with you, this could go in via the PowerPC tree. diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index 38ac805..87f826e 100644 --- a/drivers/

Re: [PATCH 09/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: sound/ppc

2009-01-13 Thread Takashi Iwai
At Wed, 14 Jan 2009 17:07:55 +1100, Stephen Rothwell wrote: > > > Signed-off-by: Stephen Rothwell Acked-by: Takashi Iwai > --- > sound/ppc/snd_ps3.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > Takashi, if it is OK with you, this could go in via the PowerPC tree. Ye

RE: Re: mpc5200b configure nand driver via dts

2009-01-13 Thread florian . belser
> > On Mon, Jan 12, 2009 at 2:07 AM, > wrote: > >> hello, > >> > >> I have some problems with an mpc5200b based board. It's nearly > compatible to > >> the lite5200b board. > >> I connected an samsung k9k8g08u0a nand flash via the lpb bus. This > works > >> fine with an self written nand driver.

Re: [PATCH 07/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/block

2009-01-13 Thread Jens Axboe
On Wed, Jan 14 2009, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell > --- > drivers/block/ps3disk.c | 18 +- > 1 files changed, 9 insertions(+), 9 deletions(-) > > Jens, if its OK by you, this could go in via the PowerPC tree. Of course. -- Jens Axboe