Re: 2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage

2007-12-25 Thread James Morris
On Wed, 26 Dec 2007, [EMAIL PROTECTED] wrote: > I already checked, it's not a slam-dunk to just 'patch -R' as there's 3 or 4 > conflicts where later patches need massaging/reverting as well. > > It's a problem with both 'classic RCU' and 'preempt RCU' (that was my *first* > guess as to the cause)

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Avi Kivity
Linus Torvalds wrote: > >> IMO, we should check which version of the specification we're supposed to >> follow, on the basis of FADT contents, for example, and follow this one. >> > > No, we should try to figure out what Windows does. *If* windows checks the > version, we should do that too.

Re: HSM violation errors

2007-12-25 Thread Robert Hancock
Jeff Mitchell wrote: I'm seeing errors in dmesg and the like. It appears to be somewhat similar to the issue reported here: http://kerneltrap.org/mailarchive/linux-kernel/2007/8/25/164711 except that my machine doesn't freeze, and everything seems normal -- hopefully nothing like silent corrupti

2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage

2007-12-25 Thread Valdis . Kletnieks
On Sat, 22 Dec 2007 23:30:56 PST, Andrew Morton said: > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ I've bisected it down this far: kvm-ist-kaput.patch GOOD git-lblnet.patch git-lblnet-fixup.patch git-leds.patch git-libata-all.patch git-libata-all-

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Robert Hancock
Linus Torvalds wrote: IMO, we should check which version of the specification we're supposed to follow, on the basis of FADT contents, for example, and follow this one. No, we should try to figure out what Windows does. *If* windows checks the version, we should do that too. But we should abso

Re: [patch] ipv4: Update ip command line processing (take II)

2007-12-25 Thread Simon Horman
On Tue, Dec 25, 2007 at 08:55:43PM -0800, David Miller wrote: > From: Simon Horman <[EMAIL PROTECTED]> > Date: Wed, 26 Dec 2007 11:59:05 +0900 > > > Recently the documentation in Documentation/nfsroot.txt was > > update to note that in fact ip=off and ip=::off as the > > latter is ignored and

Re: [patch] ipv4: Update ip command line processing (take II)

2007-12-25 Thread David Miller
From: Simon Horman <[EMAIL PROTECTED]> Date: Wed, 26 Dec 2007 11:59:05 +0900 > Recently the documentation in Documentation/nfsroot.txt was > update to note that in fact ip=off and ip=::off as the > latter is ignored and the default (on) is used. > > This was certainly a step in the direction

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Linus Torvalds
On Tue, 25 Dec 2007, Rafael J. Wysocki wrote: > > > > Correct me if I'm wrong, but it appears ACPI 1.0 wants _PTS called > > before any devices are suspended, ACPI 2.0 is contradictory, and ACPI > > 3.0 says that you can't assume anything about device state. My guess is > > that unless Windows

Re: [patch, rfc] mm.h, security.h, key.h and preventing namespace poisoning

2007-12-25 Thread James Morris
On Tue, 25 Dec 2007, Andrew Morton wrote: > On Thu, 20 Dec 2007 15:11:40 +1100 (EST) James Morris <[EMAIL PROTECTED]> > wrote: > > > > > +#ifdef CONFIG_SECURITY > > > > +extern unsigned long mmap_min_addr; > > > > +#endif > > > > + > > > > #include > > > > #include > > > > #include > > >

Re: Suspend code ordering (again) (was: Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM)

2007-12-25 Thread Linus Torvalds
On Tue, 25 Dec 2007, Rafael J. Wysocki wrote: > > the ACPI specification between versions 1.0x and 2.0. Namely, while ACPI > 2.0 and later wants us to put devices into low power states before calling > _PTS, ACPI 1.0x wants us to do that after calling _PTS. Since we're following > the 2.0 and l

Re: [PATCH] xip: fix get_zeroed_page with __GFP_HIGHMEM

2007-12-25 Thread Hugh Dickins
On Tue, 25 Dec 2007, Akinobu Mita wrote: > The use of get_zeroed_page() with __GFP_HIGHMEM is invalid. > Use alloc_page() with __GFP_ZERO instead of invalid get_zeroed_page(). > > (This patch is only compile tested) > > Cc: Carsten Otte <[EMAIL PROTECTED]> > Signed-off-by: Akinobu Mita <[EMAIL PR

Re: Can't disconnect a USB sound device and connect another

2007-12-25 Thread Alan Stern
On Tue, 25 Dec 2007, Andrew Morton wrote: > On Sun, 23 Dec 2007 23:36:11 +0100 Victor Hahn <[EMAIL PROTECTED]> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > ... because it causes lsusb to freeze and gives me this in > > /var/log/messages: > > Has this always happened,

Re: [PATCH 0/3] PM: Do not destroy/create devices while suspended

2007-12-25 Thread Alan Stern
On Tue, 25 Dec 2007, Rafael J. Wysocki wrote: > > > Do we need to worry about the possibility that when the system wakes up > > > from hibernation, the set of usable CPUs might be smaller than it was > > > beforehand? > > > > This is possible in error conditions. > > > > > Is any special handl

[PATCH] netconsole: register cmdline netconsole configs to configfs

2007-12-25 Thread Joonwoo Park
This patch intorduces cmdline netconsole configs to register to configfs with dynamic netconsole. Satyam Sharma who designed shiny dynamic reconfiguration for netconsole, mentioned about this issue already. (http://lkml.org/lkml/2007/7/29/360) But I think, without separately managing of two kind

[PATCH 1/2] configfs: dir.c fix possible recursive locking

2007-12-25 Thread Joonwoo Park
configfs_register_subsystem() with default_groups triggers recursive locking. it seems that mutex_lock_nested is needed. = [ INFO: possible recursive locking detected ] 2.6.24-rc6 #141 - swapper/1 is trying to

[PATCH 2/2] configfs: file.c fix possible recursive locking

2007-12-25 Thread Joonwoo Park
configfs_register_subsystem() with default_groups triggers recursive locking. it seems that mutex_lock_nested is needed. = [ INFO: possible recursive locking detected ] 2.6.24-rc6 #145 - swapper/1 is trying to

Re: [BUG][PATCH -mm] bluetooth : rfcomm add get/put device in del_conn

2007-12-25 Thread Dave Young
On Tue, Dec 25, 2007 at 06:07:24PM +0800, Dave Young wrote: > On Dec 25, 2007 6:03 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > Due to 2.6.24-rc6-mm1 kernel changes (maybe kobject or driver core), If I > > exec: > > > > rfcomm connect 0 1 > > > > kernel will oops after connect timeout. > > > > ha

[PATCH 1/2] fs/dlm: get rid of unnecessary initialization

2007-12-25 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialization to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/dlm/config.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 2f8e3c8..95085d1 100644 --- a

[PATCH 2/2] fs/ocfs2: get rid of unnecessary initialization

2007-12-25 Thread Joonwoo Park
default_groups was allocated with kcalloc, so initialization to NULL is unnecessary. Signed-off-by: Joonwoo Park <[EMAIL PROTECTED]> --- fs/ocfs2/cluster/nodemanager.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodem

[patch] ipv4: Update ip command line processing (take II)

2007-12-25 Thread Simon Horman
Recently the documentation in Documentation/nfsroot.txt was update to note that in fact ip=off and ip=::off as the latter is ignored and the default (on) is used. This was certainly a step in the direction of reducing confusion. But it seems to me that the code ought to be fixed up so that ip=

Re: xfs|loop|raid: attempt to access beyond end of device

2007-12-25 Thread Janos Haar
Hello list, - Original Message - From: "David Chinner" <[EMAIL PROTECTED]> To: "Janos Haar" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, December 25, 2007 10:13 AM Subject: Re: xfs|loop|raid: attempt to access beyond end of device > On Sun, Dec 23, 2007 at 08:21:08PM +0100, Janos Haar wrote

Re: [BUG 2.6.24-rc6-mm1] BUG() at check_irqs_on() in fs/buffer.c .

2007-12-25 Thread Daniel Walker
On Sun, 2007-12-23 at 16:16 +0100, Ingo Molnar wrote: > * Tetsuo Handa <[EMAIL PROTECTED]> wrote: > > > Hello. > > > > I encountered a BUG(). > > I didn't encounter this bug for 2.6.24-rc5-mm1 . > > I guess this bug was introduced between 2.6.24-rc5-mm1 and 2.6.24-rc6-mm1 . > > does the patch be

[PATCH] Rationalise ACPI backlight implementation

2007-12-25 Thread Matthew Garrett
The sysfs backlight class provides no mechanism for querying the acceptable brightness for a backlight. The ACPI spec states that values are only valid if they are reported as available by the firmware. Since we can't provide that information to userspace, instead collapse the range to the numb

Re: [PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-25 Thread eric miao
> > From: eric miao <[EMAIL PROTECTED]> > > > > This patch adds the generic IRQ support for the PCA9539 on-chip GPIOs. > > This one bothers me a bit on some technical grounds. One problem is > that these chips are not designed for reliable IRQ management, so no > matter what a driver does it can't

Re: [PATCH - SH/Dreamcast] CD-Rom (GD-Rom) support for the SEGA Dreamcast

2007-12-25 Thread Paul Mundt
On Sun, Dec 23, 2007 at 07:43:24PM +, Adrian McMenamin wrote: > This patch adds support for the CD-Rom (the so-called "GD-Rom") on the > SEGA Dreamcast. > Looks quite a bit better. Just a few minor things. > +static void gdrom_spicommand(void *spi_string, int buflen) > +{ > + short *cmd =

Re: [PATCH 0/5] sg_ring for scsi

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 15:37:46 FUJITA Tomonori wrote: > Some scsi drivers like ips access to sglist in a tricky way. Indeed. I fail to see how this code works, in fact: drivers/scsi/ips.c:ips_queue() line 1101 if (ips_is_passthru(SC)) { ips_copp_wait_item_t *scratc

Re: [PATCH 0/16] lguest: introduce vcpu structure

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:40 Glauber de Oliveira Costa wrote: > this patch makes room for the vcpu structure in lguest, already used in > this very same way at lguest64. It's the first part of our plan to > have lguest and lguest64 unified too. Hi Glauber! These patches look really sol

Re: [x86] is checkpatch.pl broken

2007-12-25 Thread H. Peter Anvin
Cyrill Gorcunov wrote: Hi list, by doing cleanup of arch/x86/boot/*.[ch] i found that checkpatch does ignore obvious things. For example, run it over edd.c showed only one warning: BTW, is there someone who is already involved in a such cleanup to eliminate double effort? BTW, it's more than

Re: [x86] is checkpatch.pl broken

2007-12-25 Thread H. Peter Anvin
Cyrill Gorcunov wrote: Hi list, by doing cleanup of arch/x86/boot/*.[ch] i found that checkpatch does ignore obvious things. For example, run it over edd.c showed only one warning: I'm generally skeptical to the kind of "cleanups" that you seem to be referring to. More often then not they re

Re: [PATCH 13/16] per-vcpu lguest task management

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:53 Glauber de Oliveira Costa wrote: > @@ -114,6 +116,19 @@ static int vcpu_start(struct lguest_vcpu *vcpu, int > vcpu_id, * address. */ > lguest_arch_setup_regs(vcpu, start_ip); > > + /* Initialize the queue for the waker to wait on */ > + init_waitque

Re: [PATCH 09/16] map_switcher_in_guest() per-vcpu

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:49 Glauber de Oliveira Costa wrote: > The switcher needs to be mapped per-vcpu, because different vcpus > will potentially have different page tables (they don't have to, > because threads will share the same). > > So our first step is the make the function receive

Re: [PATCH][DOC] Console is utf-8 by default

2007-12-25 Thread H. Peter Anvin
Samuel Thibault wrote: The console is now by default in UTF-8 mode, so let's document this. BTW, document the needed "vt." prefix. - vt.default_blu= [VT] + default_blu=[VT] Reverse patch? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCH 04/16] per-cpu run guest

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:44 Glauber de Oliveira Costa wrote: > @@ -55,11 +55,15 @@ static int user_send_irq(struct lguest *lg, const > unsigned long __user *input) static ssize_t read(struct file *file, char > __user *user, size_t size,loff_t*o) { > struct lguest *lg = file->private_d

Re: [PATCH 05/16] make write() operation smp aware

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:45 Glauber de Oliveira Costa wrote: > --- a/drivers/lguest/lguest_user.c > +++ b/drivers/lguest/lguest_user.c > @@ -223,14 +223,21 @@ static ssize_t write(struct file *file, const char ... > /* If you haven't initialized, you must do that first. */ > - if

Re: [PATCH 02/16] adapt lguest launcher to per-cpuness

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:42 Glauber de Oliveira Costa wrote: > + if (!vcpu_id) { > + /* > + * Service input, then unset the BREAK to > + * release the Waker. > + */ > + handle_

Re: [PATCH 01/16] introduce vcpu struct

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:41 Glauber de Oliveira Costa wrote: > this patch introduces a vcpu struct for lguest. In upcoming patches, > more and more fields will be moved from the lguest struct to the vcpu Hi Glommer, > +static inline struct lguest *lg_of_vcpu(struct lguest_vcpu *vcpu) > +{

Re: Testing RAM from userspace / question about memmap= arguments

2007-12-25 Thread Pavel Machek
On Sat 2007-12-22 12:09:59, Arjan van de Ven wrote: > On Tue, 18 Dec 2007 17:06:24 + > Matthew Bloch <[EMAIL PROTECTED]> wrote: > > > Hi - I'm trying to come up with a way of thoroughly testing every byte > > of RAM from within Linux on amd64 (so that it can be automated better > > than using

[PATCH][DOC] Console is utf-8 by default

2007-12-25 Thread Samuel Thibault
The console is now by default in UTF-8 mode, so let's document this. BTW, document the needed "vt." prefix. Signed-off-by: Samuel Thibault <[EMAIL PROTECTED]> --- Documentation/kernel-parameters.txt.orig2007-12-26 00:01:44.0 +0100 +++ Documentation/kernel-parameters.txt 2007-12-23 22

[RFC] sleepy linux

2007-12-25 Thread Pavel Machek
This is RFC. It does not even work for me... it sleeps but it will not wake up, because SATA wakeup code is missing. Code attached for illustration. I wonder if this is the right approach? What is right interface to the drivers? Sleepy Linux Copyrigh

Re: [PATCH] AMD Thermal Interrupt Support

2007-12-25 Thread Andrew Morton
On Mon, 17 Dec 2007 10:54:53 -0800 (PST) [EMAIL PROTECTED] (Russell Leidich) wrote: > Hi, > > This patch to 2.6.24-rc5 enables AMD Barcelona CPUs to register thermal > throttling events as machine checks, in the > same fashion as the analogous Intel code. > > Changed files: > > arch/x86/kerne

Re: [BUG] at mm/slab.c:3320

2007-12-25 Thread Andrew Morton
On Thu, 20 Dec 2007 15:35:41 +0530 "Aneesh Kumar K.V" <[EMAIL PROTECTED]> wrote: > > Linux version 2.6.24-rc5-autokern1 ([EMAIL PROTECTED]) (gcc version 3.4.6 > 20060404 > (Red Hat 3.4.6-9)) #1 SMP PREEMPT Thu Dec 20 04:16:18 EST 2007 > BIOS-provided physical RAM map: > BIOS-e820: 0

Re: [patch, rfc] mm.h, security.h, key.h and preventing namespace poisoning

2007-12-25 Thread Andrew Morton
On Thu, 20 Dec 2007 15:11:40 +1100 (EST) James Morris <[EMAIL PROTECTED]> wrote: > > > +#ifdef CONFIG_SECURITY > > > +extern unsigned long mmap_min_addr; > > > +#endif > > > + > > > #include > > > #include > > > #include > > > > Fine by me. > > I'll queue it for -mm & 2.6.25. I don't thin

Re: [PATCH 0/4] add task handling notifier

2007-12-25 Thread Andrew Morton
On Sun, 23 Dec 2007 12:26:21 + Christoph Hellwig <[EMAIL PROTECTED]> wrote: > On Thu, Dec 20, 2007 at 01:11:24PM +, Jan Beulich wrote: > > With more and more sub-systems/sub-components leaving their footprint > > in task handling functions, it seems reasonable to add notifiers that > > the

Re: [PATCH 00/63] ide-cd: redux

2007-12-25 Thread Andrew Morton
On Thu, 20 Dec 2007 01:48:49 +0100 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > This patch series is a major rework of the ide-cd driver. woo-hoo. > PS ide-cd Maintainer position is still open... boo-hoo. I wish someone would fix that "The drive appears confused (ireason = 0x%02x)"

Re: Can't disconnect a USB sound device and connect another

2007-12-25 Thread Andrew Morton
On Sun, 23 Dec 2007 23:36:11 +0100 Victor Hahn <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > ... because it causes lsusb to freeze and gives me this in /var/log/messages: Has this always happened, or is it something we introduced in a recent kernel? > Dec 23 2

Re: NFS EINVAL on open(... | O_TRUNC) on 2.6.23.9

2007-12-25 Thread Andrew Morton
On Sun, 23 Dec 2007 12:35:17 +0100 Gianluca Alberici <[EMAIL PROTECTED]> wrote: > Hello, > > I can do better. I have investigated a bit the problem: > > 1) The problem arises only with the userspace nfsd (Universal nfsd 2.2). > I have realized that the latest patches introduced in 2.6.22 have

Re: [PATCH] pcmcia: Add support P2CCLK bit enabler for TI PC1520

2007-12-25 Thread Andrew Morton
On Tue, 18 Dec 2007 18:57:24 +0900 Nobuhiro Iwamatsu <[EMAIL PROTECTED]> wrote: > There is a device that doesn't work when P2CCLK's bit of TI PC1520 was > disable. > This patch supports P2CCLK bit enabler for TI PC1520. > > ... > > config YENTA_TOSHIBA > default y > bool "Special in

Re: [PATCH 004 of 7] md: Allow devices to be shared between md arrays.

2007-12-25 Thread Andrew Morton
On Fri, 14 Dec 2007 17:26:28 +1100 NeilBrown <[EMAIL PROTECTED]> wrote: > + mddev_unlock(rdev->mddev); > + ITERATE_MDDEV(mddev, tmp) { > + mdk_rdev_t *rdev2; > + > + mddev_lock(mddev); > + ITERATE_RDEV(mddev, rdev2

Re: [PATCH 001 of 7] md: Support 'external' metadata for md arrays.

2007-12-25 Thread Andrew Morton
On Fri, 14 Dec 2007 17:26:08 +1100 NeilBrown <[EMAIL PROTECTED]> wrote: > + if (strncmp(buf, "external:", 9) == 0) { > + int namelen = len-9; > + if (namelen >= sizeof(mddev->metadata_type)) > + namelen = sizeof(mddev->metadata_type)-1; > +

Re: 2.6.24-rc6-mm1

2007-12-25 Thread Andreas Mohr
Hi, another one most likely related to the recent NFS_V4 define build error saga: CC fs/nfs/super.o fs/nfs/super.c: In function 'nfs_sb_deactive': fs/nfs/super.c:338: error: 'TASK_NORMAL' undeclared (first use in this function) fs/nfs/super.c:338: error: (Each undeclared identifier is repo

checkpatch false ERROR: trailing statements should be on next line

2007-12-25 Thread Erez Zadok
Using v2.6.24-rc6-125-g5356f66, code such as this: if (is_file)/* dirs can be unlinked but chdir'ed to */ err = -ESTALE; produces this false checkpatch error: foo.c:947: ERROR: trailing statements should be on next line I think comments such as the above shou

Re: 2.6.24-rc4 hwmon it87 probe fails

2007-12-25 Thread Jean Delvare
Hi Bjorn, Le 23/12/2007, "Bjorn Helgaas" <[EMAIL PROTECTED]> a écrit: >On Sunday 23 December 2007 2:28:05 am Jean Delvare wrote: >> The problem is that the it87 driver is used on a variety of motherboards, >> some where the hardware monitoring device I/O ports are reserved by the >> BIOS, some wh

Re: [RFC/PATCH 4/4] [POWERPC] pci: Disable IO/Mem on a device when resources can't be allocated

2007-12-25 Thread Benjamin Herrenschmidt
> This is exactly what's supposed to be happening, but the code is buggy > and nobody noticed :-) (I'm mixing up IORESOURCE_* flags and > PCI_COMMAND_* flags). Thanks for reviewing ! Note that this patch isn't in the series Greg queued up anyway. The powerpc specific bits will be going in via Pau

Re: [RFC/PATCH 4/4] [POWERPC] pci: Disable IO/Mem on a device when resources can't be allocated

2007-12-25 Thread Benjamin Herrenschmidt
On Mon, 2007-12-24 at 00:23 -0700, Grant Grundler wrote: > On Tue, Dec 18, 2007 at 10:01:15AM +1100, Benjamin Herrenschmidt wrote: > > This patch changes the PowerPC PCI code to disable IO and/or Memory > > decoding on a PCI device when a resource of that type failed to be > > allocated. This is d

Re: [RFC/PATCH 3/4] pci: Remove pci_enable_device_bars()

2007-12-25 Thread Benjamin Herrenschmidt
On Mon, 2007-12-24 at 00:08 -0700, Grant Grundler wrote: > On Tue, Dec 18, 2007 at 10:01:14AM +1100, Benjamin Herrenschmidt wrote: > > Now that all in-tree users are gone, this removes pci_enable_device_bars() > > completely. > > Almost completely. > Patch below removes pci_enable_device_bars() f

Re: [PATCH 0/3] PM: Do not destroy/create devices while suspended

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Rafael J. Wysocki wrote: > On Monday, 24 of December 2007, Alan Stern wrote: > > On Mon, 24 Dec 2007, Rafael J. Wysocki wrote: > > > > > Hi, > > > > > > Some device drivers register CPU hotplug notifiers and use them to destroy > > > device objects when removing t

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Robert Hancock wrote: > Carlos Corbacho wrote: > > On Tuesday 25 December 2007 13:26:12 Rafael J. Wysocki wrote: > >> Well, citing from the ACPI 2.0 specification, section 9.1.6 Transitioning > >> from the Working to the Sleeping State (which is what we're discussin

[PATCH] USB serial ftdi_sio - enabling multiple ELV devices, adding EM1010PC

2007-12-25 Thread Peter Stark
I work with a group of people on a free home automation tool called FHEM. Some of the users own more than one USB-serial device by ELV. The ftdi_sio driver has most of the ELV devices disabled by default and needs to be re-enabled every time you get a new kernel. Additionally a new device (EM 1

Re: [MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-25 Thread Alon Bar-Lev
On 12/25/07, Sergei Shtylyov <[EMAIL PROTECTED]> wrote: > > So suspend modes on these boards are not supported? > > Only "Always On" configuration is supported? > > Sleep mode is supported according to the code. But as I've said PM bits > haven't been maintained -- probably since the submission

Re: [MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-25 Thread Sergei Shtylyov
Alon Bar-Lev wrote: PM code is generally broken and unmaintained, so no wonder. I don't remember if anyone has fixed CPU context restoration code (it uses a "skewed" stack frame). So suspend modes on these boards are not supported? Only "Always On" configuration is supported? Sleep mo

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Robert Hancock
Carlos Corbacho wrote: On Tuesday 25 December 2007 13:26:12 Rafael J. Wysocki wrote: Well, citing from the ACPI 2.0 specification, section 9.1.6 Transitioning from the Working to the Sleeping State (which is what we're discussing here): 3. OSPM places all device drivers into their respective Dx

[x86] is checkpatch.pl broken

2007-12-25 Thread Cyrill Gorcunov
Hi list, by doing cleanup of arch/x86/boot/*.[ch] i found that checkpatch does ignore obvious things. For example, run it over edd.c showed only one warning: --- [EMAIL PROTECTED] linux-2.6.git $ scripts/checkpatch.pl --file arch/x86/boot/edd.c WARNING: externs should be avoided in .c files #45

Re: [MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-25 Thread Alon Bar-Lev
Thank you for your reply! On 12/25/07, Sergei Shtylyov <[EMAIL PROTECTED]> wrote: > PM code is generally broken and unmaintained, so no wonder. I don't > remember if anyone has fixed CPU context restoration code (it uses a "skewed" > stack frame). So suspend modes on these boards are not supp

Re: [PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-25 Thread Christoph Hellwig
Looks good, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 0/3] PM: Do not destroy/create devices while suspended

2007-12-25 Thread Rafael J. Wysocki
On Monday, 24 of December 2007, Alan Stern wrote: > On Mon, 24 Dec 2007, Rafael J. Wysocki wrote: > > > Hi, > > > > Some device drivers register CPU hotplug notifiers and use them to destroy > > device objects when removing the corresponding CPUs and to create these > > objects > > when adding t

Suspend code ordering (again) (was: Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM)

2007-12-25 Thread Rafael J. Wysocki
On Monday, 24 of December 2007, Linus Torvalds wrote: > > On Mon, 24 Dec 2007, Rafael J. Wysocki wrote: > > > > Well, having considered that for a longer while, I think the AML code is > > referring to a device that we have suspended already, and since it's in a > > low > > power state, it just

Re: [PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-25 Thread Marcin Slusarz
On Tue, Dec 25, 2007 at 11:59:46AM +, Christoph Hellwig wrote: > On Mon, Dec 24, 2007 at 01:10:19AM +0100, [EMAIL PROTECTED] wrote: > > @@ -53,6 +53,7 @@ > > #include > > #include > > #include > > +#include > > linux/*.h always before asm/*.h > > > +static int __must_check udf_sb_alloc_p

[PATCH] ocfs2: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) remove unused le32_and_cpu Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Mark Fasheh <[EMAIL PROTECTED]> CC: Kurt Hackel <[EMAIL PROTECTED]> --- fs/ocfs2/endian.h |5 - fs/ocfs2/inode.

[PATCH] ext2/3/4: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) ext3/4 bits are #if 0'ed, but someone might copy this code into other places Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> --- fs/ext2/super.c |8 +++- fs/ext3/super.c |2 +- fs/ext4/s

[PATCH] qla3xxx: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> --- drivers/net/qla3xxx.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c

Re: [PATCH 2/6] udf: remove some ugly macros

2007-12-25 Thread Marcin Slusarz
On Tue, Dec 25, 2007 at 11:54:38AM +, Christoph Hellwig wrote: > Looks generally good, but it would be nice if you could avoid > introducing new overly long lines. Then again this really won't be > noticed in udf anyway and it looks like you plan to clean it up later > anyway. Yes, that's what

Re: [MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-25 Thread Ralf Baechle
On Tue, Dec 25, 2007 at 01:41:21PM +0300, Sergei Shtylyov wrote: >> When I have: >> CONFIG_MIPS_DB1550 >> CONFIG_SOC_AU1550 >> CONFIG_SOC_AU1X00 >> CONFIG_PM > >> MEM_SDREFCFG is used at: >> arch/mips/au1000/common/power.c::pm_do_freq() > >PM code is generally broken and unmaintained, so no wo

Re: ACPI: _PTS ordering needs fixing for pre ACPI 3.0 systems (was: Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM)

2007-12-25 Thread Carlos Corbacho
On Tuesday 25 December 2007 14:07:22 Rafael J. Wysocki wrote: > OK, sorry, the approach is generally reasonable, IMO, but it needs to be a > bit more fine grained. I know, hence this was marked as a hack and not signed off; it's just a demonstration of the general idea with code instead of words.

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Carlos Corbacho wrote: > On Tuesday 25 December 2007 13:26:12 Rafael J. Wysocki wrote: > > Well, citing from the ACPI 2.0 specification, section 9.1.6 Transitioning > > from the Working to the Sleeping State (which is what we're discussing > > here): > > > > 3. OSPM

Re: ACPI: _PTS ordering needs fixing for pre ACPI 3.0 systems (was: Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM)

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Rafael J. Wysocki wrote: > On Tuesday, 25 of December 2007, Carlos Corbacho wrote: > > Adding Linux-ACPI to CC. > > > > On Tuesday 25 December 2007 00:03:25 Carlos Corbacho wrote: > > > According to the earlier versions of the ACPI spec, Linux is doing the > > > wr

Re: relation between mmc_request, mmc_data and mmc_command

2007-12-25 Thread Pierre Ossman
On Sun, 23 Dec 2007 23:25:26 -0800 "raki john" <[EMAIL PROTECTED]> wrote: > > Does mmc_requeest->stop is equal to mmc_request->data->stop ? > > Does mmc_request is equal to mmc_request->data->mrq ? > > Does mmc_request->data is equal to mmc_request->cmd->data ? > > Does mmc_request

[PATCH] xip: fix get_zeroed_page with __GFP_HIGHMEM

2007-12-25 Thread Akinobu Mita
The use of get_zeroed_page() with __GFP_HIGHMEM is invalid. Use alloc_page() with __GFP_ZERO instead of invalid get_zeroed_page(). (This patch is only compile tested) Cc: Carsten Otte <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- mm/filemap_xip.c |9 + 1 fi

Re: ACPI: _PTS ordering needs fixing for pre ACPI 3.0 systems (was: Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM)

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Carlos Corbacho wrote: > Adding Linux-ACPI to CC. > > On Tuesday 25 December 2007 00:03:25 Carlos Corbacho wrote: > > According to the earlier versions of the ACPI spec, Linux is doing the > > wrong thing - we should call _PTS() before we start powerding down devic

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Carlos Corbacho
On Tuesday 25 December 2007 13:26:12 Rafael J. Wysocki wrote: > Well, citing from the ACPI 2.0 specification, section 9.1.6 Transitioning > from the Working to the Sleeping State (which is what we're discussing > here): > > 3. OSPM places all device drivers into their respective Dx state. If the >

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Rafael J. Wysocki
On Tuesday, 25 of December 2007, Carlos Corbacho wrote: > On Monday 24 December 2007 22:40:46 Robert Hancock wrote: > > The ACPI spec has the following to say about the _PTS method: > > > > "The platform must not make any assumptions about the state of the > > machine when _PTS is called. For examp

Re: [PATCH 2/3] PM: Do not destroy/create devices while suspended in mce_64.c

2007-12-25 Thread Pavel Machek
On Mon 2007-12-24 01:57:17, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > The x86-64 MCE driver should not attempt to destroy/create a suspended > device. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> ACK. -- (english) http://www.livejournal.com/~pavelma

Re: [PATCH 3/3] PM: Do not destroy/create devices while suspended in cpuid.c

2007-12-25 Thread Pavel Machek
On Mon 2007-12-24 01:57:57, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > The cpuid driver should not attempt to destroy/create a suspended > device. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> ACK. -- (english) http://www.livejournal.com/~pavelmachek

Re: [PATCH 1/3] PM: Do not destroy/create devices while suspended in msr.c

2007-12-25 Thread Pavel Machek
On Mon 2007-12-24 01:56:34, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > The MSR driver should not attempt to destroy/create a suspended > device. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> ACK. -- (english) http://www.livejournal.com/~pavelmachek (c

Re: [PATCH 0/3] PM: Do not destroy/create devices while suspended

2007-12-25 Thread Pavel Machek
On Mon 2007-12-24 10:51:15, Alan Stern wrote: > On Mon, 24 Dec 2007, Rafael J. Wysocki wrote: > > > Hi, > > > > Some device drivers register CPU hotplug notifiers and use them to destroy > > device objects when removing the corresponding CPUs and to create these > > objects > > when adding the C

TOMOYO Linux Security Goal

2007-12-25 Thread Tetsuo Handa
This document is intended to specify the security goal that TOMOYO Linux is trying to achieve, so that users can evaluate whether TOMOYO Linux will meet their needs, and kernel developers can evaluate whether TOMOYO Linux deserved to be in-tree. 1. About TOMOYO Linux Project Homepage: http://tomo

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Carlos Corbacho
Pavel, On Tuesday 25 December 2007 12:12:31 Pavel Machek wrote: > > The patch is fine by me, so if anyone has objections, please speak up. > > Just.. I have been running with very similar patch for few years... it > fixes few prototype machines I have here. I've withdrawn the patch since it doesn

Re: [PATCH 1/38] arch/alpha: Use time_before, time_before_eq, etc.

2007-12-25 Thread Pavel Machek
On Mon 2007-12-24 15:16:46, Julia Lawall wrote: > From: Julia Lawall <[EMAIL PROTECTED]> > > The functions time_before, time_before_eq, time_after, and time_after_eq > are more robust for comparing jiffies against other values. > > A simplified version of the semantic patch making this change is

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-25 Thread Pavel Machek
Hi! > On Sunday, 23 of December 2007, Carlos Corbacho wrote: > > Fix suspend-to-RAM on nForce 4 (CK804) boards by increasing > > PCIBIOS_MIN_IO. > > > > Fixes kernel bugzilla #9528 > > > > Problem: > > > > Linus' patch (52ade9b3b97fd3bea42842a056fe0786c28d0555) to re-order > > suspend (and fix

Re: [PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-25 Thread Christoph Hellwig
On Mon, Dec 24, 2007 at 01:10:19AM +0100, [EMAIL PROTECTED] wrote: > @@ -53,6 +53,7 @@ > #include > #include > #include > +#include linux/*.h always before asm/*.h > +static int __must_check udf_sb_alloc_partition_maps(struct super_block *sb, > __u32 count) I think __must_check is primar

Re: [PATCH 2/6] udf: remove some ugly macros

2007-12-25 Thread Christoph Hellwig
Looks generally good, but it would be nice if you could avoid introducing new overly long lines. Then again this really won't be noticed in udf anyway and it looks like you plan to clean it up later anyway. (in case it wasn;'t clear count this as an ack from me) -- To unsubscribe from this list:

[Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2007-12-25 Thread Arjan van de Ven
From: Arjan van de Ven <[EMAIL PROTECTED]> Subject: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in On PCs, PCI extended configuration space (4Kb) is riddled with problems associated with the memory mapped access method (MMCONFIG). At the same time, there are very few machin

Re: [MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-25 Thread Sergei Shtylyov
Hello. Alon Bar-Lev wrote: When I have: CONFIG_MIPS_DB1550 CONFIG_SOC_AU1550 CONFIG_SOC_AU1X00 CONFIG_PM MEM_SDREFCFG is used at: arch/mips/au1000/common/power.c::pm_do_freq() PM code is generally broken and unmaintained, so no wonder. I don't remember if anyone has fixed CPU context r

Re: [PATCH 1/2] ide: add ide_dump_identify() debug helper

2007-12-25 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: * Add ide_dump_identify() debug helper for dumping raw identify data in the hdparm friendly format (== the identify data can be extracted from dmesg output and passed to hdparm --Istdin). * Dump identify data in ide-probe.c::do_identify() if DEBUG

Re: [BUG][PATCH -mm] bluetooth : rfcomm add get/put device in del_conn

2007-12-25 Thread Dave Young
On Dec 25, 2007 6:03 PM, Dave Young <[EMAIL PROTECTED]> wrote: > Due to 2.6.24-rc6-mm1 kernel changes (maybe kobject or driver core), If I > exec: > > rfcomm connect 0 1 > > kernel will oops after connect timeout. > > hand copy some oops text: > > EIP is at driver_sysfs_remove+0x1a/0x40 > Call Tra

[BUG][PATCH -mm] bluetooth : rfcomm add get/put device in del_conn

2007-12-25 Thread Dave Young
Due to 2.6.24-rc6-mm1 kernel changes (maybe kobject or driver core), If I exec: rfcomm connect 0 1 kernel will oops after connect timeout. hand copy some oops text: EIP is at driver_sysfs_remove+0x1a/0x40 Call Trace: show_trace_log_lvl+0x1a/0x30 show_stack_log_lvl+0x9a/0xc0 show_registers+0x

Re: 2.6.24-rc6 and earlier: "host bus error" after STR

2007-12-25 Thread Jeff Garzik
On Mon, Dec 24, 2007 at 11:48:13PM +0300, Alexey Dobriyan wrote: > Hi, I occasionally get those "soft resetting link" messages > right after STR. Typical messages below (from photos): > > > eth1: link up, 100Mbps, full-duplex, lpa 0x45E1 > i8042 kbd 00:0a: activation failed > sd 0:0:0:0: [sda] St

Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-25 Thread Martin Mares
> Reading past the first 256 bytes of the sysfs file should be enough > -- only root can do that (other users get only 64 bytes anyway) and > problems with reading random registers have hopefully taught programs > not to read blindly a long time ago. ... except for lspci itself which reads the fir

Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-25 Thread Martin Mares
Hello! > (and yes I realize this needs lspci to be expanded some to set the > flag if the admin really asks for it, but such is life) Reading past the first 256 bytes of the sysfs file should be enough -- only root can do that (other users get only 64 bytes anyway) and problems with reading rando

Re: xfs|loop|raid: attempt to access beyond end of device

2007-12-25 Thread David Chinner
On Sun, Dec 23, 2007 at 08:21:08PM +0100, Janos Haar wrote: > Hello, list, > > I have a little problem on one of my productive system. > > The system sometimes crashed, like this: > > Dec 23 08:53:05 Albohacen-global kernel: attempt to access beyond end of > device > Dec 23 08:53:05 Albohacen-gl

Re: volanoMark 24% regression in 2.6.24-rc6: why a simple patch makes it

2007-12-25 Thread Ingo Molnar
* Zhang, Yanmin <[EMAIL PROTECTED]> wrote: > The solution is just to revert patch > fbdcf18df73758b2e187ab94678b30cd5f6ff9f9, because other 2 patches > which fixed the same issue are already in 2.6.24-rc5. Linus, please revert fbdcf18df73758, as requested by Yanmin. It was noticed before (by

  1   2   >