Re: [Linux-fbdev-devel] Resource management.

2005-02-22 Thread Alex Deucher
On Tue, 22 Feb 2005 17:23:03 + (GMT), James Simmons <[EMAIL PROTECTED]> wrote: > > > As far as I know none of the significant contributors on either fbdev > > or DRM are being paid to work on the project. > > So I have noticed. There is much to do but no real man power. We are > talking about

Re: Odd data corruption problem with LVM/ReiserFS

2005-02-22 Thread pcg
On Mon, Feb 21, 2005 at 12:37:53PM +0100, Andreas Steinmetz <[EMAIL PROTECTED]> wrote: > >Anyway, what do you guys think could be the problem? Could it be that > >the LVM / Device Mapper snapshot feature is solely responsible for > >this corruption? (I'm sure there's a reason it's marked > >Expe

Urgent Request for your Business Co-operation!

2005-02-22 Thread kwhit_60
Kelly White, Please,copy reply to all of the following email addresses: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] Dear Sir, IN DESPERATE NEED OF YOUR CO-OPERATION! I write you this letter to solicit your help from Prison, as I am in dire need.

[PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Olof Johansson
Hi, Consider a small testcase that spawns off two threads, either thread doing a loop of: buf = mmap /dev/zero MAP_SHARED for 0x10 bytes call sys_futex (buf+page, FUTEX_WAIT, 1, NULL, NULL) for each page in said mmap munmap(buf) repeat This will quickly lock

Re: [PATCH 01/04] Adding cipher mode context information to crypto_tfm

2005-02-22 Thread Fruhwirth Clemens
On Mon, 2005-02-14 at 10:16 -0800, Andrew Morton wrote: > Fruhwirth Clemens <[EMAIL PROTECTED]> wrote: > > > > First, one has to make kmap fallible. > > I think it would be relatively simple and sane to modify the existing > kmap() implementations to add a new try_kmap() which is atomic and return

Re: [PATCH] TCP-Hybla proposal

2005-02-22 Thread David S. Miller
On Tue, 22 Feb 2005 09:42:19 -0800 Stephen Hemminger <[EMAIL PROTECTED]> wrote: > The protocol choices are mutually exclusive, if you walk through the code > (or do experiments), you find that that only one gets used. As part of the > longer term plan, I would like to: > - have one sysctl >

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Andrew Morton
Matthew Wilcox <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 22, 2005 at 09:41:04AM -0500, Jes Sorensen wrote: > > >> + if (page->flags & PG_uncached) > > > > Andrew> dude. That ain't gonna work ;) > > > > Pardon my lack of clue, but why not? if (page->flags & (1< I think you're supp

[PATCH] Fix for the IPMI SMB driver

2005-02-22 Thread Corey Minyard
The IPMI SMB driver, when running in run-to-completion mode (done during panic time), would sometimes get locked up if a timeout occurred because the timer would not get run properly. This adds the timer handling to the run-to-completion code. Signed-off-by: Corey Minyard <[EMAIL PROTECTED]> In

[PATCH] IPMI documentation updates

2005-02-22 Thread Corey Minyard
This cleans up the IPMI documentation to fix some problems and make it more accurate for the current drivers. Signed-off-by: Corey Minyard <[EMAIL PROTECTED]> Index: linux-2.6.11-rc4/Documentation/IPMI.txt === --- linux-2.6.11-rc4.o

Re: POSTing of video cards (WAS: Solo Xgl..)

2005-02-22 Thread Linus Torvalds
On Mon, 21 Feb 2005, Jon Smirl wrote: > > I was working on the assumption that all PCI based, VGA class hardware > that is not the boot device needs to be posted. I don't think that's true. We certainly don't _want_ it to be true in the long run - and even now there are cards that we can initia

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Linus Torvalds
On Tue, 22 Feb 2005, Olof Johansson wrote: > > Consider a small testcase that spawns off two threads, either thread > doing a loop of: > > buf = mmap /dev/zero MAP_SHARED for 0x10 bytes > call sys_futex (buf+page, FUTEX_WAIT, 1, NULL, NULL) for each page in > said mmap >

Re: Problems with 2.6.11-rc4, Opteron server and MPTBase

2005-02-22 Thread Matthias-Christian Ott
Weathers, Norman R. wrote: To all whom it may concern: I am having trouble with several of the 2.6 kernels. The last one is the one that is perhaps most annoying. I have a dual Opteron based NFS server that keeps crashing when I try to boot up with 2.6.11-rc4. The node is trying to boot from an mp

RE: Problems with 2.6.11-rc4, Opteron server and MPTBase

2005-02-22 Thread Weathers, Norman R.
-Original Post Weathers, Norman R. wrote: >To all whom it may concern: > > >I am having trouble with several of the 2.6 kernels. The last one is >the one that is perhaps most annoying. > >I have a dual Opteron based NFS server that keeps crashing whe

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Dave Hansen
I was talking with Nigel Cunningham about doing something a little different from the classic page flag bits when the number of users is restricted and performance isn't ultra-critical. Would something like this work for you, instead of using a real page->flags bit for PG_cached? http://marc.thea

Re: POSTing of video cards (WAS: Solo Xgl..)

2005-02-22 Thread Dmitry Torokhov
On Tue, 22 Feb 2005 11:19:10 -0800 (PST), Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > On Mon, 21 Feb 2005, Jon Smirl wrote: > > > > I was working on the assumption that all PCI based, VGA class hardware > > that is not the boot device needs to be posted. > > I don't think that's true. We cer

Re: Odd data corruption problem with LVM/ReiserFS

2005-02-22 Thread Andreas Steinmetz
pcg( Marc)@goof(A.).(Lehmann )com wrote: I use both reiserfs and ext3 on lvm/dm on raid. Both filesystems have issues when restoring from backup (i.e. very heavy write activity). I did report this to the linux kernel, and got as reply that there are indeed races *somewhere*, but as of yet there is

89.95$ = Microsoft Windows XP Pro + Microsoft Office XP Pro

2005-02-22 Thread Cons
http://19459.ifmmmjfjf.com/?BQ7G7mBLa9I.TB510013 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Andrew Morton
[EMAIL PROTECTED] (Olof Johansson) wrote: > > Hi, > > Consider a small testcase that spawns off two threads, either thread > doing a loop of: > > buf = mmap /dev/zero MAP_SHARED for 0x10 bytes > call sys_futex (buf+page, FUTEX_WAIT, 1, NULL, NULL) for each page in > said mmap >

Re: Odd data corruption problem with LVM/ReiserFS

2005-02-22 Thread pcg
On Tue, Feb 22, 2005 at 08:39:21PM +0100, Andreas Steinmetz <[EMAIL PROTECTED]> wrote: > To clarify: there were no disk I/O errors, only I/O errors were reported > by find during operation so it is definitely filesystem corruption > that is going on here. > Though find performs heavy read acti

Re: uninterruptible sleep lockups

2005-02-22 Thread Anthony DiSante
linux-os wrote: There has been some discussion that these hung states could be "fixed", but that's absolutely positively incorrect. That's one of the things I asked a few messages ago. Some people on the list were saying that it'd be "really hard" and would "require a lot of bookkeeping" to "fix

Re: [Lse-tech] Re: A common layer for Accounting packages

2005-02-22 Thread Jay Lan
Guillaume Thouvenin wrote: On Fri, 2005-02-18 at 17:16 -0800, Andrew Morton wrote: Jay Lan <[EMAIL PROTECTED]> wrote: Since the need of Linux system accounting has gone beyond what BSD accounting provides, i think it is a good idea to create a thin layer of common code for various accounting packag

Re: uninterruptible sleep lockups

2005-02-22 Thread Chris Friesen
Anthony DiSante wrote: linux-os wrote: There has been some discussion that these hung states could be "fixed", but that's absolutely positively incorrect. That's one of the things I asked a few messages ago. Some people on the list were saying that it'd be "really hard" and would "require a lot

Re: ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device

2005-02-22 Thread Bill Davidsen
[EMAIL PROTECTED] wrote: On Fri, 18 Feb 2005 15:23:44 EST, Bill Davidsen said: I'll try to build a truth table for this, I'm now working with some non-iso data sets, so I'm a bit more interested. I would expect read() to only try to read one sector, so I'll just do a quick and dirty to get the

Re: [PATCH] TCP-Hybla proposal

2005-02-22 Thread Baruch Even
Stephen Hemminger wrote: On Tue, 22 Feb 2005 15:34:42 +0100 Daniele Lacamera <[EMAIL PROTECTED]> wrote: One last note: IMHO we really need a better way to select congestion avoidance scheme between those available, instead of switching each one on and off. I.e., we can't say how vegas and westwoo

Re: uninterruptible sleep lockups

2005-02-22 Thread Horst von Brand
Anthony DiSante <[EMAIL PROTECTED]> said: > linux-os wrote: > > There has been some discussion that these hung > > states could be "fixed", but that's absolutely > > positively incorrect. > That's one of the things I asked a few messages ago. Some people on the > list were saying that it'd be "r

Re: [Lse-tech] Re: A common layer for Accounting packages

2005-02-22 Thread Jay Lan
Kaigai Kohei wrote: Hello, everyone. Andrew Morton wrote: > Jay Lan <[EMAIL PROTECTED]> wrote: > >>Since the need of Linux system accounting has gone beyond what BSD >>accounting provides, i think it is a good idea to create a thin layer >>of common code for various accounting packages, such a

Re: ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdXas device

2005-02-22 Thread Bill Davidsen
David Lang wrote: I regularly burn tarballs to a CD without useing a filesystem and as long as I use the -pad option when burning I've had no problems reading them (the -pad was nessasary even when I was useing ide-scsi) That matches my experience, at least as far as the "no problem" part, I nev

Re: uninterruptible sleep lockups

2005-02-22 Thread Anthony DiSante
Chris Friesen wrote: There has been some discussion that these hung states could be "fixed", but that's absolutely positively incorrect. That's one of the things I asked a few messages ago. Some people on the list were saying that it'd be "really hard" and would "require a lot of bookkeeping" to

Re: [linux-usb-devel] 2.6: USB Storage hangs machine on bootup for ~2 minutes

2005-02-22 Thread Alan Stern
On Tue, 22 Feb 2005, Parag Warudkar wrote: > > You said that the system hangs during bootup.  Where in the log does that > > hang occur?  The log itself looks perfectly normal.  The Maxtor drive is > > scanned, the partitions detected, and then apparently one or two > > partitions are mounted.  Th

Re: [uml-devel] [BUG: UML 2.6.11-rc4-bk-latest] sleeping function called from invalid context and segmentation fault

2005-02-22 Thread Blaisorblade
On Friday 18 February 2005 16:33, Anton Altaparmakov wrote: > On Wed, 2005-02-16 at 19:35 +0100, Blaisorblade wrote: > > On Monday 14 February 2005 12:48, Anton Altaparmakov wrote: > > > Hi, > > > > > > I get a few Debug messages of the form from UML: > > > > > > Debug: sleeping function called fro

Re: POSTing of video cards (WAS: Solo Xgl..)

2005-02-22 Thread Linus Torvalds
On Tue, 22 Feb 2005, Dmitry Torokhov wrote: > > This sounds awfully like firmware loader that seems to be working just > fine for a range of network cards and other devices. Yes. HOWEVER - and note how firmware loading for this case is not validly done at device discovery, but at "ifconfig" tim

Re: Odd data corruption problem with LVM/ReiserFS

2005-02-22 Thread Alex Adriaanse
On Tue, 22 Feb 2005 20:49:00 +0100, Marc A. Lehmann <[EMAIL PROTECTED]> wrote: > > >A reboot fixes this for both ext3 and reiserfs (i.e. the error is gone). > > > > > > > Well, it didn't fix it for me. The fs was trashed for good. The major > > question for me is now usability of md/dm for any purp

Re: Odd data corruption problem with LVM/ReiserFS

2005-02-22 Thread pcg
On Tue, Feb 22, 2005 at 02:46:44PM -0600, Alex Adriaanse <[EMAIL PROTECTED]> wrote: > On Tue, 22 Feb 2005 20:49:00 +0100, Marc A. Lehmann <[EMAIL PROTECTED]> wrote: > > Well, I do use reiserfs->aes-loop->lvm/dm->md5/raid5, and it never failed > > for me, except once, and the error is likely to be

Re: uninterruptible sleep lockups

2005-02-22 Thread Chris Friesen
Horst von Brand wrote: Anthony DiSante <[EMAIL PROTECTED]> said: That's one of the things I asked a few messages ago. Some people on the list were saying that it'd be "really hard" and would "require a lot of bookkeeping" to "fix" permanently-D-stated processes... which is completely different

Re: ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device

2005-02-22 Thread Bill Davidsen
Bartlomiej Zolnierkiewicz wrote: Hi, On Mon, 21 Feb 2005 15:00:28 +, Alan Cox <[EMAIL PROTECTED]> wrote: On Gwe, 2005-02-18 at 10:31, Kiniger, Karl (GE Healthcare) wrote: Not entirely true (at least for me). I actually tried to read the last iso9660 data sector with a small C program (reading 2

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Jamie Lokier
Andrew Morton wrote: > > This will quickly lock up, since the futex_wait code dows a > > down_read(mmap_sem), then a get_user(). > > > > The do_page_fault code on ppc64 (as well as other architectures) needs > > to take the same semaphore for reading. This is all good until the > > second thread c

Re: cfq: depth 4 reached, tagging now on

2005-02-22 Thread Lee Revell
On Mon, 2005-02-21 at 09:20 +0100, Jens Axboe wrote: > On Sat, Feb 19 2005, Lee Revell wrote: > > Starting around 2.6.11-rc4 I get this printk during the boot process > > after kjournald starts, and again if I stress the filesystem. > > > > cfq: depth 4 reached, tagging now on > > > > Is this pri

Problems with 2.6.11-rc4, Opteron server and MPTBase : Round 2

2005-02-22 Thread Weathers, Norman R.
OK, some more information concerning the previous problems with 2.6.11-rc4. Ok, 2.6.11-rc3 does the exact same thing as 2.6.11-rc4 does, which is crashes whenever you try and boot up our Opteron based server which has an LSI MPT Fusion based SCSI card as the primary card. Now comes the weird part

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Benjamin Herrenschmidt
On Tue, 2005-02-22 at 11:36 -0800, Linus Torvalds wrote: > DavidH - what's the word on nested read-semaphores like this? Are they > supposed to work (like nested read-spinlocks), or do we need to do the > things Olof does? Isn't Olof scheme racy ? Can't the stuff get swapped out between the fir

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Chris Friesen
Jamie Lokier wrote: In futex.c: down_read(¤t->mm->mmap_sem); get_futex_key(...) etc. queue_me(...) etc. current->flags |= PF_MMAP_SEM; <- new ret = get_user(...); current->flags &= PF_MMAP_SEM; <- new /* the rest */ Sho

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Benjamin Herrenschmidt
On Wed, 2005-02-23 at 08:16 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2005-02-22 at 11:36 -0800, Linus Torvalds wrote: > > > DavidH - what's the word on nested read-semaphores like this? Are they > > supposed to work (like nested read-spinlocks), or do we need to do the > > things Olof does

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Olof Johansson
On Tue, Feb 22, 2005 at 09:07:52PM +, Jamie Lokier wrote: > > That won't work because the vma lock must be help between key > calculation and get_user() - otherwise futex is not reliable. It > would work if the futex key calculation was inside the loop. Sure, but that's still true: It's just

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Jamie Lokier
Chris Friesen wrote: > > down_read(¤t->mm->mmap_sem); > > get_futex_key(...) etc. > > queue_me(...) etc. > > current->flags |= PF_MMAP_SEM; <- new > > ret = get_user(...); > > current->flags &= PF_MMAP_SEM; <- new > > /* the rest */ > > Should th

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Linus Torvalds
On Wed, 23 Feb 2005, Benjamin Herrenschmidt wrote: > > Isn't Olof scheme racy ? Can't the stuff get swapped out between the > first get_user() and the "real" one ? Yes. But see my suggested modification (which I still think is "the thing that Olof does", except it's more efficient and avoids t

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Linus Torvalds
On Tue, 22 Feb 2005, Jamie Lokier wrote: > > A much simpler solution (and sorry for not offering it earlier, > because Andrew Morton pointed out this bug long ago, but I was busy), is: > > In futex.c: > > down_read(¤t->mm->mmap_sem); > get_futex_key(...) etc. > queue_me(...)

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Jes Sorensen
> "Andrew" == Andrew Morton <[EMAIL PROTECTED]> writes: Andrew> Matthew Wilcox <[EMAIL PROTECTED]> wrote: >> >> On Tue, Feb 22, 2005 at 09:41:04AM -0500, Jes Sorensen wrote: >> > >> + if (page->flags & PG_uncached) >> > >> > Andrew> dude. That ain't gonna work ;) >> > >> > Pardon my lack o

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Jes Sorensen
> "Dave" == Dave Hansen <[EMAIL PROTECTED]> writes: Dave> I was talking with Nigel Cunningham about doing something a Dave> little different from the classic page flag bits when the number Dave> of users is restricted and performance isn't ultra-critical. Dave> Would something like this work f

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Andrew Morton
Jamie Lokier <[EMAIL PROTECTED]> wrote: > > ... > > > > One attempt to fix this is included below. It works, but I'm not entirely > > > happy with the fact that it's a bit messy solution. If anyone has a > > > better idea for how to solve it I'd be all ears. > > > > It's fairly sane. Style-wise

Re: uninterruptible sleep lockups

2005-02-22 Thread linux-os
On Tue, 22 Feb 2005, Chris Friesen wrote: Horst von Brand wrote: Anthony DiSante <[EMAIL PROTECTED]> said: That's one of the things I asked a few messages ago. Some people on the list were saying that it'd be "really hard" and would "require a lot of bookkeeping" to "fix" permanently-D-stated p

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Benjamin Herrenschmidt
On Tue, 2005-02-22 at 13:31 -0800, Linus Torvalds wrote: > > On Wed, 23 Feb 2005, Benjamin Herrenschmidt wrote: > > > > Isn't Olof scheme racy ? Can't the stuff get swapped out between the > > first get_user() and the "real" one ? > > Yes. But see my suggested modification (which I still think i

[2.6.11-rc4 i386] Re-order includes to fix userland breakage

2005-02-22 Thread Tom Rini
The following moves all includes (except and down to below the existing __KERNEL__ test. None of these includes are needed by the user-visible portions of the header, and in some cases can cause userland apps to break. For example, LTP and sash with an empty will fail thusly: cc -Wall -I../.

reading the same entropy twice

2005-02-22 Thread Bob O'Neill
Hello. I have noticed that it is possible on an SMP box for two processes to simultaneously read the same entropy out of /dev/urandom. This doesn't seem right to me. I was using the entropy value to generate a random number to use as a session ID, so occasionally there would be a collision on se

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Linus Torvalds
On Tue, 22 Feb 2005, Andrew Morton wrote: > > However the pte can get unmapped by memory reclaim so we could still take a > minor fault, and hit the same deadlock, yes? You _could_ fix that by getting the pagetable spinlock, I guess. Which check_user_page_readable() assumes you'd be holding any

Re: [RFC 2.6.11-rc2-mm2 0/7] mm: manual page migration -- overview II

2005-02-22 Thread Ray Bryant
Andi Kleen wrote: OK, so what is the alternative? Well, if we had a va_start and va_end (or a va_start and length) we could move the shared object once using a call of the form migrate_pages(pid, va_start, va_end, count, old_node_list, new_node_list); with old_node_list = 0 1 2 ... 31

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Arjan van de Ven
On Tue, 2005-02-22 at 04:52 -0500, Jes Sorensen wrote: > Hi, > > This patch introduces ia64 specific read/write handlers for /dev/mem > access which is needed to avoid uncached pages to be accessed through > the cached kernel window which can lead to random corruption. It also > introduces a new p

Re: reading the same entropy twice

2005-02-22 Thread Lee Revell
On Tue, 2005-02-22 at 16:55 -0500, Bob O'Neill wrote: > Hello. > > I have noticed that it is possible on an SMP box for two processes to > simultaneously read the same entropy out of /dev/urandom. This > doesn't seem right to me. I was using the entropy value to generate a > random number to use

Re: [ACPI] Call for help: list of machines with working S3

2005-02-22 Thread Karol Kozimor
Thus wrote Norbert Preining: > - DRI must be disabled I guess?! Even with newer X server (x.org)? You still didn't state which X server are you using. In short, XFree86 4.4, X.Org 6.7 and 6.8.2 are fine, anything other (including X.Org 6.8.0 and .1) is not. Best regards, -- Karol 'sziwan' Kozimo

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Jamie Lokier
Olof Johansson wrote: > > That won't work because the vma lock must be help between key > > calculation and get_user() - otherwise futex is not reliable. It > > would work if the futex key calculation was inside the loop. > > Sure, but that's still true: It's just that the get_user() is done twic

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Linus Torvalds
On Wed, 23 Feb 2005, Benjamin Herrenschmidt wrote: > > Yours is probably the most efficient too. Note sure what is best for > rwsems tho, there seem to be some interest preventing readers from > starving writers for ever, this has been debated endlessly iirc, > though I have no personal opinion

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Benjamin Herrenschmidt
On Tue, 2005-02-22 at 14:10 -0800, Linus Torvalds wrote: > Oh, well. The reason I hate the rwsem behaviour is exactly because it > results in this very subtle class of deadlocks. This one case is certainly > solvable several ways, but do we have other issues somewhere else? Things > like kobject m

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Jes Sorensen
> "Arjan" == Arjan van de Ven <[EMAIL PROTECTED]> writes: Arjan> On Tue, 2005-02-22 at 04:52 -0500, Jes Sorensen wrote: >> Hi, >> >> This patch introduces ia64 specific read/write handlers for >> /dev/mem access which is needed to avoid uncached pages to be >> accessed through the cached kern

Re: Why does printk helps PCMCIA card to initialise?

2005-02-22 Thread David Hinds
On Mon, 21 Feb 2005, Linus Torvalds wrote: > On Mon, 21 Feb 2005, Russell King wrote: > > > > In cs.c, alloc_io_space(), find the line: > > > > if (*base & ~(align-1)) { > > > > delete the ~ and rebuild. This may resolve your problem. > > Unlikely. The code is too broken for words. The original c

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Jamie Lokier
Linus Torvalds wrote: > > queue_me(...) etc. > > current->flags |= PF_MMAP_SEM; <- new > > ret = get_user(...); > > current->flags &= PF_MMAP_SEM; <- new > > /* the rest */ > > That is uglee. > > We really have this already, and it's called "current->p

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Jes Sorensen
> "Andrew" == Andrew Morton <[EMAIL PROTECTED]> writes: Andrew> Matthew Wilcox <[EMAIL PROTECTED]> wrote: >> >> On Tue, Feb 22, 2005 at 09:41:04AM -0500, Jes Sorensen wrote: >> > >> + if (page->flags & PG_uncached) >> > >> > Andrew> dude. That ain't gonna work ;) >> > >> > Pardon my lack o

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Arjan van de Ven
On Tue, 2005-02-22 at 17:30 -0500, Jes Sorensen wrote: > > For userspace it's used by some of the MPI type apps in userland. you got to be kidding. Why are these MPI apps accessing memory that the kernel has mapped cached (eg ram) via /dev/mem? (eg my proposal is to make /dev/mem to be just dev

Re: Help tracking down problem --- endless loop in __find_get_block_slow

2005-02-22 Thread Jeff Mahoney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Morton wrote: > "Thomas S. Iversen" <[EMAIL PROTECTED]> wrote: > >>But if I do >> >> dd if=/dev/zero of=/mnt/testfile count=N, N>6 >> >> I get into an endless loop in __find_get_block_slow. > > > The only way in which __find_get_block_slow()

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Olof Johansson
On Tue, Feb 22, 2005 at 10:34:57PM +, Jamie Lokier wrote: > There is one small but important error: the "return ret" mustn't just > return. It must call unqueue_me(&q) just like the code at out_unqueue, > _including_ the conditional "ret = 0", but _excluding_ the up_read(). Not only that, but

Re: [linux-usb-devel] 2.6: USB Storage hangs machine on bootup for ~2 minutes

2005-02-22 Thread Parag Warudkar
On Tuesday 22 February 2005 03:41 pm, Alan Stern wrote: > usb_device_read acquires a couple of locks, one for the USB bus list and > one for the root hub of the bus it's looking at.  I don't know which one > occurs at offset 229 on your system -- maybe you can tell.  Oddly enough, > neither of thos

[PATCH] ALPS: do not activate on unsupported models

2005-02-22 Thread Dmitry Torokhov
Hi, It feels like 2.6.11 is right around the corner. I would like to disable ALPS suport for some devices we don't know how to handle properly yet to cut down on number of complaints that we broke mouse support. Please consider applying the patch below. -- Dmitry ==

Re: [PATCH] Symlink /sys/class/block to /sys/block

2005-02-22 Thread Chris Wedgwood
On Sat, Feb 19, 2005 at 11:29:13PM +, Malcolm Rowe wrote: > Following the discussion in [1], the attached patch creates > /sys/class/block as a symlink to /sys/block. The patch applies to > 2.6.11-rc4-bk7. Shouldn't we really move /sys/block to /sys/class/block and put the symlink from there

Re: OT: Why is usb data many times the cpu hog that firewire is?

2005-02-22 Thread Matt Mackall
On Mon, Feb 21, 2005 at 05:08:27PM -0500, Gene Heskett wrote: > On Monday 21 February 2005 13:29, Wichert Akkerman wrote: > >Previously Gene Heskett wrote: > >> Thats what I was afraid of, which makes using it for a motion > >> detected burgular alarm source considerably less than practical > >> si

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Greg KH
On Tue, Feb 22, 2005 at 02:10:58PM -0800, Linus Torvalds wrote: > > Oh, well. The reason I hate the rwsem behaviour is exactly because it > results in this very subtle class of deadlocks. This one case is certainly > solvable several ways, but do we have other issues somewhere else? Things > like

Re: JFFS2 Extended attributes support & SELinux in handhelds

2005-02-22 Thread Lorenzo Hernández García-Hierro
I've uploaded a patch that applies to 2.6.11-rc4 tree, with latest mtd tree included. http://pearls.tuxedo-es.org/patches/mtd-jffs3-xattr-20050222-2.6.11-rc4.patch (998Kb) I would appreciate any collaboration and help with it. Cheers, thanks in advance and enjoy (not working) it. :) -- L

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Andrew Morton
[EMAIL PROTECTED] (Olof Johansson) wrote: > > + inc_preempt_count(); > + ret = get_user(curval, (int __user *)uaddr1); > + dec_preempt_count(); That _should_ generate a might_sleep() warning, except it looks like we forgot to add a check to get_user(). It would

Re: uninterruptible sleep lockups

2005-02-22 Thread Chris Friesen
linux-os wrote: Now, somebody needs a resource. It executes down(&semaphore); once it gets control again, it has that resource. It attempts to use that resource through a driver. The driver waits forever. The resource is now permanently dorked --forever because its driver is waiting forever. The us

Re: Help tracking down problem --- endless loop in __find_get_block_slow

2005-02-22 Thread Andrew Morton
Jeff Mahoney <[EMAIL PROTECTED]> wrote: > > In my experience, the loop is actually outside of > __find_get_block_slow(), in __getblk_slow(). I've been using xmon to > interrupt the kernel, and the results vary but are all rooted in the > for(;;) loop in __getblk_slow. It appears as though grow_buff

Re: [PATCH] Symlink /sys/class/block to /sys/block

2005-02-22 Thread Greg KH
On Tue, Feb 22, 2005 at 03:06:34PM -0800, Chris Wedgwood wrote: > On Sat, Feb 19, 2005 at 11:29:13PM +, Malcolm Rowe wrote: > > > Following the discussion in [1], the attached patch creates > > /sys/class/block as a symlink to /sys/block. The patch applies to > > 2.6.11-rc4-bk7. > > Shouldn't

Re: CSMI questions

2005-02-22 Thread Greg KH
On Tue, Feb 22, 2005 at 11:16:56AM -0600, mikem wrote: > All, > I hate to dredge this up again, but, when Eric Moore submitted changes for MPT > Fusion driver containing the CSMI ioctls it was rejected. There was talk on > the linux-scsi list about it being a horrible interface, among other things.

Re: [PATCH/RFC] Futex mmap_sem deadlock

2005-02-22 Thread Olof Johansson
On Tue, Feb 22, 2005 at 03:20:27PM -0800, Andrew Morton wrote: > [EMAIL PROTECTED] (Olof Johansson) wrote: > > > > + inc_preempt_count(); > > + ret = get_user(curval, (int __user *)uaddr1); > > + dec_preempt_count(); > > That _should_ generate a might_sleep() warning,

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Andrew Morton
Jes Sorensen <[EMAIL PROTECTED]> wrote: > > After applying the clue 2x4 to my head a couple of times, I came up > with this patch. Hopefully it will work a bit better ;-) > I know it's repetitious, but it's nice to maintain a changelog entry along with the patch. Especially when seventy people h

Re: uninterruptible sleep lockups

2005-02-22 Thread linux-os
On Tue, 22 Feb 2005, Chris Friesen wrote: linux-os wrote: Now, somebody needs a resource. It executes down(&semaphore); once it gets control again, it has that resource. It attempts to use that resource through a driver. The driver waits forever. The resource is now permanently dorked --forever bec

[rft/update] r8169 changes in 2.6.x

2005-02-22 Thread Francois Romieu
/misc/20050222-2.6.11-rc4-r8169.c-test.patch Patch-script directory: - http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.11-rc4/r8169/ Patch-script tarball: - http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.11-rc4/r8169-blob.tar.bz2 The 2.4.x backport will be updated later this week. As usual, su

Re: [PATCH/RFC] A method for clearing out page cache

2005-02-22 Thread Paul Jackson
Andrew asked: > So... Cannot the applicaiton remove all its pagecache with posix_fadvise() > prior to exitting? Hang on ... The replies of Ray and Martin answer your immediate question. But we (SGI) are still busy discussing the bigger picture behind the scenes ... -- I won'

Re: uninterruptible sleep lockups

2005-02-22 Thread Chris Friesen
linux-os wrote: Before I get into the reply, I just want to make it clear that I'm not arguing that we *should* do any of this, just that it is not technically impossible. It's a thought experiment, not a design suggestion. All wonderful. However, it dosn't fix the problem. You are, again, assu

Re: [Patch 4/6] Bind Mount Extensions 0.06

2005-02-22 Thread Ingo Oeser
Hi, Herbert Poetzl wrote: > +static inline int mnt_may_unlink(struct vfsmount *mnt, struct inode *dir, > struct dentry *child) { + if (!child->d_inode) > + return -ENOENT; > + if (MNT_IS_RDONLY(mnt)) > + return -EROFS; > + return 0; > +} The argument

Re: [PATCH] TCP-Hybla proposal

2005-02-22 Thread Tobias DiPasquale
On Tue, 22 Feb 2005 10:14:47 -0800, David S. Miller <[EMAIL PROTECTED]> wrote: > On Tue, 22 Feb 2005 13:03:11 -0500 (EST) > John Heffner <[EMAIL PROTECTED]> wrote: > > > An idea I've been toying with for a while now is completely abstracting > > congestion control. Then you could have congestion

Re: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Dave Hansen
On Tue, 2005-02-22 at 16:38 -0500, Jes Sorensen wrote: > > "Dave" == Dave Hansen <[EMAIL PROTECTED]> writes: > > Dave> I was talking with Nigel Cunningham about doing something a > Dave> little different from the classic page flag bits when the number > Dave> of users is restricted and perform

Re: uninterruptible sleep lockups

2005-02-22 Thread Bodo Eggert
linux-os <[EMAIL PROTECTED]> wrote: > You don't seem to understand. A process that's stuck in 'D' state > shows a SEVERE error, usually with a hardware driver. Or a network filesystem mount to a no longer existing server or share. > For instance, > somebody may have coded something in a critica

Re: [rft/update] r8169 changes in 2.6.x

2005-02-22 Thread Andrew Morton
Francois Romieu <[EMAIL PROTECTED]> wrote: > > Patch against 2.6.10-rc4: > - http://www.fr.zoreil.com/~romieu/misc/20050222-2.6.11-rc4-r8169.c-test.patch There are already a bunch of r8169 patches in Jeff's tree. The combination isn't pretty: patching file drivers/net/

Re: [rft/update] r8169 changes in 2.6.x

2005-02-22 Thread Jeff Garzik
On Tue, Feb 22, 2005 at 05:29:35PM -0800, Andrew Morton wrote: > Francois Romieu <[EMAIL PROTECTED]> wrote: > > > > Patch against 2.6.10-rc4: > > - > > http://www.fr.zoreil.com/~romieu/misc/20050222-2.6.11-rc4-r8169.c-test.patch > > There are already a bunc

[no subject]

2005-02-22 Thread Frank Buss
Russell King <[EMAIL PROTECTED]> wrote: > Since we map the whole lot in one go, if you get one page, there's no > reason why you shouldn't get the lot. This is why I'm wondering if > it has something to do with your other modifications. my colleage has found the bug: in the function dma_mmap in

Re: [2.6.11-rc4 i386] Re-order includes to fix userland breakage

2005-02-22 Thread Chris Wright
* Tom Rini ([EMAIL PROTECTED]) wrote: > The following moves all includes (except > and down to below the existing __KERNEL__ test. None > of these includes are needed by the user-visible portions of the header, > and in some cases can cause userland apps to break. For example, LTP > and sash w

RE: Problems with dma_mmap_writecombine on mach-pxa

2005-02-22 Thread Frank Buss
Russell King <[EMAIL PROTECTED]> wrote: > Since we map the whole lot in one go, if you get one page, there's no > reason why you shouldn't get the lot. This is why I'm wondering if > it has something to do with your other modifications. my colleage has found the bug: in the function dma_mmap in

Re: [2.6.11-rc4 i386] Re-order includes to fix userland breakage

2005-02-22 Thread Linus Torvalds
On Tue, 22 Feb 2005, Chris Wright wrote: > > This change is spewing warnings like: Already fixed in BK. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/m

Re: how to detect the n/w driver name at user level.

2005-02-22 Thread Herbert Xu
Subbu <[EMAIL PROTECTED]> wrote: > > Is there any way that i could get the driver name at user lever other than > polling for it..?? ethtool -i eth1 should tell you the driver name for eth1. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page

Re: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

2005-02-22 Thread Lee Revell
On Sat, 2005-02-19 at 10:03 +0100, Ingo Molnar wrote: > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > > Testing on an all SCSI 1.3Ghz Athlon XP system, I am seeing very long > > > latencies in the journalling code with 2.6.11-rc4-RT-V0.7.39-02. > > > > could you send me the full trace? > On my

loading driver automatically & manually

2005-02-22 Thread Anil Kumar
Hi, I am trying to install RHEL 4, 2.6.9-5.EL. I have adaptec 39320 controller, The install CD already has aic79xx driver in it. The driver does NOT load for some reason. If I take the same aic79xx driver source, Create an img and install RHEL4 using linux dd, it works fine. Can you please let

[PATCH] Re: AHCI oops

2005-02-22 Thread Jeff Garzik
Can you try this patch? If it fixes the oops, I'll forward upstream ASAP. Jeff = drivers/scsi/ahci.c 1.14 vs edited = --- 1.14/drivers/scsi/ahci.c2005-02-13 19:58:01 -05:00 +++ edited/drivers/scsi/ahci.c 2005-02-22 21:46:25 -05:00 @@ -179,6 +179,7 @@ static void ahci_host_sto

Re: [Patch 0/6] Bind Mount Extensions 0.06

2005-02-22 Thread Matt Mackall
On Tue, Feb 22, 2005 at 01:09:55PM +0100, Herbert Poetzl wrote: > > Hi Andrew! Al! Folks! > > The following set of patches extends the per device > 'noatime', 'nodiratime' and last but not least the > 'ro' (read only) mount option to the vfs --bind mounts, > allowing them to behave like any ot

[PATCH] ppc32: kernel mapping breakage

2005-02-22 Thread Benjamin Herrenschmidt
Hi ! Christoph Lameter's patch that change page allocators to use GFP_ZERO broke ppc32 in a subtle way. Our allocator is designed to work before mem_init_done, in which cases it uses a ppc specific early_get_page() which doesn't return zeroed pages. However, he removed the call to clear_page() unc

<    1   2   3   >