[PATCH 1/1] Input: add sensable phantom driver

2007-03-07 Thread Jiri Slaby
add sensable phantom driver Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]> --- commit bb9798e15d86ada19f4d15e31124dc240df78899 tree 06d0ac31976d92128b4e43b4d009810292bdf7a0 parent 551535195b52a4d02b476bbbdf5ca613b8e1afa2 author Jiri Slaby <[EMAIL PROTECTED]> Wed, 07 Mar 2007 12:29:27 +0100 committ

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Peter Zijlstra
On Wed, 2007-03-07 at 12:00 +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 11:47:42AM +0100, Peter Zijlstra wrote: > > On Wed, 2007-03-07 at 11:38 +0100, Nick Piggin wrote: > > > > > > > There are real users who want these fast, though. > > > > > > > > Yeah, why don't we have a tree per nonl

connector: Bugfix for cn_call_callback()

2007-03-07 Thread Philipp Reisner
Hi Evgeniy, When one stresses the connector code, with sending many messages from userspace to kernel, one could get in the "unlikely()" part in cn_call_callback(). There a new __cbq gets allocated, and a NULL pointer got assigned to the callback by dereferencing __cbq. This is the bug. The right

Re: [PATCH] Fix get_order()

2007-03-07 Thread David Howells
Linus Torvalds <[EMAIL PROTECTED]> wrote: > > +#define ilog2_up(n) ((n) == 1 ? 0 : ilog2((n) - 1) + 1) > > This is wrong. It uses "n" twice, which makes it unsafe as a macro. Damn. I missed that. > Or it could use a "__builtin_constant_p()" (which gcc defines to not have > side effects) to al

Re: userspace pagecache management tool

2007-03-07 Thread Pádraig Brady
Andrew Morton wrote: > On Tue, 06 Mar 2007 12:10:49 + > P__draig Brady <[EMAIL PROTECTED]> wrote: >> Perhaps one could possibly just evict pages with _mapcount==0 ? > > That is the present fadvise(FADV_DONTNEED) behaviour. Ah right. It doesn't invalidate page_mapped() pages. If that means it

Re: [RFC] Heads up on sys_fallocate()

2007-03-07 Thread Jörn Engel
On Wed, 7 March 2007 09:51:35 +0100, Jan Kara wrote: > > I'll probably first write some userspace fs-reorganizer to find out how > much these changes in layout are able to give you in performance (i.e. > whether it's worth the effort of more complicated kernel online > defragmenter). Have tried

Re: mm snapshot broken-out-2007-03-05-02-22.tar.gz uploaded

2007-03-07 Thread Michal Piotrowski
Michal Piotrowski napisał(a): > Hi, > > [EMAIL PROTECTED] napisał(a): >> The mm snapshot broken-out-2007-03-05-02-22.tar.gz has been uploaded to >> >> >> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-03-05-02-22.tar.gz >> >> It contains the following patches against 2.6.

Re: [patch 8/6] mm: fix cpdfio vs fault race

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 03:34:00AM -0800, Andrew Morton wrote: > On Wed, 7 Mar 2007 03:20:38 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > > === > > > --- linux-2.6.orig/mm/memory.c > > > +++ linux-2.6/mm/memory.c > > > @@

Re: [RFC] [PATCH] Kconfig: enlarge printk buffer size limit

2007-03-07 Thread Artem Bityutskiy
On Fri, 2007-03-02 at 09:11 -0800, Randy Dunlap wrote: > That's simple enough, but you could also just add > log_buf_len=huge_number Yeah, thanks for the tip, although the Kconfig change would not hurt as well. -- Best regards, Artem Bityutskiy (Битюцкий Артём) - To unsubscribe from this

UUID support

2007-03-07 Thread Marcos Dione
first of all, I'm not subscribed to the list, so please CC me the answers. I'm being forced by my distro to use UUDIs to specify the boot device by UUID. the problem is I don't know how to add UUID support to the kernl, that is, I don't know which option I should enable. some mig

Re: [patch 8/6] mm: fix cpdfio vs fault race

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 03:20:38 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > > > === > > --- linux-2.6.orig/mm/memory.c > > +++ linux-2.6/mm/memory.c > > @@ -1676,6 +1676,17 @@ gotten: > > unlock: > > pte_unmap_unlock(page_table

[1/1] eventfs: pseudo fs which allows to bind events to file descriptors.

2007-03-07 Thread Evgeniy Polyakov
Hello. This pseudo fs allows to bind a file descriptor to different kinds of events, which allows to poll them using epoll(). This particular morning hack supports signals only. If idea is supposed to be right, I can cook up POSIX timers support. Signal delivery note. If special flag is set in

Re: [patch 8/6] mm: fix cpdfio vs fault race

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 03:20:38AM -0800, Andrew Morton wrote: > > (cc's reestablished yet again) > > On Wed, 7 Mar 2007 12:04:29 +0100 Nick Piggin <[EMAIL PROTECTED]> wrote: > > > OK, this is how we can plug that hole, leveraging my > > previous patches to lock page over do_no_page. > > > > I'

Re: [patch 8/6] mm: fix cpdfio vs fault race

2007-03-07 Thread Andrew Morton
(cc's reestablished yet again) On Wed, 7 Mar 2007 12:04:29 +0100 Nick Piggin <[EMAIL PROTECTED]> wrote: > OK, this is how we can plug that hole, leveraging my > previous patches to lock page over do_no_page. > > I'm pretty sure the PageLocked invariant is correct. > > > -- > Fix msync data lo

Re: [3/6] 2.6.21-rc2: known regressions

2007-03-07 Thread Jeff Garzik
Adrian Bunk wrote: Subject: NCQ problem with ahci and Hitachi drive References : http://lkml.org/lkml/2007/3/4/178 Submitter : Mathieu Bérard <[EMAIL PROTECTED]> Status : unknown according to the last message in that thread, it sounds like ACPI and interrupt problems Subject:

Re: [PATCH -mm] utrace: nommu fixup support utrace

2007-03-07 Thread David Howells
Roland McGrath <[EMAIL PROTECTED]> wrote: > That old ptrace check seems pretty questionable to me. I think what you > want is for the nommu world's get_user_pages/access_process_vm when called > with force=1,write=1 on a read-only MAP_PRIVATE page to do something more > morally similar to the mmu

Re: [2/6] 2.6.21-rc2: known regressions

2007-03-07 Thread Jeff Garzik
Adrian Bunk wrote: Subject: AT keyboard only works with pci=noacpi References : http://lkml.org/lkml/2007/3/3/68 Submitter : Ash Milsted <[EMAIL PROTECTED]> Status : unknown sounds like a BIOS bug, even though it appears to be a regression? - To unsubscribe from this list: send the l

Re: Xen & VMI?

2007-03-07 Thread Thomas Gleixner
On Wed, 2007-03-07 at 01:17 -0800, Zachary Amsden wrote: > Ingo Molnar wrote: > > For example, VMI_CALL_SetAlarm takes a 'cycles' argument. Cycles is a > > quite bad unit for an API, it should be absolute time, nanosec or > > picosec based instead. We could easily see CPUs that have /no concept o

Re: [RFC] [patch 4/6 -rt] powerpc 2.6.20-rt8: fix a runtime warnings for xmon

2007-03-07 Thread Arnd Bergmann
On Wednesday 07 March 2007, Ingo Molnar wrote: > i'm not an xmon expert, but maybe it might make more sense to first > disable preemption, then interrupts - otherwise you could be preempted > right after having disabled these interrupts (and be scheduled to > another CPU, etc.). What is the diff

Re: [1/6] 2.6.21-rc2: known regressions

2007-03-07 Thread Jeff Garzik
Adrian Bunk wrote: Subject: forcedeth: skb_over_panic References : http://bugzilla.kernel.org/show_bug.cgi?id=8058 Submitter : Albert Hopkins <[EMAIL PROTECTED]> Status : unknown I think this is fixed by the recent forcedeth 3-patch patchset? Can Albert or others confirm?

Re: PROBLEM: 2.6.20-1 not working on ibook g4 (BUG/Oops)

2007-03-07 Thread Benjamin Herrenschmidt
On Wed, 2007-03-07 at 17:53 +1300, Paul Collins wrote: > David Woodhouse <[EMAIL PROTECTED]> writes: > > > On Tue, 2007-03-06 at 14:53 +1300, Paul Collins wrote: > >> In case it's of interest, 2.6.20 has been running fine on my > >> PowerBook5,4. > > > > How much memory? What if you boot with mem

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 11:47:42AM +0100, Peter Zijlstra wrote: > On Wed, 2007-03-07 at 11:38 +0100, Nick Piggin wrote: > > > > > There are real users who want these fast, though. > > > > > > Yeah, why don't we have a tree per nonlinear vma to find these pages? > > > > > > wli mentions shadow pa

Re: [RFC] [patch 4/6 -rt] powerpc 2.6.20-rt8: fix a runtime warnings for xmon

2007-03-07 Thread Tsutomu OWA
At Wed, 07 Mar 2007 11:10:59 +0100, Benjamin Herrenschmidt wrote: > > On Wed, 2007-03-07 at 10:16 +0100, Ingo Molnar wrote: > > * Tsutomu OWA <[EMAIL PROTECTED]> wrote: > > > > > @@ -342,6 +342,7 @@ static int xmon_core(struct pt_regs *reg > > > > > > msr = mfmsr(); > > > mtmsr(msr & ~MSR_

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Peter Zijlstra
On Wed, 2007-03-07 at 11:38 +0100, Nick Piggin wrote: > > > There are real users who want these fast, though. > > > > Yeah, why don't we have a tree per nonlinear vma to find these pages? > > > > wli mentions shadow page tables.. > > We could do something more efficient, but I thought that half

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Benjamin Herrenschmidt
On Wed, 2007-03-07 at 11:17 +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 11:05:48AM +0100, Benjamin Herrenschmidt wrote: > > > > > > NOPAGE_REFAULT is removed. This should be implemented with ->fault, and > > > > no users have hit mainline yet. > > > > > > Did benh agree with that? > > >

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 11:24:45AM +0100, Peter Zijlstra wrote: > On Wed, 2007-03-07 at 11:21 +0100, Nick Piggin wrote: > > On Wed, Mar 07, 2007 at 11:13:20AM +0100, Miklos Szeredi wrote: > > > > *sigh* yes was looking at all that code, thats gonna be darn slow > > > > though, but I'll whip up a pa

Re: [patch 1/8] fix race in clear_page_dirty_for_io()

2007-03-07 Thread Miklos Szeredi
> (cc's reinstated) > > On Wed, 07 Mar 2007 09:09:50 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > There's a race in clear_page_dirty_for_io() that allows a page to have > > cleared PG_dirty, while being mapped read-write into the page table(s). > > I assume you refer to this: > >

[rfc][patch 7/6] mm: merge page_mkwrite

2007-03-07 Thread Nick Piggin
Now that I'm making some progress on merging the basic stuff, I'd like to get opinions about merging page_mkwrite functionality into ->fault(). I still don't see any callers in the tree, but I see no reason why this won't work (or why it isn't better). -- Like everything else in life, page_mkwrit

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Peter Zijlstra
On Wed, 2007-03-07 at 11:21 +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 11:13:20AM +0100, Miklos Szeredi wrote: > > > *sigh* yes was looking at all that code, thats gonna be darn slow > > > though, but I'll whip up a patch. > > > > Well, if it's going to be darn slow, maybe it's better to

Re: [PATCH - RFC] allow setting vm_dirty below 1% for large memory machines

2007-03-07 Thread Leroy van Logchem
> > actually a global dirty_ratio causes interference between devices which > > should otherwise not block each other... > > > > if you set up a "dd if=/dev/zero of=/dev/sdb bs=1M" it shouldn't affect > > write performance on sda -- but it does... because the dd basically > > dirties all of th

Re: Linux v2.6.21-rc3

2007-03-07 Thread Benjamin Herrenschmidt
On Tue, 2007-03-06 at 20:59 -0800, Linus Torvalds wrote: > Linus Torvalds (2): > Revert "[PATCH] LOG2: Alter get_order() so that it can make use of > ilog2() on a constant" > Linux 2.6.21-rc3 Greg, I think we should revert that patch in 2.6.20.x stable serie too as get_order is broke

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 11:13:20AM +0100, Miklos Szeredi wrote: > > *sigh* yes was looking at all that code, thats gonna be darn slow > > though, but I'll whip up a patch. > > Well, if it's going to be darn slow, maybe it's better to go with > mingo's plan on emulating nonlinear vmas with linear o

Re: [patch 1/8] fix race in clear_page_dirty_for_io()

2007-03-07 Thread Andrew Morton
(cc's reinstated) On Wed, 07 Mar 2007 09:09:50 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > There's a race in clear_page_dirty_for_io() that allows a page to have > cleared PG_dirty, while being mapped read-write into the page table(s). I assume you refer to this: * FIXME

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 11:05:48AM +0100, Benjamin Herrenschmidt wrote: > > > > NOPAGE_REFAULT is removed. This should be implemented with ->fault, and > > > no users have hit mainline yet. > > > > Did benh agree with that? > > I won't use NOPAGE_REFAULT, I use NOPFN_REFAULT and that has hit > m

[PATCH 0/2] xfs: only use refcounted pages for I/O

2007-03-07 Thread Christoph Hellwig
Many block drivers (aoe, iscsi) really want refcountable pages in bios, which is what almost everyone send down. XFS unfortunately has a few places where it sends down buffers that may come from kmalloc, which breaks them. The patches in this series fix this issue up. - To unsubscribe from this l

[PATCH 1/2] xfs: use xfs_get_buf_noaddr for iclogs

2007-03-07 Thread Christoph Hellwig
Currently xlog_alloc allocates memory for the iclogs first, then allocates a buffer using xfs_buf_get_empty and finally assigns the memory to the buffer. We don't really want to do this, but rather allocate a buffer with memory attached to it using xfs_buf_get_noaddr. There's a subtile change bec

[PATCH 2/2] xfs: stop using kmalloc in xfs_buf_get_noaddr

2007-03-07 Thread Christoph Hellwig
Currently xfs_buf_get_noaddr allocates memory using kmem_alloc which can end up either in kmalloc or vmalloc and assigns it to the buffer. This patch changes it to allocate individual pages and if there is more then one maps it into kernel virtual space using vmap. This means the minimum buffer al

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Miklos Szeredi
> *sigh* yes was looking at all that code, thats gonna be darn slow > though, but I'll whip up a patch. Well, if it's going to be darn slow, maybe it's better to go with mingo's plan on emulating nonlinear vmas with linear ones. That'll be darn slow as well, but at least it will be much less comp

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Benjamin Herrenschmidt
> > NOPAGE_REFAULT is removed. This should be implemented with ->fault, and > > no users have hit mainline yet. > > Did benh agree with that? I won't use NOPAGE_REFAULT, I use NOPFN_REFAULT and that has hit mainline. I will switch to ->fault when I have time to adapt the code, in the meantime, N

Re: [RFC] [patch 4/6 -rt] powerpc 2.6.20-rt8: fix a runtime warnings for xmon

2007-03-07 Thread Benjamin Herrenschmidt
On Wed, 2007-03-07 at 10:16 +0100, Ingo Molnar wrote: > * Tsutomu OWA <[EMAIL PROTECTED]> wrote: > > > @@ -342,6 +342,7 @@ static int xmon_core(struct pt_regs *reg > > > > msr = mfmsr(); > > mtmsr(msr & ~MSR_EE); /* disable interrupts */ > > + preempt_disable(); > > i'm not an xmon

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Bill Irwin
On Wed, 7 Mar 2007 01:29:03 -0800 Bill Irwin <[EMAIL PROTECTED]> wrote: >> Guess what major real-life application not only uses nonlinear daily >> but would even be very happy to see it extended with non-vma-creating >> protections and more? On Wed, Mar 07, 2007 at 01:39:42AM -0800, Andrew Morton

[GIT PULL] AVR32 fixes

2007-03-07 Thread Haavard Skinnemoen
Hi Linus, Please pull the 'for-linus' branch of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32.git for-linus to receive the following updates. Gary Zambrano (1): avr32: dma-mapping.h Haavard Skinnemoen (5): [AVR32] at32_spi_setup_slaves should be __init [AVR32] show_trace

Re: PROBLEM: Crash on device_shutdown

2007-03-07 Thread Julien RF
Hi, I still have the problem with 2.6.20.1 kernel :( Julien Le jeudi 01 février 2007 17:12, Oleg Verych a écrit : > > From: Julien RF > > Newsgroups: gmane.linux.kernel > > Subject: PROBLEM: Crash on device_shutdown > > Date: Mon, 29 Jan 2007 00:03:49 +0100 > > Archived-At:

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Peter Zijlstra
On Wed, 2007-03-07 at 11:04 +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 10:45:03AM +0100, Nick Piggin wrote: > > On Wed, Mar 07, 2007 at 10:32:22AM +0100, Peter Zijlstra wrote: > > > > > > Can recollect as much, I modelled it after page_referenced() and can't > > > find any VM_NONLINEAR sp

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

2007-03-07 Thread Vivek Goyal
On Tue, Mar 06, 2007 at 07:14:30PM +0100, Bernhard Walle wrote: > Because the command line is increased to 2048 characters after 2.6.21, > it's not possible for boot loaders and userspace tools to determine the length > of the command line the kernel can understand. The benefit of knowing the > len

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 10:45:03AM +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 10:32:22AM +0100, Peter Zijlstra wrote: > > > > Can recollect as much, I modelled it after page_referenced() and can't > > find any VM_NONLINEAR specific code in there either. > > > > Will have a hard look, but

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 10:49:47AM +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 01:44:20AM -0800, Bill Irwin wrote: > > On Wed, Mar 07, 2007 at 10:28:21AM +0100, Nick Piggin wrote: > > > Depending on whether anyone wants it, and what features they want, we > > > could emulate the old syscall

Re: tdfx framebuffer garbles display in 2.6.19.5

2007-03-07 Thread DervishD
Hi Antonino :) * Antonino A. Daplas <[EMAIL PROTECTED]> dixit: > On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote: > > > > If you want me to test other patches, just tell :) > > > > > > Can you change the mdelay to udelay and use higher/lower delay values > > > to see if there's any imp

Re: [PATCH -mm] Blackfin: blackfin i2c driver

2007-03-07 Thread Wu, Bryan
> > Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> > > --- > > drivers/i2c/busses/Kconfig | 47 > > drivers/i2c/busses/i2c-bfin-gpio.c | 98 + > > drivers/i2c/busses/i2c-bfin-twi.c | 589 > > > > I'd prefer i2c-bla

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Bill Irwin
On Wed, Mar 07, 2007 at 10:22:52AM +0100, Ingo Molnar wrote: >>> ok. What do you think about the sys_remap_file_pages_prot() thing that >>> Paolo has done in a nicely split up form - does that complicate things >>> in any fundamental way? That is what is useful to UML. * Bill Irwin <[EMAIL PROTE

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 10:22:52AM +0100, Ingo Molnar wrote: > > * Nick Piggin <[EMAIL PROTECTED]> wrote: > > > After these patches, I don't think there is too much burden. The main > > thing left really is just the objrmap stuff, but that is just handled > > with a minimal 'dumb' algorithm tha

Re: How to distinguish original kernel vs -rt kernel

2007-03-07 Thread Thomas Gleixner
On Wed, 2007-03-07 at 10:38 +0100, Pierre Peiffer wrote: > In fact, I'm facing the problem of HRTIMER_ABS/REL being renamed to > HRTIMER_MODE_ABS/REL with patch -rt. Is there a reason of this ? > > Does anyone have an objection of keeping it the same (let's say > HRTIMER_ABS/REL) in kernel -rt ?

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 01:44:20AM -0800, Bill Irwin wrote: > On Wed, Mar 07, 2007 at 10:28:21AM +0100, Nick Piggin wrote: > > Depending on whether anyone wants it, and what features they want, we > > could emulate the old syscall, and make a new restricted one which is > > much less intrusive. > >

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Bill Irwin
On Wed, Mar 07, 2007 at 10:28:21AM +0100, Nick Piggin wrote: > Depending on whether anyone wants it, and what features they want, we > could emulate the old syscall, and make a new restricted one which is > much less intrusive. > For example, if we can operate only on MAP_ANONYMOUS memory and speci

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 10:32:22AM +0100, Peter Zijlstra wrote: > On Wed, 2007-03-07 at 01:07 -0800, Andrew Morton wrote: > > On Wed, 07 Mar 2007 09:51:57 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > > > > > Dirty page accounting doesn't work either on > > > > > non-linear mappings > > >

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 01:26:38AM -0800, Andrew Morton wrote: > On Wed, 7 Mar 2007 10:18:23 +0100 Nick Piggin <[EMAIL PROTECTED]> wrote: > > > > > msync breakage is bad, but otherwise I don't know that we care about > > dirty page writeout efficiency. > > Well. We made so many changes to suppo

How to distinguish original kernel vs -rt kernel

2007-03-07 Thread Pierre Peiffer
Hi, Supposing I have an external kernel module which I would like to compile against both original kernel and -rt kernel, what is the proper/most elegant way to know which kernel I'm compiling with ? I've only found the EXTRAVERSION define, am I missing a better way ? In fact, I'm facing the

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 01:29:03 -0800 Bill Irwin <[EMAIL PROTECTED]> wrote: > On Wed, 7 Mar 2007 09:27:55 +0100 Ingo Molnar <[EMAIL PROTECTED]> wrote: > >> btw., if we decide that nonlinear isnt worth the continuing maintainance > >> pain, we could internally implement/emulate sys_remap_file_pages()

Re: [PATCH] Fix building kernel under Solaris

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 10:09:40AM -0800, Deepak Saxena wrote: > @@ -16,8 +16,10 @@ > #include > #include > #include > +#ifndef __sun__ > #include > #endif > +#endif So if solaris doesn't need it, why do we need it on Linux? > +/* > + * Solaris does not strsep > + */ > +#ifndef __sun__ >

Re: [PATCH 6/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:48:39PM +0100, Jan Kara wrote: > We have to decrease link-count of the parent directory when removing a > subdirectory. Ok. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at htt

Re: [PATCH 4/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:47:45PM +0100, Jan Kara wrote: > Add a few assertions into udf_discard_prealloc() to check that the file > is sane (mostly helps debugging further patches ;). Ok. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAI

Re: [PATCH 5/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:48:05PM +0100, Jan Kara wrote: > Make UDF work correctly for files larger than 1GB. As no extent can > be longer than (1<<30)-blocksize bytes, we have to create several extents > if a big hole is being created. As a side-effect, we now don't discard > preallocated blocks

Re: [PATCH 1/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:46:38PM +0100, Jan Kara wrote: > Use sector_t and loff_t for file offsets in UDF filesystem. Otherwise > an overflow may occur for long files. Also make inode_bmap() return offset in > the extent in number of blocks instead of number of bytes - for most callers > this i

Re: [PATCH 2/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:46:59PM +0100, Jan Kara wrote: > Introduce a structure extent_position to store a position of an extent and > the corresponding buffer_head in one place. Looks good. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [E

Re: [PATCH 3/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:47:27PM +0100, Jan Kara wrote: > Make UDF use get_bh() instead of directly accessing b_count and use brelse() > instead of udf_release_data() which does just brelse()... Looks good. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-07 Thread Pavel Machek
Hi! > > > > 2) make ACPI take this lock whenever it touches ports not allocated by > > > > itself > > > >and release it on function return. > > > > > > This is costly. > > > > TANSTAAFL. You'll need to take some lock, and if you want port emulation > > or per-device-mutex, you'll have to p

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Ingo Molnar
* Bill Irwin <[EMAIL PROTECTED]> wrote: > * Nick Piggin <[EMAIL PROTECTED]> wrote: > >> After these patches, I don't think there is too much burden. The main > >> thing left really is just the objrmap stuff, but that is just handled > >> with a minimal 'dumb' algorithm that doesn't cost much. >

Re: 2.6.21-rc2-mm2

2007-03-07 Thread Sébastien Dugué
On Wed, 7 Mar 2007 00:49:19 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > On Wed, 7 Mar 2007 09:39:48 +0100 Sébastien Dugué <[EMAIL PROTECTED]> wrote: > > > > > Hi Andrew, > > > > On Tue, 6 Mar 2007 00:44:08 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > > > > Temporarily at >

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Peter Zijlstra
On Wed, 2007-03-07 at 01:07 -0800, Andrew Morton wrote: > On Wed, 07 Mar 2007 09:51:57 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > > > Dirty page accounting doesn't work either on > > > > non-linear mappings > > > > > > It doesn't? Confused - these things don't have anything to do with

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Bill Irwin
* Nick Piggin <[EMAIL PROTECTED]> wrote: >> After these patches, I don't think there is too much burden. The main >> thing left really is just the objrmap stuff, but that is just handled >> with a minimal 'dumb' algorithm that doesn't cost much. On Wed, Mar 07, 2007 at 10:22:52AM +0100, Ingo Mol

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Miklos Szeredi
> > But I think we discovered that those msync changes are bogus anyway > > becuase there is a small race window where pte could be dirtied without > > page being set dirty? > > Dunno, I don't recall that. We dirty the page before the pte... That's the one I just submitted a fix for ;) http:/

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Bill Irwin
On Wed, 7 Mar 2007 09:27:55 +0100 Ingo Molnar <[EMAIL PROTECTED]> wrote: >> btw., if we decide that nonlinear isnt worth the continuing maintainance >> pain, we could internally implement/emulate sys_remap_file_pages() via a >> call to mremap() and essentially deprecate it, without breaking the A

Re: [RFC][PATCH 0/7] Resource controllers based on process containers

2007-03-07 Thread Kirill Korotaev
Pavel Emelianov wrote: > Balbir Singh wrote: > >>Pavel Emelianov wrote: >> >>>This patchset adds RSS, accounting and control and >>>limiting the number of tasks and files within container. >>> >>>Based on top of Paul Menage's container subsystem v7 >>> >>>RSS controller includes per-container RSS

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 10:18:23 +0100 Nick Piggin <[EMAIL PROTECTED]> wrote: > On Wed, Mar 07, 2007 at 01:07:56AM -0800, Andrew Morton wrote: > > On Wed, 07 Mar 2007 09:51:57 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > > > > > Dirty page accounting doesn't work either on > > > > > non-linea

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 09:53:23AM +0100, Ingo Molnar wrote: > > * Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > btw., if we decide that nonlinear isnt worth the continuing > > > maintainance pain, we could internally implement/emulate > > > sys_remap_file_pages() via a call to mremap() and

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Miklos Szeredi
> > > > Look in page_mkclean(). Where does it handle non-linear mappings? > > > > OK, I'd forgotten about that. It won't break dirty memory accounting, > but it'll potentially break dirty memory balancing. > > If we have the wrong page (due to nonlinear), page_check_address() will > fail and

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Ingo Molnar
* Nick Piggin <[EMAIL PROTECTED]> wrote: > After these patches, I don't think there is too much burden. The main > thing left really is just the objrmap stuff, but that is just handled > with a minimal 'dumb' algorithm that doesn't cost much. ok. What do you think about the sys_remap_file_page

2.6.21rc3: usb 2-2: pl2303 converter now attached to ttyUSB44

2007-03-07 Thread Arkadiusz Miskiewicz
2.6.21rc3 from today git, thinkpad z60m, pl2303 usb-rs232 adapter and: [ 84.087080] usb 2-2: new full speed USB device using uhci_hcd and address 3 [ 84.232615] usb 2-2: configuration #1 chosen from 1 choice [ 84.235540] pl2303 2-2:1.0: pl2303 converter detected [ 84.235732] usb 2-2: pl23

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-07 Thread Jean Delvare
Hi Bodo, On Tue, 6 Mar 2007 21:40:19 +0100 (CET), Bodo Eggert wrote: > On Tue, 6 Mar 2007, Jean Delvare wrote: > > On Mon, 05 Mar 2007 14:56:44 +0100, Bodo Eggert wrote: > > > > 2) make ACPI take this lock whenever it touches ports not allocated by > > > itself > > >and release it on functio

Re: [RFC] [patch 4/6 -rt] powerpc 2.6.20-rt8: fix a runtime warnings for xmon

2007-03-07 Thread Ingo Molnar
* Tsutomu OWA <[EMAIL PROTECTED]> wrote: > @@ -342,6 +342,7 @@ static int xmon_core(struct pt_regs *reg > > msr = mfmsr(); > mtmsr(msr & ~MSR_EE); /* disable interrupts */ > + preempt_disable(); i'm not an xmon expert, but maybe it might make more sense to first disable pree

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 01:07:56AM -0800, Andrew Morton wrote: > On Wed, 07 Mar 2007 09:51:57 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > > > Dirty page accounting doesn't work either on > > > > non-linear mappings > > > > > > It doesn't? Confused - these things don't have anything to

Re: Xen & VMI?

2007-03-07 Thread Zachary Amsden
Ingo Molnar wrote: For example, VMI_CALL_SetAlarm takes a 'cycles' argument. Cycles is a quite bad unit for an API, it should be absolute time, nanosec or picosec based instead. We could easily see CPUs that have /no concept of Actually, putting the unit in terms of cycles is more portable

Re: [patch 0/6 -rt] powerpc 2.6.20-rt8: fix boot/runtime errors/warnings for PowerPC(ppc64)

2007-03-07 Thread Ingo Molnar
* Tsutomu OWA <[EMAIL PROTECTED]> wrote: > > Hi Ingo, > > Please consider for inclusion in your rt tree. > > This series of patches fixes boot and runntime errors/warnings for > powerpc (esp. 64 bit). This applies to linux-2.6.20, patch-2.6.20-rt8 > and previous my patch set; > http://o

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 09:59:44AM +0100, Nick Piggin wrote: > Apart from a handful of trivial if (pte_file()) cases throughout mm/, > our maintainance burden basically now amounts to the following patch. > Even the rmap.c change looks bigger than it is because I split out > the nonlinear unmapping

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

2007-03-07 Thread Roland McGrath
> On Sat, Feb 17, 2007 at 06:35:31PM -0800, Roland McGrath wrote: > > > Looking at mainline x86_64 ptrace code I think hole for u_debugreg[4] > > > and [5] is also needed. > > > > It's not. The utrace_regset for the debugregs already has that behavior > > for those two words, so mapping all 8 uare

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Andrew Morton
On Wed, 07 Mar 2007 09:51:57 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > > > Dirty page accounting doesn't work either on > > > non-linear mappings > > > > It doesn't? Confused - these things don't have anything to do with each > > other do they? > > Look in page_mkclean(). Where does it

Re: [ckrm-tech] [PATCH 3/3][RFC] Containers: Pagecache controller reclaim

2007-03-07 Thread Shane
On Tue, 2007-03-06 at 16:43 +0530, Vaidyanathan Srinivasan wrote: > > Please let me know if so see any problem running the patch. The > patches are against 2.6.20 only since dependent patches are at that level. My problem - a bad copy of the patch. It patches o.k. However, it fails to compile vm

Re: [patch 0/7 -rt] powerpc 2.6.20-rt8: fix build breakage for PowerPC(ppc64)

2007-03-07 Thread Ingo Molnar
* Tsutomu OWA <[EMAIL PROTECTED]> wrote: > > Hi Ingo, > > Please apply. > > This series of patches fixes build breakage on arch/powerpc with > realtime preempt patch. This applies on top of linux-2.6.20 and > patch-2.6.20-rt8. thanks, applied - these fixes all look straightforward and

Re: [SLUB 2/3] Large kmalloc pass through. Removal of large general slabs

2007-03-07 Thread Peter Zijlstra
On Tue, 2007-03-06 at 18:35 -0800, Christoph Lameter wrote: > Unlimited kmalloc size and removal of general caches >=4. > > We can directly use the page allocator for all allocations 4K and larger. This > means that no general slabs are necessary and the size of the allocation > passed > to kmall

Re: [RFC] BadRAM still not ready for inclusion ? (was: Re: Free Linux Driver Development!)

2007-03-07 Thread Pavel Machek
Hi! > >What's so hard about submitting a 200 line patch to LKML? > > that's what i was wondering about ;D > it's not the first time, that i see nice features not being submitted to lkml. > > anyway - pavel (thanks btw!) just pointed me to some param "mem=exactmap" : > > >I think functionality i

[PATCH 0/2] KVM: Fixes for 2.6.21-rc3

2007-03-07 Thread Avi Kivity
This patchset contains fixes I plan to submit pre 2.6.21. One improves cleanup on module load failures, while the other fixes guest failures in compat mode (32-bit guest process on a 64-bit guest kernel). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Nick Piggin
On Wed, Mar 07, 2007 at 09:27:55AM +0100, Ingo Molnar wrote: > > * Nick Piggin <[EMAIL PROTECTED]> wrote: > > > Then 4,5,6 is the fault/nonlinear rewrite, take it or leave it. I > > thought you would have liked the patches... > > btw., if we decide that nonlinear isnt worth the continuing maint

[PATCH 2/2] KVM: Fix guest sysenter on vmx

2007-03-07 Thread Avi Kivity
The vmx code currently treats the guest's sysenter support msrs as 32-bit values, which breaks 32-bit compat mode userspace on 64-bit guests. Fix by using the native word width of the machine. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> --- drivers/kvm/vmx.c |8 1 files changed, 4

[PATCH 1/2] KVM: Unset kvm_arch_ops if arch module loading failed

2007-03-07 Thread Avi Kivity
Otherwise, the core module thinks the arch module is loaded, and won't let you reload it after you've fixed the bug. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> --- drivers/kvm/kvm_main.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/kvm/kvm_main.c b/driver

Re: [Cbe-oss-dev] [PATCH 14/22] spufs: use SPU master control to prevent wild SPU execution

2007-03-07 Thread Michael Ellerman
On Mon, 2007-03-05 at 02:02 +0100, Arnd Bergmann wrote: > On Friday 02 March 2007, Michael Ellerman wrote: > > There's also the error case for spu_run_init() which skips the master > > stop. I guess that's ok because we've only set the master control in the > > backing store, and the only way that

Re: [patch] epoll use a single inode ...

2007-03-07 Thread Christoph Hellwig
On Wed, Mar 07, 2007 at 08:16:14AM +0100, Eric Dumazet wrote: > Crazy ideas : (some readers are going to kill me) > > 1) Use the low order bit of f_path.dentry to say : this pointer is not a > pointer to a dentry but the inode pointer (with the low order bit set to 1) > > OR > > 2) file->f_path

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Miklos Szeredi
> > Dirty page accounting doesn't work either on > > non-linear mappings > > It doesn't? Confused - these things don't have anything to do with each > other do they? Look in page_mkclean(). Where does it handle non-linear mappings? Miklos - To unsubscribe from this list: send the line "unsubsc

Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)

2007-03-07 Thread Ingo Molnar
* Andrew Morton <[EMAIL PROTECTED]> wrote: > > btw., if we decide that nonlinear isnt worth the continuing > > maintainance pain, we could internally implement/emulate > > sys_remap_file_pages() via a call to mremap() and essentially > > deprecate it, without breaking the ABI - and remove all

[PATCH] Fix race between proc_get_inode() and remove_proc_entry()

2007-03-07 Thread Alexey Dobriyan
proc_lookup remove_proc_entry === = lock_kernel(); spin_lock(&proc_subdir_lock); [find PDE with refcount 0] spin_unlock(&proc_subdir_lock); spin_lock(&proc_subdir_lock);

Re: [PATCH 2/3] msi: Fixup the msi enable/disable logic

2007-03-07 Thread Michael Ellerman
On Tue, 2007-03-06 at 22:19 -0700, Eric W. Biederman wrote: > Michael Ellerman <[EMAIL PROTECTED]> writes: > > > > > Hi Eric, comments below .. > > > > > > I get the reasoning for disabling MSI before we start writing back the > > config space, but don't we want to re-enable MSI on the way out? >

<    2   3   4   5   6   7   8   >