Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-05 Thread Gregoire Favre
On Wed, May 02, 2007 at 11:35:32AM +0200, Andi Kleen wrote: > > > Looks like you hit: > > BUG_ON(flags & ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW)); > > > > I guess this was due to the vmalloc_32() change now passing in > > GFP_DMA32. Looks like that could be a problem with the > >

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-05 Thread Gregoire Favre
On Wed, May 02, 2007 at 11:35:32AM +0200, Andi Kleen wrote: Looks like you hit: BUG_ON(flags ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW)); I guess this was due to the vmalloc_32() change now passing in GFP_DMA32. Looks like that could be a problem with the x86_64-mm-vmalloc-32

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-02 Thread Gregoire Favre
On Wed, May 02, 2007 at 11:35:32AM +0200, Andi Kleen wrote: > Does this patch help? So far so good :-) Thank you very much. > Index: linux/mm/vmalloc.c > === > --- linux.orig/mm/vmalloc.c > +++ linux/mm/vmalloc.c > @@ -431,7

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-02 Thread Andi Kleen
> Looks like you hit: > BUG_ON(flags & ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW)); > > I guess this was due to the vmalloc_32() change now passing in > GFP_DMA32. Looks like that could be a problem with the > x86_64-mm-vmalloc-32 patch. Andi? Does this patch help? Index:

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-02 Thread Andi Kleen
Looks like you hit: BUG_ON(flags ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW)); I guess this was due to the vmalloc_32() change now passing in GFP_DMA32. Looks like that could be a problem with the x86_64-mm-vmalloc-32 patch. Andi? Does this patch help? Index: linux/mm/vmalloc.c

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-02 Thread Gregoire Favre
On Wed, May 02, 2007 at 11:35:32AM +0200, Andi Kleen wrote: Does this patch help? So far so good :-) Thank you very much. Index: linux/mm/vmalloc.c === --- linux.orig/mm/vmalloc.c +++ linux/mm/vmalloc.c @@ -431,7 +431,7 @@

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Jon Burgess
On Tue, 2007-05-01 at 11:41 +0200, Gregoire Favre wrote: > Hello again, > > just forgot this : > > ksymoops 2.4.11 on x86_64 2.6.21. Options used > -V (default) > -k /proc/ksyms (default) > -l /proc/modules (default) > -o /lib/modules/2.6.21/ (default) > -m

Re: [linux-dvb] [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Tue, May 01, 2007 at 05:58:42PM +0200, Oliver Endriss wrote: > Has anyone a problem with this patch? > If not I'll apply it tomorrow... The patch seems fine, but incomplete : it allows budget-ci to work, but don't allow cx88 cards to works. -- Grégoire FAVRE

Re: [linux-dvb] [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Oliver Endriss
Jon Burgess wrote: > It appears the problem is that the driver is using streamed PCI and > needs to explicitly sync the data otherwise it breaks when the SWIOTLB > is in use. A call to pci_unmap_sg() was missing too. > > This patch is against the current v4l-dvb HG tree. > > I've only tested the

Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Fri, Apr 27, 2007 at 04:55:25PM -0600, Robert Hancock wrote: > Sounds like the cx88 driver is not using the DMA API properly to set up > proper mappings, this will blow up if it tries to access memory above the > 4GB mark if the device cannot do >32bit DMA.. Any idea on how to solve this

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
Hello again, just forgot this : ksymoops 2.4.11 on x86_64 2.6.21. Options used -V (default) -k /proc/ksyms (default) -l /proc/modules (default) -o /lib/modules/2.6.21/ (default) -m /usr/src/linux/System.map (default) Warning: You did not tell me where to find symbol

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Mon, Apr 30, 2007 at 07:05:16PM +0100, Jon Burgess wrote: > I'm currently using 2.6.21 + x86_64-mm-vmalloc-32.patch with the v4l-dvb > drivers. I need to use the v4l-dvb tree in order to get the IR remote > working reliably. This combination compiles and works OK for me. You are lucky :)

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Mon, Apr 30, 2007 at 07:05:16PM +0100, Jon Burgess wrote: I'm currently using 2.6.21 + x86_64-mm-vmalloc-32.patch with the v4l-dvb drivers. I need to use the v4l-dvb tree in order to get the IR remote working reliably. This combination compiles and works OK for me. You are lucky :) They

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
Hello again, just forgot this : ksymoops 2.4.11 on x86_64 2.6.21. Options used -V (default) -k /proc/ksyms (default) -l /proc/modules (default) -o /lib/modules/2.6.21/ (default) -m /usr/src/linux/System.map (default) Warning: You did not tell me where to find symbol

Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Fri, Apr 27, 2007 at 04:55:25PM -0600, Robert Hancock wrote: Sounds like the cx88 driver is not using the DMA API properly to set up proper mappings, this will blow up if it tries to access memory above the 4GB mark if the device cannot do 32bit DMA.. Any idea on how to solve this ?

Re: [linux-dvb] [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Oliver Endriss
Jon Burgess wrote: It appears the problem is that the driver is using streamed PCI and needs to explicitly sync the data otherwise it breaks when the SWIOTLB is in use. A call to pci_unmap_sg() was missing too. This patch is against the current v4l-dvb HG tree. I've only tested the change

Re: [linux-dvb] [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Gregoire Favre
On Tue, May 01, 2007 at 05:58:42PM +0200, Oliver Endriss wrote: Has anyone a problem with this patch? If not I'll apply it tomorrow... The patch seems fine, but incomplete : it allows budget-ci to work, but don't allow cx88 cards to works. -- Grégoire FAVRE

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-05-01 Thread Jon Burgess
On Tue, 2007-05-01 at 11:41 +0200, Gregoire Favre wrote: Hello again, just forgot this : ksymoops 2.4.11 on x86_64 2.6.21. Options used -V (default) -k /proc/ksyms (default) -l /proc/modules (default) -o /lib/modules/2.6.21/ (default) -m

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-30 Thread Jon Burgess
On Mon, 2007-04-30 at 18:52 +0200, Gregoire Favre wrote: > On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: > > > While the above patch works, it seems the underlying causes is that > > vmalloc_32() is providing memory above 4Gb on x86-64 which is not what > > the driver expects. This

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-30 Thread Gregoire Favre
On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: > While the above patch works, it seems the underlying causes is that > vmalloc_32() is providing memory above 4Gb on x86-64 which is not what > the driver expects. This same issue came up a few weeks ago with regards > to DRM on radeon

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-30 Thread Gregoire Favre
On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: While the above patch works, it seems the underlying causes is that vmalloc_32() is providing memory above 4Gb on x86-64 which is not what the driver expects. This same issue came up a few weeks ago with regards to DRM on radeon

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-30 Thread Jon Burgess
On Mon, 2007-04-30 at 18:52 +0200, Gregoire Favre wrote: On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: While the above patch works, it seems the underlying causes is that vmalloc_32() is providing memory above 4Gb on x86-64 which is not what the driver expects. This same

Re: [linux-dvb] Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-29 Thread Oliver Endriss
Jon Burgess wrote: > On Sat, 2007-04-28 at 18:17 +0100, Jon Burgess wrote: > > On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: > > > On 4/27/07, Jon Burgess <[EMAIL PROTECTED]> wrote: > > > > Interesting - I see similar symptoms after upgrading my PC: > > > > * old PC was AMD Athlon 64 3000

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-29 Thread Gregoire Favre
On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: > While the above patch works, it seems the underlying causes is that > vmalloc_32() is providing memory above 4Gb on x86-64 which is not what > the driver expects. This same issue came up a few weeks ago with regards > to DRM on radeon

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-29 Thread Gregoire Favre
On Sat, Apr 28, 2007 at 09:14:37PM +0100, Jon Burgess wrote: While the above patch works, it seems the underlying causes is that vmalloc_32() is providing memory above 4Gb on x86-64 which is not what the driver expects. This same issue came up a few weeks ago with regards to DRM on radeon

Re: [linux-dvb] Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-29 Thread Oliver Endriss
Jon Burgess wrote: On Sat, 2007-04-28 at 18:17 +0100, Jon Burgess wrote: On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: On 4/27/07, Jon Burgess [EMAIL PROTECTED] wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-28 Thread Jon Burgess
On Sat, 2007-04-28 at 18:17 +0100, Jon Burgess wrote: > On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: > > On 4/27/07, Jon Burgess <[EMAIL PROTECTED]> wrote: > > > Interesting - I see similar symptoms after upgrading my PC: > > > * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no

[PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-28 Thread Jon Burgess
On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: > On 4/27/07, Jon Burgess <[EMAIL PROTECTED]> wrote: > > Interesting - I see similar symptoms after upgrading my PC: > > * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues > > * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails

[PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-28 Thread Jon Burgess
On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: On 4/27/07, Jon Burgess [EMAIL PROTECTED] wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails in the

Re: [PATCH] Re: More than 2Gb problem (dvb related) ?

2007-04-28 Thread Jon Burgess
On Sat, 2007-04-28 at 18:17 +0100, Jon Burgess wrote: On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: On 4/27/07, Jon Burgess [EMAIL PROTECTED] wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues *

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Markus Rechberger
Does this only happen with DVB and not with analogue TV (I know there are some cx88 hybrid devices out there, I recently got one but couldn't tested it yet ..)? Markus On 4/28/07, Robert Hancock <[EMAIL PROTECTED]> wrote: Gregoire Favre wrote: > Hello, > > I have a computer (mother Asus

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Robert Hancock
Gregoire Favre wrote: Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just see 2Gb of ram, and DVB apps works just great. When I enable the remapping of the memory, my BIOS and linux just see the whole 4Gb but then, I

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Jon Burgess
On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: > On 4/27/07, Jon Burgess <[EMAIL PROTECTED]> wrote: > > Interesting - I see similar symptoms after upgrading my PC: > > * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues > > * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Lee Revell
On 4/27/07, Jon Burgess <[EMAIL PROTECTED]> wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails in the way you describe. Driver using an incorrect DMA mask?

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Jon Burgess
On Fri, 2007-04-27 at 22:46 +0200, Markus Rechberger wrote: > just for the completeness, what does dmesg show up? > You forgot to mention what device you have too... > > Markus > > On 4/27/07, Gregoire Favre <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I have a computer (mother Asus Commando)

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Gregoire Favre
On Fri, Apr 27, 2007 at 10:46:33PM +0200, Markus Rechberger wrote: > just for the completeness, what does dmesg show up? > You forgot to mention what device you have too... Here all in one : Linux version 2.6.21-rc7 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP PREEMPT Mon Apr

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Markus Rechberger
just for the completeness, what does dmesg show up? You forgot to mention what device you have too... Markus On 4/27/07, Gregoire Favre <[EMAIL PROTECTED]> wrote: Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just

More than 2Gb problem (dvb related) ?

2007-04-27 Thread Gregoire Favre
Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just see 2Gb of ram, and DVB apps works just great. When I enable the remapping of the memory, my BIOS and linux just see the whole 4Gb but then, I can tune to any

More than 2Gb problem (dvb related) ?

2007-04-27 Thread Gregoire Favre
Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just see 2Gb of ram, and DVB apps works just great. When I enable the remapping of the memory, my BIOS and linux just see the whole 4Gb but then, I can tune to any

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Markus Rechberger
just for the completeness, what does dmesg show up? You forgot to mention what device you have too... Markus On 4/27/07, Gregoire Favre [EMAIL PROTECTED] wrote: Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Gregoire Favre
On Fri, Apr 27, 2007 at 10:46:33PM +0200, Markus Rechberger wrote: just for the completeness, what does dmesg show up? You forgot to mention what device you have too... Here all in one : Linux version 2.6.21-rc7 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP PREEMPT Mon Apr

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Jon Burgess
On Fri, 2007-04-27 at 22:46 +0200, Markus Rechberger wrote: just for the completeness, what does dmesg show up? You forgot to mention what device you have too... Markus On 4/27/07, Gregoire Favre [EMAIL PROTECTED] wrote: Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram.

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Lee Revell
On 4/27/07, Jon Burgess [EMAIL PROTECTED] wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails in the way you describe. Driver using an incorrect DMA mask?

Re: [linux-dvb] Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Jon Burgess
On Fri, 2007-04-27 at 18:06 -0400, Lee Revell wrote: On 4/27/07, Jon Burgess [EMAIL PROTECTED] wrote: Interesting - I see similar symptoms after upgrading my PC: * old PC was AMD Athlon 64 3000 w/ 2GB of RAM which had no issues * new PC is a Intel Core 2 Duo w/ 4GB of RAM and fails in the

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Robert Hancock
Gregoire Favre wrote: Hello, I have a computer (mother Asus Commando) with 4x1Gb Ram. If I start without the BIOS remap memory, my BIOS and linux just see 2Gb of ram, and DVB apps works just great. When I enable the remapping of the memory, my BIOS and linux just see the whole 4Gb but then, I

Re: More than 2Gb problem (dvb related) ?

2007-04-27 Thread Markus Rechberger
Does this only happen with DVB and not with analogue TV (I know there are some cx88 hybrid devices out there, I recently got one but couldn't tested it yet ..)? Markus On 4/28/07, Robert Hancock [EMAIL PROTECTED] wrote: Gregoire Favre wrote: Hello, I have a computer (mother Asus Commando)