[PATCH] SLAB : Use num_possible_cpus() in enable_cpucache()

2007-03-20 Thread Eric Dumazet
The existing comment in mm/slab.c is *perfect*, so I reproduce it : /* * CPU bound tasks (e.g. network routing) can exhibit cpu bound * allocation behaviour: Most allocs on one cpu, most free operations * on another cpu. For these cases, an efficient object

Re: AIO, FIO and Threads ...

2007-03-20 Thread Davide Libenzi
On Tue, 20 Mar 2007, Davide Libenzi wrote: > > I was looking at Jens FIO stuff, and I decided to cook a quick patch for > FIO to support GUASI (Generic Userspace Asyncronous Syscall Interface): > > http://www.xmailserver.org/guasi-lib.html > > I then ran a few tests on my Dual Opteron 252

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread Nick Piggin
William Lee Irwin III wrote: William Lee Irwin III wrote: ISTR potential ppc64 users coming out of the woodwork for something I didn't recognize the name of, but I may be confusing that with your patch. I can implement additional users (and useful ones at that) needing this in particular if

[PATCH 4/4] i386 GDT cleanups: cleanup GDT Access

2007-03-20 Thread Rusty Russell
Now we have an explicit per-cpu GDT variable, we don't need to keep the descriptors around to use them to find the GDT: expose cpu_gdt directly. We could go further and make load_gdt() pack the descriptor for us, or even assume it means "load the current cpu's GDT" which is what it always does.

[PATCH 7/7] Add trec_snapshot and trec_print_snapshot in panic()

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- kernel/panic.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/kernel/panic.c b/kernel/panic.c index 623d182..64a047e 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -20,6 +20,10 @@ #include #include

RE: MPT Fusion LSI22320 , Domain validation loops .

2007-03-20 Thread Mr. James W. Laferriere
Hello Eric , Fyi , linux-2.6.21-rc4 + mpt-fusion(*) patches from Andrew Morton's patch tree . Still gives me the ever looping reset . But I have just found sometrhing of interest one of the Powersuplies in the cabiinet 'May be' failing . I have to test that to be satisfied that is the

[PATCH 3/7] Modifications to drivers/Kconfig and Makefile to configure

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- drivers/Kconfig |2 ++ drivers/Makefile |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/Kconfig b/drivers/Kconfig index 050323f..f05a2bf 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -84,4 +84,6 @@

[PATCH 4/7] Initialize trec early so it may be used early

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- init/main.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/init/main.c b/init/main.c index a92989e..46bc440 100644 --- a/init/main.c +++ b/init/main.c @@ -54,6 +54,7 @@ #include #include #include +#include

[PATCH 5/7] Add trec_snapshot and trec_print_snapshot to die()

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- arch/x86_64/kernel/traps.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 09d2e8a..c730176 100644 --- a/arch/x86_64/kernel/traps.c +++

[PATCH 6/7] Added trec_snapshot and trec_print_snapshot to do_page_fault() when the kernel itself faults

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- arch/x86_64/mm/fault.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c index 6ada723..9857ade 100644 --- a/arch/x86_64/mm/fault.c +++ b/arch/x86_64/mm/fault.c @@

[PATCH 2/7] Initial implementation of the trec driver and include files

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- drivers/trec/Kconfig | 14 ++ drivers/trec/Makefile |5 + drivers/trec/trec.c| 328 include/asm-generic/trec.h | 17 +++ include/asm-i386/trec.h| 33 +

[PATCH 1/7] Documention for trace record (trec), a light weight tracing mechanism

2007-03-20 Thread Wink Saville
Signed-off-by: Wink Saville <[EMAIL PROTECTED]> --- Documentation/trec.txt | 87 1 files changed, 87 insertions(+), 0 deletions(-) create mode 100644 Documentation/trec.txt diff --git a/Documentation/trec.txt b/Documentation/trec.txt new file

[PATCH 3/4] i386 GDT cleanups: clean up cpu_init()

2007-03-20 Thread Rusty Russell
We now have cpu_init() and secondary_cpu_init() doing nothing but calling _cpu_init() with the same arguments. Rename _cpu_init() to cpu_init() and use it as a replcement for secondary_cpu_init(). Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- arch/i386/kernel/cpu/common.c | 36

[PATCH 2/4] i386 GDT cleanups: Use per-cpu GDT immediately upon boot

2007-03-20 Thread Rusty Russell
Now we are no longer dynamically allocating the GDT, we don't need the "cpu_gdt_table" at all: we can switch straight from "boot_gdt_table" to the per-cpu GDT. This means initializing the cpu_gdt array in C. The boot CPU uses the per-cpu var directly, then in smp_prepare_cpus() it switches to

Re: [PATCH] Turn do_sync_file_range() into do_sync_mapping_range()

2007-03-20 Thread Andrew Morton
On Tue, 20 Mar 2007 14:46:26 -0700 Mark Fasheh <[EMAIL PROTECTED]> wrote: > do_sync_file_range() accepts a file * from which it takes an address_space > to sync. Abstract out the bulk of the function into do_sync_mapping_range() > which takes the address_space directly. This way callers who want

[PATCH 1/4] i386 GDT cleanups: Use per-cpu variables for GDT, PDA

2007-03-20 Thread Rusty Russell
Allocating PDA and GDT at boot is a pain. Using simple per-cpu variables adds happiness (although we need the GDT page-aligned for Xen, which we do in a followup patch). Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- arch/i386/kernel/cpu/common.c| 96

Re: [PATCH] swsusp: Fix SNAPSHOT_S2RAM ioctl

2007-03-20 Thread Andrew Morton
On Tue, 20 Mar 2007 22:48:08 +0100 "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > The SNAPSHOT_S2RAM ioctl does not disable the nonboot CPUs before entering > the suspend, although it should do this. > > Signed-off-by: Rafael J. Wysocki <[EMAIL

[PATCH 0/4] i386 GDT cleanups

2007-03-20 Thread Rusty Russell
After lots of good feedback and contributions from the last series, this set of 4 simply cleans up GDT usage in i386. Percpu->pda is not included: it's really a separate problem (but made much simpler by these patches). Patches are: no-gdt-pda-alloc.patch - Simplify by using per-cpu

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Eric Dumazet
Christoph Lameter a écrit : On Tue, 20 Mar 2007, Eric Dumazet wrote: I understand we want to do special things (fallback and such tricks) at allocation time, but I believe that we can just trust the real nid of memory at free time. Sorry no. The node at allocation time determines which node

[PATCH] Allow per-cpu variables to be page-aligned

2007-03-20 Thread Rusty Russell
[This was part of the GDT cleanups and per-cpu-> pda changes, which I have revised, but this stands on its own. The only change is catching the x86-64 per-cpu allocator too]. == Let's allow page-alignment in general for per-cpu data (wanted by Xen, and Ingo suggested KVM as well). Because larger

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Andrew Morton
On Tue, 20 Mar 2007 21:23:52 +0100 Andi Kleen <[EMAIL PROTECTED]> wrote: > Well it causes additional problems. We had some cases where it was really > hard to distingush garbage and the true call chain. yes, for some reason the naive backtraces seem to have got messier and messier over the

Re: 2.6.21-rc4-mm1

2007-03-20 Thread Andrew Morton
On Tue, 20 Mar 2007 12:20:16 -0700 Kees Cook <[EMAIL PROTECTED]> wrote: > I can't > get 2.6.21-rc4-mm1 to compile (with or without this fix): > > GEN .version > init/.missing_syscalls.h.cmd:2: *** missing separator. Stop. > make: *** [.tmp_vmlinux1] Error 2 How'd you manage that? Sam,

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread William Lee Irwin III
William Lee Irwin III wrote: >> ISTR potential ppc64 users coming out of the woodwork for something I >> didn't recognize the name of, but I may be confusing that with your >> patch. I can implement additional users (and useful ones at that) >> needing this in particular if desired. On Wed, Mar

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread Nick Piggin
William Lee Irwin III wrote: Adam Litke wrote: struct vm_operations_struct * vm_ops; + const struct pagetable_operations_struct * pagetable_ops; On Wed, Mar 21, 2007 at 03:18:30PM +1100, Nick Piggin wrote: Can you remind me why this isn't in vm_ops? Also, it is going to be

AIO, FIO and Threads ...

2007-03-20 Thread Davide Libenzi
I was looking at Jens FIO stuff, and I decided to cook a quick patch for FIO to support GUASI (Generic Userspace Asyncronous Syscall Interface): http://www.xmailserver.org/guasi-lib.html I then ran a few tests on my Dual Opteron 252 with SATA drives (sata_nv) and 8GB of RAM. Mind that I'm not

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread William Lee Irwin III
Adam Litke wrote: >> struct vm_operations_struct * vm_ops; >> +const struct pagetable_operations_struct * pagetable_ops; On Wed, Mar 21, 2007 at 03:18:30PM +1100, Nick Piggin wrote: > Can you remind me why this isn't in vm_ops? > Also, it is going to be hugepage-only, isn't it? So should

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
On Tue, Mar 20, 2007 at 03:02:14PM +0800, Nicolas Boichat wrote: > I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 > Duo), and the x axis in inverted, not the y axis. > > Could you confirm which axis is inverted on your Macbook? > > Also, have you tried the modified

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread Nick Piggin
Adam Litke wrote: Signed-off-by: Adam Litke <[EMAIL PROTECTED]> --- include/linux/mm.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 60e0e4a..7089323 100644 --- a/include/linux/mm.h +++

Re: RSDL v0.31

2007-03-20 Thread Al Boldi
Artur Skawina wrote: > Al Boldi wrote: > > --- sched.bak.c 2007-03-16 23:07:23.0 +0300 > > +++ sched.c 2007-03-19 23:49:40.0 +0300 > > @@ -938,7 +938,11 @@ static void activate_task(struct task_st > > (now - p->timestamp) >> 20); > > } > > >

Re: taskstats accounting info

2007-03-20 Thread Balbir Singh
Randy Dunlap wrote: On Thu, 15 Mar 2007 11:06:55 -0800 Andrew Morton wrote: It's the most portable example, since it does not depend on libnl. err, what is libnl? lib-netlink (as already answered, but I wrote this last week) I was referring to the library at

Re: [patch 00/31] 2.6.20-stable review

2007-03-20 Thread Gene Heskett
On Tuesday 20 March 2007, Greg KH wrote: [...] >> It looks like, from the series files contents, that I grabbed the >> wrong 'queue', its all 2.6.21 stuff. url please. > >The patch queue can be found at: > git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git > >All of the

Re: [patch 00/31] 2.6.20-stable review

2007-03-20 Thread Greg KH
On Tue, Mar 20, 2007 at 11:04:43PM -0400, Gene Heskett wrote: > On Tuesday 20 March 2007, Michael Krufky wrote: > >Gene Heskett wrote: > >> On Tuesday 20 March 2007, Greg KH wrote: > >>> On Tue, Mar 20, 2007 at 01:15:02AM -0400, Gene Heskett wrote: > In any event, something tickled the

Re: BLK_DEV_MD with CONFIG_NET

2007-03-20 Thread David Miller
From: Randy Dunlap <[EMAIL PROTECTED]> Date: Tue, 20 Mar 2007 20:05:38 -0700 > Build a kernel with CONFIG_NET-n and CONFIG_BLK_DEV_MD=m. > Unless csum_partial() is built and kept by some arch Makefile, > the result is: > ERROR: "csum_partial" [drivers/md/md-mod.ko] undefined! > make[1]: ***

Re: [linux-pm] 2.6.21-rc4-mm1: freezing of processes broken

2007-03-20 Thread Nigel Cunningham
Hi. On Tue, 2007-03-20 at 19:23 -0600, Eric W. Biederman wrote: > "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > > > On Tuesday, 20 March 2007 22:06, Rafael J. Wysocki wrote: > >> On Tuesday, 20 March 2007 21:58, Jiri Slaby wrote: > >> > Rafael J. Wysocki napsal(a): > >> > > Actually, the

[PATCH] Yet another function to load cr3 register

2007-03-20 Thread Glauber de Oliveira Costa
There is (was) yet another function to load something into the cr3 register. We don't need it. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> -- Glauber de Oliveira Costa Red Hat Inc. "Free as in Freedom" diff --git a/arch/x86_64/kernel/smp.c b/arch/x86_64/kernel/smp.c index

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Christoph Lameter
On Wed, 21 Mar 2007, Andi Kleen wrote: > > We usually use page_to_nid(). Sure this will determine the node the object > > resides on. But this may not be the node on which the slab is tracked > > since there may have been a fallback at alloc time. > > How about your slab rewrite? I assume it

BLK_DEV_MD with CONFIG_NET

2007-03-20 Thread Randy Dunlap
drivers/md/md.c calls csum_partial(). IF CONFIG_NET=n and BLK_DEV_MD=y, if arch/*/lib/Makefile puts csum-partial.o or checksum.o into lib-y, the function is present. (Of course, if the function is placed in obj-y, there is no problem.) If CONFIG_NET=n and BLK_DEV_MD=n, if arch/*/lib/Makefile

Re: [patch 00/31] 2.6.20-stable review

2007-03-20 Thread Gene Heskett
On Tuesday 20 March 2007, Michael Krufky wrote: >Gene Heskett wrote: >> On Tuesday 20 March 2007, Greg KH wrote: >>> On Tue, Mar 20, 2007 at 01:15:02AM -0400, Gene Heskett wrote: In any event, something tickled the monster, and its hungry. This is a full-stop, show-stopper AFAIAC.

Re: [patch 00/31] 2.6.20-stable review

2007-03-20 Thread Gene Heskett
On Tuesday 20 March 2007, Michael Krufky wrote: >Gene Heskett wrote: >> On Tuesday 20 March 2007, Greg KH wrote: >>> On Tue, Mar 20, 2007 at 01:15:02AM -0400, Gene Heskett wrote: In any event, something tickled the monster, and its hungry. This is a full-stop, show-stopper AFAIAC.

Re: PAGE_SIZE Availability Inconsistency

2007-03-20 Thread H. Peter Anvin
Anton Blanchard wrote: Hi, The advantage would be that it wouldn't require a v3 for platforms for which MIN_PAGE_SIZE == PAGE_SIZE, which accounts for a very large percentage of systems. You still have to look for the darn magic in two places, so there is no reason for it to be different.

Re: [linux-pm] 2.6.21-rc4-mm1: freezing of processes broken

2007-03-20 Thread sukadev
Eric W. Biederman [EMAIL PROTECTED] wrote: | "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: | | > On Tuesday, 20 March 2007 22:06, Rafael J. Wysocki wrote: | >> On Tuesday, 20 March 2007 21:58, Jiri Slaby wrote: | >> > Rafael J. Wysocki napsal(a): | >> > > Actually, the problem is 100%

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Andi Kleen
> We usually use page_to_nid(). Sure this will determine the node the object > resides on. But this may not be the node on which the slab is tracked > since there may have been a fallback at alloc time. How about your slab rewrite? I assume it would make more sense to fix such problems in that

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Zachary Amsden
Linus Torvalds wrote: On Tue, 20 Mar 2007, Zachary Amsden wrote: Actually, I was thinking the irq handlers would just not mess around with eflags on the stack, just call the chip to ack the interrupt and re-enable hardware interrupts when they left, since that is free anyway with the iret.

Re: scsi: Devices offlined

2007-03-20 Thread Wakko Warner
Philippe Troin wrote: > Wakko Warner <[EMAIL PROTECTED]> writes: > > > [84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error > > recovery > > > > Is there anyway to make the kernel "online" a device that has done this? > > I've had this happen on various devices (mostly on

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Linus Torvalds
On Tue, 20 Mar 2007, Zachary Amsden wrote: > > Actually, I was thinking the irq handlers would just not mess around with > eflags on the stack, just call the chip to ack the interrupt and re-enable > hardware interrupts when they left, since that is free anyway with the iret. No can do. Think

Re: PAGE_SIZE Availability Inconsistency

2007-03-20 Thread Anton Blanchard
Hi, > The advantage would be that it wouldn't require a v3 for platforms for > which MIN_PAGE_SIZE == PAGE_SIZE, which accounts for a very large > percentage of systems. > > You still have to look for the darn magic in two places, so there is no > reason for it to be different. The problem

Re: [PATCH]: pcmcia - spot slave decode flaws (for testing)

2007-03-20 Thread Komuro
Hi, "[PATCH]: pcmcia - spot slave decode flaws (for testing)" works properly. (kernel 2.6.21-rc4-mm1) pccard: PCMCIA card inserted into slot 1 pcmcia: registering new device pcmcia1.0 ata3: PATA max PIO0 cmd 0x00010100 ctl 0x0001010e bmdma 0x irq 3 scsi2 : pata_pcmcia ata3.00: CFA:

Re: scsi: Devices offlined

2007-03-20 Thread Philippe Troin
Wakko Warner <[EMAIL PROTECTED]> writes: > [84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error > recovery > > Is there anyway to make the kernel "online" a device that has done this? > I've had this happen on various devices (mostly on usb where I can > unplug/replug),

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Zachary Amsden
Linus Torvalds wrote: On Tue, 20 Mar 2007, Zachary Amsden wrote: void local_irq_restore(int enabled) { pda.intr_mask = enabled; /* * note there is a window here where softirqs are not processed by * the interrupt handler, but that is not a problem, since it will * get done

Re: [PATCH] utrace: make an inline void

2007-03-20 Thread Roland McGrath
> Avoid multiple/repeated warnings: > include/linux/utrace.h:594: warning: return type defaults to 'int' Oops! Thanks for catching this. Thanks, Roland - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: 2.6.21-rc4-mm1

2007-03-20 Thread Randy Dunlap
On Mon, 19 Mar 2007 20:56:23 -0800 Andrew Morton wrote: > > Temporarily at > > http://userweb.kernel.org/~akpm/2.6.21-rc4-mm1/ > > Will appear later at > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc4/2.6.21-rc4-mm1/ UIO_CIF should depend on PCI ?? With

Re: [linux-pm] 2.6.21-rc4-mm1: freezing of processes broken

2007-03-20 Thread Eric W. Biederman
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > On Tuesday, 20 March 2007 22:06, Rafael J. Wysocki wrote: >> On Tuesday, 20 March 2007 21:58, Jiri Slaby wrote: >> > Rafael J. Wysocki napsal(a): >> > > Actually, the problem is 100% reproducible on my system too and I doubt > it's >> > > caused

Re: [RFC][PATCH] split file and anonymous page queues #3

2007-03-20 Thread Matt Mackall
On Tue, Mar 20, 2007 at 06:08:10PM -0400, Rik van Riel wrote: > - "Active: %8lu kB\n" > - "Inactive: %8lu kB\n" ... > + "Active(anon): %8lu kB\n" > + "Inactive(anon): %8lu kB\n" > + "Active(file): %8lu kB\n" > +

Re: [PATCH 0/7] [RFC] hugetlb: pagetable_operations API (V2)

2007-03-20 Thread William Lee Irwin III
On Mon, Mar 19, 2007 at 01:05:02PM -0700, Adam Litke wrote: > Andrew, given the favorable review of these patches the last time > around, would you consider them for the -mm tree? Does anyone else > have any objections? We need a new round of commentary for how it should integrate with Nick

scsi: Devices offlined

2007-03-20 Thread Wakko Warner
[84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error recovery Is there anyway to make the kernel "online" a device that has done this? I've had this happen on various devices (mostly on usb where I can unplug/replug), but this time, it's on a scsi controller and the driver

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Linus Torvalds
On Tue, 20 Mar 2007, Zachary Amsden wrote: > > void local_irq_restore(int enabled) > { >pda.intr_mask = enabled; >/* > * note there is a window here where softirqs are not processed by > * the interrupt handler, but that is not a problem, since it will > * get done here in

[ANNOUNCE] Guilt v0.23

2007-03-20 Thread Josef Sipek
Guilt v0.23 is available for download (once it mirrors out on kernel.org). Guilt (Git Quilt) is a series of bash scripts which add a Mercurial queues-like functionality and interface to git. Tarballs: http://www.kernel.org/pub/linux/kernel/people/jsipek/guilt/ Git repo:

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Jeremy Fitzhardinge
Matt Mackall wrote: > On Tue, Mar 20, 2007 at 09:31:58AM -0700, Jeremy Fitzhardinge wrote: > >> Linus Torvalds wrote: >> >>> On Tue, 20 Mar 2007, Eric W. Biederman wrote: >>> >>> If that is the case. In the normal kernel what would the "the oops, we got an interrupt

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Christoph Lameter
On Tue, 20 Mar 2007, Eric Dumazet wrote: > I understand we want to do special things (fallback and such tricks) at > allocation time, but I believe that we can just trust the real nid of memory > at free time. Sorry no. The node at allocation time determines which node specific structure tracks

Re: [PATCH 2.6.21-rc4] ieee1394: fix oops on "modprobe -r ohci1394" after network class_device conversion

2007-03-20 Thread Stefan Richter
On 20 Mar, Greg KH wrote: > On Tue, Mar 20, 2007 at 10:43:22PM +0100, Stefan Richter wrote: >> @@ -586,7 +586,10 @@ static void ether1394_add_host (struct h >> } >> >> SET_MODULE_OWNER(dev); >> +#if 0 >> +/* FIXME - Is this the correct parent device anyway? */ >>

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Christoph Lameter
On Tue, 20 Mar 2007, Andi Kleen wrote: > > > Is it possible virt_to_slab(objp)->nodeid being different from > > > pfn_to_nid(objp) ? > > > > It is possible the page allocator falls back to another node than > > requested. We would need to check that this never occurs. > > The only way to

Re: [PATCH] fbdev sysfs imrovements

2007-03-20 Thread Greg KH
On Tue, Mar 20, 2007 at 02:25:49PM +, James Simmons wrote: > > This patch does several things to allow the underlying hardware to be > shared amount many devices. The most important thing is the use of > the created device via device_create instead of the hardware device. No > longer should

Re: 2.6.21-rc4-mm1

2007-03-20 Thread J.A. Magallón
On Tue, 20 Mar 2007 17:36:57 +0100, "J.A. Magallón" <[EMAIL PROTECTED]> wrote: > On Mon, 19 Mar 2007 20:56:23 -0800, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > Temporarily at > > > > http://userweb.kernel.org/~akpm/2.6.21-rc4-mm1/ > > > > Will appear later at > > > > > >

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Zachary Amsden
Jeremy Fitzhardinge wrote: Zachary Amsden wrote: I think Jeremy's idea was to have interrupt handlers leave interrupts disabled on exit if pda.intr_mask was set. In which case, they would bypass all work and we could never get preempted. Yes, I was worried that if we left the isr

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Paul Mackerras
Linus Torvalds writes: > We should just do this natively. There's been several tests over the years > saying that it's much more efficient to do sti/cli as a simple store, and > handling the "oops, we got an interrupt while interrupts were disabled" as > a special case. > > I have this dim

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Matt Mackall
On Tue, Mar 20, 2007 at 03:08:19PM -0800, Zachary Amsden wrote: > Matt Mackall wrote: > >I don't know that you need an xchg there. If you're still on the same > >CPU, it should all be nice and causal even across an interrupt handler. > >So it could be: > > > > pda.intr_mask = 0; /* intr_pending

Re: UDP packets scheduling

2007-03-20 Thread Robert Hancock
Lukas Hejtmanek wrote: On Tue, Mar 20, 2007 at 06:52:51PM +0100, Andi Kleen wrote: Flow control must be turned off for some other reason. That's your fundamental problem. Fix that. Even if you get the rate right there can be many reasons why timing gets disrupted temporarily and to recover

Re: sata_nv exceptions in 2.6.20.3

2007-03-20 Thread Robert Hancock
Christopher Mulcahy wrote: My harddrives are Seagate Barracudas ( 7200.10, 500GB, ST3500630AS ) They have jumpers to toggle between 1.5Gb/s operation and 3.0Gb/s operation. When jumpered to 1.5Gbs operation, there are no problems. Settings the drives to 3.0Gbs operation generates

Re: [Xen-devel] Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Linus Torvalds
On Tue, 20 Mar 2007, Andi Kleen wrote: > > Linus is worried about the unwinder crashing -- that wouldn't help with that. And to make it clear: this is not a theoretical worry. It happened many times over the months the unwinder was in. It was supposed to help debugging, but it made bugs

Re: 2.6.21-rc4-mm1

2007-03-20 Thread Randy Dunlap
On Mon, 19 Mar 2007 20:56:23 -0800 Andrew Morton wrote: > > Temporarily at > > http://userweb.kernel.org/~akpm/2.6.21-rc4-mm1/ > > Will appear later at > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc4/2.6.21-rc4-mm1/ I think that this: config EEPROM_93CX6

Re: [PATCH 0/7] [RFC] hugetlb: pagetable_operations API (V2)

2007-03-20 Thread Dave Hansen
On Mon, 2007-03-19 at 13:05 -0700, Adam Litke wrote: > For the common case (vma->pagetable_ops == NULL), we do almost the > same thing as the current code: load and test. The third instruction > is different in that we jump for the common case instead of jumping in > the hugetlb case. I don't

Sparse participating in Google Summer of Code 2007; apply by March 24th

2007-03-20 Thread Josh Triplett
[Sending this to LKML as well, to reach more of Sparse's user community.] Google has accepted Sparse as a mentoring organization for Summer of Code 2007. Interested students can propose work on Sparse-related projects, work on those projects over the summer, and receive a stipend from Google for

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Linus Torvalds
On Tue, 20 Mar 2007, Andi Kleen wrote: > On Tue, Mar 20, 2007 at 11:49:39AM -0700, Linus Torvalds wrote: > > > > the thing is, I'd rather see a long backtrace that is hard to decipher but > > that *never* *ever* causes any additional problems, over a pretty one. > > Well it causes additional

[PATCH] mv643xx_eth: add mv643xx_eth_shutdown function

2007-03-20 Thread Dale Farnsworth
From: Dale Farnsworth <[EMAIL PROTECTED]> mv643xx_eth_shutdown is needed for kexec. Signed-off-by: Dale Farnsworth <[EMAIL PROTECTED]> --- drivers/net/mv643xx_eth.c | 14 ++ 1 file changed, 14 insertions(+) Index: linux-2.6-powerpc-df/drivers/net/mv643xx_eth.c

Re: [PATCH 2.6.21-rc4] ieee1394: fix oops on "modprobe -r ohci1394" after network class_device conversion

2007-03-20 Thread Greg KH
On Tue, Mar 20, 2007 at 10:43:22PM +0100, Stefan Richter wrote: > The networking subsystem has been converted from class_device to device > but ieee1394 hasn't. This results in a 100% reproducible NULL pointer > dereference if the ohci1394 driver module is unloaded while the eth1394 > module is

[patch 2.6.21-rc4-git] SCSI newstyle hotplug/coldplug support

2007-03-20 Thread David Brownell
This teaches scsi devices how to support "new style" hotplug/coldplug: using a modalias sysfs attribute for coldplug, and MODALIAS environment variable for hotplug. It also updates the CH, SD, SR, and ST drivers with the aliases needed to drive them by that mechanism. (Older OnStream devices use

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Jeremy Fitzhardinge
Zachary Amsden wrote: > I think Jeremy's idea was to have interrupt handlers leave interrupts > disabled on exit if pda.intr_mask was set. In which case, they would > bypass all work and we could never get preempted. Yes, I was worried that if we left the isr without actually handling the

Re: dst_ifdown breaks infiniband?

2007-03-20 Thread David Miller
From: "Michael S. Tsirkin" <[EMAIL PROTECTED]> Date: Tue, 20 Mar 2007 18:02:17 +0200 > David, Alexey, what do you think about this patch? Is it right? > Could this patch be considered for 2.6.21? > > Acked-by: Michael S. Tsirkin <[EMAIL PROTECTED]> I plan to apply it and merge. - To unsubscribe

Re: [PATCH 4/7] unmap_page_range for hugetlb

2007-03-20 Thread Dave Hansen
On Mon, 2007-03-19 at 13:05 -0700, Adam Litke wrote: > Signed-off-by: Adam Litke <[EMAIL PROTECTED]> > --- > > fs/hugetlbfs/inode.c|3 ++- > include/linux/hugetlb.h |4 ++-- > mm/hugetlb.c| 12 > mm/memory.c | 10 -- > 4 files changed,

Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.

2007-03-20 Thread Dave Hansen
On Mon, 2007-03-19 at 13:05 -0700, Adam Litke wrote: > > +#define has_pt_op(vma, op) \ > + ((vma)->pagetable_ops && (vma)->pagetable_ops->op) > +#define pt_op(vma, call) \ > + ((vma)->pagetable_ops->call) Can you get rid of these macros? I think they make it a wee bit harder to

Re: sata_nv ADMA controller lockup investigation

2007-03-20 Thread Robert Hancock
Neil Schemenauer wrote: Not sure if this helps. I'm getting this reset with 2.6.21-rc4. After the reset the controller seems to work again. ... ata2.00: ATA-7: Maxtor 6V300F0, VA111630, max UDMA/133 ata2.00: 586114704 sectors, multi 16: LBA48 NCQ (depth 31/32) ... ata2: EH in ADMA mode,

FireWire update in -mm (was 2.6.21-rc4-mm1)

2007-03-20 Thread Stefan Richter
Andrew Morton wrote: > Will appear later at > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc4/2.6.21-rc4-mm1/ ... > git-ieee1394.patch ... Just a note for readers of lkml: git-ieee1394.patch is steadily growing thanks to Kristian Høgsberg's work on his new

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Zachary Amsden
Matt Mackall wrote: I don't know that you need an xchg there. If you're still on the same CPU, it should all be nice and causal even across an interrupt handler. So it could be: pda.intr_mask = 0; /* intr_pending can't get set after this */ Why not? Oh, I see. intr_mask is inverted

Re: [BUG] 2.6.21-rc1,2,3 regressions on my system that I found so far

2007-03-20 Thread Eric St-Laurent
On Tue, 2007-20-03 at 10:15 +0100, Arjan van de Ven wrote: > disabling that is a BAD idea. I'm no fan of SMM myself, but it's there, > and we have to live with it. Disabling it without knowing what it does > on your system is madness. > Like Lee said, for "debugging", mainly trying to resolve

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Matt Mackall
On Tue, Mar 20, 2007 at 09:31:58AM -0700, Jeremy Fitzhardinge wrote: > Linus Torvalds wrote: > > On Tue, 20 Mar 2007, Eric W. Biederman wrote: > > > >> If that is the case. In the normal kernel what would > >> the "the oops, we got an interrupt code do?" > >> I assume it would leave interrupts

Re: [PATCH 4/5] swsusp: fix error paths in snapshot_open

2007-03-20 Thread Rafael J. Wysocki
On Tuesday, 20 March 2007 23:24, Pavel Machek wrote: > Hi! > > > > > We forget to increase device_available if there's an error in > > > > snapshot_open(), so the snapshot device cannot be open at all after > > > > snapshot_open() has returned an error. > > > > > > Actually, this should go to

Re: [patch 13/26] Xen-paravirt_ops: Consistently wrap paravirt ops callsites to make them patchable

2007-03-20 Thread Rusty Russell
On Tue, 2007-03-20 at 09:58 -0600, Eric W. Biederman wrote: > Looking at the above code snippet. I guess it is about time to > merge our per_cpu and pda variables... Indeed, thanks for the prod. Now 2.6.21-rc4-mm1 is out, I'll resend the patches. Cheers, Rusty. - To unsubscribe from this

Re: [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]

2007-03-20 Thread David Howells
Alan Cox <[EMAIL PROTECTED]> wrote: > - recvmsg not supporting MSG_TRUNC is rather weird and really ought to be > fixed one day as its useful to find out the sizeof message pending when > combined with MSG_PEEK Hmmm... I hadn't considered that. I assumed MSG_TRUNC not to be useful as

Re: [PATCH 4/5] swsusp: fix error paths in snapshot_open

2007-03-20 Thread Pavel Machek
Hi! > > > We forget to increase device_available if there's an error in > > > snapshot_open(), so the snapshot device cannot be open at all after > > > snapshot_open() has returned an error. > > > > Actually, this should go to the beggining of series, as it is > > (non-critical) bugfix. > >

Re: [PATCH 2.6.21-rc4] ieee1394: fix oops on "modprobe -r ohci1394" after network class_device conversion

2007-03-20 Thread Ismail Dönmez
On Tuesday 20 March 2007 23:43:22 Stefan Richter wrote: > The networking subsystem has been converted from class_device to device > but ieee1394 hasn't. This results in a 100% reproducible NULL pointer > dereference if the ohci1394 driver module is unloaded while the eth1394 > module is still

Re: [PATCH 4/5] swsusp: fix error paths in snapshot_open

2007-03-20 Thread Rafael J. Wysocki
On Tuesday, 20 March 2007 23:16, Pavel Machek wrote: > Hi! > > > We forget to increase device_available if there's an error in > > snapshot_open(), so the snapshot device cannot be open at all after > > snapshot_open() has returned an error. > > Actually, this should go to the beggining of

Re: Suspend to RAM doesn't work anymore in 2.6.21

2007-03-20 Thread Rafael J. Wysocki
On Tuesday, 20 March 2007 01:54, Tobias Doerffel wrote: > On Monday 19 March 2007 22:43:20 you wrote: > > Hi, > > > > On Monday, 19 March 2007 13:50, Tobias Doerffel wrote: > > > Hi, > > > > > > Suspend to RAM used to work fine on my computer (Intel Core Duo, 1 GB > > > RAM, Intel 82801G

Re: [PATCH 4/5] swsusp: fix error paths in snapshot_open

2007-03-20 Thread Pavel Machek
Hi! > We forget to increase device_available if there's an error in > snapshot_open(), so the snapshot device cannot be open at all after > snapshot_open() has returned an error. Actually, this should go to the beggining of series, as it is (non-critical) bugfix.

Re: [PATCH 5/5] swsusp: Use GFP_KERNEL for creating basic data structures

2007-03-20 Thread Pavel Machek
Hi! > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > Make swsusp call create_basic_memory_bitmaps() before processes are frozen, > so that GFP_KERNEL allocations can be made in it. Additionally, ensure > that the swsusp's userland interface won't be used while either > pm_suspend_disk() or

Re: [PATCH 1/1] hotplug cpu: move tasks in empty cpusets to parent

2007-03-20 Thread Randy Dunlap
On Tue, 20 Mar 2007 13:34:01 -0600 Cliff Wickman wrote: > > From: Cliff Wickman <[EMAIL PROTECTED]> > > This patch corrects a situation that occurs when one disables all the cpus > in a cpuset. > > At that point, any tasks in that cpuset are incorrectly moved (as I recall, > they were move to

Re: "reboot" swsusp mode leaves moon icon blinking

2007-03-20 Thread Johannes Weiner
Hi, On Tue, Mar 20, 2007 at 07:01:21PM +0100, Pavel Machek wrote: > > What does the "reboot" swsusp mean? > > echo reboot > ...disk. Thank you. > > I am having this (or a similar problem): > > > > echo shutdown > /sys/power/disk; echo disk > /sys/power/state > > Yep, that's duplicate.

Re: [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]

2007-03-20 Thread David Howells
Alan Cox <[EMAIL PROTECTED]> wrote: > > (*) SOCK_RPC has been removed. AF_RXRPC sockets now simply ignore the > > "type" argument to socket(). > > This is also incorrect Sigh. And what would you have me do? There *isn't* an appropriate SOCK_xxx constant available, and you won't let me

Re: [RFC] SLAB : NUMA cache_free_alien() very expensive because of virt_to_slab(objp); nodeid = slabp->nodeid;

2007-03-20 Thread Eric Dumazet
Andi Kleen a écrit : Is it possible virt_to_slab(objp)->nodeid being different from pfn_to_nid(objp) ? It is possible the page allocator falls back to another node than requested. We would need to check that this never occurs. The only way to ensure that would be to set a strict mempolicy.

Re: "reboot" swsusp mode leaves moon icon blinking

2007-03-20 Thread Pavel Machek
Hi! > > Yes, we could do that. > > > > OTOH, we could simply avoid calling the platform code in resume > > path. It worked ok for a long while, and it seems to have no > > downsides... > > No, we have always done it, actually, but not in this particular place. ;-) > > In theory, avoiding it

Re: [PATCH 2/2] Replace pid_t in autofs with struct pid reference

2007-03-20 Thread Eric W. Biederman
"Serge E. Hallyn" <[EMAIL PROTECTED]> writes: >> > void autofs4_dentry_release(struct dentry *); >> > extern void autofs4_kill_sb(struct super_block *); >> > diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c >> > index 9857543..4a9ad9b 100644 >> > --- a/fs/autofs4/waitq.c >> > +++

  1   2   3   4   5   6   7   8   9   >