Re: [PATCH 00/44 take 2] [UBI] Unsorted Block Images

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 18:34 -0500, Theodore Tso wrote: > Not that my opinion is the only > one you need to pay attention to, but if everyone is telling you that > need to simplify the number of interfaces, you may want to listen > since your code is going to need adequate review if you want to get

Re: [PATCH 1/2] Define FIXED_PORT flag for serial_core

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 14:19:51 +1100 (EST) David Gibson <[EMAIL PROTECTED]> wrote: > At present, the serial core always allows setserial in userspace to > change the port address, irq and base clock of any serial port. That > makes sense for legacy ISA ports, but not for (say) embedded ns16550 >

Re: [PATCH 2/2] Use resource_size_t for serial port IO addresses

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 14:19:51 +1100 (EST) David Gibson <[EMAIL PROTECTED]> wrote: > At present, various parts of the serial code use unsigned long to > define resource addresses. This is a problem, because some 32-bit > platforms have physical addresses larger than 32-bits, and have mmio > serial

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 11:24:10 +0300 (MSK) "Mockern" <[EMAIL PROTECTED]> wrote: > Hello, > > how to limit flip buffer size in tty driver? You don't. See Documentation/tty.txt and throttle/unthrottle Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: irqdesc porting help

2007-02-20 Thread Thomas Gleixner
On Tue, 2007-02-20 at 12:33 +0530, Maximus wrote: > Hi, > Sorry for the late response, attached is the code im trying to port > to linux - 2.6.20. Why does this need to use a kernel thread in the first place ? Usually chained handlers demultiplex the primary interrupt and invoke the

Re: 2.6.20-mm2

2007-02-20 Thread Maciej Rutecki
Feb 20 12:18:35 maciek kernel: [ 1443.641949] BUG: unable to handle kernel NULL pointer dereference at virtual address 003e Feb 20 12:18:35 maciek kernel: [ 1443.641974] printing eip: Feb 20 12:18:35 maciek kernel: [ 1443.641980] c01ede81 Feb 20 12:18:35 maciek kernel: [ 1443.641984] *pde =

Re: [PATCH 12/44 take 2] [UBI] allocation unit implementation

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 13:13 +0200, Pekka Enberg wrote: > NAK. Please drop all of these utterly pointless kmalloc() and > kmem_cache_alloc() wrappers. Will be fixed. -- Best regards, Artem Bityutskiy (Битюцкий Артём) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[patch] Fixes and cleanups for earlyprintk aka boot console.

2007-02-20 Thread Gerd Hoffmann
Hi, The console subsystem already has an idea of a boot console, using the CON_BOOT flag. The implementation has some flaws though. The major problem is that presence of a boot console makes register_console() ignore any other console devices (unless explicitly specified on the kernel command

Re: MediaGX/GeodeGX1 requires X86_OOSTORE.

2007-02-20 Thread takada
From: [EMAIL PROTECTED] (Lennart Sorensen) Subject: Re: MediaGX/GeodeGX1 requires X86_OOSTORE. Date: Mon, 19 Feb 2007 19:02:31 -0500 > On Tue, Feb 20, 2007 at 08:56:39AM +0900, takada wrote: > > /proc/cpuinfo with MediaGXm : : > > flags : fpu tsc msr cx8 cmov mmx cxmmx > >

Re: dirty balancing deadlock

2007-02-20 Thread Chris Mason
On Tue, Feb 20, 2007 at 09:47:11AM +0100, Miklos Szeredi wrote: > > > How about this? > > > > > > Solves the FUSE deadlock, but not the throttle_vm_writeout() one. > > > I'll try to tackle that one as well. > > > > > > If the per-bdi dirty counter goes below 16, balance_dirty_pages() > > >

Re: e2b2rom_init_one(): Unable to register resource

2007-02-20 Thread Cyrill Gorcunov
Btw, Dan did it work on 32-bit compiled kernel? Cyrill - 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

Re: [2.6 patch] kill net/rxrpc/rxrpc_syms.c

2007-02-20 Thread Adrian Bunk
On Tue, Feb 20, 2007 at 10:59:46AM +, David Howells wrote: > Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > } /* end rxrpc_create_call() */ > > +EXPORT_SYMBOL(rxrpc_create_call); > > A blank line between the end of the function and the EXPORT_SYMBOL please. Please discuss this with Andrew

Re: [RFC] [PATCH -mm] file caps: make on-disk capabilities future-proof

2007-02-20 Thread KaiGai Kohei
Hi, Serge. Thanks for the information. I'll update the userspace utilities next weekend. Please wait for a while. Serge E. Hallyn wrote: Stephen Smalley has pointed out that the current file capabilities will eventually pose a problem. As the capability set changes and distributions start

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

2007-02-20 Thread Tejun Heo
Joel Soete wrote: > Ok comparing the content of the original image: > # mount -t iso9660 -o ro -o loop /MultiCd/cd060213.iso /mnt/cd > # find /mnt/cd -type f -exec md5sum {} \; > 37149d4961c0484f2cceb1a1614b253d /mnt/cd/boot.cat > 4ab996554b0e7ade115a3f284b876612 /mnt/cd/boot.msg >

Re: [2.6 patch] make remove_inode_dquot_ref() static

2007-02-20 Thread Jan Kara
On Tue 20-02-07 01:07:38, Adrian Bunk wrote: > remove_inode_dquot_ref() can now become static. ACK. I should have noticed it when acking Christophs patch... > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Jan Kara <[EMAIL PROTECTED]>

Re: 2.6.20-mm2

2007-02-20 Thread Maciej Rutecki
kernel BUG at block/ll_rw_blk.c:2782! invalid opcode: [#1] PREEMPT last sysfs file: /class/net/eth0/address Modules linked in: xt_tcpudp xt_limit xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nfnetlink iptable_filter ip_tables x_tables fuse ppdev lp thermal fan button processor

[PATCH] sata_via: fix resource-managed iomap conversion

2007-02-20 Thread Tejun Heo
Conversion to resource-managed iomap was buggy causing init failures on both vt6420 and 6421 - BAR5 wasn't mapped for both controllers while on vt6420 sata_via tried to map BAR0-4 twice. Fix it. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- I thought I have a vt6421 but mine too was a vt6420.

Re: [2.6 patch] kill net/rxrpc/rxrpc_syms.c

2007-02-20 Thread David Howells
Adrian Bunk <[EMAIL PROTECTED]> wrote: > } /* end rxrpc_create_call() */ > +EXPORT_SYMBOL(rxrpc_create_call); A blank line between the end of the function and the EXPORT_SYMBOL please. David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Bernd Petrovitsch
On Mon, 2007-02-19 at 21:19 -0800, v j wrote: [...] > Now it would also be worthwhile to contemplate what EXPORT_SYMBOL_GPL > does to this popularity. I don't know. I am just giving you my The big problem with such discussions (as this) are: It is a law decision which license applies in which

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-20 Thread David Howells
Kawai, Hidehiro <[EMAIL PROTECTED]> wrote: > Core dumping is separated two phases, one is the phase of writing > headers, the other is the phase of writing memory segments. If the > coredump_omit_anon_shared setting is changed between these two phases, > a corrupted core file will be generated

Re: irqdesc porting help

2007-02-20 Thread Komal Shah
On 2/20/07, Komal Shah <[EMAIL PROTECTED]> wrote: Maximus, On 2/20/07, Maximus <[EMAIL PROTECTED]> wrote: > Hi, > Sorry for the late response, attached is the code im trying to port > to linux - 2.6.20. > > Have you checked http://source.mvista.com/git linux-omap-2.6 git tree. Syed Khasim

Re: irqdesc porting help

2007-02-20 Thread Komal Shah
Maximus, On 2/20/07, Maximus <[EMAIL PROTECTED]> wrote: Hi, Sorry for the late response, attached is the code im trying to port to linux - 2.6.20. Have you checked http://source.mvista.com/git linux-omap-2.6 git tree. Syed Khasim has already submitted this OMAP2430 TWL4030 chip core

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Nick Piggin
v j wrote: Now the popularity of Linux is exploding in the embedded space. Nobody talks of VxWorks and OSE anymore. It is all Linux. Perhaps it would be a worthwhile experiment to study this surge in popularity. I am not an expert, but perhaps the reason is "it works so goddamn well and has a

Re: PATCH? net/bridge/br_if.c: fix use after free in port_carrier_check()

2007-02-20 Thread David Howells
Oleg Nesterov <[EMAIL PROTECTED]> wrote: > static void release_nbp(struct kobject *kobj) > { > struct net_bridge_port *p > = container_of(kobj, struct net_bridge_port, kobj); > + > + dev_put(p->dev); Does this need to be done with the mutex held? And does anything

linux-2.6.today: rtc_cmos init oops/panic in rtc_sysfs_remove_device()

2007-02-20 Thread Mike Galbraith
Kernel I captured this from is dirty, but virgin source does exactly the same. gzipped config attached. [ 32.211999] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0 [ 32.227226] BUG: unable to handle kernel NULL pointer dereference at virtual address 0018 [ 32.245198] printing

Re: e2b2rom_init_one(): Unable to register resource

2007-02-20 Thread Cyrill Gorcunov
On Mon, Feb 19, 2007 at 11:16:13PM +0200, Dan Aloni wrote: | Cyrill Gorcunov wrote: | >Hi, Dan | > | >did you try setup forsed 8MB value on window->phys? | > | > | Actually, I tried to force it at 4MB starting at 0xff80 since it | made much sense looking at the e820 map. Or maybe I

Re: 2.6.20-mm2

2007-02-20 Thread Andy Whitcroft
Andrew Morton wrote: > - Judging by the number of times I get asked "is there a git tree for -mm", > nobody is reading the boilerplate. Here it is again: The git tree version of -mm seems to be sick. A fetch of the tag gives you something but it is "significantly" (200k lines of diff) away

Re: [PATCH 0/4] coredump: core dump masking support v3

2007-02-20 Thread Kawai, Hidehiro
Hi, David Howells wrote: > Kawai, Hidehiro <[EMAIL PROTECTED]> wrote: > >>To avoid the above situation we can limit the core file size by >>setrlimit(2) or ulimit(1). But this method can lose important data >>such as stack because core dumping is terminated halfway. >>So I suggest keeping

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-20 Thread Kawai, Hidehiro
Hi, Thank you for your comments. David Howells wrote: >> static int elf_fdpic_dump_segments(struct file *file, struct mm_struct *mm, >>-size_t *size, unsigned long *limit) >>+size_t *size, unsigned long *limit, >>+

Re: x86_64: up to 255 or 256 CPUs?

2007-02-20 Thread Andi Kleen
On Tuesday 20 February 2007 01:42, William Lee Irwin III wrote: > On Tue, Feb 20, 2007 at 01:06:47AM +0100, Adrian Bunk wrote: > > Quoting arch/x86_64/Kconfig: > > <-- snip --> > > ... > > config NR_CPUS > > int "Maximum number of CPUs (2-256)" > > range 2 255 > > ... > > <--

[PATCH] fix handling of SIGCHILD from reaped child

2007-02-20 Thread KAMEZAWA Hiroyuki
SUSv3 says == if SIGCHLD is blocked, if wait() or waitpid() return because the status of a child process is available, any pending SIGCHLD signal shall be cleared unless the status of another child process is available. == This patch tries to implement above functionality (clear SIGCHLD from

Re: [PATCH] [ipv6]: adjust inet6_exit() cleanup sequence against inet6_init()

2007-02-20 Thread David Miller
From: Joe Jin <[EMAIL PROTECTED]> Date: Fri, 9 Feb 2007 17:34:24 +0800 > This patch for adjust inet6_exit() to inverse sequence to inet6_init(). > > At ipv6_init, it first create proc_root/net/dev_snmp6 entry by call > ipv6_misc_proc_init(), then call addrconf_init() to create the corresponding

[PATCH] input/spi: add ads7843 support to ads7846 touchscreen driver

2007-02-20 Thread Nicolas Ferre
Add support for the ads7843 touchscreen controller to the ads7846 driver code. The ads7843 support has now become almost trivial since the last rework. Signed-off-by: Nicolas Ferre <[EMAIL PROTECTED]> --- Index: linux-2.6.20-at91/drivers/input/touchscreen/ads7846.c

Re: [PATCH 2.6.20-rc5 1/1] MM: enhance Linux swap subsystem

2007-02-20 Thread yunfeng zhang
Following arithmetic is based on SwapSpace bitmap management which is discussed in the postscript section of my patch. Two purposes are implemented, one is allocating a group of fake continual swap entries, another is re-allocating swap entries in stage 3 for such as series length is too short.

Re: [RFC: 2.6 patch] remove the broken SUN_AURORA driver

2007-02-20 Thread David Miller
From: Adrian Bunk <[EMAIL PROTECTED]> Date: Tue, 20 Feb 2007 01:07:03 +0100 > The SUN_AURORA driver: > - has been marked as BROKEN for more than two years and > - is still marked as BROKEN. > > Drivers that had been marked as BROKEN for such a long time seem to be > unlikely to be revived in the

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Trent Waddington
On 2/20/07, Trent Waddington <[EMAIL PROTECTED]> wrote: I don't think anyone wants to read that. I guess that was a stupid thing to say. Ok, fine people, Michael is ok with me posting this, so enjoy: http://rtfm.insomnia.org/~qg/chat-with-michael-k-edwards.html There ya go. Trent - To

Re: dirty balancing deadlock

2007-02-20 Thread Miklos Szeredi
> > > > > In general, writepage is supposed to do work without blocking on > > > > > expensive locks that will get pdflush and dirty reclaim stuck in this > > > > > fashion. You'll probably have to take the same approach reiserfs does > > > > > in data=journal mode, which is leaving the page

Re: dirty balancing deadlock

2007-02-20 Thread Miklos Szeredi
> > How about this? > > > > Solves the FUSE deadlock, but not the throttle_vm_writeout() one. > > I'll try to tackle that one as well. > > > > If the per-bdi dirty counter goes below 16, balance_dirty_pages() > > returns. > > > > Does the constant need to tunable? If it's too large, then the

[PATCH] pci: allow multiple calls to pcim_pin_device()

2007-02-20 Thread Tejun Heo
Sanity check in pcim_pin_device() was too restrictive in that it didn't allow multiple calls to the function, which is against the devres philosohpy of fire-and-forget. Track pinned status separately and allow pinning multiple times. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- It was an

Re: GPL vs non-GPL device drivers

2007-02-20 Thread v j
On 2/19/07, Trent Waddington <[EMAIL PROTECTED]> wrote: Just in case anyone cares, after speaking with Michael for a few hours I've found he's not nearly as abrasive as this mailing list banter might suggest. He makes some good arguments once you stop him from spouting conspiracy stuff and,

swapper: page allocation failure (2.6.19.2/x86_64)

2007-02-20 Thread Oskar Liljeblad
This morning I got some oops after heavy disk and network I/O on a linux 2.6.19.2 x86_64 machine (Athlon64 3000+). One of the NICs is a natsemi. Apparently disk read/write operations were affected as some applications would report write/read failure 'Cannot allocate memory'. All oops including

Re: memparse(), simple_strtoul() prototypes...

2007-02-20 Thread Francis Moreau
On 2/19/07, Avi Kivity <[EMAIL PROTECTED]> wrote: Francis Moreau wrote: >> > unsigned long simple_strtoul(const char *cp, char **endp,unsigned >> int base) > > hm, I don't get your point. I understand why we cast 'cp' into a (char > *) but that's not my point. My point is why aren't all function

Re: [PATCH 2.6.20 1/1] fbdev,mm: hecuba/E-Ink fbdev driver

2007-02-20 Thread Geert Uytterhoeven
On Mon, 19 Feb 2007, Jaya Kumar wrote: > On 2/18/07, Paul Mundt <[EMAIL PROTECTED]> wrote: > > Given that, this would have to be something that's dealt with at the > > subsystem level rather than in individual drivers, hence the desire to > > see something like this more generically visible. > >

Re: Fwd: RE: Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793

2007-02-20 Thread Jiri Kosina
On Mon, 19 Feb 2007, Veronique & Vincent wrote: > Hi again Marcel and Jiri, > I've set up the hid-core.c to DEBUG mode... and it literally got pretty > verbose... Vincent, thanks for the output. Is this really the full output? The important part - report descriptor dump - seems to be missing

Accessing file-offset info for fds in /proc?

2007-02-20 Thread Hank Leininger
Is there anything provided by the kernel that would let you see the current offset of an existing filehandle? Sometimes when processing a very large file (grepping a log, bzip2'ing or gpg'ing a file, or whatever), I'd really like to know how far along it is, because I'm impatient. lsof has an -o

Re: [patch] freevxfs: possible null pointer dereference fix

2007-02-20 Thread Christoph Hellwig
On Tue, Feb 20, 2007 at 10:58:08AM +0300, Dmitriy Monakhov wrote: > sb_read may return NULL, so let's explicitly check it. > Signed-off-by: Dmitriy Monakhov <[EMAIL PROTECTED]> Ok. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [patch] freevxfs: possible null pointer dereference fix

2007-02-20 Thread Christoph Hellwig
On Tue, Feb 20, 2007 at 10:58:08AM +0300, Dmitriy Monakhov wrote: sb_read may return NULL, so let's explicitly check it. Signed-off-by: Dmitriy Monakhov [EMAIL PROTECTED] Ok. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: Fwd: RE: Boot time Bluetooth BUG: warning: (value m) at hid-core.c:793

2007-02-20 Thread Jiri Kosina
On Mon, 19 Feb 2007, Veronique Vincent wrote: Hi again Marcel and Jiri, I've set up the hid-core.c to DEBUG mode... and it literally got pretty verbose... Vincent, thanks for the output. Is this really the full output? The important part - report descriptor dump - seems to be missing in

Re: [PATCH 2.6.20 1/1] fbdev,mm: hecuba/E-Ink fbdev driver

2007-02-20 Thread Geert Uytterhoeven
On Mon, 19 Feb 2007, Jaya Kumar wrote: On 2/18/07, Paul Mundt [EMAIL PROTECTED] wrote: Given that, this would have to be something that's dealt with at the subsystem level rather than in individual drivers, hence the desire to see something like this more generically visible. Hi

Re: memparse(), simple_strtoul() prototypes...

2007-02-20 Thread Francis Moreau
On 2/19/07, Avi Kivity [EMAIL PROTECTED] wrote: Francis Moreau wrote: unsigned long simple_strtoul(const char *cp, char **endp,unsigned int base) hm, I don't get your point. I understand why we cast 'cp' into a (char *) but that's not my point. My point is why aren't all function

swapper: page allocation failure (2.6.19.2/x86_64)

2007-02-20 Thread Oskar Liljeblad
This morning I got some oops after heavy disk and network I/O on a linux 2.6.19.2 x86_64 machine (Athlon64 3000+). One of the NICs is a natsemi. Apparently disk read/write operations were affected as some applications would report write/read failure 'Cannot allocate memory'. All oops including

Re: GPL vs non-GPL device drivers

2007-02-20 Thread v j
On 2/19/07, Trent Waddington [EMAIL PROTECTED] wrote: Just in case anyone cares, after speaking with Michael for a few hours I've found he's not nearly as abrasive as this mailing list banter might suggest. He makes some good arguments once you stop him from spouting conspiracy stuff and,

[PATCH] pci: allow multiple calls to pcim_pin_device()

2007-02-20 Thread Tejun Heo
Sanity check in pcim_pin_device() was too restrictive in that it didn't allow multiple calls to the function, which is against the devres philosohpy of fire-and-forget. Track pinned status separately and allow pinning multiple times. Signed-off-by: Tejun Heo [EMAIL PROTECTED] --- It was an

Re: dirty balancing deadlock

2007-02-20 Thread Miklos Szeredi
How about this? Solves the FUSE deadlock, but not the throttle_vm_writeout() one. I'll try to tackle that one as well. If the per-bdi dirty counter goes below 16, balance_dirty_pages() returns. Does the constant need to tunable? If it's too large, then the global threshold

Re: dirty balancing deadlock

2007-02-20 Thread Miklos Szeredi
In general, writepage is supposed to do work without blocking on expensive locks that will get pdflush and dirty reclaim stuck in this fashion. You'll probably have to take the same approach reiserfs does in data=journal mode, which is leaving the page dirty if

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Trent Waddington
On 2/20/07, Trent Waddington [EMAIL PROTECTED] wrote: I don't think anyone wants to read that. I guess that was a stupid thing to say. Ok, fine people, Michael is ok with me posting this, so enjoy: http://rtfm.insomnia.org/~qg/chat-with-michael-k-edwards.html There ya go. Trent - To

Re: [PATCH 2.6.20-rc5 1/1] MM: enhance Linux swap subsystem

2007-02-20 Thread yunfeng zhang
Following arithmetic is based on SwapSpace bitmap management which is discussed in the postscript section of my patch. Two purposes are implemented, one is allocating a group of fake continual swap entries, another is re-allocating swap entries in stage 3 for such as series length is too short.

[PATCH] input/spi: add ads7843 support to ads7846 touchscreen driver

2007-02-20 Thread Nicolas Ferre
Add support for the ads7843 touchscreen controller to the ads7846 driver code. The ads7843 support has now become almost trivial since the last rework. Signed-off-by: Nicolas Ferre [EMAIL PROTECTED] --- Index: linux-2.6.20-at91/drivers/input/touchscreen/ads7846.c

[PATCH] fix handling of SIGCHILD from reaped child

2007-02-20 Thread KAMEZAWA Hiroyuki
SUSv3 says == if SIGCHLD is blocked, if wait() or waitpid() return because the status of a child process is available, any pending SIGCHLD signal shall be cleared unless the status of another child process is available. == This patch tries to implement above functionality (clear SIGCHLD from

Re: x86_64: up to 255 or 256 CPUs?

2007-02-20 Thread Andi Kleen
On Tuesday 20 February 2007 01:42, William Lee Irwin III wrote: On Tue, Feb 20, 2007 at 01:06:47AM +0100, Adrian Bunk wrote: Quoting arch/x86_64/Kconfig: -- snip -- ... config NR_CPUS int Maximum number of CPUs (2-256) range 2 255 ... -- snip -- cu Adrian

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-20 Thread Kawai, Hidehiro
Hi, Thank you for your comments. David Howells wrote: static int elf_fdpic_dump_segments(struct file *file, struct mm_struct *mm, -size_t *size, unsigned long *limit) +size_t *size, unsigned long *limit, +

Re: [PATCH 0/4] coredump: core dump masking support v3

2007-02-20 Thread Kawai, Hidehiro
Hi, David Howells wrote: Kawai, Hidehiro [EMAIL PROTECTED] wrote: To avoid the above situation we can limit the core file size by setrlimit(2) or ulimit(1). But this method can lose important data such as stack because core dumping is terminated halfway. So I suggest keeping shared memory

Accessing file-offset info for fds in /proc?

2007-02-20 Thread Hank Leininger
Is there anything provided by the kernel that would let you see the current offset of an existing filehandle? Sometimes when processing a very large file (grepping a log, bzip2'ing or gpg'ing a file, or whatever), I'd really like to know how far along it is, because I'm impatient. lsof has an -o

Re: [RFC: 2.6 patch] remove the broken SUN_AURORA driver

2007-02-20 Thread David Miller
From: Adrian Bunk [EMAIL PROTECTED] Date: Tue, 20 Feb 2007 01:07:03 +0100 The SUN_AURORA driver: - has been marked as BROKEN for more than two years and - is still marked as BROKEN. Drivers that had been marked as BROKEN for such a long time seem to be unlikely to be revived in the

Re: 2.6.20-mm2

2007-02-20 Thread Andy Whitcroft
Andrew Morton wrote: - Judging by the number of times I get asked is there a git tree for -mm, nobody is reading the boilerplate. Here it is again: The git tree version of -mm seems to be sick. A fetch of the tag gives you something but it is significantly (200k lines of diff) away from

Re: e2b2rom_init_one(): Unable to register resource

2007-02-20 Thread Cyrill Gorcunov
On Mon, Feb 19, 2007 at 11:16:13PM +0200, Dan Aloni wrote: | Cyrill Gorcunov wrote: | Hi, Dan | | did you try setup forsed 8MB value on window-phys? | | | Actually, I tried to force it at 4MB starting at 0xff80 since it | made much sense looking at the e820 map. Or maybe I misunderstood

linux-2.6.today: rtc_cmos init oops/panic in rtc_sysfs_remove_device()

2007-02-20 Thread Mike Galbraith
Kernel I captured this from is dirty, but virgin source does exactly the same. gzipped config attached. [ 32.211999] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0 [ 32.227226] BUG: unable to handle kernel NULL pointer dereference at virtual address 0018 [ 32.245198] printing

Re: PATCH? net/bridge/br_if.c: fix use after free in port_carrier_check()

2007-02-20 Thread David Howells
Oleg Nesterov [EMAIL PROTECTED] wrote: static void release_nbp(struct kobject *kobj) { struct net_bridge_port *p = container_of(kobj, struct net_bridge_port, kobj); + + dev_put(p-dev); Does this need to be done with the mutex held? And does anything actually pay

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Nick Piggin
v j wrote: Now the popularity of Linux is exploding in the embedded space. Nobody talks of VxWorks and OSE anymore. It is all Linux. Perhaps it would be a worthwhile experiment to study this surge in popularity. I am not an expert, but perhaps the reason is it works so goddamn well and has a

Re: irqdesc porting help

2007-02-20 Thread Komal Shah
Maximus, On 2/20/07, Maximus [EMAIL PROTECTED] wrote: Hi, Sorry for the late response, attached is the code im trying to port to linux - 2.6.20. Have you checked http://source.mvista.com/git linux-omap-2.6 git tree. Syed Khasim has already submitted this OMAP2430 TWL4030 chip core driver

Re: irqdesc porting help

2007-02-20 Thread Komal Shah
On 2/20/07, Komal Shah [EMAIL PROTECTED] wrote: Maximus, On 2/20/07, Maximus [EMAIL PROTECTED] wrote: Hi, Sorry for the late response, attached is the code im trying to port to linux - 2.6.20. Have you checked http://source.mvista.com/git linux-omap-2.6 git tree. Syed Khasim has already

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-20 Thread David Howells
Kawai, Hidehiro [EMAIL PROTECTED] wrote: Core dumping is separated two phases, one is the phase of writing headers, the other is the phase of writing memory segments. If the coredump_omit_anon_shared setting is changed between these two phases, a corrupted core file will be generated because

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Bernd Petrovitsch
On Mon, 2007-02-19 at 21:19 -0800, v j wrote: [...] Now it would also be worthwhile to contemplate what EXPORT_SYMBOL_GPL does to this popularity. I don't know. I am just giving you my The big problem with such discussions (as this) are: It is a law decision which license applies in which

Re: 2.6.20-mm2

2007-02-20 Thread Maciej Rutecki
kernel BUG at block/ll_rw_blk.c:2782! invalid opcode: [#1] PREEMPT last sysfs file: /class/net/eth0/address Modules linked in: xt_tcpudp xt_limit xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nfnetlink iptable_filter ip_tables x_tables fuse ppdev lp thermal fan button processor

Re: [2.6 patch] make remove_inode_dquot_ref() static

2007-02-20 Thread Jan Kara
On Tue 20-02-07 01:07:38, Adrian Bunk wrote: remove_inode_dquot_ref() can now become static. ACK. I should have noticed it when acking Christophs patch... Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Signed-off-by: Jan Kara [EMAIL PROTECTED]

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

2007-02-20 Thread Tejun Heo
Joel Soete wrote: Ok comparing the content of the original image: # mount -t iso9660 -o ro -o loop /MultiCd/cd060213.iso /mnt/cd # find /mnt/cd -type f -exec md5sum {} \; 37149d4961c0484f2cceb1a1614b253d /mnt/cd/boot.cat 4ab996554b0e7ade115a3f284b876612 /mnt/cd/boot.msg

Re: [RFC] [PATCH -mm] file caps: make on-disk capabilities future-proof

2007-02-20 Thread KaiGai Kohei
Hi, Serge. Thanks for the information. I'll update the userspace utilities next weekend. Please wait for a while. Serge E. Hallyn wrote: Stephen Smalley has pointed out that the current file capabilities will eventually pose a problem. As the capability set changes and distributions start

Re: e2b2rom_init_one(): Unable to register resource

2007-02-20 Thread Cyrill Gorcunov
Btw, Dan did it work on 32-bit compiled kernel? Cyrill - 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

Re: dirty balancing deadlock

2007-02-20 Thread Chris Mason
On Tue, Feb 20, 2007 at 09:47:11AM +0100, Miklos Szeredi wrote: How about this? Solves the FUSE deadlock, but not the throttle_vm_writeout() one. I'll try to tackle that one as well. If the per-bdi dirty counter goes below 16, balance_dirty_pages() returns. Does the

[patch] Fixes and cleanups for earlyprintk aka boot console.

2007-02-20 Thread Gerd Hoffmann
Hi, The console subsystem already has an idea of a boot console, using the CON_BOOT flag. The implementation has some flaws though. The major problem is that presence of a boot console makes register_console() ignore any other console devices (unless explicitly specified on the kernel command

Re: 2.6.20-mm2

2007-02-20 Thread Maciej Rutecki
Feb 20 12:18:35 maciek kernel: [ 1443.641949] BUG: unable to handle kernel NULL pointer dereference at virtual address 003e Feb 20 12:18:35 maciek kernel: [ 1443.641974] printing eip: Feb 20 12:18:35 maciek kernel: [ 1443.641980] c01ede81 Feb 20 12:18:35 maciek kernel: [ 1443.641984] *pde =

Re: [PATCH 12/44 take 2] [UBI] allocation unit implementation

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 13:13 +0200, Pekka Enberg wrote: NAK. Please drop all of these utterly pointless kmalloc() and kmem_cache_alloc() wrappers. Will be fixed. -- Best regards, Artem Bityutskiy (Битюцкий Артём) - To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: irqdesc porting help

2007-02-20 Thread Thomas Gleixner
On Tue, 2007-02-20 at 12:33 +0530, Maximus wrote: Hi, Sorry for the late response, attached is the code im trying to port to linux - 2.6.20. Why does this need to use a kernel thread in the first place ? Usually chained handlers demultiplex the primary interrupt and invoke the demultiplexed

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 11:24:10 +0300 (MSK) Mockern [EMAIL PROTECTED] wrote: Hello, how to limit flip buffer size in tty driver? You don't. See Documentation/tty.txt and throttle/unthrottle Alan - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 2/2] Use resource_size_t for serial port IO addresses

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 14:19:51 +1100 (EST) David Gibson [EMAIL PROTECTED] wrote: At present, various parts of the serial code use unsigned long to define resource addresses. This is a problem, because some 32-bit platforms have physical addresses larger than 32-bits, and have mmio serial uarts

Re: [PATCH 1/2] Define FIXED_PORT flag for serial_core

2007-02-20 Thread Alan
On Tue, 20 Feb 2007 14:19:51 +1100 (EST) David Gibson [EMAIL PROTECTED] wrote: At present, the serial core always allows setserial in userspace to change the port address, irq and base clock of any serial port. That makes sense for legacy ISA ports, but not for (say) embedded ns16550

Re: [PATCH 00/44 take 2] [UBI] Unsorted Block Images

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 18:34 -0500, Theodore Tso wrote: Not that my opinion is the only one you need to pay attention to, but if everyone is telling you that need to simplify the number of interfaces, you may want to listen since your code is going to need adequate review if you want to get it

Re: BACKLIGHT_CLASS_DEVICE=y, SYSFS=n compile error

2007-02-20 Thread Richard Purdie
On Tue, 2007-02-20 at 01:08 +0100, Adrian Bunk wrote: CONFIG_BACKLIGHT_CLASS_DEVICE=y, CONFIG_SYSFS=n results int he following compile error: ... LD .tmp_vmlinux1 drivers/built-in.o: In function `nvidia_bl_exit': (.text+0x27d01): undefined reference to `backlight_device_unregister'

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Mockern
Thank you Alan for your respond, Could you help me with a problem which I have with my tty driver, please? It does not work with Linux cat operation (but there are no problems to write, read with select from user space application!). regards, Andy On Tue, 20 Feb 2007 11:24:10 +0300

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-20 Thread Robin Holt
On Tue, Feb 20, 2007 at 10:58:17AM +, David Howells wrote: Kawai, Hidehiro [EMAIL PROTECTED] wrote: Actually, I don't think the locking is that hard or that complex. int do_coredump(long signr, int exit_code, struct pt_regs * regs) { setup vars

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Arjan van de Ven
On Tue, 2007-02-20 at 15:50 +0300, Mockern wrote: Thank you Alan for your respond, Could you help me with a problem which I have with my tty driver, please? I suspect Alan would be able to help you a whole lot better if you actually included the full source code of your driver... - To

Re: [PATCH] nfs: fix congestion control -v4

2007-02-20 Thread Peter Zijlstra
On Fri, 2007-01-26 at 00:51 -0800, Andrew Morton wrote: On Fri, 26 Jan 2007 09:03:37 +0100 Peter Zijlstra [EMAIL PROTECTED] wrote: On Thu, 2007-01-25 at 22:04 -0800, Andrew Morton wrote: On Thu, 25 Jan 2007 21:31:43 -0800 (PST) Christoph Lameter [EMAIL PROTECTED] wrote: On Thu,

Re: [PATCH 07/44 take 2] [UBI] misc unit header

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 11:00 +, Christoph Hellwig wrote: It's not clear the assertion is all that useful, but if you must have it, why not do the check as an inline (with the assertion normally turned off), and then call out to kmemdup()? Agreement to all of the above. And _please_

Re: [PATCH 05/44 take 2] [UBI] internal common header

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 10:54 +, Christoph Hellwig wrote: On Sat, Feb 17, 2007 at 06:54:49PM +0200, Artem Bityutskiy wrote: +#ifndef __UBI_UBI_H__ +#define __UBI_UBI_H__ + +#include linux/mtd/ubi.h + +/* Version of this UBI implementation */ +#define UBI_VERSION 1 We shouldn't

[GIT PULL] Backlight updates

2007-02-20 Thread Richard Purdie
Hi Linus, Could you please pull from: git://git.o-hand.com/linux-rpurdie-backlight for-linus which: * Adds myself as backlight maintainer (I've been involved with it since its creation, just never officially) * Resolves the locking nightmare backlight usage was turning into * Fixes

Re: [PATCH 06/44 take 2] [UBI] startup code

2007-02-20 Thread Artem Bityutskiy
On Mon, 2007-02-19 at 10:59 +, Christoph Hellwig wrote: On Sat, Feb 17, 2007 at 06:54:54PM +0200, Artem Bityutskiy wrote: +/* UBI headers must take 64 bytes. The below is a hacky way to ensure this */ +static int __ubi_check_ec_hdr_size[(UBI_EC_HDR_SIZE == 64) - 1] +__attribute__

Re: [PATCH 03/44 take 2] [UBI] user-space API header

2007-02-20 Thread Artem Bityutskiy
On Sat, 2007-02-17 at 22:27 +0100, Arnd Bergmann wrote: On Saturday 17 February 2007 17:54, Artem Bityutskiy wrote: +struct ubi_mkvol_req { + int32_t vol_id; + int32_t alignment; + int64_t bytes; + int8_t vol_type; + int8_t padding[9]; + int16_t

Re: [KJ][PATCH] is_power_of_2 in fat

2007-02-20 Thread OGAWA Hirofumi
Vignesh Babu BM [EMAIL PROTECTED] writes: Replacing (n (n-1)) in the context of power of 2 checks with is_power_of_2 Signed-off-by: vignesh babu [EMAIL PROTECTED] Acked-by: OGAWA Hirofumi [EMAIL PROTECTED] Thanks. --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index a9e4688..8437190

Re: [RFC] [PATCH -mm] file caps: make on-disk capabilities future-proof

2007-02-20 Thread Serge E. Hallyn
Quoting KaiGai Kohei ([EMAIL PROTECTED]): Hi, Serge. Thanks for the information. I'll update the userspace utilities next weekend. Ok - so this change does make sense to you? Upping _LINUX_CAPABILITY_VERSION seems drastic, but anyone who's already been using the current patch would end up

Re: [PATCH 03/44 take 2] [UBI] user-space API header

2007-02-20 Thread Arnd Bergmann
On Tuesday 20 February 2007 14:07, Artem Bityutskiy wrote: This structure is not suitable for an ioctl call, because it has incompatible layout between 32 and 64 bit processes. The easiest fix for this would be to change the 'name' field to an array instead of a pointer. Will be fixed

<    1   2   3   4   5   6   7   8   9   >