Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Arjan van de Ven
On Mon, 2007-02-12 at 15:27 +0800, Jeff Chua wrote: > Is it possible to get file access time in millisecond resolution? > > stat() returns time in seconds, but gettimeofday() can returns microseconds. see the "utimes()" function - To unsubscribe from this list: send the line "unsubscribe linux-

Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Andi Kleen
"Jeff Chua" <[EMAIL PROTECTED]> writes: > Is it possible to get file access time in millisecond resolution? > > stat() returns time in seconds, Not correct (at least for glibc stat). It supports nanoseconds these days, although not all file systems (including ext3) do yet. Some of the old stat

Re: [PATCH x86 for review II] [18/39] x86_64: Allow to run a program when a machine check event is detected

2007-02-12 Thread Andi Kleen
On Monday 12 February 2007 08:54, Oliver Neukum wrote: > Am Montag, 12. Februar 2007 08:38 schrieb Andi Kleen: > > When a machine check event is detected (including a AMD RevF threshold > > overflow event) allow to run a "trigger" program. This allows user space > > to react to such events sooner.

[no subject]

2007-02-12 Thread subbukk
unsubscribe linux-kernel - 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 x86 for review II] [18/39] x86_64: Allow to run a program when a machine check event is detected

2007-02-12 Thread Bauke Jan Douma
Andi Kleen wrote on 12-02-07 09:04: On Monday 12 February 2007 08:54, Oliver Neukum wrote: Am Montag, 12. Februar 2007 08:38 schrieb Andi Kleen: When a machine check event is detected (including a AMD RevF threshold overflow event) allow to run a "trigger" program. This allows user space to re

Re: [IA64] swiotlb abstraction (e.g. for Xen)

2007-02-12 Thread Arjan van de Ven
On Mon, 2007-02-12 at 07:30 +, Jan Beulich wrote: > On Wed, Feb 07, 2007 at 09:32:54AM +0100, Christoph Hellwig wrote: > > On Wed, Feb 07, 2007 at 07:59:18AM +, Linux Kernel Mailing List wrote: > > > [IA64] swiotlb abstraction (e.g. for Xen) > > > > > > Add abstraction so that

Re: NAK new drivers without proper power management?

2007-02-12 Thread Geert Uytterhoeven
On Sat, 10 Feb 2007, Rafael J. Wysocki wrote: > What about this: > > "If the device requires that, implement .suspend and .resume or at least > define .suspend that will always return -ENOSYS (then people will know they ^

Re: [PATCH] Re: Bio device too big | kernel BUG at mm/filemap.c:537!

2007-02-12 Thread J.A. Magallón
On Wed, 7 Feb 2007 10:26:56 +1100, Neil Brown <[EMAIL PROTECTED]> wrote: > On Tuesday February 6, [EMAIL PROTECTED] wrote: > > > > This patch should fix the worst of the offences, but I'd like to > > experiment and think a bit more before I submit it to stable. > > And probably test it too - as y

Re: [IA64] swiotlb abstraction (e.g. for Xen)

2007-02-12 Thread Muli Ben-Yehuda
On Mon, Feb 12, 2007 at 09:14:25AM +0100, Arjan van de Ven wrote: > Xen the linux guest > or > Xen the hypervisor? > > if it's the later, why on earth would we want to uglyfy linux for it? > (arguably it holds in the former case as well) Xen the hypervisor (i.e., dom0). Cheers, Muli - To unsubs

Re: [IA64] swiotlb abstraction (e.g. for Xen)

2007-02-12 Thread Jan Beulich
>> > If Jan actually had a goal with that except making the code utterly >> > unreadable he should try again with small patches that are well >> > explained and do one thing at a at time. (And cane be reviewed an >> > improved on if needed. >> >> As the topic says - the goal is to support Xen. >

Re: [RFC] [PATCH] To list all active probes in the system---Take-2

2007-02-12 Thread Andrew Morton
On Thu, 08 Feb 2007 17:16:15 +0530 Srinivasa Ds <[EMAIL PROTECTED]> wrote: > + if (p->pre_handler == pre_handler_kretprobe) This breaks on sparc64: kernel/kprobes.c: In function `report_probe': kernel/kprobes.c:826: error: `pre_handler_kretprobe' undeclared (first use in this function) - To

[PATCH 2.6.20 06/10] nfnetlink_log: micro-optimization: don't modify destroyed instance

2007-02-12 Thread Michał Mirosław
Simple micro-optimization: Don't change any options if the instance is being destroyed. Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.42007-02-11 20:46:26.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-11 22:24:

[PATCH 2.6.20 10/10] nfnetlink_log: enable packet timestamps

2007-02-12 Thread Michał Mirosław
It's nice to log packet arrival time of those little filthy packets. ;) Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.82007-02-11 23:59:01.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-12 00:19:16.0 +0

[PATCH 2.6.20 02/10] nfnetlink_log: stop reference leak

2007-02-12 Thread Michał Mirosław
Stop reference leaking in nfulnl_log_packet(). If we start a timer we are already taking another reference. Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.02007-02-11 20:20:27.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.

[PATCH 2.6.20 05/10] nfnetlink_log: micro-optimization for inst==NULL in nfulnl_recv_config()

2007-02-12 Thread Michał Mirosław
Simple micro-optimization: don't call instance_put() on known NULL pointers. Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.32007-02-11 20:46:33.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-11 20:46:26.

[PATCH 2.6.20 00/10] nfnetlink_log: patch series introduction

2007-02-12 Thread Michał Mirosław
Dear list, After meeting a faint-hearted Linux kernel lately I decided to try myself at persuading it to not be afraid of NFLOG. This chat gave a series of ten commandments I present today. Take a look and agree or comment. Here's the list: 1. nfulnl_log_packet() - don't count the same thing t

[PATCH 2.6.20 04/10] nfnetlink_log: fix possible use-after-free

2007-02-12 Thread Michał Mirosław
Paranoia: instance_put() might have freed the inst pointer when we spin_unlock_bh(). Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.22007-02-11 20:43:24.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-11 20:46:33.

[PATCH 2.6.20 09/10] nfnetlink_log: fix NULL pointer dereference

2007-02-12 Thread Michał Mirosław
Fix the nasty NULL dereference on multiple packets per netlink message. BUG: unable to handle kernel NULL pointer dereference at virtual address 0004 printing eip: f8a4b3bf *pde = Oops: 0002 [#1] SMP Modules linked in: nfnetlink_log ipt_ttl ipt_REDIRECT xt_tcpudp iptable_nat nf_na

[PATCH 2.6.20 01/10] nfnetlink_log: don't count max(a,b) twice

2007-02-12 Thread Michał Mirosław
We don't need local nlbufsiz (skb size) as nfulnl_alloc_skb() takes the maximum anyway. Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.orig 2007-02-10 18:25:14.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-11 20:20:

[PATCH 2.6.20 03/10] nfnetlink_log: kill duplicate code

2007-02-12 Thread Michał Mirosław
Kill some duplicate code in nfulnl_log_packet(). Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.12007-02-11 20:51:57.0 +0100 +++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-11 20:43:24.0 +0100 @@ -666,30 +666,23

[PATCH 2.6.20 08/10] nfnetlink_log: shorten instances_lock holding time

2007-02-12 Thread Michał Mirosław
Shorten instances_lock window at the cost of doing unnecessary work on the failure case. I don't know if it makes sense actually. ;> Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.62007-02-11 22:31:19.0 +0100 +++ linux-2.6.20/net

[PATCH 2.6.20 07/10] nfnetlink_log: fix module reference counting

2007-02-12 Thread Michał Mirosław
Count module references correctly: after instance_destroy() there might be timer pending and holding a reference for this netlink instance. Signed-off-by: Michał Mirosław <[EMAIL PROTECTED]> --- linux-2.6.20/net/netfilter/nfnetlink_log.c.52007-02-11 22:24:56.0 +0100 +++ linux-2.6

Re: Recent and not-so problems with tifm_sd driver - one more

2007-02-12 Thread Pierre Ossman
Brad Campbell wrote: > [EMAIL PROTECTED]:/sys/block/mmcblk0$ ls -laR > .: > total 0 > drwxr-xr-x 6 root root0 2007-02-11 23:29 . > drwxr-xr-x 13 root root0 2007-02-11 23:27 .. > -r--r--r-- 1 root root 4096 2007-02-11 23:28 dev > lrwxrwxrwx 1 root root0 2007-02-11 23:27 device -> > ..

Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Jeff Chua
On 2/12/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: see the "utimes()" function Arjan, I checked the man page, and it says ... utime, utimes - change access and/or modification times of an inode I just want to "read" the access time, and not changing it. Thanks, Jeff. - To unsubscribe

Re: 2.6.16.32 stuck in generic_file_aio_write()

2007-02-12 Thread Igmar Palsenberg
Hi, > I can not make sure it is hardware problem, but I have interest in this > case's reproducing. > If you tell me your platform's construction, I will try it and give you good > solution. The machines giving problems are almost identical when it comes to hardware specs : Intel SE7520BD2 m

Re: [RFC] [PATCH] To list all active probes in the system---Take-2

2007-02-12 Thread Ananth N Mavinakayanahalli
On Mon, Feb 12, 2007 at 12:45:15AM -0800, Andrew Morton wrote: > On Thu, 08 Feb 2007 17:16:15 +0530 Srinivasa Ds <[EMAIL PROTECTED]> wrote: > > > + if (p->pre_handler == pre_handler_kretprobe) > > This breaks on sparc64: > > kernel/kprobes.c: In function `report_probe': > kernel/kprobes.c:826:

Open reiserfs transactions (was Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18)

2007-02-12 Thread Stefan Rompf
Andrey Borzenkov wrote: > This is rather funny; in 2.6.19-rc5 grub is *really* slow loading kernel > when I switch on the system after suspend to disk. Actually, after kernel > has been loaded, the whole resuming (up to the point I have usable desktop > again) takes about three time less than the

Re: [patches] [PATCH 2.6.21 review I] [4/25] x86: kernel-mode faults pollute current->thead

2007-02-12 Thread Jan Beulich
>>> Andi Kleen <[EMAIL PROTECTED]> 10.02.07 12:50 >>> > >From: Jeff Dike <[EMAIL PROTECTED]> > >Kernel-mode traps on x86_64 can pollute the trap information for a previous >userspace trap for which the signal has not yet been delivered to the >process. > >do_trap and do_general_protection set task-

Re: genirq: Add a set_irq_handler_locked() function

2007-02-12 Thread Russell King
On Mon, Feb 12, 2007 at 02:17:28PM +1100, David Gibson wrote: > On Fri, Feb 09, 2007 at 07:36:40AM +, Russell King wrote: > > On Fri, Feb 09, 2007 at 02:48:42PM +1100, David Gibson wrote: > > > At present set_irq_handler() and all the existing variants take the > > > desc->lock for the irq in q

Re: NAK new drivers without proper power management?

2007-02-12 Thread Arjan van de Ven
> > By adding dummy functions, wouldn't that just look awkward ? not really; if you have a template pm_no_suspend_needed and pm_no_restore_needed functions, and just make it part of ALL device structs that don't need it.. it's not that bad or maybe pm_generic_no_suspend pm_generic_no_resum

Re: libata FUA revisited

2007-02-12 Thread Tejun Heo
Hello, Robert Hancock wrote: [--correct summary snipped--] Given the above, what I'm proposing to do is: -Remove the blacklisting of Maxtor BANC1G10 firmware for FUA. If we need to FUA-blacklist any drives this should likely be added to the existing "horkage" mechanism we now have. However, a

Re: Sata_via problems in a Vintage2-AE1

2007-02-12 Thread Jean Delvare
Le Samedi 10 Février 2007 15:45, Tejun Heo a écrit : > [cc'ing Alan and Jean, Hi!] > > Leopold Palomo Avellaneda wrote: > > A Divendres 09 Febrer 2007 18:13, Leopold Palomo Avellaneda va escriure: > >> A Divendres 09 Febrer 2007 10:46, Tejun Heo va escriure: > >>> Leopold Palomo Avellaneda wrote: >

Re: pcim_enable_device BUGs for libata devices in 2.6.20-git6

2007-02-12 Thread Tejun Heo
[cc'ing Pavel, Hi!] Robert Hancock wrote: I'm seeing BUGs like these on all libata-driven controllers when suspending to disk on 2.6.20-git6: sata_nv :00:07.0: resuming BUG: at drivers/pci/pci.c:817 pcim_enable_device() Call Trace: [] pcim_enable_device+0x8a/0xa5 [] :libata:ata_pci_devi

Re: [PATCH 5/7] cleanup: Rename cpu_gdt_descr and remove extern declaration from smpboot.c

2007-02-12 Thread Zachary Amsden
Rusty Russell wrote: When I implemented the DECLARE_PER_CPU(var) macros, I was careful that people couldn't use "var" in a non-percpu context, by prepending percpu__. I never considered that this would allow them to overload the same name for a per-cpu and a non-percpu variable. It is only one

Re: Sata_via problems in a Vintage2-AE1

2007-02-12 Thread Tejun Heo
Jean Delvare wrote: I've read the whole thread, the source code (quickly) and the patches to ahci.c and sata_via.c, and here are some comments: It looks like support for the VT8251 was added to the ahci driver in kernel 2.6.18, and was then updated in 2.6.20. The code is different from the pa

Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Jeff Chua
On 12 Feb 2007 10:02:28 +0100, Andi Kleen <[EMAIL PROTECTED]> wrote: > stat() returns time in seconds, Not correct (at least for glibc stat). It supports nanoseconds these days, although not all file systems (including ext3) do yet. I'm using gcc-3.4.5, and glibc-2.3.6. Don't think 2.3.6 stat

Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Andi Kleen
On Monday 12 February 2007 10:52, Jeff Chua wrote: > On 12 Feb 2007 10:02:28 +0100, Andi Kleen <[EMAIL PROTECTED]> wrote: > > > > stat() returns time in seconds, > > > > Not correct (at least for glibc stat). It supports nanoseconds these days, > > although not all file systems (including ext3) do

Re: [patches] [PATCH 2.6.21 review I] [21/25] x86_64: a memcpy that tries to reduce cache pressure

2007-02-12 Thread Jan Beulich
>>> Andi Kleen <[EMAIL PROTECTED]> 10.02.07 12:50 >>> > >From: "Bryan O'Sullivan" <[EMAIL PROTECTED]> > >This copy routine is memcpy-compatible, but on some architectures will use >cache-bypassing loads to avoid bringing the source data into the cache. > >One case where this is useful is when a dev

Adjusting destination pointer with copy_to_user

2007-02-12 Thread Timur Aydin
Hi, I am passing a packet consisting of a fixed length header and a variable length data block to a user mode application. The user mode application passes the pointer of its buffer with an ioctl call (buff_ptr). When the driver receives buff_ptr, it makes two calls to pass the packet to user mode

Re: [QUESTION] file access time in millisecond?

2007-02-12 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Jeff Chua <[EMAIL PROTECTED]> wrote: >On 12 Feb 2007 10:02:28 +0100, Andi Kleen <[EMAIL PROTECTED]> wrote: > >> > stat() returns time in seconds, >> >> Not correct (at least for glibc stat). It supports nanoseconds these days, >> although not all file systems (includ

Re: [patches] [PATCH 2.6.21 review I] [21/25] x86_64: a memcpy that tries to reduce cache pressure

2007-02-12 Thread Andi Kleen
> This looks a little strange to me: > - the first 128 bytes are still going through the cache > - up to 192 bytes past the copied area are being marked non-temporal, while > there's nothing known about that area Yes that seems quite bogus. > - sfence seems questionable here, I would have thou

Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Andi Kleen
Mathieu Desnoyers <[EMAIL PROTECTED]> writes: > > /** > @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, > atomic64_t *v) > */ > #define atomic_add_unless(v, a, u) \ > ({ \ > - int

Re : [PATCH] Compressed ia32 ELF file generation for loading by Gujin 1/3

2007-02-12 Thread Etienne Lorrain
--- "Eric W. Biederman" wrote: > So I really don't care if we move whole real mode section into a note > or if we just put a pointer to it into a note. What is important is > that we use a note to find it. Well, we can advertise by a note the section number or the section name which contains the

Re: Recent and not-so problems with tifm_sd driver - one more

2007-02-12 Thread Brad Campbell
Pierre Ossman wrote: Brad Campbell wrote: [EMAIL PROTECTED]:/sys/block/mmcblk0$ ls -laR .: total 0 drwxr-xr-x 6 root root0 2007-02-11 23:29 . drwxr-xr-x 13 root root0 2007-02-11 23:27 .. -r--r--r-- 1 root root 4096 2007-02-11 23:28 dev lrwxrwxrwx 1 root root0 2007-02-11 23:27 devi

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

2007-02-12 Thread Ben Dooks
This is a new release of the SM501 MFD driver. This driver handles the core function of the chip, including the clock, power control and allocation of resources for drivers. It also exports a series of platform devices for the function drivers to attach to. This patch supports both platform and P

Re: somebody dropped a (warning) bomb

2007-02-12 Thread Sergei Organov
Linus Torvalds <[EMAIL PROTECTED]> writes: > On Fri, 9 Feb 2007, Sergei Organov wrote: >> >> As far as I can read the C99 standard, the "char", "signed char", and >> "unsigned char", are all different types: > > Indeed. Search for "pseudo-unsigned", and you'll see more. There are > actually cases

Re: [Linux-fbdev-devel] [PATCH] mfd: SM501 core driver

2007-02-12 Thread Ben Dooks
5BOn Thu, Feb 08, 2007 at 05:56:02PM +, James Simmons wrote: > > > Do you have a new patch? New mfd driver posted to the linux-kernel list. Will post new sm501 driver (fixed cursor code) and option for byte-swap on systems with big-endian cpu and little-endian pci -- Ben ([EMAIL PROTECTED]

RE: AHCI - remove probing of ata2

2007-02-12 Thread Paul Rolland
Hello Tejun, > You have a Maxtor connected to that port, right? That's caused by Waoh, you are using crystal ball ? :) You are right, this is a Maxtor disk, 250 MB. If you want more details about this disk, I can send you a complete details. > firmware bug. Future kernels will consider that c

Re: Why can't I build a running Kernel?

2007-02-12 Thread Jiri Slaby
albcamus napsal(a): 2007/2/9, Jiri Slaby <[EMAIL PROTECTED]>: Reg Clemens napsal(a): > Why can't I build a running Kernel? > I have in the past, but since some time in the 2.6.19 series, > I have got the following series of errors. > Same thing now with 2.6.20. > > I build with: > > make xco

Found trivial error in linux-headers-2.6.17-11-generic/include/linux/tty.h

2007-02-12 Thread Milan Markovic
I upgraded the kernel on my Kubuntu 6.10 to 2.6.17-11-generic and had a lot of trouble compiling my softmodem driver. Apparently it was, among others, because of a mistake in kernel-headers this is what I've found in tty.h $ cat -n /usr/src/linux-headers-2.6.17-11-generic/include/linux/tty.h | gr

Re: Recent and not-so problems with tifm_sd driver

2007-02-12 Thread Alex Dubov
--- Pierre Ossman <[EMAIL PROTECTED]> wrote: > Alex Dubov wrote: > > > > It just occurred to me that my synopsis of the problem was utterly lame. > > Here, the correct description: > > When the card is pulled out, I mark the host as "ejected" (so it fast-fails > > all the requests), > > sleep a

Re: Sata_via problems in a Vintage2-AE1

2007-02-12 Thread Leopold Palomo-Avellaneda
A Dilluns 12 Febrer 2007 10:11, Jean Delvare va escriure: > Le Samedi 10 Février 2007 15:45, Tejun Heo a écrit : > > [cc'ing Alan and Jean, Hi!] > > > > Leopold Palomo Avellaneda wrote: > > > A Divendres 09 Febrer 2007 18:13, Leopold Palomo Avellaneda va escriure: > > >> A Divendres 09 Febrer 2007

[RFC PATCH] add filesystem subtype support

2007-02-12 Thread Miklos Szeredi
There's a slight problem with filesystem type representation in fuse based filesystems. >From the kernel's view, there are just two filesystem types: fuse and fuseblk. From the user's view there are lots of different filesystem types. The user is not even much concerned if the filesystem is fuse

[PATCH 0/1][RFC] prepare_write positive return value V(2)

2007-02-12 Thread Dmitriy Monakhov
Changes from ver(1) - __page_symlink(): In order to be on a safe side add explicit zeroing content before fail (just in case). -do_lo_send_aops(): If prepare_write can't handle total size of bytes requested from loop_dev it is safer to fail. - pipe_to_f

[PATCH 1/1][RFC] EXT34 retry loop issue V(2)

2007-02-12 Thread Dmitriy Monakhov
Patch depends on : "[PATCH 0/1][RFC] prepare_write positive return value V(2)" This patch solve ext3/4 retry loop issue. Issue description: What we can do if block_prepare_write fail inside ext3_prepare_write ? a) Stop transaction and do retry if possible, but what happend if reboot comes af

[PATCH 0/7] containers (V7): Generic Process Containers

2007-02-12 Thread menage
-- This is an update to my multi-hierarchy multi-subsystem generic process containers patch. Changes since V6 (22nd December) include: - updated to 2.6.20 - added more details about multiple hierarchy support in the documentation - reduced the per-task memory overhead to one pointer (previous

[PATCH 4/7] containers (V7): Simple CPU accounting container subsystem

2007-02-12 Thread menage
This demonstrates how to use the generic container subsystem for a simple resource tracker that counts the total CPU time used by all processes in a container, during the time that they're members of the container. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- include/linux/cpu_acct.h | 1

[PATCH 5/7] containers (V7): Resource Groups over generic containers

2007-02-12 Thread menage
This patch provides the RG core and numtasks controller as container subsystems, intended as an example of how to implement a more complex resource control system over generic process containers. The changes to the core involve primarily removing the group management, task membership and configfs s

[PATCH 7/7] containers (V7): Container interface to nsproxy subsystem

2007-02-12 Thread menage
When a task enters a new namespace via a clone() or unshare(), a new container is created and the task moves into it. Developed by Serge Hallyn <[EMAIL PROTECTED]>, adapted by Paul Menage <[EMAIL PROTECTED]> --- include/linux/nsproxy.h |6 ++ init/Kconfig|9 +++ kernel/Makefil

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

2007-02-12 Thread menage
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 beancounter context in interrupts. C

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

2007-02-12 Thread menage
This patch creates a generic process container system based on (and parallel top) the cpusets code. At a coarse level it was created by copying kernel/cpuset.c, doing s/cpuset/container/g, and stripping out any code that was cpuset-specific rather than applicable to any process container subsystem

Re: [PATCH 0/7] containers (V7): Generic Process Containers

2007-02-12 Thread Paul Jackson
> - temporarily removed the "release agent" support. ouch > ... it can be re-added ... via a kernel thread that periodically polls > containers ... double ouch. You'll have a rough time selling me on the idea that some kernel thread should be waking up every few seconds, grabbing system-wide l

Re: [PATCH 0/7] containers (V7): Generic Process Containers

2007-02-12 Thread Paul Menage
On 2/12/07, Paul Jackson <[EMAIL PROTECTED]> wrote: You'll have a rough time selling me on the idea that some kernel thread should be waking up every few seconds, grabbing system-wide locks, on a big honkin NUMA box, for the few times per hour, or less, that a cpuset is abandoned. I think it c

Re: [PATCH 0/7] containers (V7): Generic Process Containers

2007-02-12 Thread Paul Jackson
Paul M, responding to Paul J: > I think it could be made smarter than that, e.g. have a workqueue task > that's only woken when a refcount does actually reach zero. (I think > that waking a workqueue task is something that can be done without too > much worry about locks) > > > > > Can you explain

Re: Re : [PATCH] Compressed ia32 ELF file generation for loading by Gujin 1/3

2007-02-12 Thread Eric W. Biederman
Etienne Lorrain <[EMAIL PROTECTED]> writes: > --- "Eric W. Biederman" wrote: >> So I really don't care if we move whole real mode section into a note >> or if we just put a pointer to it into a note. What is important is >> that we use a note to find it. > > Well, we can advertise by a note the

[PATCH] Remove "#include " from semaphore headers.

2007-02-12 Thread Robert P. J. Day
Remove all inclusions of "linux/rwsem.h" from the standard semaphore header files, since anyone who needs R/W semaphores should be including that header file directly. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- it *seems* fairly obvious that the numerous include/asm-*/semaphore

Re: NAK new drivers without proper power management?

2007-02-12 Thread Gerhard Mack
On Sun, 11 Feb 2007, Willy Tarreau wrote: > On Sun, Feb 11, 2007 at 09:37:06AM +1100, Nigel Cunningham wrote: > > On Sat, 2007-02-10 at 23:20 +0100, Rafael J. Wysocki wrote: > > Many people also have Linux on their notebooks, but as a dual-boot. You > read the word ? "dual-boot". It means that th

Re: 2.6.20 "IRQ handler type mismatch for IRQ 4"

2007-02-12 Thread Alan
> [ 23.783913] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ > sharing enabled > [ 23.787063] pnp: Device 00:0c activated. > [ 23.787420] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A So the PnP layers put a device on IRQ 4, which is sensible > [ 37.516000] eth1: orinoco_cs

Re: Recent and not-so problems with tifm_sd driver - one more

2007-02-12 Thread Andreas Steinmetz
Brad Campbell wrote: > Alex, it's still hit and miss getting this card detected. I had to > insert/remove the card over 10 times with random driver load/unloads > until it created the device entries.. And for me it's still worse, no matter what I try with 2.6.20: speedy:~ # find /sys/devices | gr

Post-boot PCI device detection

2007-02-12 Thread Andrea Galbusera
Hi all, I work on a custom board and I have a PCI realated question. Please redirect me to a more suitable list if you find the following off-topic. On my board I have a powerpc and an fpga that I need to configure at boot: once this is accomplished, the fpga implements a PCI device. At moment I

Re: [PATCH x86 for review II] [26/39] i386: fix 32-bit ioctls on x64_32

2007-02-12 Thread Giuliano Procida
This is a nicer version of the MTRR compatibilty ioctl patch, compiles smaller and also tested. Signed-off-by: Giuliano Procida <[EMAIL PROTECTED]> --- linux-source-2.6.19.1.orig/arch/i386/kernel/cpu/mtrr/if.c 2006-12-11 19:32:53.0 + +++ linux-source-2.6.19.1/arch/i386/kernel/cpu/m

Re: 2.6.20 "IRQ handler type mismatch for IRQ 4"

2007-02-12 Thread Florian Schmidt
On Monday 12 February 2007, Alan wrote: > > [ 23.783913] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ > > sharing enabled > > [ 23.787063] pnp: Device 00:0c activated. > > [ 23.787420] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > > So the PnP layers put a device on IRQ 4, whi

[PATCH] lockdep: debug_locks check after check_chain_key

2007-02-12 Thread Jarek Poplawski
In __lock_acquire check_chain_key can turn off debug_locks, so check is needed to assure proper return code. Signed-off-by: Jarek Poplawski <[EMAIL PROTECTED]> --- diff -Nurp linux-2.6.20-git7-/kernel/lockdep.c linux-2.6.20-git7/kernel/lockdep.c --- linux-2.6.20-git7-/kernel/lockdep.c 2007-02-1

Re: [PATCH 2.6.20] sound/pci/ca0106: add device attribute to ca0106 devices

2007-02-12 Thread Takashi Iwai
At Fri, 9 Feb 2007 17:52:11 +0100, Wouter Paesen wrote: > > > The ca0106 driver does not install a reference to the pci > device in it's __devinit function. This will result in a > missing "device" attribute on the sound devices associated with > this card, which makes hal/libhal ignore the ca

Re: Recent and not-so problems with tifm_sd driver

2007-02-12 Thread Pierre Ossman
Alex Dubov wrote: > I removed that line altogether (it does not really needed as mmc host will > not be accessed > anymore). The problem is more elaborate. Here, the card fails, > mmc_host_remove is called without > sleep beforehand, and "after remove" message is printed immediately after it. >

Re: NAK new drivers without proper power management?

2007-02-12 Thread Tino Keitel
On Sun, Feb 11, 2007 at 07:46:36 +0100, Willy Tarreau wrote: [...] > Many people also have Linux on their notebooks, but as a dual-boot. You > read the word ? "dual-boot". It means that they cleanly shutdown their > system every time they don't use it anymore, and they won't know what > OS they'l

Re: [PATCH 0/7] RFC: Cell SPE logos

2007-02-12 Thread Geert Uytterhoeven
On Wed, 31 Jan 2007, Geert Uytterhoeven wrote: > I would like to hear your opinions about the patchset below (updated version > compared to yesterday, lkml added to the CC list). > > The Cell Broadband Engine contains a 64-bit PowerPC core with 2 hardware > threads (called PPEs) and 8 Synergistic

Re : [PATCH] Compressed ia32 ELF file generation for loading by Gujin 1/3

2007-02-12 Thread Etienne Lorrain
--- "Eric W. Biederman" <[EMAIL PROTECTED]> wrote: > What I was thinking is that in the not we place the physical address > and length that we load the real mode code at. My assumption being > that we have marked the real mode code __init or the equivalent, > so we always load and just ignore it l

Re: Re : [PATCH] Compressed ia32 ELF file generation for loading by Gujin 1/3

2007-02-12 Thread H. Peter Anvin
Eric W. Biederman wrote: With ELF we get a single file format that works on multiple architectures and for multiple OS-s, with well understood rules. This allows for a broader audience who can review and maintain the code. In addition to the real possibility of multi-architecture or multi-os bo

Re: [PATCH 1/6] AKT - Tunable structure and registration routines

2007-02-12 Thread Andi Kleen
[EMAIL PROTECTED] writes: > + > +This feature aims at making the kernel automatically change the tunables > +values as it sees resources running out. The only reason we have resource limit is to avoid DOS when one resource consumes too much memory. When there is no such danger then there isn't an

Re: What will be in the x86-64/x86 2.6.21 merge

2007-02-12 Thread James Morris
On Sat, 10 Feb 2007, Andi Kleen wrote: > - lguest > * still seems heavily in development. Not sure it will be ready in time. How would you define ready? It's currently useful and stable, and features a lack of enterprise-class complexity. - James -- James Morris <[EMAIL PROTECTED]> - To u

Re: What will be in the x86-64/x86 2.6.21 merge

2007-02-12 Thread Andi Kleen
On Monday 12 February 2007 15:11, James Morris wrote: > On Sat, 10 Feb 2007, Andi Kleen wrote: > > > - lguest > > * still seems heavily in development. Not sure it will be ready in time. > > How would you define ready? Used by at least some people for something, got some real world testing, mo

[PATCH 1/1] Enable fully functional truncate for hugetlbfs

2007-02-12 Thread Dave McCracken
This patch enables the full functionality of truncate for hugetlbfs files. Truncate was originally limited to reducing the file size because page faults were not supported for hugetlbfs. Now that page faults have been implemented it is now possible to fully support truncate. Signed-off-by: Dave

Re: unfixed regression in 2.6.20-rc6 (since 2.6.19)

2007-02-12 Thread Rainer Weikusat
Greg KH <[EMAIL PROTECTED]> writes: > On Tue, Jan 30, 2007 at 06:40:10PM +0100, Rainer Weikusat wrote: >> Greg KH <[EMAIL PROTECTED]> writes: >> >> [...] >> >> > Rainer's problem is a real bug in the USB driver code, which we need to >> > work on getting fixed, > > Ok, here's an updated version,

Re: What will be in the x86-64/x86 2.6.21 merge

2007-02-12 Thread James Morris
On Mon, 12 Feb 2007, Andi Kleen wrote: > > It's currently useful and stable, > > How do you know? I've been working on it for some weeks. At this stage, it's also useful for some simple kernel hacking. - James -- James Morris <[EMAIL PROTECTED]> - To unsubscribe from this list: send the l

Using kernel with modules for nics that cause errors.

2007-02-12 Thread Michael D. Setzer II
Question on using modules with kernel. I've been building the latest git kernels for the G4L project, and the latest kernels have added support for a lot of newer hardware, but currently have two of the nic drivers that cause problems when build into the kernel. DEPCA causes a kernel panic.

Re: NAK new drivers without proper power management?

2007-02-12 Thread Pavel Machek
Hi! > > "If the device requires that, implement .suspend and .resume or at least > > > define .suspend that will always return -ENOSYS (then people will know they > ^^^ > > have

broken CONFIG_COMPAT_VDSO on i386

2007-02-12 Thread Jan Beulich
After updating several machines to 2.6.20, I can't boot anymore the single one of them that supports the NX bit and is configured as a 32-bit system. My understanding is that the VDSO changes in 2.6.20-rc7 were not fully cooked, in that with that config option enabled VDSO_SYM(x) now equals x, me

Re: [patches] [PATCH x86 for review II] [18/39] x86_64: Allow to run a program when a machine check event is detected

2007-02-12 Thread Pavel Machek
On Mon 2007-02-12 09:04:43, Andi Kleen wrote: > On Monday 12 February 2007 08:54, Oliver Neukum wrote: > > Am Montag, 12. Februar 2007 08:38 schrieb Andi Kleen: > > > When a machine check event is detected (including a AMD RevF threshold > > > overflow event) allow to run a "trigger" program. This

Please pull git390 'for-linus' branch

2007-02-12 Thread Martin Schwidefsky
Please pull from 'for-linus' branch of git://git390.osdl.marist.edu/pub/scm/linux-2.6.git for-linus to receive the following updates: arch/s390/kernel/smp.c| 15 +-- drivers/s390/cio/device_id.c |3 ++- drivers/s390/cio/device_ops.c | 32

SATA-performance: Linux vs. FreeBSD

2007-02-12 Thread Martin A. Fink
Dear all, I did some performance tests that made me really wonder: My Hardware: Asus P5LD2 board with Intel i945P chipset, ICH7R southbridge CPU Intel Core 2 Duo E6300 at 1.86 GHz, 2 MB Cache 1 GB RAM My Software: OpenSuSE 10.2 with Linux kernel 2.6.18, x86-64 architecture FreeBSD 6.2 Testdrives

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

2007-02-12 Thread Alexey Dobriyan
> utrace-utrace-tracehook.patch > utrace-utrace-tracehook-ia64.patch > utrace-utrace-tracehook-sparc64.patch > utrace-utrace-tracehook-s390.patch > utrace-utrace-regset.patch > utrace-utrace-regset-ia64.patch > utrace-utrace-regset-sparc64.patch > utrace-utrace-regset-s390.patch > utrace-utrace-cor

Re: [RFC PATCH] add filesystem subtype support

2007-02-12 Thread Szakacsits Szabolcs
Hi, On Mon, 12 Feb 2007, Miklos Szeredi wrote: > There's a slight problem with filesystem type representation in fuse > based filesystems. > > >From the kernel's view, there are just two filesystem types: fuse and > fuseblk. From the user's view there are lots of different filesystem > types.

Re: git backlight tree

2007-02-12 Thread Richard Purdie
On Sat, 2007-02-10 at 23:45 -0500, Len Brown wrote: > On Saturday 10 February 2007 19:33, Richard Purdie wrote: > > As mentioned previously, I've setup a backlight git tree at: > > > > http://git.o-hand.com/?p=linux-rpurdie-backlight;a=shortlog;h=for-mm > > (git://git.o-hand.com/linux-rpurdie-back

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

2007-02-12 Thread Olivier Galibert
On Mon, Feb 12, 2007 at 03:43:14PM +0900, Ian Kent wrote: > On Thu, 2007-02-08 at 11:33 +0900, Ian Kent wrote: > > On Wed, 2007-02-07 at 19:18 +0100, Olivier Galibert wrote: > > > On Thu, Feb 08, 2007 at 03:07:41AM +0900, Ian Kent wrote: > > > > It may be better to update to a later kernel so I don

Re: [RFC PATCH] add filesystem subtype support

2007-02-12 Thread Miklos Szeredi
> > There's a slight problem with filesystem type representation in fuse > > based filesystems. > > > > >From the kernel's view, there are just two filesystem types: fuse and > > fuseblk. From the user's view there are lots of different filesystem > > types. The user is not even much concerned i

[BUG] 2.6.20 Oopses in xfrm_audit_log

2007-02-12 Thread Charles-Edouard Ruault
Hi All, i upgraded to vanilla kernel 2.6.20 and while i was using strongswan 2.8.2 to setup an IPSEC VPN i got the following kernel Ooops. I had successfully established the same tunnel a few times, but key renegotiation caused a problem ( both ends did not renegotiate at the same time so the

Re: Documenting MS_RELATIME

2007-02-12 Thread Dave Jones
On Sun, Feb 11, 2007 at 10:55:04PM -0800, Valerie Henson wrote: > On Sat, Feb 10, 2007 at 07:54:00PM -0500, Dave Jones wrote: > > > > Whilst on the subject of RELATIME, is there any good reason why > > not to make this a default mount option ? > > Ubuntu has been shipping with noatime as th

Re: [PATCH] Ban module license tag string termination trick

2007-02-12 Thread Helge Hafting
David Schwartz wrote: Indeed, but using the provided key is not circumventing. Loading a non-GPL module that uses GPL symbols anyway is prevented, so forcibly loading such a module "the rootkit way" by patching /dev/mem is a circumvention. Catch one of the script kiddies inside the US, and you c

Re: NAK new drivers without proper power management?

2007-02-12 Thread Geert Uytterhoeven
On Mon, 12 Feb 2007, Pavel Machek wrote: > > > "If the device requires that, implement .suspend and .resume or at least > > > > > define .suspend that will always return -ENOSYS (then people will know > > > they > > ^

  1   2   3   4   5   >