Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-09 Thread Jaroslav Kysela
On Thu, 10 Jan 2008, Rene Herman wrote: > On 09-01-08 23:43, Ondrej Zary wrote: > > Jaroslav -- in your role as ISA-PnP maintainer and Bjorn, in yours as > having been foollish enough to touch PnP recently: > > > as hibernation (swsusp) started to work with my CPU, I found that my Turtle > >

Re: [PATCH] track number of mnts writing to superblocks

2008-01-09 Thread Andrew Morton
On Wed, 02 Jan 2008 13:51:10 -0800 Dave Hansen <[EMAIL PROTECTED]> wrote: > > One of the benefits of the r/o bind mount patches is that they > make it explicit when a write to a superblock might occur. > We currently search sb->s_files when remounting rw->ro to look > for writable files. But,

Re: regression: 100% io-wait with 2.6.24-rcX

2008-01-09 Thread Fengguang Wu
On Thu, Jan 10, 2008 at 03:30:46PM +0800, Fengguang Wu wrote: > Joerg, > > Can you try the attached patches? Thank you. > I cannot reliably reproduce the bug yet. Please ignore the first patch and only apply the two debugging patches. They will produce many printk messages. The output of

Re: [PATCH]: ufs: fix symlink creation on ufs2

2008-01-09 Thread Andrew Morton
On Wed, 2 Jan 2008 23:47:04 +0300 Evgeniy Dushistov <[EMAIL PROTECTED]> wrote: > If create symlink on UFS2 filesystem under Linux, > it looks wrong under other OSes, because of max symlink length > field was not initialized properly, and data blocks were not > used to save short symlink names. >

[M68KNOMMU]: use GENERIC_TIME for ColdFire PIT timer

2008-01-09 Thread Greg Ungerer
A first attempt at switching the m68knommu/ColdFire PIT timer to use GENERIC_TIME. Signed-of-by: Greg Ungerer <[EMAIL PROTECTED]> --- arch/m68knommu/platform/5307/pit.c 10 Oct 2007 06:46:56 - 1.11 +++ arch/m68knommu/platform/5307/pit.c 10 Jan 2008 07:17:34 - @@ -3,9 +3,10 @@ /*

Re: [PATCH] ACPI: Add sysfs interface for acpi device wakeup

2008-01-09 Thread Maxim Levitsky
On Thursday, 10 January 2008 00:21:46 Yi Yang wrote: > Subject: ACPI: convert procfs to sysfs for /proc/acpi/wakeup > From: Yi Yang <[EMAIL PROTECTED]> > > /proc/acpi/wakeup is deprecated but it has to exist because > we haven't a sysfs interface to replace it yet, this patch > converts

Re: STT_FUNC for assembler checksum and semaphore ops" in git-x86

2008-01-09 Thread Sam Ravnborg
On Wed, Jan 09, 2008 at 10:57:25PM +0100, Andi Kleen wrote: > > In gitx86: > > commit 692effca950d7c6032e8e2ae785a32383e7af4a3 > Author: John Reiser <[EMAIL PROTECTED]> > Date: Wed Jan 9 13:31:12 2008 +0100 > > STT_FUNC for assembler checksum and semaphore ops > ... > Comments? >

[PATCH] x86: Move get_segment_eip() to step.c

2008-01-09 Thread Harvey Harrison
get_segment_eip has similarities to convert_rip_to_linear(), and is used in a similar context. Move get_segment_eip to step.c to allow easier consolidation. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- Ingo, you may want to fold this into my previous patch: x86: begin fault_{32|64}.c

Re: uml and -regparm=3

2008-01-09 Thread Ingo Molnar
* Miklos Szeredi <[EMAIL PROTECTED]> wrote: > FASTCALL is defined empty in -mm, but UML is not compiled with > -mregparm=3 and so this breaks things (I noticed problems with > rwsem_down_write_failed). > > Tried recompiling UML with -mregparm=3, but that resulted in a strange > failure

Re: regression: 100% io-wait with 2.6.24-rcX

2008-01-09 Thread Fengguang Wu
Joerg, Can you try the attached patches? Thank you. I cannot reliably reproduce the bug yet. Fengguang mm/filemap_xip.c |1 + 1 files changed, 1 insertion(+) Index: linux/mm/filemap_xip.c === --- linux.orig/mm/filemap_xip.c

Re: [PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-09 Thread Simon Horman
[ CCing Ian Campbell who handles much of the maintenance of kexec in Xen ] On Thu, Jan 10, 2008 at 10:08:09AM +0800, Huang, Ying wrote: > On Wed, 2008-01-09 at 20:05 -0500, Vivek Goyal wrote: > > On Wed, Jan 09, 2008 at 10:57:50AM +0800, Huang, Ying wrote: > > > This patch transforms the kexec

[PATCH] x86: Remove ifdef from step.c

2008-01-09 Thread Harvey Harrison
Similar cleanup was done when unifying kprobes_32|64.c and wrmsr() was chosen there over wrmsrl(). Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- Ingo, only chose this direction based on the kprobes.c unification. arch/x86/kernel/step.c |4 1 files changed, 0 insertions(+), 4

[PATCH] ACPI: Add sysfs interface for acpi device wakeup

2008-01-09 Thread Yi Yang
Subject: ACPI: convert procfs to sysfs for /proc/acpi/wakeup From: Yi Yang <[EMAIL PROTECTED]> /proc/acpi/wakeup is deprecated but it has to exist because we haven't a sysfs interface to replace it yet, this patch converts /proc/acpi/wakeup to sysfs interface, under every acpi device sysfs node,

Re: regression: 100% io-wait with 2.6.24-rcX

2008-01-09 Thread Fengguang Wu
On Wed, Jan 09, 2008 at 02:04:29PM +0100, Joerg Platte wrote: > Am Mittwoch, 9. Januar 2008 schrieb Fengguang Wu: > > On Wed, Jan 09, 2008 at 01:22:33PM +0100, Joerg Platte wrote: > > > Am Mittwoch, 9. Januar 2008 schrieb Fengguang Wu: > > > > > > Thank your for the hint with the filesystems! > >

Re: Make the 32 bit Frame Pointer backtracer fall back to traditional

2008-01-09 Thread Ingo Molnar
* Arjan van de Ven <[EMAIL PROTECTED]> wrote: > Subject: Make the 32 bit Frame Pointer backtracer fall back to traditional > From: Arjan van de Ven <[EMAIL PROTECTED]> > > The 32 bit Frame Pointer backtracer code checks if the EBP is valid to > do a backtrace; however currently on a failure it

Re: Fix x86 32 bit FRAME_POINTER chasing code

2008-01-09 Thread Ingo Molnar
* Arjan van de Ven <[EMAIL PROTECTED]> wrote: > +++ linux-2.6.24-rc7/arch/x86/kernel/traps_32.c > @@ -124,7 +124,8 @@ static inline unsigned long print_contex > unsigned long addr; > > addr = frame->return_address; > - ops->address(data, addr); > +

[patch] Add a simple backtrace test module

2008-01-09 Thread Arjan van de Ven
Subject: Add a simple backtrace test module From: Arjan van de Ven <[EMAIL PROTECTED]> During the work on the x86 32 and 64 bit backtrace code I found it useful to have a simple test module to test a process and irq context backtrace. Since the existing backtrace code was buggy, I figure it

Re: Help needed to fix section mismatch warnings

2008-01-09 Thread Randy Dunlap
On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > This is the current list of warnings Sam, Several of these are due to driver variable names not matching the whitelisted names in modpost. I have patches for the ones that I have identified so far. And I have patches for a few of the

Re: [PATCH] serial: speed setup failure reporting

2008-01-09 Thread Andrew Morton
On Thu, 3 Jan 2008 16:55:07 + Alan Cox <[EMAIL PROTECTED]> wrote: > Invalid speeds are forced to 9600. Update the code for this to encode new > style baud rates properly. > > Signed-off-by: Alan Cox <[EMAIL PROTECTED]> > > diff -u --new-file --recursive --exclude-from /usr/src/exclude >

Re: Make the 32 bit Frame Pointer backtracer fall back to traditional

2008-01-09 Thread Harvey Harrison
On Wed, 2008-01-09 at 22:05 -0800, Arjan van de Ven wrote: > Subject: Make the 32 bit Frame Pointer backtracer fall back to traditional > From: Arjan van de Ven <[EMAIL PROTECTED]> > > The 32 bit Frame Pointer backtracer code checks if the EBP is valid > to do a backtrace; however currently on a

Fix x86 32 bit FRAME_POINTER chasing code

2008-01-09 Thread Arjan van de Ven
This patch is simple; I don't know if it's .24 candidate; the bug is pretty bad but not a recent regression, and there is obviously some risk with touching this code. Subject: Fix x86 32 bit FRAME_POINTER chasing code From: Arjan van de Ven <[EMAIL PROTECTED]> The current x86 32 bit

Make the 32 bit Frame Pointer backtracer fall back to traditional

2008-01-09 Thread Arjan van de Ven
Subject: Make the 32 bit Frame Pointer backtracer fall back to traditional From: Arjan van de Ven <[EMAIL PROTECTED]> The 32 bit Frame Pointer backtracer code checks if the EBP is valid to do a backtrace; however currently on a failure it just gives up and prints nothing. That's not very nice;

Re: Top 10 kernel oopses for the week ending January 5th, 2008

2008-01-09 Thread Al Viro
On Thu, Jan 10, 2008 at 03:13:48PM +1100, Neil Brown wrote: > > What guarantees that it doesn't happen before we get to callback? AFAICS, > > nothing whatsoever... > > Yes, that's bad isn't it :-) > > I think I should be using sysfs_schedule_callback here. That makes the > required 'get' and

Re: sata_nv does not function in kernel > 2.6.20.21

2008-01-09 Thread Jeff Garzik
Matthew Hall wrote: On Wed, Jan 09, 2008 at 11:40:47PM -0500, Jeff Garzik wrote: Error -16 is EBUSY, which causes the driver load to fail due to the "Unable to reserve mem region" message. This means that the sata_nv driver needed to use PCI BAR 6, but was unable to for some reason. Given

Re: [PATCH 5/6] syslets: add generic syslets infrastructure

2008-01-09 Thread Jeff Garzik
So my radical ultra tired rant o the week... Rather than adding sys_indirect and syslets as is, * admit that this is beginning to look like a new ABI. explore the freedoms that that avenue opens... * (even more radical) I wonder what a tiny, SANE register-based bytecode interface might

Re: sata_nv does not function in kernel > 2.6.20.21

2008-01-09 Thread Matthew Hall
On Wed, Jan 09, 2008 at 11:40:47PM -0500, Jeff Garzik wrote: > Error -16 is EBUSY, which causes the driver load to fail due to the "Unable > to reserve mem region" message. > > This means that the sata_nv driver needed to use PCI BAR 6, but was unable > to for some reason. Given that sata_nv

Re: [PATCH] Change paride driver to use unlocked_ioctl instead of ioctl

2008-01-09 Thread Nikanth Karthikesan
On Wed, 2008-01-09 at 16:56 +, Alan Cox wrote: > On Wed, 9 Jan 2008 14:26:26 +0100 (CET) > Jiri Kosina <[EMAIL PROTECTED]> wrote: > > > On Wed, 9 Jan 2008, Matthew Wilcox wrote: > > > > > > default: > > > > printk("%s: Unimplemented ioctl 0x%x\n", tape->name, > > > >

Re: [PATCH][RFC] Simple tamper-proof device filesystem.

2008-01-09 Thread Tetsuo Handa
Hello. Indan Zupancic wrote: > Good point, but I assume they all have at least a directory granularity, and > then > /dev/ can be static and udev and other can have free reign in e.g. > /dev/dynamic/. > Just use subdirs for the dynamic stuff and this granularity problem is, with > slight

Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl

2008-01-09 Thread Vadim Lobanov
On Wednesday 09 January 2008 04:00:43 pm Alasdair G Kergon wrote: > On Wed, Jan 09, 2008 at 03:31:00PM -0800, Vadim Lobanov wrote: > > From 2.6.23's fs/ioctl.c - do_ioctl(): > > Ah - you're talking about struct file_operations of course; > I was talking about struct block_device_operations. > >

Re: [patch 5/9] unprivileged mounts: allow unprivileged bind mounts

2008-01-09 Thread Serge E. Hallyn
Quoting Miklos Szeredi ([EMAIL PROTECTED]): > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Allow bind mounts to unprivileged users if the following conditions are met: > > - mountpoint is not a symlink > - parent mount is owned by the user > - the number of user mounts is below the maximum

Re: sata_nv does not function in kernel > 2.6.20.21

2008-01-09 Thread Jeff Garzik
Matthew Hall wrote: ACPI: PCI Interrupt Link [LT3D] enabled at IRQ 46 ACPI: PCI Interrupt :80:07.0[A] -> Link [LT3D] -> GSI 46 (level, low) -> IRQ 46 sata_nv :80:07.0: Using ADMA mode PCI: Unable to reserve mem region #6:[EMAIL PROTECTED] for device :80:07.0 ACPI: PCI interrupt for

Re: [patch 00/19] VM pageout scalability improvements

2008-01-09 Thread Mike Snitzer
On Jan 8, 2008 3:59 PM, Rik van Riel <[EMAIL PROTECTED]> wrote: > On large memory systems, the VM can spend way too much time scanning > through pages that it cannot (or should not) evict from memory. Not > only does it use up CPU time, but it also provokes lock contention > and can leave large

Re: sata_nv does not function in kernel > 2.6.20.21

2008-01-09 Thread Matthew Hall
Matthew, On Wed, Jan 09, 2008 at 08:39:45PM -0700, Matthew Wilcox wrote: > On Thu, Jan 10, 2008 at 02:47:33AM +, Matthew Hall wrote: > > I am using the Supermicro H8DCE motherboard. Some (not all) of the SATA > > channels quit working due to some kind of resource conflict when I > > upgrade

Re: [vm] writing to UDF DVD+RW (/dev/sr0) while under memory pressure: box ==> doorstop

2008-01-09 Thread Mike Galbraith
On Wed, 2008-01-09 at 15:01 -0800, Andrew Morton wrote: > So are you saying that the fs throughput is unaltered by this change, > but that the side-effects which your workload has on the overall > machine are lessened? Yes. UDF IO is still a slow trickle, but the box is now fine under VM

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread KAMEZAWA Hiroyuki
On Thu, 10 Jan 2008 08:56:31 +0530 Balbir Singh <[EMAIL PROTECTED]> wrote: > > > The control_type feature is gone. We still have cached page > > > accounting, but we do not allow control of only RSS pages anymore. We > > > need to control both RSS+cached pages. I do not understand your > > >

Re: Top 10 kernel oopses for the week ending January 5th, 2008

2008-01-09 Thread Neil Brown
On Tuesday January 8, [EMAIL PROTECTED] wrote: > > FWIW, I'm going to go through Arjan's collection and post blow-by-blow > analysis of some of those suckers. Tonight, probably... > > Let's take e.g. http://www.kerneloops.org/raw.php?rawid=2618 Thanks for that analysis. ... > > Humm... So we

Re: [RFC PATCH 22/22 -v2] Trace irq disabled critical timings

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > + /* Don't trace irqs off for idle */ > + stop_critical_timings(); > idle(); > + start_critical_timings(); Is there another way to hook into the

Re: 2.6.24-rc5 sysfs pci bridge duplicate symlink

2008-01-09 Thread Greg KH
On Fri, Dec 28, 2007 at 11:50:49PM +, Russell King - ARM Linux wrote: > On Fri, Dec 28, 2007 at 03:03:22PM -0800, Andrew Morton wrote: > > On Fri, 28 Dec 2007 13:11:37 + "Bahadir Balban" <[EMAIL PROTECTED]> > > wrote: > > > > > Hi, > > > > > > On ARM with PCI, I get this error since

Re: Linux 2.6.23.12

2008-01-09 Thread Greg KH
On Wed, Jan 02, 2008 at 01:42:23PM -0700, Bjorn Helgaas wrote: > The patch below was put in 2.6.23.12 as a fix for > http://bugzilla.kernel.org/show_bug.cgi?id=9514. It apparently > does make 9514 go away, but only by coincidence. There are a > couple other ideas about fixing 9514. My proposed

[PATCH] x86_64: move out tick_nohz_stop_sched_tick() call from the loop

2008-01-09 Thread Hiroshi Shimamoto
Hello, tick_nohz_stop_sched_tick() and tick_nohz_restart_sched_tick() pair in cpu_idle() is different from 32-bit version. From: Hiroshi Shimamoto <[EMAIL PROTECTED]> Subject: [PATCH] x86_64: move out tick_nohz_stop_sched_tick() call from the loop Move out tick_nohz_stop_sched_tick() call from

Re: [RFC PATCH 20/22 -v2] Add latency_trace format tor tracer

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > +enum trace_flag_type { > + TRACE_FLAG_IRQS_OFF = 0x01, > + TRACE_FLAG_NEED_RESCHED = 0x02, > + TRACE_FLAG_NEED_RESCHED_DELAYED = 0x04, > + TRACE_FLAG_HARDIRQ = 0x08, > +

Re: sata_nv does not function in kernel > 2.6.20.21

2008-01-09 Thread Matthew Wilcox
On Thu, Jan 10, 2008 at 02:47:33AM +, Matthew Hall wrote: > I am using the Supermicro H8DCE motherboard. Some (not all) of the SATA > channels quit working due to some kind of resource conflict when I > upgrade to any kernel above 2.6.20.xx series, in my case I am running > 2.6.20.21 SMP

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > +cycle_t notrace get_monotonic_cycles(void) > +{ > + cycle_t cycle_now, cycle_delta, cycle_raw, cycle_last; > + > + do { > + /* > +* cycle_raw and cycle_last can change on > +*

Re: [PATCH 6/6] NLM: Add reference counting to lockd

2008-01-09 Thread Neil Brown
On Tuesday January 8, [EMAIL PROTECTED] wrote: > ...and only have lockd exit when the last reference is dropped. > > The problem is this: > > When a lock that a client is blocking on comes free, lockd does this in > nlmsvc_grant_blocked(): > > nlm_async_call(block->b_call,

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread Balbir Singh
* KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> [2008-01-10 11:36:18]: > On Thu, 10 Jan 2008 07:51:33 +0530 > Balbir Singh <[EMAIL PROTECTED]> wrote: > > > > > #define PAGE_CGROUP_FLAG_CACHE (0x1) /* charged as cache */ > > > > #define PAGE_CGROUP_FLAG_ACTIVE (0x2) /* page is active in this > > >

Re: [PATCH 2/2] kprobe: remove preempt_enable/disable from kprobe_handle_fault()

2008-01-09 Thread Masami Hiramatsu
Harvey Harrison wrote: > This patch removes the preempt_disable/enable pair around kprobe_running > which was originally added to avoid the assertion from smp_processor_id > which would be hit an asertion if preemption was enabled. > > Kprobes can not be running if we are preemptible, so test

Re: [PATCH 1/2] kprobes: Introduce kprobe_handle_fault()

2008-01-09 Thread Masami Hiramatsu
Harvey Harrison wrote: > Use a central kprobe_handle_fault() inline in kprobes.h to remove > all of the arch-dependant, practically identical implementations in > avr32, ia64, powerpc, s390, sparc64, and x86. > > avr32 was the only arch without the preempt_disable/enable pair > in its

Re: [PATCH 12/11] sched: rt-group: uid-group interface

2008-01-09 Thread Greg KH
On Wed, Jan 09, 2008 at 12:57:50AM +0100, Ingo Molnar wrote: > > * Greg KH <[EMAIL PROTECTED]> wrote: > > > On Wed, Jan 09, 2008 at 12:35:32AM +0100, Peter Zijlstra wrote: > > > > > > On Tue, 2008-01-08 at 15:31 +0100, Kay Sievers wrote: > > > > On Jan 8, 2008 12:02 PM, Peter Zijlstra <[EMAIL

Re: LRW/XTS + Via Padlock Bug in 2.6.24-rc7?

2008-01-09 Thread Herbert Xu
On Wed, Jan 09, 2008 at 10:55:27PM +, Torben Viets wrote: > > eneral protection fault: [#1] > Modules linked in: xt_TCPMSS xt_tcpmss iptable_mangle ipt_MASQUERADE > xt_tcpudp xt_mark xt_state iptable_nat nf_nat nf_conntrack_ipv4 > iptable_filter ip_tables x_tables pppoe pppox af_packet

Re: AF_UNIX MSG_PEEK bug?

2008-01-09 Thread Brent Casavant
On Thu, 10 Jan 2008, Herbert Xu wrote: > Having said that, I do agree that having TCP and AF_UNIX behave > in the same way is a plus. However, if you really want this to > happen it would help if you had attached a patch :) The following patch appears to fix the problem. However, I would

Re: [RFC PATCH] greatly reduce SLOB external fragmentation

2008-01-09 Thread Matt Mackall
On Thu, 2008-01-10 at 00:43 +0200, Pekka J Enberg wrote: > Hi Matt, > > On Wed, 9 Jan 2008, Matt Mackall wrote: > > I kicked this around for a while, slept on it, and then came up with > > this little hack first thing this morning: > > > > > > slob: split free list by size > > >

Re: uml and -regparm=3

2008-01-09 Thread H. Peter Anvin
Andi Kleen wrote: On Wed, Jan 09, 2008 at 09:14:04PM -0500, Jeff Dike wrote: On Wed, Jan 09, 2008 at 10:50:48PM +0100, Miklos Szeredi wrote: FASTCALL is useless and should not make a difference. It enables regparm on specific functions, but that should not make a difference if it works or not.

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread Rik van Riel
On Thu, 10 Jan 2008 11:28:49 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> wrote: > Hmm, it seems.. > > When a program copies large amount of files, recent_rotated_file increases > rapidly and > > rotate_sum > -- > recent_rotated_anon > > will be very big. > > And %ap will be

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread KAMEZAWA Hiroyuki
On Thu, 10 Jan 2008 07:51:33 +0530 Balbir Singh <[EMAIL PROTECTED]> wrote: > > > #define PAGE_CGROUP_FLAG_CACHE (0x1) /* charged as cache */ > > > #define PAGE_CGROUP_FLAG_ACTIVE (0x2)/* page is active in this > > > cgroup */ > > > +#define PAGE_CGROUP_FLAG_FILE(0x4) /* page is

Re: uml and -regparm=3

2008-01-09 Thread Andi Kleen
On Wed, Jan 09, 2008 at 09:14:04PM -0500, Jeff Dike wrote: > On Wed, Jan 09, 2008 at 10:50:48PM +0100, Miklos Szeredi wrote: > > > FASTCALL is useless and should not make a difference. It enables > > > regparm on specific functions, but that should not make a difference > > > if it works or not. >

Re: Replacement for page fault notifiers?

2008-01-09 Thread Matt Mackall
On Wed, 2008-01-09 at 21:21 -0500, Pavel Roskin wrote: > On Wed, 2008-01-09 at 20:03 -0600, Matt Mackall wrote: > > > That makes it way too easy for drivers of questionable legality to just > > clear that bit. Also, we've got a shortage of page bits, etc. > > If we ever have this problem, the

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread KAMEZAWA Hiroyuki
On Tue, 08 Jan 2008 15:59:44 -0500 Rik van Riel <[EMAIL PROTECTED]> wrote: > + rotate_sum = zone->recent_rotated_file + zone->recent_rotated_anon; > + > + /* Keep a floating average of RECENT references. */ > + if (unlikely(rotate_sum > min(anon, file))) { > +

Re: [PATCH] PROC_FS: get and set the smp affinity of tasks by read-write /proc//smp_affinity

2008-01-09 Thread rae l
On Jan 10, 2008 8:33 AM, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Fri, 4 Jan 2008 15:03:41 +0800 > Denis Cheng <[EMAIL PROTECTED]> wrote: > > > this adds a read-write /proc//smp_affinity entry, > > just like what /proc/irq//smp_affinity does, > > so now we can get and set the affinity of

Re: [patch 05/19] split LRU lists into anon & file sets

2008-01-09 Thread Balbir Singh
* KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> [2008-01-09 13:41:32]: > I like this patch set thank you. > > On Tue, 08 Jan 2008 15:59:44 -0500 > Rik van Riel <[EMAIL PROTECTED]> wrote: > > Index: linux-2.6.24-rc6-mm1/mm/memcontrol.c > >

Re: Replacement for page fault notifiers?

2008-01-09 Thread Pavel Roskin
On Wed, 2008-01-09 at 20:03 -0600, Matt Mackall wrote: > That makes it way too easy for drivers of questionable legality to just > clear that bit. Also, we've got a shortage of page bits, etc. If we ever have this problem, the bit can be changed in the kernel to fool those drivers (I hope the

[PATCH 1/4] Unionfs: merged several printk KERN_CONT together into one pr_debug

2008-01-09 Thread Erez Zadok
CC: Joe Perches <[EMAIL PROTECTED]> Signed-off-by: Erez Zadok <[EMAIL PROTECTED]> --- fs/unionfs/debug.c | 51 +-- 1 files changed, 25 insertions(+), 26 deletions(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 5f1d887..d154c32

[PATCH 4/4] Unionfs: ensure we have lower dentries in d_iput

2008-01-09 Thread Erez Zadok
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]> --- fs/unionfs/dentry.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index d969640..cd15243 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -507,9 +507,10 @@ static

[PATCH 2/4] Unionfs: mmap fixes

2008-01-09 Thread Erez Zadok
Ensure we have lower inodes in prepare/commit_write. Signed-off-by: Erez Zadok <[EMAIL PROTECTED]> --- fs/unionfs/mmap.c | 26 +- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c index a0e654b..ad770ac 100644 ---

[PATCH 3/4] Unionfs: branch-management related locking fixes

2008-01-09 Thread Erez Zadok
Add necessary locking to dentry/inode branch-configuration, so we get consistent values during branch-management actions. In d_revalidate_chain, ->permission, and ->create, also lock parent dentry. Signed-off-by: Erez Zadok <[EMAIL PROTECTED]> --- fs/unionfs/commonfops.c |6 ++

[GIT PULL -mm] 0/4 Unionfs updates/fixes/cleanups

2008-01-09 Thread Erez Zadok
The following is a series of patchsets related to Unionfs. This is the fourth set of patchsets resulting from an lkml review of the entire unionfs code base, in preparation for a merge into mainline. The most significant changes here are a few locking/race bugfix related to branch-management.

Re: uml and -regparm=3

2008-01-09 Thread Jeff Dike
On Wed, Jan 09, 2008 at 10:50:48PM +0100, Miklos Szeredi wrote: > > FASTCALL is useless and should not make a difference. It enables > > regparm on specific functions, but that should not make a difference > > if it works or not. > > __down_write() in include/asm-x86/rwsem.h seems to assume, that

Re: [PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-09 Thread Huang, Ying
On Wed, 2008-01-09 at 20:05 -0500, Vivek Goyal wrote: > On Wed, Jan 09, 2008 at 10:57:50AM +0800, Huang, Ying wrote: > > This patch transforms the kexec page tables setup code from asseumbler > > code to iC code in machine_kexec_prepare. This improves readability and > > reduces code line number.

Re: [PATCH -mm 1/2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-09 Thread Huang, Ying
On Wed, 2008-01-09 at 20:14 -0500, Vivek Goyal wrote: [...] > > > > +static void alloc_page_tables(struct kimage *image) > > +{ > > This is too generic a name. How about something like > arch_alloc_kexec_page_tables() OK, I will change it. > > + image->arch_kimage.pgd = (pgd_t

Re: Replacement for page fault notifiers?

2008-01-09 Thread Matt Mackall
On Wed, 2008-01-09 at 16:42 -0800, Arjan van de Ven wrote: > On Wed, 9 Jan 2008 20:22:54 + > Christoph Hellwig <[EMAIL PROTECTED]> wrote: > > > On Thu, Jan 10, 2008 at 06:58:23AM +1100, Benjamin Herrenschmidt > > wrote: > > > It's a sane thing to do, Christoph, I don't think it's a > > >

Re: [PATCH 0/7] sg_ring: a ring of scatterlist arrays

2008-01-09 Thread Rusty Russell
On Thursday 10 January 2008 09:10:37 James Bottomley wrote: > On Tue, 2008-01-08 at 11:39 +1100, Rusty Russell wrote: > > On Tuesday 08 January 2008 02:48:23 James Bottomley wrote: > > > We're always open to new APIs (or more powerful and expanded old ones). > > > The way we've been doing the

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-09 Thread Rene Herman
On 09-01-08 23:43, Ondrej Zary wrote: Jaroslav -- in your role as ISA-PnP maintainer and Bjorn, in yours as having been foollish enough to touch PnP recently: as hibernation (swsusp) started to work with my CPU, I found that my Turtle Beach Malibu stops working after resume from hibernation.

Re: [PATCH][RFC] fast file mapping for loop

2008-01-09 Thread Nick Piggin
On Wednesday 09 January 2008 19:52, Jens Axboe wrote: > So how does it work? Instead of punting IO to a thread and passing it > through the page cache, we instead attempt to send the IO directly to the > filesystem block that it maps to. You told Christoph that just using direct-IO from kernel

Re: AF_UNIX MSG_PEEK bug?

2008-01-09 Thread Brent Casavant
On Thu, 10 Jan 2008, Herbert Xu wrote: > The POSIX text for MSG_WAITALL actually says that when used in > conjunction with MSG_PEEK it may not return the full data. That's fine. The problem is that the peek operation returns less data than requested even when sufficient data is available on the

Re: [PATCH 5/6] syslets: add generic syslets infrastructure

2008-01-09 Thread Rusty Russell
On Thursday 10 January 2008 09:58:10 Linus Torvalds wrote: > On Thu, 10 Jan 2008, Rusty Russell wrote: > > I'd have to read his original statement, but eventfd doesn't build up > > state, so I think it qualifies. > > How about you guys battle it out by giving an example program usign the >

Re: [PATCH v2] Add DMA engine driver for Freescale MPC85xx processors.

2008-01-09 Thread Dan Williams
On Tue, 2007-10-30 at 02:25 -0700, Zhang Wei wrote: > The driver implements DMA engine API for Freescale MPC85xx DMA > controller, which could be used by devices in the silicon. > The driver supports the Basic mode of Freescale MPC85xx DMA > controller. > The MPC85xx processors supported

Re: [PATCH -mm 1/2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-09 Thread Vivek Goyal
On Wed, Jan 09, 2008 at 10:57:47AM +0800, Huang, Ying wrote: > This patch add an architecture specific struct arch_kimage into struct > kimage. Three pointers to page table pages used by kexec are added to > struct arch_kimage. The page tables pages are dynamically allocated in >

Re: [Bluez-devel] Oops involving RFCOMM and sysfs

2008-01-09 Thread Dave Young
On Wed, Jan 09, 2008 at 06:16:02PM +0900, Tejun Heo wrote: > Hello, > > My laptop and cell finally decided to talk to each other and I could > reproduce the bug here. The attached patch should remove the oops. > > The bug is two folded. I just skimmed through the bluetooth code and am > very

Re: [PATCH][RFC] Simple tamper-proof device filesystem.

2008-01-09 Thread Indan Zupancic
On Thu, January 10, 2008 00:08, Serge E. Hallyn wrote: > These emails again are getting really long, but I think the gist of > Indan's suggestion can be concisely summarized: No worry, I wasn't planning on extending it, I've said what I've to say. Except... > > "To confine process P3 to

Re: [PATCH] libata and starting/stopping ATAPI floppy devices

2008-01-09 Thread Robert Hancock
Tejun Heo wrote: From: Ondrej Zary <[EMAIL PROTECTED]> Prevent libata from starting/stopping non-ATA devices (like ATAPI floppy drives) as they don't seem to like it: sd 1:0:1:0: [sdb] Starting disk ata2.01: configured for PIO2 sd 1:0:1:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08 sd

Re: [PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-09 Thread Vivek Goyal
On Wed, Jan 09, 2008 at 10:57:50AM +0800, Huang, Ying wrote: > This patch transforms the kexec page tables setup code from asseumbler > code to iC code in machine_kexec_prepare. This improves readability and > reduces code line number. > I think this will create issues for Xen. Initially page

Re: Replacement for page fault notifiers?

2008-01-09 Thread Andi Kleen
On Wed, Jan 09, 2008 at 04:55:15PM -0800, Arjan van de Ven wrote: > On Thu, 10 Jan 2008 01:47:16 +0100 > Andi Kleen <[EMAIL PROTECTED]> wrote: > > > Arjan van de Ven <[EMAIL PROTECTED]> writes: > > > > > > I'm btw all in favor of making mmio tracing full fledged kernel > > > infrastructure. This

Re: Replacement for page fault notifiers?

2008-01-09 Thread Benjamin Herrenschmidt
On Wed, 2008-01-09 at 16:55 -0800, Arjan van de Ven wrote: > > That would assume that your mmio area has a struct page. In most > PCs > > the ones in the PCI hole don't > > > > so you also call the function for all traps on pages without struct > page; > that should be extremely rare anyway,

Re: AF_UNIX MSG_PEEK bug?

2008-01-09 Thread Herbert Xu
Brent Casavant <[EMAIL PROTECTED]> wrote: > >> Did you try MSG_WAITALL flag? See "man 2 recv". >> A TCP socket handles data in bytes. >> You cannot complain if the amount received by recv() is smaller than expected >> unless you use MSG_WAITALL flag. > > Yes. It made no difference, as noted in

Re: Replacement for page fault notifiers?

2008-01-09 Thread Benjamin Herrenschmidt
> I'm btw all in favor of making mmio tracing full fledged kernel > infrastructure. > This doesn't mean "notifier" imo; this means a real flag in the struct page, > and then the page fault code can do > > if (page->flags & FLAG_MMIO_TRACED) > mmio_trace(page, regs, whatever..); > >

Re: 2.6.24-rc6-mm1

2008-01-09 Thread FUJITA Tomonori
On Wed, 9 Jan 2008 10:04:42 +0100 Jarek Poplawski <[EMAIL PROTECTED]> wrote: > On Wed, Jan 09, 2008 at 08:57:53AM +0900, FUJITA Tomonori wrote: > ... > > diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c > > new file mode 100644 > > index 000..495575a > > --- /dev/null > > +++

Re: Replacement for page fault notifiers?

2008-01-09 Thread Arjan van de Ven
On Thu, 10 Jan 2008 01:47:16 +0100 Andi Kleen <[EMAIL PROTECTED]> wrote: > Arjan van de Ven <[EMAIL PROTECTED]> writes: > > > > I'm btw all in favor of making mmio tracing full fledged kernel > > infrastructure. This doesn't mean "notifier" imo; this means a real > > flag in the struct page, and

Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-09 Thread Rene Herman
On 10-01-08 01:37, Robert Hancock wrote: David P. Reed wrote: I have a small suggestion in mind that might be helpful in the future: the "motherboard resources" discovered as PNP0C02 devices in their _CRS settings in ACPI during ACPI PnP startup should be reserved (or checked), and any

Re: [PATCH][RFC][BUG] updating the ctime and mtime time stamps in msync()

2008-01-09 Thread Anton Salikhmetov
2008/1/10, Rik van Riel <[EMAIL PROTECTED]>: > On Wed, 09 Jan 2008 16:06:17 -0500 > [EMAIL PROTECTED] wrote: > > On Wed, 09 Jan 2008 15:50:15 EST, Rik van Riel said: > > > > > Could you explain (using short words and simple sentences) what the > > > exact problem is? > > > > It's like this: > > >

[PATCH 2/2] kprobe: remove preempt_enable/disable from kprobe_handle_fault()

2008-01-09 Thread Harvey Harrison
This patch removes the preempt_disable/enable pair around kprobe_running which was originally added to avoid the assertion from smp_processor_id which would be hit an asertion if preemption was enabled. Kprobes can not be running if we are preemptible, so test explicitly for preemption and bail

Re: Replacement for page fault notifiers?

2008-01-09 Thread Andi Kleen
Arjan van de Ven <[EMAIL PROTECTED]> writes: > > I'm btw all in favor of making mmio tracing full fledged kernel > infrastructure. > This doesn't mean "notifier" imo; this means a real flag in the struct page, > and then the page fault code can do > > if (page->flags & FLAG_MMIO_TRACED) >

[PATCH 1/2] kprobes: Introduce kprobe_handle_fault()

2008-01-09 Thread Harvey Harrison
Use a central kprobe_handle_fault() inline in kprobes.h to remove all of the arch-dependant, practically identical implementations in avr32, ia64, powerpc, s390, sparc64, and x86. avr32 was the only arch without the preempt_disable/enable pair in its notify_page_fault implementation. This

Re: Replacement for page fault notifiers?

2008-01-09 Thread Arjan van de Ven
On Wed, 9 Jan 2008 20:22:54 + Christoph Hellwig <[EMAIL PROTECTED]> wrote: > On Thu, Jan 10, 2008 at 06:58:23AM +1100, Benjamin Herrenschmidt > wrote: > > It's a sane thing to do, Christoph, I don't think it's a > > unreasonable request to put the hooks back in. > > As said a few times

Re: [PATCH][RFC][BUG] updating the ctime and mtime time stamps in msync()

2008-01-09 Thread Anton Salikhmetov
2008/1/9, Rik van Riel <[EMAIL PROTECTED]>: > On Mon, 07 Jan 2008 20:54:19 +0300 > Anton Salikhmetov <[EMAIL PROTECTED]> wrote: > > > This program showed that the msync() function had a bug: > > it did not update the st_mtime and st_ctime fields. > > > > The program shows appropriate behavior of

Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-09 Thread Robert Hancock
David P. Reed wrote: Christer Weinigel wrote: Did I miss anyting? Nothing that seems *crucial* going forward for Linux. The fate of "legacy machines" is really important to get right. I have a small suggestion in mind that might be helpful in the future: the "motherboard resources"

Re: [PATCH] PROC_FS: get and set the smp affinity of tasks by read-write /proc//smp_affinity

2008-01-09 Thread Andrew Morton
On Fri, 4 Jan 2008 15:03:41 +0800 Denis Cheng <[EMAIL PROTECTED]> wrote: > this adds a read-write /proc//smp_affinity entry, > just like what /proc/irq//smp_affinity does, > so now we can get and set the affinity of tasks by procfs, > this is especially useful used in shell scripts. > > this

Re: [PATCH 1/1] : hwmon - new chip driver for TI ADS7828 A-D

2008-01-09 Thread Andrew Morton
On Fri, 4 Jan 2008 07:34:39 + Steve Hardy <[EMAIL PROTECTED]> wrote: > Andrew/Jean, > > Sorry for the delay - christmas & getting mutt working delayed my > revised patch. Here is an updated patch against 2.6.24-rc6, which > hopefully addresses all comments made so far. > > Jean - you

RE: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

2008-01-09 Thread Pallipadi, Venkatesh
>-Original Message- >From: Steven Rostedt [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 09, 2008 12:42 PM >To: LKML >Cc: Linus Torvalds; Andrew Morton; Ingo Molnar; Thomas >Gleixner; Brown, Len; Pallipadi, Venkatesh; Adam Belay; Peter >Zijlstra; Andi Kleen >Subject: [PATCH]

Re: [PATCH] updating the ctime and mtime time stamps in msync()

2008-01-09 Thread Anton Salikhmetov
2008/1/9, Peter Staubach <[EMAIL PROTECTED]>: > Anton Salikhmetov wrote: > > From: Anton Salikhmetov <[EMAIL PROTECTED]> > > > > I would like to propose my solution for the bug #2645 from the kernel bug > > tracker: > > > > http://bugzilla.kernel.org/show_bug.cgi?id=2645 > > > > The Open Group

Re: [PATCHv4] kprobes: Introduce kprobe_handle_fault()

2008-01-09 Thread Harvey Harrison
On Thu, 2008-01-10 at 00:16 +0100, Heiko Carstens wrote: > > arch/avr32/mm/fault.c | 21 + > > arch/ia64/mm/fault.c| 24 +--- > > arch/powerpc/mm/fault.c | 25 + > > arch/s390/mm/fault.c| 25

Re: [RFC PATCH 13/22 -v2] handle accurate time keeping over long delays

2008-01-09 Thread Steven Rostedt
On Wed, 9 Jan 2008, john stultz wrote: > > Index: linux-compile-i386.git/kernel/time/timekeeping.c > > === > > --- linux-compile-i386.git.orig/kernel/time/timekeeping.c 2008-01-09 > > 14:07:34.0 -0500 > > +++

  1   2   3   4   5   6   7   8   9   >