[patch 04/11] syslets: core, data structures

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] this adds the data structures used by the syslet / async system calls infrastructure. This is used only if CONFIG_ASYNC_SUPPORT is enabled. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- kernel/async.h |

Re: Looking at space used by objects in slab allocator

2007-02-13 Thread Theodore Tso
On Mon, Feb 12, 2007 at 01:53:03PM -0500, William Cohen wrote: After last week's experiment reducing size of task_struct on I was The is a signficant amount of space wasted for ext3_inode_cache. If the struct used for ext3_inode_cache struct could be made smaller, three objects rather than two

[patch 09/11] syslets: x86, wire up the syslet system calls

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] wire up the new syslet / async system call syscalls and make it thus available to user-space. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |5 +

[patch 05/11] syslets: core code

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] the core syslet / async system calls infrastructure code. Is built only if CONFIG_ASYNC_SUPPORT is enabled. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- kernel/Makefile |1 kernel/async.c | 811

[patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Ingo Molnar
I'm pleased to announce the first release of the Syslet kernel feature and kernel subsystem, which provides generic asynchrous system call support: http://redhat.com/~mingo/syslet-patches/ Syslets are small, simple, lightweight programs (consisting of system-calls, 'atoms') that the kernel

[patch 08/11] syslets: x86: enable ASYNC_SUPPORT

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] enable CONFIG_ASYNC_SUPPORT on x86. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- arch/i386/Kconfig |4 1 file changed, 4 insertions(+) Index: linux/arch/i386/Kconfig

[patch 11/11] syslets: x86: optimized sys_umem_add()

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] provide an optimized assembly version of sys_umem_add(). It is about 2 times faster than the C version. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- arch/i386/lib/getuser.S | 27

[patch 02/11] syslets: add syslet.h include file, user API/ABI definitions

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] add include/linux/syslet.h which contains the user-space API/ABI declarations. Add the new header to include/linux/Kbuild as well. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- include/linux/Kbuild |1

[patch 07/11] syslets: x86, add create_async_thread() method

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] add the create_async_thread() way of creating kernel threads: these threads first execute a kernel function and when they return from it they execute user-space. An architecture must implement this interface before it can turn CONFIG_ASYNC_SUPPORT on.

[patch 10/11] syslets: x86: optimized copy_uatom()

2007-02-13 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] provide an optimized assembly version of the copy_uatom() method. This is about 3 times faster than the C version. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- arch/i386/lib/getuser.S | 115

Re: Sata_via problems in a Vintage2-AE1

2007-02-13 Thread Jean Delvare
Hi Leopold, Le Lundi 12 Février 2007 17:23, Leopold Palomo-Avellaneda a écrit : A Dilluns 12 Febrer 2007 10:11, Jean Delvare va escriure: Did you report the problem to Asus? They should fix it. Maybe this new BIOS actually fixes some other problems you have. no. It's on the todo list.

Re: utrace regressions (was: -mm merge plans for 2.6.21)

2007-02-13 Thread Alexey Dobriyan
On Mon, Feb 12, 2007 at 01:36:34PM -0800, Roland McGrath wrote: 2. The following proggie renders box unusable in ~10 seconds (but not mainline kernel where Ctrl+C will kill process). I haven't been able to reproduce this so far on my test machine. I got bored after about 10 minutes

Re: [PATCH 5/8] lguest: trivial guest network driver

2007-02-13 Thread Herbert Xu
On Tue, Feb 13, 2007 at 01:15:18PM +1100, Rusty Russell wrote: Good spotting! This function needs to be passed skb_headlen(skb), rather than skb-len. Patch is below (I renamed the parameter as well, for clarity). How about just dropping that parameter and using skb_headlen(skb) directly?

Re: [PATCH 1/2] Re: [autofs] Bad race condition in the new autofs protocol somewhere

2007-02-13 Thread Ian Kent
On Tue, 2007-02-13 at 09:50 +0100, Olivier Galibert wrote: On Tue, Feb 13, 2007 at 09:52:39AM +0900, Ian Kent wrote: Indeed. Which kernel can you use? I believe that 2200 had another problem so can you use an fc5 kernel later than that? I've ported your patch to 2257 (nothing special,

Re: [PATCH 1/2] Re: [autofs] Bad race condition in the new autofs protocol somewhere

2007-02-13 Thread Chuck Ebbert
Olivier Galibert wrote: On Tue, Feb 13, 2007 at 09:52:39AM +0900, Ian Kent wrote: Indeed. Which kernel can you use? I believe that 2200 had another problem so can you use an fc5 kernel later than that? I've ported your patch to 2257 (nothing special, only moved lines), and it seems to

Re: [ckrm-tech] [PATCH 1/7] containers (V7): Generic container system abstracted from cpusets code

2007-02-13 Thread Srivatsa Vaddagiri
On Tue, Feb 13, 2007 at 11:18:57AM +0530, Srivatsa Vaddagiri wrote: Which make me wonder why we need task_lock() at all ..I can understand the need for a lock like that if we are reading/updating multiple words in task_struct under the lock. In this case, it is used to read/write just one

Re: [PATCH 6/7] containers (V7): BeanCounters over generic process containers

2007-02-13 Thread Pavel Emelianov
[EMAIL PROTECTED] wrote: This patch implements the BeanCounter resource control abstraction over generic process containers. It contains the beancounter core code, plus the numfiles resource counter. It doesn't currently contain any of the memory tracking code or the code for switching

Re: [PATCH 6/7] containers (V7): BeanCounters over generic process containers

2007-02-13 Thread Paul Menage
On 2/13/07, Pavel Emelianov [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: This patch implements the BeanCounter resource control abstraction over generic process containers. It contains the beancounter core code, plus the numfiles resource counter. It doesn't currently contain any of the

Re: [PATCH 6/7] containers (V7): BeanCounters over generic process containers

2007-02-13 Thread Pavel Emelianov
Paul Menage wrote: On 2/13/07, Pavel Emelianov [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: This patch implements the BeanCounter resource control abstraction over generic process containers. It contains the beancounter core code, plus the numfiles resource counter. It doesn't

Re: [PATCH 6/7] containers (V7): BeanCounters over generic process containers

2007-02-13 Thread Paul Menage
On 2/13/07, Pavel Emelianov [EMAIL PROTECTED] wrote: I have implementation that moves arbitrary task :) Is that the one that calls stop_machine() in order to move a task around? That seemed a little heavyweight ... May be we can do context (container-on-task) handling lockless? What did

Re: [PATCH 6/7] containers (V7): BeanCounters over generic process containers

2007-02-13 Thread Pavel Emelianov
Paul Menage wrote: On 2/13/07, Pavel Emelianov [EMAIL PROTECTED] wrote: I have implementation that moves arbitrary task :) Is that the one that calls stop_machine() in order to move a task around? That seemed a little heavyweight ... Nope :) I've rewritten it completely. May be we can do

Re: [PATCH 3/7] containers (V7): Add generic multi-subsystem API to containers

2007-02-13 Thread Srivatsa Vaddagiri
On Mon, Feb 12, 2007 at 10:40:52AM -0800, Paul Menage wrote: I did consider that approach at one point. The reason I rejected it was that then container-count would no longer even vaguely represent the number of processes in a container. Now that we have the container_group object, we have to

Re: Recent and not-so problems with tifm_sd driver

2007-02-13 Thread Alex Dubov
If we are already on the topic, I would like to report two additional issues with mmc_block: 1. If, for some reason, device driver cannot return the requested data amount, but does not sets any error, mmc_block would retry indefinitely. Of course, its always a device driver's fault, but may be

Re: [PATCH] Add PCI device ID for IT8152 RISC-to-PCI chip

2007-02-13 Thread Raphael Assenat
Lennart Sorensen wrote: On Fri, Feb 09, 2007 at 03:14:05PM -0500, Raphael Assenat wrote: This patch adds a PCI device ID (0x8152) for the IT8152F/G Advanced RISC-to-PCI Companion Chip. -- Raphael Assenat 8D Technologies Inc. This patch adds a PCI device ID for the IT8152F/G Advanced

Re: SATA-performance: Linux vs. FreeBSD

2007-02-13 Thread Theodore Tso
On Tue, Feb 13, 2007 at 01:32:34PM +0100, Martin A. Fink wrote: Does the FreeBSD fsync sync to media ? Also what controller is being used here, and do you have EHCI USB support running ? Manual of FreeBSD fsync says it syncs to media. That didn't answer the question. With SATA in

2.6.19: EFAIL on MPATH failback

2007-02-13 Thread Charles C. Bennett, Jr.
Hi All - I have two systems running 2.6.19 from fedora-updates. System 1: vanilla x86 SMP server box with 2x Emulex LP-101 System 2: vanilla x86 SMP server box with 2x QLogic 2310F Both boxes are multipath to Hitachi USP TagmaStore. All LUNs including LUN0 (/, /boot, swap, /var via

Re: SATA-performance: Linux vs. FreeBSD

2007-02-13 Thread Alan
data actually did make it to the media, I wouldn't necessary assume that it has. Given that it sounds like you really care about this, I'd suggest that you explicitly testing this before making assumptions. FreeBSD 6.1 appears to get it right for some subsets of devices so it seems a

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Alan
A syslet is executed opportunistically: i.e. the syslet subsystem assumes that the syslet will not block, and it will switch to a cachemiss kernel thread from the scheduler. This means that even a How is scheduler fairness maintained ? and what is done for resource accounting here ? that

Re: [PATCH] mfd: SM501 core driver (#2)

2007-02-13 Thread Ben Dooks
On Tue, Feb 13, 2007 at 12:56:51PM +0100, Manuel Lauss wrote: Hi Ben, On Mon, Feb 12, 2007 at 11:07:41AM +, Ben Dooks wrote: This is a new release of the SM501 MFD driver. +struct sm501_platdata_fbsub { + struct fb_mode *def_mode; + unsigned longmax_mem;

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Benjamin LaHaise
On Tue, Feb 13, 2007 at 03:00:19PM +, Alan wrote: Open issues: Let me add some more Also: FPU state (especially important with the FPU and SSE memory copy variants), segment register bases on x86-64, interaction with set_fs()... There is no easy way of getting around the full thread

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Arjan van de Ven
On Tue, 2007-02-13 at 09:58 -0500, Benjamin LaHaise wrote: On Tue, Feb 13, 2007 at 03:00:19PM +, Alan wrote: Open issues: Let me add some more Also: FPU state (especially important with the FPU and SSE memory copy variants) are these preserved over explicit system calls? -- if

Re: [PATCH x86 for review III] [1/29] i386: avoid gcc extension

2007-02-13 Thread Arnd Bergmann
On Monday 12 February 2007 17:51, Andi Kleen wrote: setcc() in math-emu is written as a gcc extension statement expression macro that returns a value.  However, it's not used that way and it's not needed like that, so just make it a do-while non-extension macro so that we don't use an

Re: [PATCH] Add PCI device ID for IT8152 RISC-to-PCI chip

2007-02-13 Thread Lennart Sorensen
On Tue, Feb 13, 2007 at 09:45:54AM -0500, Raphael Assenat wrote: Really? I have no idea if it's possible to get a reliable PCI bus or not with this chip. Right now, we only use it for it's built-in OHCI USB host controller and UART. You're making me hope I never have to use it for

Re: NAK new drivers without proper power management?

2007-02-13 Thread Brad Campbell
Willy Tarreau wrote: Probably that you got the wrong laptop. If you buy an ultra-thin with highly proprietary hardware, it may be hard. But if you choose in profesionnal ranges, there is rarely any problem. I have a compaq nc8000 on which everything works fine, and it boots in about 20 seconds.

Re: [PATCH] Add PCI device ID for IT8152 RISC-to-PCI chip

2007-02-13 Thread Russell King
On Tue, Feb 13, 2007 at 10:16:33AM -0500, Lennart Sorensen wrote: There doesn't seem to be very many arm systems with PCI, so it's hard to tell. NetWinder, EBSA285 (which the NetWinder is a derivative of), the N2100, etc are PCI based and are all well proven in the field. However, I have come

current git crashes on bootup with pci_iounmap()

2007-02-13 Thread Kay Sievers
kernel BUG at lib/iomap.c:254! invalid opcode: [#1] ... The screen picture is here: http://vrfy.org/pci_iounmap.jpg It's a Thinkpad T43p. 2.6.20 was working fine. Commenting out: IO_COND(addr, /* nothing */, iounmap(addr)); in: lib/iomap.c:254 makes at least booting up possible.

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Andi Kleen
Alan [EMAIL PROTECTED] writes: Funny, it sounds like batch() on stereoids @) Ok with an async context it becomes somewhat more interesting. sys_setuid/gid/etc need to be synchronous only and not occur while other async syscalls are running in parallel to meet current kernel

Re: somebody dropped a (warning) bomb

2007-02-13 Thread Dick Streefland
Jan Engelhardt [EMAIL PROTECTED] wrote: | Further, giving again answer to the question whether they generate signed or | unsigned comparisons: Have you ever seen a computer which addresses memory with | negative numbers? Since the answer is most likely no, signed comparisons would | not make

Re: [PATCH debugfs: implement symbolic links

2007-02-13 Thread Cornelia Huck
On Tue, 13 Feb 2007 12:13:54 +0100, Peter Oberparleiter [EMAIL PROTECTED] wrote: Not especially related to this patch (which just does the same as the other debugfs functions), but: + * If debugfs is not enabled in the kernel, the value -%ENODEV will be + * returned. It is not wise to check

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Dmitry Torokhov
On 2/13/07, Alan [EMAIL PROTECTED] wrote: A syslet is executed opportunistically: i.e. the syslet subsystem assumes that the syslet will not block, and it will switch to a cachemiss kernel thread from the scheduler. This means that even a How is scheduler fairness maintained ? and what is

Re: [PATCH] Add PCI device ID for IT8152 RISC-to-PCI chip

2007-02-13 Thread Lennart Sorensen
On Tue, Feb 13, 2007 at 03:30:29PM +, Russell King wrote: On Tue, Feb 13, 2007 at 10:16:33AM -0500, Lennart Sorensen wrote: There doesn't seem to be very many arm systems with PCI, so it's hard to tell. NetWinder, EBSA285 (which the NetWinder is a derivative of), the N2100, etc are

Re: [patch 3/3, resend] kbuild: correctly skip tilded backups in localversion files

2007-02-13 Thread Linus Torvalds
On Tue, 13 Feb 2007, Oleg Verych wrote: I mean, all by-hand modifications must be in the $(srctree) (let's get this term), $(objtree) is output *only*. No. Especially for things like localversion, the object tree (if it is different) is very much where you'd put that marker. You might

Re: NAK new drivers without proper power management?

2007-02-13 Thread Mark Lord
Nigel Cunningham wrote: On Sun, 2007-02-11 at 01:27 +0100, Rafael J. Wysocki wrote: Plus: - What if I'm planning to implement the power managemet, but not just right now? Why not right now? LKML is much more receptive to drivers that follow the release early, release often mantra. Which

Pull UBI tree

2007-02-13 Thread Artem Bityutskiy
Hello Linus, The UBI tree has been in -mm for a few releases now and we would like to to see it in the mainline. We have several groups using the code now and it has proved to be fairly stable thus far. We've also got some feedback from people outside the community. In short, UBI is kind of LVM

Re: current git crashes on bootup with pci_iounmap()

2007-02-13 Thread Marcel Holtmann
Hi Kay, kernel BUG at lib/iomap.c:254! invalid opcode: [#1] ... The screen picture is here: http://vrfy.org/pci_iounmap.jpg It's a Thinkpad T43p. 2.6.20 was working fine. Commenting out: IO_COND(addr, /* nothing */, iounmap(addr)); in: lib/iomap.c:254 makes at least

Re: libsata doesn't like bus without master

2007-02-13 Thread Mark Lord
Robert Hancock wrote: Having a single drive on the channel configured as slave is not really a legal configuration. Sure it is. Not ideal, but legal in every respect, and suprisingly common in the wild since the early 1990s. (I believe the ATA standards say that it's something that a host

Re: NAK new drivers without proper power management?

2007-02-13 Thread Christoph Hellwig
On Tue, Feb 13, 2007 at 10:55:18AM -0500, Mark Lord wrote: LKML is much more receptive to drivers that follow the release early, release often mantra. Exactly. Which means we really have to be more accomodating of drivers that start out simple, and then gain all of the non-essential

Re: Pull UBI tree

2007-02-13 Thread Christoph Hellwig
On Tue, Feb 13, 2007 at 05:34:12PM +0200, Artem Bityutskiy wrote: Hello Linus, The UBI tree has been in -mm for a few releases now and we would like to to see it in the mainline. Please send out a current version for review instead. Last time I looked at it lots of things looked quite

Re: [PATCH v4] Fix rmmod/read/write races in /proc entries

2007-02-13 Thread Alexey Dobriyan
On Mon, Feb 12, 2007 at 10:35:52PM -0800, Andrew Morton wrote: On Sun, 11 Feb 2007 23:23:30 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: [PATCH v4] Fix rmmod/read/write races in /proc entries This: static ssize_t proc_file_write(struct file *file, const char __user *buffer,

Re: [patch 3/3, resend] kbuild: correctly skip tilded backups in localversion files

2007-02-13 Thread Roman Zippel
Hi, On Tue, 13 Feb 2007, Linus Torvalds wrote: I know it maybe another my change it all proposition, but i can't find nothing against `GNU $(wildcard ..)' and `unnecessarily complex find'. It's the regexp in both cases. $(wildcard ) doesn't do regexp's (only the normal path rules), and

Re: [PATCH x86 for review III] [1/29] i386: avoid gcc extension

2007-02-13 Thread Randy Dunlap
On Tue, 13 Feb 2007 16:11:14 +0100 Arnd Bergmann wrote: On Monday 12 February 2007 17:51, Andi Kleen wrote: setcc() in math-emu is written as a gcc extension statement expression macro that returns a value.  However, it's not used that way and it's not needed like that, so just make it a

Re: [PATCH] Add PCI device ID for IT8152 RISC-to-PCI chip

2007-02-13 Thread Russell King
On Tue, Feb 13, 2007 at 10:47:28AM -0500, Lennart Sorensen wrote: On Tue, Feb 13, 2007 at 03:30:29PM +, Russell King wrote: On Tue, Feb 13, 2007 at 10:16:33AM -0500, Lennart Sorensen wrote: There doesn't seem to be very many arm systems with PCI, so it's hard to tell. NetWinder,

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread bert hubert
On Tue, Feb 13, 2007 at 09:58:48AM -0500, Benjamin LaHaise wrote: not present is mandatory). I have looked into exactly this approach, and it's only cheaper if the code is incomplete. Linux's native threads are pretty damned good. Cheaper in time or in memory? Iow, would you be able to

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Linus Torvalds
On Tue, 13 Feb 2007, Andi Kleen wrote: sys_exec and other security boundaries must be synchronous only and not allow async spill over (consider setuid async binary patching) He probably would need some generalization of Andrea's seccomp work. Perhaps using bitmaps? For paranoia I

Re: Coding style RFC: convert for (i=0;iARRAY_SIZE(array);i++) to array_for_each(index, array)

2007-02-13 Thread Randy Dunlap
On Tue, 13 Feb 2007 09:37:38 +0200 Muli Ben-Yehuda wrote: On Mon, Feb 12, 2007 at 03:47:50PM -0800, Joe Perches wrote: Now that most of the sizeof(array)/sizeof(array[0]) conversions have been done (there are about 800 done and about another 130 left), perhaps it could be useful to

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Ingo Molnar
* Alan [EMAIL PROTECTED] wrote: A syslet is executed opportunistically: i.e. the syslet subsystem assumes that the syslet will not block, and it will switch to a cachemiss kernel thread from the scheduler. This means that even a How is scheduler fairness maintained ? and what is done

[PATCH] x86_64, i386: Add command line length to boot protocol

2007-02-13 Thread Bernhard Walle
[Difference to previous attempt: cmdline_size is now without terminating zero, requested by H. Peter Anvin.] Because the command line is increased to 2048 characters after 2.6.20-rc6-mm1, it's not possible for boot loaders and userspace tools to determine the length of the command line the kernel

Re: current git crashes on bootup with pci_iounmap()

2007-02-13 Thread Kay Sievers
On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote: kernel BUG at lib/iomap.c:254! invalid opcode: [#1] ... The screen picture is here: http://vrfy.org/pci_iounmap.jpg It's a Thinkpad T43p. 2.6.20 was working fine. Commenting out: IO_COND(addr, /*

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Ingo Molnar
* Andi Kleen [EMAIL PROTECTED] wrote: sys_exec and other security boundaries must be synchronous only and not allow async spill over (consider setuid async binary patching) He probably would need some generalization of Andrea's seccomp work. Perhaps using bitmaps? For paranoia I

Re: [PATCH 12/22] elevate write count files are open()ed

2007-02-13 Thread Dave Hansen
On Mon, 2007-02-12 at 21:11 -0800, Andrew Morton wrote: On Fri, 09 Feb 2007 14:53:37 -0800 Dave Hansen [EMAIL PROTECTED] wrote: diff -puN fs/file_table.c~14-24-tricky-elevate-write-count-files-are-open-ed fs/file_table.c ---

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Ingo Molnar
* Benjamin LaHaise [EMAIL PROTECTED] wrote: Open issues: Let me add some more Also: FPU state (especially important with the FPU and SSE memory copy variants), segment register bases on x86-64, interaction with set_fs()... agreed - i'll fix this. But i can see no big conceptual

Re: [patch 00/11] ANNOUNCE: Syslets, generic asynchronous system call support

2007-02-13 Thread Ingo Molnar
* Linus Torvalds [EMAIL PROTECTED] wrote: Ie, we could just add to do_fork() (which is where all of the vfork/clone/fork cases end up) a simple case like err = wait_async_context(); if (err) return err; or if (in_async_context())

Re: [patch 4/9] Remove the TSC synchronization on SMP machines

2007-02-13 Thread Christoph Lameter
On Tue, 13 Feb 2007, Arjan van de Ven wrote: no quite the opposite. gettimeofday() currently is NOT monotonic unfortunately. With this patchseries it actually has a better chance of becoming that... It is monotonic on IA64 at least and we have found that subtle application bugs occur if it

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Martin J. Bligh
KAMEZAWA Hiroyuki wrote: In my last posintg, mempolicy-fix-for-memory-less-node patch, there was a discussion 'what do you consider definition of node as...? I found there is no consensus. But I want to go ahead. Before posing patch again, I'd like to discuss more. -Kame In my understanding,

Re: SATA-performance: Linux vs. FreeBSD

2007-02-13 Thread Jeff Garzik
On Tue, Feb 13, 2007 at 11:25:27AM +, Alan wrote: So where is the difference between SATA-I and SATA-II ? All physical side if they are on the same controller when you do the tests. Mostly latency, SATA-II is a highly confusing marketing term. It is /not/ a technical term. In some

Re: [PATCH x86 for review III] [1/29] i386: avoid gcc extension

2007-02-13 Thread Andi Kleen
On Tuesday 13 February 2007 17:10, Randy Dunlap wrote: On Tue, 13 Feb 2007 16:11:14 +0100 Arnd Bergmann wrote: On Monday 12 February 2007 17:51, Andi Kleen wrote: setcc() in math-emu is written as a gcc extension statement expression macro that returns a value.  However, it's not used

Re: Small problem with kernel 2.6.20 and make menuconfig

2007-02-13 Thread Randy Dunlap
On Tue, 13 Feb 2007 09:17:51 + Dominic Newton wrote: Just a small issue with the latest kernel 2.6.20. When compiling make menuconfig our ncurses library is not being detected. I currently use 2.6.15 with no problem and comparing the 2 I found a script (

Re: [patch 4/9] Remove the TSC synchronization on SMP machines

2007-02-13 Thread Andi Kleen
On Tuesday 13 February 2007 18:09, Christoph Lameter wrote: On Tue, 13 Feb 2007, Arjan van de Ven wrote: no quite the opposite. gettimeofday() currently is NOT monotonic unfortunately. With this patchseries it actually has a better chance of becoming that... It is monotonic on IA64 at

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Christoph Lameter
On Tue, 13 Feb 2007, Andi Kleen wrote: The trouble with this is that you'll need to harden large parts of code against these. Especially a NULL pgdat is something quite dangerous. You could make it a dummy empty pgdat, but just assigning it nearby seems easier. Plus there is the issue of

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Christoph Lameter
On Tue, 13 Feb 2007, KAMEZAWA Hiroyuki wrote: NOD_DATA(nid) is always valid pointer if a node is online. NODE_DATA(nid)-present_pages can be 0 even if a node is online, I call this as memory-less-node. Yes but the pgdat will have no valid zone in it. That is new. - To unsubscribe from this

Re: 2.6.20-rc6 libata PATA ATAPI CDROM is not working

2007-02-13 Thread Joel Soete
Hello Tejun, A small update: your patch also works against 2.6.20 but seems that open the door to numerous other pb: 1/ pb to burn cd: # md5sum cd060213.iso 6a1248783a21722816b972aa9bae9d5e cd060213.iso # ll cd060213.iso -rwxr-xr-x 1 root root 3213312 Feb 13 2006 cd060213.iso # dd

[PATCH] pxafb: Add option to enable/disable the cursor

2007-02-13 Thread Rodolfo Giometti
Add cursor enable/disable, very useful if you wish a full screen boot logo. Cursor can be disabled from kernel command line: video=pxafb:nocursor or from sysfs interface: echo 1 /sys/module/pxafb/parameters/nocursor Signed-off-by: Rodolfo Giometti [EMAIL PROTECTED]

Re: [PATCH] pxafb: Add option to enable/disable the cursor

2007-02-13 Thread Russell King
On Tue, Feb 13, 2007 at 06:38:05PM +0100, Rodolfo Giometti wrote: Add cursor enable/disable, very useful if you wish a full screen boot logo. Maybe this should be a generic option? Or maybe issue ESC [ 25 l to disable the cursor if you're wanting to turn it off from userspace. -- Russell

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Andi Kleen
Your description of the node is correct, it's an arbitrary container of one or more resources. Not only is this definition flexible, it's also very useful, for memory hotplug, odd types of NUMA boxes, etc. I must disagree here. Special cases are always dangerous especially if they are hard to

Re: [PATCH 12/22] elevate write count files are open()ed

2007-02-13 Thread Andrew Morton
On Tue, 13 Feb 2007 08:58:16 -0800 Dave Hansen [EMAIL PROTECTED] wrote: yipes. A new mount-wide spin_lock/unlock for each for-writing open() and close(). Can we have a microbenchmark on this please? Yeah, I'll schedule some dbench time on a NUMA machine. dbench doesn't do open() a

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Christoph Lameter
On Tue, 13 Feb 2007, Andi Kleen wrote: Adding NULL tests all over mm for this would seem like a clear case of this to me. Maybe there is an alternative. We are free to number the nodes right? How about requiring the low node number to have memory and the high ones do not? F.e. have a

Re: [PATCH] pxafb: Add option to enable/disable the cursor

2007-02-13 Thread Rodolfo Giometti
On Tue, Feb 13, 2007 at 05:48:29PM +, Russell King wrote: Maybe this should be a generic option? Or maybe issue ESC [ 25 l to disable the cursor if you're wanting to turn it off from userspace. This is useful if you have a full screen boot logo. How I can issue ESC [ 25 l at boot time?

Re: somebody dropped a (warning) bomb

2007-02-13 Thread Sergei Organov
Linus Torvalds [EMAIL PROTECTED] writes: On Mon, 12 Feb 2007, Sergei Organov wrote: Why strlen() should be allowed to be called with an incompatible pointer type? My point is that gcc should issue *different warning*, -- the same warning it issues here: I agree that strlen() per se isn't

Re: 2.6.20-rc6 libata PATA ATAPI CDROM is not working

2007-02-13 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday 13 February 2007 18:35, Joel Soete wrote: scsi3 : ata_piix ata1.00: ATA-4, max UDMA/66, 29336832 sectors: LBA ata1.00: ata1: dev 0 multi count 16 ata1.00: configured for UDMA/33 ... scsi 3:0:0:0: Direct-Access     ATA      QUANTUM FIREBALL A03. PQ: 0 ANSI: 5 IDE driver

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Martin J. Bligh
Andi Kleen wrote: Your description of the node is correct, it's an arbitrary container of one or more resources. Not only is this definition flexible, it's also very useful, for memory hotplug, odd types of NUMA boxes, etc. I must disagree here. Special cases are always dangerous especially if

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Martin J. Bligh
Christoph Lameter wrote: On Tue, 13 Feb 2007, Andi Kleen wrote: Adding NULL tests all over mm for this would seem like a clear case of this to me. Maybe there is an alternative. We are free to number the nodes right? How about requiring the low node number to have memory and the high ones

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Andi Kleen
I wasn't suggesting having NULL pointers for pgdats, if that's what you mean. That is what started the original thread at least. Can happen on some ia64 platforms. Just nodes with no memory in them, the pgdat would still be there. pgdat = struct node, except everything's badly named. Ok

Re: 2.6.20-rc6 libata PATA ATAPI CDROM is not working

2007-02-13 Thread Alan
Could you send me output of hdparm --Istdout /dev/sdc command? Ditto - if this is one of the odd few quantums that need compile time hacks in the old IDE its also one we need to do runtime handling for in *both*. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [PATCH] pxafb: Add option to enable/disable the cursor

2007-02-13 Thread James Simmons
On Tue, Feb 13, 2007 at 05:48:29PM +, Russell King wrote: Maybe this should be a generic option? Or maybe issue ESC [ 25 l to disable the cursor if you're wanting to turn it off from userspace. This is useful if you have a full screen boot logo. How I can issue ESC [ 25 l at boot

Re: 2.6.20-rc6 libata PATA ATAPI CDROM is not working

2007-02-13 Thread Tejun Heo
Hello, Joel. Joel Soete wrote: A small update: your patch also works against 2.6.20 Glad to hear that. but seems that open the door to numerous other pb: 1/ pb to burn cd: # md5sum cd060213.iso 6a1248783a21722816b972aa9bae9d5e cd060213.iso # ll cd060213.iso -rwxr-xr-x 1 root root 3213312

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Martin J. Bligh
Andi Kleen wrote: I wasn't suggesting having NULL pointers for pgdats, if that's what you mean. That is what started the original thread at least. Can happen on some ia64 platforms. OK, that does seem kind of ugly. Just nodes with no memory in them, the pgdat would still be there. pgdat =

Re: CPU load

2007-02-13 Thread Pavel Machek
Hi! The kernel looks at what is using cpu _only_ during the timer interrupt. Which means if your HZ is 1000 it looks at what is running at precisely the moment those 1000 timer ticks occur. It is theoretically possible using this measurement system to use 99% cpu and record 0 usage

Re: NAK new drivers without proper power management?

2007-02-13 Thread Pavel Machek
Hi! I think your experience is rather different than that of Joe Average User who doesn't frequent kernel lists, and also I think you'll find that for a lot of Linux laptop users that don't use supend, the reason is that it doesn't work reliably, quite often due to driver issues. I

Re: somebody dropped a (warning) bomb

2007-02-13 Thread Pekka Enberg
On 2/13/07, Sergei Organov [EMAIL PROTECTED] wrote: May I suggest another definition for a warning being entirely sucks? The warning is entirely sucks if and only if it never has true positives. In all other cases it's only more or less sucks, IMHO. You're totally missing the point. False

Re: [patch] (2nd try) add epoll compat code to kernel/compat.c ...

2007-02-13 Thread James Bottomley
On Tue, 2007-02-13 at 15:35 +1100, Stephen Rothwell wrote: OK, I have thought about this some more and I *think* the only architecture that needs compat_sys_epoll_ctl or compat_sys_epoll_wait is ia64 where the 64 bit version of struct epoll_event is different from the 32 bit version. On

Re: [PATCH 1/2] Re: [autofs] Bad race condition in the new autofs protocol somewhere

2007-02-13 Thread Olivier Galibert
On Tue, Feb 13, 2007 at 09:07:27AM -0500, Chuck Ebbert wrote: Olivier Galibert wrote: On Tue, Feb 13, 2007 at 09:52:39AM +0900, Ian Kent wrote: Indeed. Which kernel can you use? I believe that 2200 had another problem so can you use an fc5 kernel later than that? I've ported your

Re: [PATCH 1/2] Re: [autofs] Bad race condition in the new autofs protocol somewhere

2007-02-13 Thread Chuck Ebbert
Olivier Galibert wrote: If you get the patches into -stable they will end up in Fedora kernels automatically. 2288 (based on 2.6.19) is in testing now... Don't they require autofs5 to be of any use though? That's not going to be in fc until it's out of beta I guess. I didn't realize you

[RFC] security_getprocattr() API idiocy

2007-02-13 Thread Al Viro
[apologies for resend, bogus address on the original mail] security_getprocattr() takes a buffer + length, copies data to it and return the actual length. If buffer is NULL, it just returns the right length, a-la snprintf(). Observations: * at least selinux ends up actually

Alt+SysRq+K broken

2007-02-13 Thread Alexey Dobriyan
kernel BUG at kernel/workqueue.c:212! 100% reproducable queue_work __handle_sysrq kbd_event add_timer_randomness kbd_event input_event atkbd_interrupt serio_interrupt i8042_interrupt ... reverting the

Re: utrace regressions (was: -mm merge plans for 2.6.21)

2007-02-13 Thread Alexey Dobriyan
On Mon, Feb 12, 2007 at 01:36:34PM -0800, Roland McGrath wrote: We're aware of two regressions compared to mainline if ptrace is utrace: Thanks very much for bringing these to my attention. 1) zero holes for PTRACE_PEEKUSR vanished. I've fixed this in the current patches. Looking at

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Christoph Lameter
On Tue, 13 Feb 2007, Martin J. Bligh wrote: What's wrong with just setting the existing counters like node_spanned_pages / node_present_pages to zero? Will this fix the breakage that Kame-san saw? - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-13 Thread Bob Picco
Andi Kleen wrote: [Tue Feb 13 2007, 01:18:45PM EST] I wasn't suggesting having NULL pointers for pgdats, if that's what you mean. That is what started the original thread at least. Can happen on some ia64 platforms. I don't believe there is a NULL pgdat. The code for memory less

[PATCH] mfd: SM501 core driver (#3)

2007-02-13 Thread Ben Dooks
A new release of the SM501 core mfd driver. This driver provides the core functionality of the SM501, which is a multi-function chip including two framebuffers, video acceleration, USB, and many other peripheral blocks. The driver exports a number of entries for the peripheral drivers to use.

Re: SATA Drive No Longer Recognized In New 2.6.20 Kernel

2007-02-13 Thread Joseph Cosby
Thanks for the helpful replies. It appears that I was mistaken and that my hard drive is detected when the new ATA config option is enabled. Joseph _ Turn searches into helpful donations. Make your search count.

Re: SATA-performance: Linux vs. FreeBSD

2007-02-13 Thread Jeff Carr
On 02/12/07 08:37, Martin A. Fink wrote: :~ strace -c -T -o trace.out dd if=/dev/zero of=test.txt bs=10MB count=200 200+0 Datensätze ein 200+0 Datensätze aus 20 bytes (2,0 GB) copied, 52,8632 seconds, 37,8 MB/s You might want to check the raw write read speed to the device without

<    1   2   3   4   5   6   7   8   9   >