Re: [IRDA] IRNET: Fix build when TCGETS2 is defined.

2007-11-01 Thread Alan Cox
I'll go split the n_tty_ioctl stuff up and sort this cleanly for the serial ppp and other users as well. Will send a patch tomorrow that makes ldisc catching of TCGET/SET calls unneccessary. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread David Miller
From: Christoph Lameter <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 15:15:39 -0700 (PDT) > After boot is complete we allow the reduction of the size of the per cpu > areas . Lets say we only need 128k per cpu. Then the remaining pages will > be returned to the page allocator. You don't know how mu

Re: [IRDA] IRNET: Fix build when TCGETS2 is defined.

2007-11-01 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 22:30:10 + > NO NO NO NO NO NO NO Glad that got your attention, finally... > Line disciplines have no business touching termios ioctls. Especially > wrongly. > > Nothing anywhere in the kernel but the core ioctl code should be > proc

Re: [IRDA] IRNET: Fix build when TCGETS2 is defined.

2007-11-01 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 22:32:53 + [ [EMAIL PROTECTED] is not my upstream email address, please don't use it for public discussions, thank you ] > I'll go split the n_tty_ioctl stuff up and sort this cleanly for the > serial ppp and other users as well. Wil

[RFC][PATCH 1/3] Suspend: Testing facility

2007-11-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Introduce /sys/power/pm_test_level attribute allowing one to test the suspend core code. Namely, writing a number (1-5) to this file causes the suspend code to work in one of the test modes defined as follows: 5 - test the freezing of processes 4 - tes

[RFC][PATCH 0/3] Suspend and hibernation test facility

2007-11-01 Thread Rafael J. Wysocki
Hi, The following patches add a new testing facility for suspend and hibernation. The first patch adds the possibility to test the suspend (STD) core code without actually suspending, which is useful for tracking problems with drivers etc. The second one modifies the hibernation core so that it

[RFC][PATCH 3/3] PM: Suspend/hibernation debug documentation update

2007-11-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Update the suspend/hibernation debugging and testing documentation to describe the newly introduced testing facilities. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- Documentation/power/basic-pm-debugging.txt | 188 -

[RFC][PATCH 2/3] Hibernation: New testing facility

2007-11-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Make it possible to test the hibernation core code with the help of the /sys/power/pm_test_level attribute introduced for suspend testing in the previous patch. Writing a number (1-5) to this file causes the hibernation code to work in one of the test m

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread Christoph Lameter
On Thu, 1 Nov 2007, David Miller wrote: > From: Christoph Lameter <[EMAIL PROTECTED]> > Date: Thu, 1 Nov 2007 15:15:39 -0700 (PDT) > > > After boot is complete we allow the reduction of the size of the per cpu > > areas . Lets say we only need 128k per cpu. Then the remaining pages will > > be r

Linux 2.6.16.56

2007-11-01 Thread Adrian Bunk
Security fixes since 2.6.16.55: - CVE-2007-3739: Don't allow the stack to grow into hugetlb reserved regions - CVE-2007-4133: hugetlb: fix prio_tree unit Location: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/ git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git RSS f

Re: Quad core CPU detected but shows as single core in 2.6.23.1

2007-11-01 Thread Zurk Tech
i have no clue. thats why im not a kernel dev. :) but its fixed now by a simple gart setting to disabled in bios so its ok. mobo is s3992 tyan h2000 and bios is downloadable on tyans website..2.x i think. -Z- On 11/1/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Thu, 25 Oct 2007 10:50:50 -0400

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread David Miller
From: Christoph Lameter <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 15:48:00 -0700 (PDT) > On Thu, 1 Nov 2007, David Miller wrote: > > > From: Christoph Lameter <[EMAIL PROTECTED]> > > Date: Thu, 1 Nov 2007 15:15:39 -0700 (PDT) > > > > > After boot is complete we allow the reduction of the size of

Re: [PATCH 3/3] debloat aic7xxx and aic79xx drivers

2007-11-01 Thread Matthew Wilcox
On Thu, Nov 01, 2007 at 03:23:28PM -0700, Randy Dunlap wrote: > when attempting to apply to scsi-misc or linus-git or ... ? scsi-misc -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but co

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread Eric Dumazet
Christoph Lameter a écrit : On Thu, 1 Nov 2007, David Miller wrote: From: Christoph Lameter <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 15:15:39 -0700 (PDT) After boot is complete we allow the reduction of the size of the per cpu areas . Lets say we only need 128k per cpu. Then the remaining pa

[PATCH 02/27] make open_namei() return a filp

2007-11-01 Thread Dave Hansen
open_namei() will, in the future, need to take mount write counts over its creation and truncation (via may_open()) operations. It needs to keep these write counts until any potential filp that is created gets __fput()'d. This gets complicated in the error handling and becomes very murky as to h

[PATCH 03/27] kill do_filp_open()

2007-11-01 Thread Dave Hansen
This kills off the almost empty do_filp_open(). The indenting change in do_sys_open() is because we would have gone over our 80 characters otherwise. Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/open.c | 39 ++- 1 file changed,

[PATCH 04/27] kill filp_open()

2007-11-01 Thread Dave Hansen
Replace all callers with open_namei() directly, and move the nameidata stack allocation into open_namei(). Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> --- linux-2.6.git-dave/drivers/usb/gadget/file_storage.c |5 - linux-2.6.git-dave/fs/exec.c |2 linux-2.6.gi

[PATCH 05/27] rename open_namei() to open_pathname()

2007-11-01 Thread Dave Hansen
open_namei() no longer touches namei's. rename it to something more appropriate: open_pathname(). Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> --- linux-2.6.git-dave/drivers/usb/gadget/file_storage.c |4 ++-- linux-2.6.git-dave/fs/exec.c |2 +- linux-2.6.git-d

[PATCH 08/27] r-o-bind-mounts-elevate-mnt-writers-for-callers-of-vfs_mkdir

2007-11-01 Thread Dave Hansen
Pretty self-explanatory. Fits in with the rest of the series. Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/namei.c|5 + linux-2.6.git-dave/fs/nfsd/n

[PATCH 00/27] Read-only bind mounts (-mm resend)

2007-11-01 Thread Dave Hansen
This is against 2.6.24-rc1 + recent git. I've integrated all of the fixes from mm, and included cleanups in a different order. This also includes some extra fput-time checking to ensure that we have balanced mount writer counts. These replace the patches in -mm mostly because the new fixes requi

[PATCH 06/27] r-o-bind-mounts-stub-functions

2007-11-01 Thread Dave Hansen
This patch adds two function mnt_want_write() and mnt_drop_write(). These are used like a lock pair around and fs operations that might cause a write to the filesystem. Before these can become useful, we must first cover each place in the VFS where writes are performed with a want/drop pair. W

[PATCH 09/27] r-o-bind-mounts-elevate-mnt-writers-for-vfs_unlink-callers

2007-11-01 Thread Dave Hansen
Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/namei.c |4 linux-2.6.git-dave/ipc/mqueue.c |5 - 2 files changed, 8 insertions(+), 1 deletion(-) diff -p

[PATCH 10/27] r-o-bind-mounts-elevate-mount-count-for-extended-attributes

2007-11-01 Thread Dave Hansen
This basically audits the callers of xattr_permission(), which calls permission() and can perform writes to the filesystem. Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/n

[PATCH 01/27] do namei_flags calculation inside open_namei()

2007-11-01 Thread Dave Hansen
My end goal here is to make sure all users of may_open() return filps. This will ensure that we properly release mount write counts which were taken for the filp in may_open(). This patch moves the sys_open flags to namei flags calculation into fs/namei.c. We'll shortly be moving the nameidata_

[PATCH 07/27] r-o-bind-mounts-do_rmdir-elevate-write-count

2007-11-01 Thread Dave Hansen
Elevate the write count during the vfs_rmdir() call. Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Acked-by: Serge Hallyn <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/namei.c |5 + 1 file

[PATCH 13/27] r-o-bind-mounts-elevate-write-count-for-do_utimes

2007-11-01 Thread Dave Hansen
Now includes fix for oops seen by akpm. "never let a libc developer write your kernel code" - hch "nor, apparently, a kernel developer" - akpm Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Cc: Chri

[PATCH 14/27] r-o-bind-mounts-elevate-write-count-for-file_update_time

2007-11-01 Thread Dave Hansen
Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/inode.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff -puN fs/inode.c~r-o-bind-mounts-elevate-w

[PATCH 11/27] r-o-bind-mounts-elevate-write-count-during-entire-ncp_ioctl

2007-11-01 Thread Dave Hansen
fs/ncpfs/ioctl.c: In function 'ncp_ioctl_need_write': fs/ncpfs/ioctl.c:852: error: label at end of compound statement Cc: Dave Hansen <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/ncpfs/ioctl.c | 57 +++

[PATCH 15/27] r-o-bind-mounts-elevate-write-count-for-link-and-symlink-calls

2007-11-01 Thread Dave Hansen
Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/namei.c | 10 ++ 1 file changed, 10 insertions(+) diff -puN fs/namei.c~r-o-bind-mounts-elevate-write-count-for-li

[PATCH 12/27] r-o-bind-mounts-elevate-write-count-for-do_sys_utime-and-touch_atime

2007-11-01 Thread Dave Hansen
Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/inode.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff -puN fs/inode.c~r-o-bind-mounts-

[PATCH 16/27] r-o-bind-mounts-elevate-write-count-for-some-ioctls

2007-11-01 Thread Dave Hansen
Some ioctl()s can cause writes to the filesystem. Take these, and make them use mnt_want/drop_write() instead. We need to pass the filp one layer deeper in XFS, but somebody _just_ pulled it out in February because nobody was using it, so I don't feel guilty for adding it back. Signed-off-by:

[PATCH 17/27] r-o-bind-mounts-elevate-write-count-opend-files

2007-11-01 Thread Dave Hansen
This is an old patch combined with a couple other ones I've been working on. It should the issues that Miklos has spotted. -- This is the first really tricky patch in the series. It elevates the writer count on a mount each time a non-special file is opened for write. We used to do this in ma

[PATCH 18/27] r-o-bind-mounts-elevate-write-count-over-calls-to-vfs_rename

2007-11-01 Thread Dave Hansen
This also uses the little helper in the NFS code to make an if() a little bit less ugly. We introduced the helper at the beginning of the series. Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> ---

[PATCH 20/27] r-o-bind-mounts-elevate-writer-count-for-do_sys_truncate

2007-11-01 Thread Dave Hansen
Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Dave Hansen <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- linux-2.6.git-dave/fs/open.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff -puN fs/open.c~r-o-bind-mounts-elevate-wr

[PATCH 21/27] r-o-bind-mounts-make-access-use-mnt-check

2007-11-01 Thread Dave Hansen
It is OK to let access() go without using a mnt_want/drop_write() pair because it doesn't actually do writes to the filesystem, and it is inherently racy anyway. This is a rare case when it is OK to use __mnt_is_readonly() directly. Acked-by: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 19/27] r-o-bind-mounts-elevate-writer-count-for-chown-and-friends

2007-11-01 Thread Dave Hansen
chown/chmod,etc... don't call permission in the same way that the normal "open for write" calls do. They still write to the filesystem, so bump the write count during these operations. This conflicts with the current (~2.6.23-rc7) audit git tree in -mm. wiggle'ing the patch merges it. Signed

[PATCH 23/27] r-o-bind-mounts-sys_mknodat-elevate-write-count-for-vfs_mknod-create

2007-11-01 Thread Dave Hansen
This takes care of all of the direct callers of vfs_mknod(). Since a few of these cases also handle normal file creation as well, this also covers some calls to vfs_create(). So that we don't have to make three mnt_want/drop_write() calls inside of the switch statement, we move some of its logic

Re: [PATCH/RFC] eradicate bashisms in scripts/patch-kernel

2007-11-01 Thread Randy Dunlap
On Thu, 1 Nov 2007 23:16:06 +0100 Andreas Mohr wrote: [add Herbert] > Hi, > > On Thu, Nov 01, 2007 at 08:24:57AM -0700, Randy Dunlap wrote: > > On Thu, 1 Nov 2007 13:11:33 +0100 Andreas Mohr wrote: > > > I'll think a bit more about these couple changed places (and whether > > > this still truly

[PATCH 24/27] r-o-bind-mounts-track-number-of-mount-writers

2007-11-01 Thread Dave Hansen
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has mas

[PATCH 22/27] r-o-bind-mounts-nfs-check-mnt-instead-of-superblock-directly

2007-11-01 Thread Dave Hansen
If we depend on the inodes for writeability, we will not catch the r/o mounts when implemented. This patches uses __mnt_want_write(). It does not guarantee that the mount will stay writeable after the check. But, this is OK for one of the checks because it is just for a printk(). The other tw

[PATCH 26/27] r-o-bind-mounts-honor-r-w-changes-at-do_remount-time

2007-11-01 Thread Dave Hansen
Originally from: Herbert Poetzl <[EMAIL PROTECTED]> This is the core of the read-only bind mount patch set. Note that this does _not_ add a "ro" option directly to the bind mount operation. If you require such a mount, you must first do the bind, then follow it up with a 'mount -o remount,ro'

[PATCH 25/27] r-o-bind-mounts-track-number-of-mount-writers-make-lockdep-happy-with-r-o-bind-mounts

2007-11-01 Thread Dave Hansen
With the r/o bind mount patches, we can have as many spinlocks nested as there are CPUs on the system. Lockdep freaks out after 8. So, create a new lockdep class of locks for the mnt_writer spinlocks, and initialize each of the cpu locks to be in a different class. It should shut up warnings li

[PATCH 27/27] keep track of mnt_writer state of struct file

2007-11-01 Thread Dave Hansen
There have been a few oopses caused by 'struct file's with NULL f_vfsmnts. There was also a set of potentially missed mnt_want_write()s from dentry_open() calls. This patch provides a very simple debugging framework to catch these kinds of bugs. It will WARN_ON() them, but should stop us from h

Re: 2.6.24-rc1: OOPS at acpi_battery_update

2007-11-01 Thread Andrew Morton
On Mon, 29 Oct 2007 11:11:04 +0100 Romano Giannetti <[EMAIL PROTECTED]> wrote: > > Hi, > > sometime on resuming from s2ram my laptop spew the following oops. > Config, dmesg etc are at: > > http://www.dea.icai.upcomillas.es/romano/linux/info/2624rc1_6/ > > [3.475386] Oops: [#1]

Re: [PATCH] backlight dimmer

2007-11-01 Thread jack
Pavel Machek wrote: On Sun 2007-10-28 17:10:53, [EMAIL PROTECTED] wrote: Hello, this patch implements a macbook like backlight dimmer on top of backlight.c. The dimmer is entirely in kernelspace and is suitable for an embedded context in order to avoid the overhead of a daemon controlling t

Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?

2007-11-01 Thread Rick Jones
David Miller wrote: From: Rick Jones <[EMAIL PROTECTED]> I'll try to go pester folks in tcpdump-workers then. The thing to check is "TP_STATUS_CSUMNOTREADY". When using mmap(), it will be provided in the descriptor. When using recvmsg() it will be provided via a PACKET_AUXDATA control messa

Re: 2.6.24-rc1: hangs when logging in to X session

2007-11-01 Thread Andrew Morton
On Mon, 29 Oct 2007 16:13:37 +0100 Marcus Better <[EMAIL PROTECTED]> wrote: > Marcus Better wrote: > > NO_HZ. I will try without it... > > Nope, still the same result. > Restoring the (excessively) trimmed context: > My laptop hangs when I try to log in to X with the current git kernel > (comm

Re: build #337 failed for 2.6.24-rc1-gb1d08ac In function `usbnet_set_settings':

2007-11-01 Thread David Brownell
On Thursday 01 November 2007, Randy Dunlap wrote: > The MII functions aren't available unless NET_ETHERNET=y. > Howver, the MII functions aren't always needed... > > David, any ideas on this one? It's been several years since I looked at this. It used to behave just fine. Something must have ch

Re: irq 21: nobody cared 2.6.24-rc1

2007-11-01 Thread Bongani Hlope
On Thursday 01 November 2007 22:32:38 Andrew Morton wrote: > On Thu, 25 Oct 2007 10:45:36 +0200 > > Bongani Hlope <[EMAIL PROTECTED]> wrote: > > Booting with irqpoll works > > > > ls /proc/irq/21/ (with irqpoll) > > ehci_hcd:usb1/ smp_affinity uhci_hcd:usb2/ uhci_hcd:usb3/ > > uhci_hcd:usb4/ >

Re: [2.6 patch] let USB_USBNET always select MII

2007-11-01 Thread David Brownell
On Thursday 01 November 2007, Adrian Bunk wrote: > All this USB_USBNET_MII trickery is simply not worth it considering how > few code it saves. Depends on what systems you're talking about. Forcing unused code into the kernel is not free, especially if that's made into a design policy and applie

Re: build #337 failed for 2.6.24-rc1-gb1d08ac In function `usbnet_set_settings':

2007-11-01 Thread Adrian Bunk
On Thu, Nov 01, 2007 at 04:32:18PM -0700, David Brownell wrote: > On Thursday 01 November 2007, Randy Dunlap wrote: > > The MII functions aren't available unless NET_ETHERNET=y. The setting of CONFIG_NET_ETHERNET doesn't matter for this bug. > > Howver, the MII functions aren't always needed... >

Re: Strange freezes (seems like SATA related)

2007-11-01 Thread Heikki Orsila
On Mon, Oct 29, 2007 at 09:54:27AM -0700, Max Krasnyansky wrote: > A couple of HP xw9300 machines (dual Opterons) started freezing up. > We're running on 2.6.22.1 on them. Freezes a somewhere weird. > VGA console is alive > (I can switch vts, etc) but everything else is dead (network, etc). I'm t

Re: Strange freezes (seems like SATA related)

2007-11-01 Thread Andrew Morton
On Mon, 29 Oct 2007 09:54:27 -0700 Max Krasnyansky <[EMAIL PROTECTED]> wrote: > A couple of HP xw9300 machines (dual Opterons) started freezing up. > We're running on 2.6.22.1 on them. Freezes a somewhere weird. VGA console is > alive > (I can switch vts, etc) but everything else is dead (network

Re: [patch] PID namespace design bug, workaround

2007-11-01 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pavel Emelyanov wrote: > The "fix" I mention is just returning -EINVAL in case user orders > CLONE_NEWPIDS That is the "fix" you were referring to? I was hoping you have a sketch for a real solution. If nobody can think of a way to fix this PID nam

Re: RFC: Reproducible oops with lockdep on count_matching_names()

2007-11-01 Thread Michael Wu
On Thursday 01 November 2007 15:17:16 Luis R. Rodriguez wrote: > [EMAIL PROTECTED]:~/devel/wireless-2.6$ git-describe > v2.6.24-rc1-146-g2280253 > > So I hit segfault with lockdep on count_matching_names() on the > strcmp() multiple times now. This is reproducible and with different > wireless driv

Re: [patch 1/4] x86: FIFO ticket spinlocks

2007-11-01 Thread Nick Piggin
On Thu, Nov 01, 2007 at 04:01:45PM -0400, Chuck Ebbert wrote: > On 11/01/2007 10:03 AM, Nick Piggin wrote: > > [edited to show the resulting code] > > > + __asm__ __volatile__ ( > > + LOCK_PREFIX "xaddw %w0, %1\n" > > + "1:\t" > > + "cmpb %h0, %b0\n\t" > > +

Re: [PATCH resend] Make the dev_*() family of macros in device.hcomplete

2007-11-01 Thread Andrew Morton
On Tue, 30 Oct 2007 08:40:08 -0700 Greg KH <[EMAIL PROTECTED]> wrote: > On Tue, Oct 30, 2007 at 05:11:24AM -0700, Medve Emilian-EMMEDVE1 wrote: > > Hi Greg K-H, > > > > > > > > +#define dev_info(dev, format, arg...) \ > > > > + dev_printk(KERN_INFO, dev, format, ## arg) > > > > +

Re: 2.6.23 regression: accessing invalid mmap'ed memory from gdb causes unkillable spinning

2007-11-01 Thread Nick Piggin
On Thu, Nov 01, 2007 at 09:08:45AM -0700, Linus Torvalds wrote: > > > On Thu, 1 Nov 2007, Nick Piggin wrote: > > > > Untested patch follows > > Ok, this looks ok. > > Except I would remove the VM_MAYSHARE bit from the test. But we do want to allow forced COW faults for MAP_PRIVATE mappings. g

Re: [build bug, 2.6.24-rc1] CONFIG_VIDEO_DEV=m & CONFIG_VIDEO_SAA7146_VV=y

2007-11-01 Thread Trent Piepho
On Thu, 1 Nov 2007, Ingo Molnar wrote: > > For some time now I've thought the whole ttpci config/makefile setup > > sucked. I've finally gone though and redone it and fixed this problem > > too. > > > > Here is the patch: http://linuxtv.org/hg/v4l-dvb/rev/5320c2571183 > > the drivers/media/dvb/ttp

Re: [v4l-dvb-maintainer] bttv build error (CONFIG_NET=n)

2007-11-01 Thread Trent Piepho
On Thu, 1 Nov 2007, Mauro Carvalho Chehab wrote: > Randy, > > > The only reason the net stuff works, is because CONFIG_NET includes > > > igmp.c, > > > which can't be compiled as a module. That means ip_compute_csum() will > > > get > > > pulled out of the lib.a file for igmp, and thus be presen

Re: [patch 1/4] x86: FIFO ticket spinlocks

2007-11-01 Thread Rik van Riel
On Thu, 1 Nov 2007 09:38:22 -0700 (PDT) Linus Torvalds <[EMAIL PROTECTED]> wrote: > So "unfair" is obviously always bad. Except when it isn't. Larry Woodman managed to wedge the VM into a state where, on his 4x dual core system, only 2 cores (on the same CPU) could get the zone->lru_lock overnigh

Re: Major SATA / EXT3 Issue?

2007-11-01 Thread Norbert Preining
Hi all! (Please Cc) I alsohave to report a very similar incident. Debian/sid, kernel 2.6.22. Doing some hard work for the disk (svn up of two big repositories, some copying of files, etc etc). Suddently the PC froze. Nothing, I had to reboot. But then: - BIOS didn't detect the disks, or better,

Re: [patch] PID namespace design bug, workaround

2007-11-01 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ingo Molnar wrote: > but this problem is still present in the code, and it has been recently > committed into mainline via: > > commit 30e49c263e36341b60b735cbef5ca37912549264 > Author: Pavel Emelyanov <[EMAIL PROTECTED]> > Date: Thu Oct 18

Re: [Lguest] [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt

2007-11-01 Thread Jeremy Fitzhardinge
Zachary Amsden wrote: > I understood it as reordering was permitted, but no re-ordering across > another volatile load, store, or asm was permitted. It doesn't say that, so I wouldn't assume it. Certainly we had problems with the pda code; until I added the _proxy_pda dependency variable, the onl

Re: [patch 1/4] x86: FIFO ticket spinlocks

2007-11-01 Thread Linus Torvalds
On Thu, 1 Nov 2007, Rik van Riel wrote: > > Larry Woodman managed to wedge the VM into a state where, on his > 4x dual core system, only 2 cores (on the same CPU) could get the > zone->lru_lock overnight. The other 6 cores on the system were > just spinning, without being able to get the lock.

Re: 2.6.23 regression: accessing invalid mmap'ed memory from gdb causes unkillable spinning

2007-11-01 Thread Linus Torvalds
On Fri, 2 Nov 2007, Nick Piggin wrote: > > But we do want to allow forced COW faults for MAP_PRIVATE mappings. gdb > uses this for inserting breakpoints (but fortunately, a COW page in a > MAP_PRIVATE mapping is a much more natural thing for the VM). Yes, I phrased that badly. I meant that I'd

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread Christoph Lameter
On Thu, 1 Nov 2007, David Miller wrote: > You cannot put limits of the amount of alloc_percpu() memory available > to clients, please let's proceed with that basic understanding in > mind. We're wasting a ton of time discussing this fundamental issue. There is no point in making absolute demands

Re: [Lguest] [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt

2007-11-01 Thread Zachary Amsden
On Thu, 2007-11-01 at 10:41 -0700, Jeremy Fitzhardinge wrote: > Keir Fraser wrote: > > volatile prevents the asm from being 'moved significantly', according to the > > gcc manual. I take that to mean that reordering is not allowed. > > I understood it as reordering was permitted, but no re-orde

RE: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-11-01 Thread Huang, Ying
>From: Andrew Morton [mailto:[EMAIL PROTECTED] >On Wed, 31 Oct 2007 09:21:41 +0800 >"Huang, Ying" <[EMAIL PROTECTED]> wrote: > >> Can this patchset be merged into mainline kernel? This patchset has been >> in -mm tree from 2.6.23-rc2-mm2 on. Andrew Moton has suggested it to be >> merged into 2.6.24

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread Christoph Lameter
On Fri, 2 Nov 2007, Eric Dumazet wrote: > > Na. Some reasonable upper limit needs to be set. If we set that to say > > 32Megabytes and do the virtual mapping then we can just populate the first > > 2M and only allocate the remainder if we need it. Then we need to rely on > > Mel's defrag stuff tho

RE: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-11-01 Thread Huang, Ying
>From: H. Peter Anvin [mailto:[EMAIL PROTECTED] >The "EFI boot" patchset looks fairly unobtrusive to me. One objection: >the VIDEO_TYPE_ numbers appear split up into groups; and the EFI one >probably should be 0x70 instead of 0x24. Should I change this and resend the patchset? Or you modify it be

[PATCH] sparck64: remove duplicate includes

2007-11-01 Thread lizf
This patch removes duplicate includes in arch/sparc64 Signed-off-by Li Zefan <[EMAIL PROTECTED]> --- arch/sparc64/kernel/ds.c |1 - arch/sparc64/kernel/module.c |1 - arch/sparc64/kernel/sys_sparc32.c |1 - arch/sparc64/kernel/sys_sunos32.c |1 - arch/sparc64/kerne

Re: kernel processes - are they really needed?

2007-11-01 Thread Dmitry Torokhov
On Wednesday 31 October 2007 13:33, Andi Kleen wrote: > "Dmitry Torokhov" <[EMAIL PROTECTED]> writes: > > > On 10/24/07, Andi Kleen <[EMAIL PROTECTED]> wrote: > >> > >> My favourite for a ridiculous thread was and is "kpsmoused" > >> > > > > Mouse querying can take significant amount of time. Do y

Re: [PATCH 2/2] Blackfin I2C/TWI driver: add missing pin mux operation

2007-11-01 Thread Bryan Wu
On 11/2/07, Mike Frysinger <[EMAIL PROTECTED]> wrote: > On 10/30/07, Bryan Wu <[EMAIL PROTECTED]> wrote: > > --- a/drivers/i2c/busses/i2c-bfin-twi.c > > +++ b/drivers/i2c/busses/i2c-bfin-twi.c > > +static int setup_pin_mux(int action, struct bfin_twi_iface *iface) > > +{ > > + > > + u16 pin_r

[PATCH] md: Fix misapplied patch in raid5.c

2007-11-01 Thread NeilBrown
commit 4ae3f847e49e3787eca91bced31f8fd328d50496 did not get applied correctly, presumably due to substantial similarities between handle_stripe5 and handle_stripe6. This patch (with lots of context) moves the chunk of new code from handle_stripe6 (where it isn't needed (yet)) to handle_stripe5.

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread Christoph Lameter
Hmmm... On x86_64 we could take 8 terabyte virtual space (bit order 43) With the worst case scenario of 16k of cpus (bit order 16) we are looking at 43-16 = 27 ~ 128MB per cpu. Each percpu can at max be mapped by 64 pmd entries. 4k support is actually max for projected hw. So we'd get to 512M.

Re: pdflush stuck in D state with v2.6.24-rc1-192-gef49c32

2007-11-01 Thread Fengguang Wu
On Thu, Nov 01, 2007 at 09:14:14AM -0500, Florin Iucha wrote: > On Thu, Nov 01, 2007 at 09:03:33PM +0800, Fengguang Wu wrote: > > Or will the system or fs size/age make any difference? If you happen > > to have a spare/swap partition, could you make a new reiserfs and > > mount it and copy several

Re: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-11-01 Thread H. Peter Anvin
Huang, Ying wrote: From: H. Peter Anvin [mailto:[EMAIL PROTECTED] The "EFI boot" patchset looks fairly unobtrusive to me. One objection: the VIDEO_TYPE_ numbers appear split up into groups; and the EFI one probably should be 0x70 instead of 0x24. Should I change this and resend the patchset? O

TCP_DEFER_ACCEPT issues

2007-11-01 Thread Felix von Leitner
I am trying to use TCP_DEFER_ACCEPT in my web server. There are some operational problems. First of all: timeout handling. I would like to be able to set a timeout in seconds (or better: milliseconds) for how long the socket is allowed to sit there without data coming in. For high load situatio

Re: [PATCH] file capabilities: allow sigcont within session (v2)

2007-11-01 Thread Theodore Tso
On Thu, Nov 01, 2007 at 08:47:01AM -0500, Serge E. Hallyn wrote: > > > >From 5bff8967f45a35f858b96ca673d9bf98eac53d49 Mon Sep 17 00:00:00 2001 > > > From: Serge E. Hallyn <[EMAIL PROTECTED]> > > > Date: Wed, 31 Oct 2007 11:22:04 -0500 > > > Subject: [PATCH 1/1] file capabilities: allow sigcont with

writeout stalls in current -git

2007-11-01 Thread Fengguang Wu
On Thu, Nov 01, 2007 at 07:20:51PM +0100, Torsten Kaiser wrote: > On 11/1/07, Fengguang Wu <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 31, 2007 at 04:22:10PM +0100, Torsten Kaiser wrote: > > > Since 2.6.23-mm1 I also experience strange hangs during heavy writeouts. > > > Each time I noticed this I w

Re: writeout stalls in current -git

2007-11-01 Thread Fengguang Wu
On Thu, Nov 01, 2007 at 08:00:10PM +0100, Torsten Kaiser wrote: > On 11/1/07, Torsten Kaiser <[EMAIL PROTECTED]> wrote: > > On 11/1/07, Fengguang Wu <[EMAIL PROTECTED]> wrote: > > > Thank you. Maybe we can start by the applied debug patch :-) > > > > Will applied it and try to recreate this. > > P

[PATCH 2/2 -v3] x86_64 EFI boot support: EFI boot document

2007-11-01 Thread Huang, Ying
This patch adds document for EFI x86_64 boot support. The setup and operation guide of EFI based system is documented in Documentation/x86_64/uefi.txt. Signed-off-by: Chandramouli Narayanan <[EMAIL PROTECTED]> Signed-off-by: Huang Ying <[EMAIL PROTECTED]> --- Documentation/x86_64/uefi.txt | 29

[PATCH 1/2 -v3] x86_64 EFI boot support: EFI frame buffer driver

2007-11-01 Thread Huang, Ying
This patch adds Graphics Output Protocol support to the kernel. UEFI2.0 spec deprecates Universal Graphics Adapter (UGA) protocol and only Graphics Output Protocol (GOP) is produced. Therefore, the boot loader needs to query the UEFI firmware with appropriate Output Protocol and pass the video info

Re: [PATCH/RFC] eradicate bashisms in scripts/patch-kernel

2007-11-01 Thread Herbert Xu
On Thu, Nov 01, 2007 at 04:08:57PM -0700, Randy Dunlap wrote: > > > - replace non-standard bash string parsing by sed expression > > (is the sed syntax ok? correct? strict enough?) > > I think that this is the part that bothers me. I can't find > anything at > http://www.opengroup.org/onlinepub

Re: [patch 1/4] x86: FIFO ticket spinlocks

2007-11-01 Thread Rik van Riel
On Thu, 1 Nov 2007 18:19:41 -0700 (PDT) Linus Torvalds <[EMAIL PROTECTED]> wrote: > On Thu, 1 Nov 2007, Rik van Riel wrote: > > > > Larry Woodman managed to wedge the VM into a state where, on his > > 4x dual core system, only 2 cores (on the same CPU) could get the > > zone->lru_lock overnight.

Re: pdflush stuck in D state with v2.6.24-rc1-192-gef49c32

2007-11-01 Thread Florin Iucha
On Fri, Nov 02, 2007 at 09:33:21AM +0800, Fengguang Wu wrote: > > I will try that with a USB disk - I hope that won't make a difference. > > Thank you. I guess a reiserfs on loop file would also be OK. > > > > btw, what's the exact kernel version you are running? > > > > I noticed it with the ke

Re: TCP_DEFER_ACCEPT issues

2007-11-01 Thread David Miller
From: Felix von Leitner <[EMAIL PROTECTED]> Date: Fri, 2 Nov 2007 02:33:21 +0100 > I am trying to use TCP_DEFER_ACCEPT in my web server. You aren't going to reach many Linux kernel networking exports on this mailing list. Please post your question instead to [EMAIL PROTECTED], as that's where al

Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-01 Thread David Miller
From: Christoph Lameter <[EMAIL PROTECTED]> Date: Thu, 1 Nov 2007 18:06:17 -0700 (PDT) > A reasonable implementation for 64 bit is likely going to depend on > reserving some virtual memory space for the per cpu mappings so that they > can be dynamically grown up to what the reserved virtual spac

[PATCH 0/2 -v3] x86_64 EFI boot support

2007-11-01 Thread Huang, Ying
Following sets of patches add EFI/UEFI (Unified Extensible Firmware Interface) boot support to x86_64 architecture. The patches have been tested against 2.6.24-rc1 kernel on Intel platforms with EFI1.10 and UEFI2.0 firmware. With this set of patches applied, the 64bit and 32bit x86 kernel can be b

[PATCH 3/4] Blackfin SPI driver: move hard coded pin_req to board file

2007-11-01 Thread Bryan Wu
Remove some sort of bloaty code, try to get these pin_req arrays built at compile-time - move this static things to the blackfin board file - add pin_req array to struct bfin5xx_spi_master - tested on BF537/BF548 with SPI flash Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- drivers/spi/spi_

[PATCH 0/4] Blackfin SPI driver updates and fixing

2007-11-01 Thread Bryan Wu
According to David and Andrew's advices, update the Blackfin SPI series patches in -mm tree. - 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 FA

[PATCH 2/4] Blackfin SPI driver: use void __iomem * for regs_base

2007-11-01 Thread Bryan Wu
Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- drivers/spi/spi_bfin5xx.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index fc0c374..a6f6d5f 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5

[PATCH 1/4] Blackfin SPI driver: use cpu_relax() to replace continue in while busywait

2007-11-01 Thread Bryan Wu
Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- drivers/spi/spi_bfin5xx.c | 78 ++-- 1 files changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index 83c866d..fc0c374 100644 --- a/drivers/spi/spi_

[PATCH 4/4] Blackfin SPI driver: reconfigure speed_hz and bits_per_word in each spi transfer

2007-11-01 Thread Bryan Wu
- reconfigure SPI baud from speed_hz of each spi transfer - according to spi_transfer.bits_per_word to reprogram register and setup correct SPI operation handlers Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- drivers/spi/spi_bfin5xx.c | 54 ++-- 1

Re: Strange freezes (seems like SATA related)

2007-11-01 Thread Jeff Garzik
Heikki Orsila wrote: On Mon, Oct 29, 2007 at 09:54:27AM -0700, Max Krasnyansky wrote: A couple of HP xw9300 machines (dual Opterons) started freezing up. We're running on 2.6.22.1 on them. Freezes a somewhere weird. VGA console is alive (I can switch vts, etc) but everything else is dead (netw

x86: not exported, but is?

2007-11-01 Thread H. Peter Anvin
Anyone happens to know how come, in the x86 tree (and previously in the x86-64 tree), is not exported to userspace (but uses userspace-compatible typenames), whereas is? This is particularly puzzling since at least my version of glibc contains an that looks just like the one in the kernel,

Re: [PATCH] 2.6.23: Filesystem capabilities 0.17

2007-11-01 Thread Casey Schaufler
--- Olaf Dietsche <[EMAIL PROTECTED]> wrote: > Jan Kara <[EMAIL PROTECTED]> writes: > > > On Thu 01-11-07 20:49:32, Olaf Dietsche wrote: > >> Jan Kara <[EMAIL PROTECTED]> writes: > >> > >> >> This patch implements filesystem capabilities. It allows to > >> >> run privileged executables without

Re: [2.6.23] Unable to boot kernel, regression?

2007-11-01 Thread pradeep singh
On 10/11/07, Ingo Molnar <[EMAIL PROTECTED]> wrote: [snip] > > > > Did something got changes which i forgot to take care of? or am i > > missing something pretty obvious here? > > i have successfully built and booted a config derived from your config, > on similar hardware. The only change is that

Re: 2.6.23 regression: accessing invalid mmap'ed memory from gdb causes unkillable spinning

2007-11-01 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Wed, 31 Oct 2007 00:44:25 -0700 (PDT) > From: Nick Piggin <[EMAIL PROTECTED]> > Date: Wed, 31 Oct 2007 08:41:06 +0100 > > > You could possibly even do a generic "best effort" kind of thing with > > regular IPIs, that will timeout and continue if some C

<    1   2   3   4   5   >