Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-01 Thread Komuro
Can you reproduce it with other ftp client and/or server? I tried the proftpd-1.3.0a-1.fc6(kernel version is 2.6.19). The ftp stop problem does not happen. Therefore, this problem is reproduced when client's kernel-version is 2.6.20-rc1 or later and server is vsftpd. Server's kernel-version

Re: [PATCH 4/8] KVM: Implement a few system configuration msrs

2007-01-01 Thread Avi Kivity
Ingo Oeser wrote: Hi, On Thursday, 28. December 2006 11:11, Avi Kivity wrote: Index: linux-2.6/drivers/kvm/svm.c === --- linux-2.6.orig/drivers/kvm/svm.c +++ linux-2.6/drivers/kvm/svm.c @@ -1068,6 +1068,9 @@ static int

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Robert P. J. Day
On Mon, 1 Jan 2007, Segher Boessenkool wrote: In this case, the second form should be used when the macro needs to return a value (and you can't use an inline function for whatever reason), whereas the first form should be used at all other times. that's a fair point, although

[PATCH] x86-64 Calgary: tighten up printks

2007-01-01 Thread Muli Ben-Yehuda
Signed-off-by: Muli Ben-Yehuda [EMAIL PROTECTED] --- arch/x86_64/kernel/pci-calgary.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/x86_64/kernel/pci-calgary.c b/arch/x86_64/kernel/pci-calgary.c index 87d90cb..3d65b1d 100644 ---

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Robert P. J. Day
On Mon, 1 Jan 2007, Folkert van Heusden wrote: regarding alignment that don't allow clear_page() to be used copy_page() in the memcpy() case), but it's going to need a lot of Maybe these optimalisations should be in the coding style docs? i was thinking of submitting the following as a

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Paul Mundt
On Mon, Jan 01, 2007 at 02:59:32AM +0100, Folkert van Heusden wrote: regarding alignment that don't allow clear_page() to be used copy_page() in the memcpy() case), but it's going to need a lot of Maybe these optimalisations should be in the coding style docs? For what purpose?

Re: [PATCH] net/core/flow.c: compare data with memcmp

2007-01-01 Thread David Miller
From: Daniel_Marjamäki [EMAIL PROTECTED] Date: Mon, 1 Jan 2007 08:47:48 +0100 So you mean that in this particular case it's faster with a handcoded comparison than memcmp? Because both key1 and key2 are located at word-aligned addresses? That's fascinating. Essentially, yes. However, I

Re: [PATCH] Open Firmware device tree virtual filesystem

2007-01-01 Thread David Miller
From: David Kahn [EMAIL PROTECTED] Date: Sun, 31 Dec 2006 19:37:52 -0800 IMHO, the directory entries in the filesystem should be in the form [EMAIL PROTECTED] (eg: /[EMAIL PROTECTED],0, pci is the node name, @ is the separator character defined by IEEE 1275, and 1f,0 is the unit-address,

Re: [PATCH] Open Firmware device tree virtual filesystem

2007-01-01 Thread David Miller
From: Segher Boessenkool [EMAIL PROTECTED] Date: Mon, 1 Jan 2007 04:33:13 +0100 All we've done is created a trivial implementation for exporting the device tree to userland that isn't burdened by the powerpc and sparc legacy code that's in there now. So now we'll have _3_ different

Re: [PATCH] net/core/flow.c: compare data with memcmp

2007-01-01 Thread Daniel Marjamäki
Hello! I have done a little testing on my own. My results is that memcpy is many times faster even with aligned data. I am testing in an ordinary console program. I am including the code below. If I'm doing something wrong, please tell me so. As you can see I am not using the same

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Cyrill V. Gorcnov
On Monday 01 January 2007 10:45, you wrote: | Cyrill V. Gorcnov wrote: | On Monday 01 January 2007 04:19, you wrote: | | | | In order to not get in trouble with MADR (Mothers Against Drunk | | Releases) I decided to cut the 2.6.20-rc3 release early rather than wait | | for

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Arjan van de Ven
Given the above, some basic suggestions for page-based memory management: (a) If you need to allocate or free a single page, use the single page version of the routine/macro, rather than calling the multi-page version with an order value of zero, such as:

Re: new harddrive with media error

2007-01-01 Thread Tejun Heo
Al Viro wrote: From the look of it, I'd say that it's size reported by disk being more than what's accessible. Take a look at the block numbers... How so? ata1.00: ATA-7, max UDMA/133, 976773168 sectors: LBA48 NCQ (depth 0/32) sda: Current: sense key: Medium Error Additional sense:

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Robert P. J. Day
On Mon, 1 Jan 2007, Arjan van de Ven wrote: Given the above, some basic suggestions for page-based memory management: (a) If you need to allocate or free a single page, use the single page version of the routine/macro, rather than calling the multi-page version with an

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Arkadiusz Miskiewicz
On Monday 01 January 2007 02:19, Linus Torvalds wrote: In order to not get in trouble with MADR (Mothers Against Drunk Releases) I decided to cut the 2.6.20-rc3 release early rather than wait for midnight, because it's bound to be new years _somewhere_ out there. So here's to a happy 2007 for

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Alessandro Suardi
On 1/1/07, Linus Torvalds [EMAIL PROTECTED] wrote: In order to not get in trouble with MADR (Mothers Against Drunk Releases) I decided to cut the 2.6.20-rc3 release early rather than wait for midnight, because it's bound to be new years _somewhere_ out there. So here's to a happy 2007 for

Re: Freezer.h updated patch.

2007-01-01 Thread Olaf Hering
On Sun, Oct 22, Nigel Cunningham wrote: +++ b/drivers/macintosh/via-pmu.c -#include linux/suspend.h +#include linux/freezer.h This change will lead to compile errors with -Wimplicit-function-declaration. What part of freezer.h is used in via-pmu.c? drivers/macintosh/via-pmu.c:2014: warning:

Sparse 0.2 warnings from {asm,net}/checksum.h

2007-01-01 Thread Tilman Schmidt
With sparse 0.2, my previously sparse-clean driver generates the following warnings: include/asm/checksum.h:182:6: warning: symbol 'sum' shadows an earlier one include/asm/checksum.h:178:28: originally declared here include/net/checksum.h:33:6: warning: symbol 'sum' shadows an earlier one

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Christoph Hellwig
On Sun, Dec 31, 2006 at 02:32:25PM -0500, Robert P. J. Day wrote: + (a) Enclose those statements in a do - while block: + + #define macrofun(a, b, c) \ + do {\ + if (a == 5) \ +

Re: Using _syscall3 to manipulate files in a driver

2007-01-01 Thread bert hubert
On Sun, Dec 31, 2006 at 12:13:52PM -0500, Jon Smirl wrote: What is the simplest way to get open/close/read/write working under 2.6.20-rc2? I know this is horrible and shouldn't be done, I just want to get the driver working long enough to see if it is worth saving. I'm no expert, but try

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Robert P. J. Day
On Mon, 1 Jan 2007, Christoph Hellwig wrote: On Sun, Dec 31, 2006 at 02:32:25PM -0500, Robert P. J. Day wrote: + (a) Enclose those statements in a do - while block: + + #define macrofun(a, b, c) \ + do {\ + if (a

[2.6.20-rc3] PATA_MARVELL: total machine freeze

2007-01-01 Thread Paolo Ornati
Hello, Hardware MOBOIntel DG965SS (chipset G965 Express) PATA CDRW LG GCE-8400B I'm using PATA_MARVELL driver, and trying to burn a CD results in a total machine freeze (no SysRq / no output over serial console). The freeze doesn't happens immediately: the writing

Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

2007-01-01 Thread James Bottomley
On Sat, 2006-12-30 at 10:26 -0800, Linus Torvalds wrote: On Sat, 30 Dec 2006, Russell King wrote: And here's the flush_anon_page() part. This looks fine to me (if you need my ack). Add flush_anon_page() for ARM, to avoid data corruption issues when using fuse or other subsystems

Re: chaostables-0.2 2.6.19.1

2007-01-01 Thread Jan Engelhardt
On Jan 1 2007 15:38, Folkert van Heusden wrote: Hi, I'm trying to compile chaostables v0.2 on a system with kernel 2.6.19.1 and c-compiler 3.4.6: [EMAIL PROTECTED]:/usr/src/chaostables-0.2/kernel# make all make -C /lib/modules/2.6.19.1/build M=$PWD modules; make[1]: Entering directory

ACPI: EC: evaluating _Q10

2007-01-01 Thread Thomas Meyer
I know this topic was already on the list. But 2.6.20-rc3 still gives me tons of these messages in the log buffer: ACPI: EC: evaluating _Q10 ACPI: EC: evaluating _Q10 ACPI: EC: evaluating _Q10 ACPI: EC: evaluating _Q10 ACPI: EC: evaluating _Q10 [and so on] Is this an error at all? With kind

Re: Using _syscall3 to manipulate files in a driver

2007-01-01 Thread Paul Mundt
On Sun, Dec 31, 2006 at 12:13:52PM -0500, Jon Smirl wrote: I have the source code for a vendor written driver that is targeted at 2.6.9. It includes this and then proceeds to manipulate files from the driver. asmlinkage _syscall3(int,write,int,fd,const char *,buf,off_t,count) asmlinkage

Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

2007-01-01 Thread James Bottomley
On Thu, 2006-12-21 at 16:57 +, Russell King wrote: I'm not entirely convinced that it can be replaced. What if the page is in the page cache and is shared with other processes? That quite clearly falls under flush_dcache_page()'s remit. Actually, it should work. flush_dcache_page() is

Re: chaostables-0.2 2.6.19.1

2007-01-01 Thread Folkert van Heusden
I'm trying to compile chaostables v0.2 on a system with kernel 2.6.19.1 and c-compiler 3.4.6: [EMAIL PROTECTED]:/usr/src/chaostables-0.2/kernel# make all make -C /lib/modules/2.6.19.1/build M=$PWD modules; make[1]: Entering directory `/usr/src/linux-2.6.19.1' CC [M]

Re: [PATCH 2.6.19] mmc: Add support for SDHC cards

2007-01-01 Thread Philip Langdale
I will post the updated diff as a separate follow up. Pierre Ossman wrote: When you have a commit message larger than the patch, you know there is something wrong. ;) Please skip the part about MMC at least. Heh. I forget that you don't want to manually alter the email. Will do.

Re: chaostables-0.2 2.6.19.1

2007-01-01 Thread Jan Engelhardt
On Jan 1 2007 16:15, Folkert van Heusden wrote: I'm trying to compile chaostables v0.2 on a system with kernel 2.6.19.1 and c-compiler 3.4.6: /usr/src/chaostables-0.2/kernel/xt_CHAOS.c: In function `xt_chaos_target': /usr/src/chaostables-0.2/kernel/xt_CHAOS.c:53: error: too many arguments to

[PATCH 2.6.19] mmc: Add support for SDHC cards (Take 2)

2007-01-01 Thread Philip Langdale
Thanks to the generous donation of an SDHC card by John Gilmore, and the surprisingly enlightened decision by the SD Card Association to publish useful specs, I've been able to bash out support for SDHC. The changes are not too profound: i) Add a card flag indicating the card uses block level

Re: Using _syscall3 to manipulate files in a driver

2007-01-01 Thread Jon Smirl
On 1/1/07, Paul Mundt [EMAIL PROTECTED] wrote: On Sun, Dec 31, 2006 at 12:13:52PM -0500, Jon Smirl wrote: I have the source code for a vendor written driver that is targeted at 2.6.9. It includes this and then proceeds to manipulate files from the driver. asmlinkage

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Jan Engelhardt
On Dec 31 2006 19:23, Randy Dunlap wrote: #define setcc(cc) ({ \ partial_status = ~(SW_C0|SW_C1|SW_C2|SW_C3); \ partial_status |= (cc) (SW_C0|SW_C1|SW_C2|SW_C3); }) This _does_ return a value though, bad example. Where does it return a value? I don't see any uses of it in

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Olaf Hering
The final 2.6.20 release note should mention the following commit in some way: [NETFILTER]: Kconfig: improve conntrack selection It will break existing iptable setups without warning becausee it disables all related .config options. If one says NO to the new NF_CONNTRACK_ENABLED Netfilter

Re: new harddrive with media error

2007-01-01 Thread Alexander Nagel
Thanks for the input of everybody. i think the drive is broken and i will return it. Happy gnu year @ all Alex Tejun Heo schrieb: Al Viro wrote: From the look of it, I'd say that it's size reported by disk being more than what's accessible. Take a look at the block numbers... How so?

x86 instability with 2.6.1{8,9}

2007-01-01 Thread Ken Moffat
Hi, I've been running an athlon64 in 64-bit mode without problems, up to and incluing 2.6.19.1. A couple of weeks ago I decided to use it for testing x86 builds, since then it's been nothing but trouble in 32-bit mode. It still works fine when I boot it in 64-bit mode. I already had a 32-bit

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2007-01-01 Thread Ingo Oeser
Hi, On Monday, 1. January 2007 07:37, Amit Choudhary wrote: --- Ingo Oeser [EMAIL PROTECTED] wrote: #define kfree_nullify(x) do { \ if (__builtin_constant_p(x)) { \ kfree(x); \ } else { \ typeof(x) *__addr_x = x; \ Ok, I should change that line to

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2007-01-01 Thread Andreas Schwab
Ingo Oeser [EMAIL PROTECTED] writes: Hi, On Monday, 1. January 2007 07:37, Amit Choudhary wrote: --- Ingo Oeser [EMAIL PROTECTED] wrote: #define kfree_nullify(x) do { \ if (__builtin_constant_p(x)) { \ kfree(x); \ } else { \ typeof(x) *__addr_x = x; \

Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

2007-01-01 Thread Russell King
On Mon, Jan 01, 2007 at 09:35:17AM -0500, James Bottomley wrote: On Sat, 2006-12-30 at 10:26 -0800, Linus Torvalds wrote: On Sat, 30 Dec 2006, Russell King wrote: And here's the flush_anon_page() part. This looks fine to me (if you need my ack). Add flush_anon_page() for ARM,

Re: Finding hardlinks

2007-01-01 Thread Pavel Machek
Hi! If user (or script) doesn't specify that flag, it doesn't help. I think the best solution for these filesystems would be either to add new syscall int is_hardlink(char *filename1, char *filename2) (but I know adding syscall bloat may be objectionable) it's also the wrong api;

Re: [PATCH 2.6.19] mmc: Add support for SDHC cards

2007-01-01 Thread Pavel Machek
Hi! Hi all, Thanks to the generous donation of an SDHC card by John Gilmore, and the surprisingly enlightened decision by the SD Card Association to publish useful specs, I've been able to bash out support for SDHC. The changes are not too profound: So I sent that with the wrong

Re: LCA 2007 Kernel Miniconf CFP (better late than never...)

2007-01-01 Thread Pavel Machek
Hi! The Kernel miniconference at LCA 20007 is finally being organised and this is the call for participation: http://lca2007.linux.org.au/Miniconfs/Kernel The current schedule gives us 6 slots. ... (s2ram debugging session). Hmmm, it would be nice to be there... The other 3 slots

Re: Binary Drivers

2007-01-01 Thread Pavel Machek
Hi! You're not alone, I think everybody who knows, how things in a computer work shares this view. --- Two of the specific arguments I've heard are (a) that the board (and its hardware interfaces that the documentation would describe) involve IP licensed from a third party, which

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Randy Dunlap
Robert P. J. Day wrote: On Mon, 1 Jan 2007, Christoph Hellwig wrote: On Sun, Dec 31, 2006 at 02:32:25PM -0500, Robert P. J. Day wrote: + (a) Enclose those statements in a do - while block: + + #define macrofun(a, b, c) \ + do {\ +

Re: x86 instability with 2.6.1{8,9}

2007-01-01 Thread Alistair John Strachan
On Monday 01 January 2007 16:01, Ken Moffat wrote: Hi, I've been running an athlon64 in 64-bit mode without problems, up to and incluing 2.6.19.1. A couple of weeks ago I decided to use it for testing x86 builds, since then it's been nothing but trouble in 32-bit mode. It still works fine

Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

2007-01-01 Thread James Bottomley
On Sun, 2006-12-31 at 13:12 -0800, David Miller wrote: From: Linus Torvalds [EMAIL PROTECTED] Date: Sun, 31 Dec 2006 12:58:45 -0800 (PST) So there really is two different cases here: - flush the cache as seen by A PARTICULAR virtual mapping. This is ptrace, but it's other

Re: x86 instability with 2.6.1{8,9}

2007-01-01 Thread Ken Moffat
On Mon, Jan 01, 2007 at 04:48:55PM +, Alistair John Strachan wrote: Obviously papering over a severe bug, but why is it necessary for you to run a 32bit kernel to test 32bit userspace? If your 64bit kernel is stable, use the IA32 emulation surely? My 64-bit is pure64 on this

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Randy Dunlap
On Mon, 1 Jan 2007 17:42:31 +0900 Paul Mundt wrote: On Mon, Jan 01, 2007 at 02:59:32AM +0100, Folkert van Heusden wrote: regarding alignment that don't allow clear_page() to be used copy_page() in the memcpy() case), but it's going to need a lot of Maybe these optimalisations should

Re: [PATCH] OHCI: disallow autostop when wakeup is not available

2007-01-01 Thread Andrey Borzenkov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 15 November 2006 00:28, Alan Stern wrote: This patch (as822) prevents the OHCI autostop mechanism from kicking in if the root hub is not able or not allowed to issue wakeup requests. Signed-off-by: Alan Stern [EMAIL PROTECTED] ---

Re: [PATCH] Open Firmware device tree virtual filesystem

2007-01-01 Thread Segher Boessenkool
Not the same exact thing -- using a text representation for the property contents is a very different thing (and completely braindead). The filesystem bit is for groveling around and getting information from the shell prompt, or shell scripts. Text processing. If you want the binary bits,

Re: [PATCH 2.6.19] mmc: Add support for SDHC cards

2007-01-01 Thread Pierre Ossman
Pavel Machek wrote: Would you describe what SDHC is? I know SD flash cards, and IIRC SDIO cards exist, with functionality such as bluetooth...? But SDHC? SDHC is short for Secure Digital High Capacity. It's simply SD flash cards than conform to a new version of the protocol, a version

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Segher Boessenkool
If people want to return something from a ({ }) construct, they should do it explicitly, e.g. #define setcc(cc) ({ \ partial_status = ~(SW_C0|SW_C1|SW_C2|SW_C3); \ partial_status |= (cc) (SW_C0|SW_C1|SW_C2|SW_C3); \ partial_status; \ }) No, they generally should use

[PATCH] sound: hda: detect ALC883 on MSI K9A Platinum motherboards (MS-7280)

2007-01-01 Thread Leonard Norrgard
From: Leonard Norrgård [EMAIL PROTECTED] Recognize the Realtek ALC883 chip on MSI K9A Platinum motherboards (model no. MS-7280), enabling full sound capabilities. Signed-off-by: Leonard Norrgård [EMAIL PROTECTED] --- Error messages seen before this patch: cannot find the slot for index 0

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2007-01-01 Thread Pavel Machek
Hi! I decided to keep it simple. If someone is calling kfree_nullify() with anything other than a simple variable, then they should call kfree(). kfree_nullify() has to replace kfree() to be of any use one day. So this is not an option. Doing kfree() that writes to its argument is

Re: bluetooth memory corruption (was Re: ext3-related crash in 2.6.20-rc1)

2007-01-01 Thread Pavel Machek
Hi! Okay, I spoke too soon. bluetooth suspend memory corruption was _way_ harder to reproduce than expected. Took me 5-or-so-suspend cycles... so it is probably unrelated to the previous crash. can you try to reproduce this with 2.6.20-rc2 as well. Yep, here it is,

Re: replace memset(...,0,PAGE_SIZE) calls with clear_page()?

2007-01-01 Thread Dave Jones
On Mon, Jan 01, 2007 at 05:27:10AM -0500, Robert P. J. Day wrote: both look good... I'd be in favor of this. Maybe also add a part about using GFP_KERNEL whenever possible, GFP_NOFS from filesystem writeout code and GFP_NOIO from block writeout code (and never doing

Re: [PATCH] Consolidate default sched_clock()

2007-01-01 Thread Vincent Legoll
Hello, what about the following, on top of your patch ? It's trivial modif to kernel-doc style comment... -- Vincent Legoll diff --git a/kernel/sched.c b/kernel/sched.c index f92a239..2c51ec0 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -56,8 +56,8 @@ #include asm/unistd.h -/* - *

Re: Sparse 0.2 warnings from {asm,net}/checksum.h

2007-01-01 Thread Dave Jones
On Mon, Jan 01, 2007 at 03:23:45PM +0100, Tilman Schmidt wrote: With sparse 0.2, my previously sparse-clean driver generates the following warnings: include/asm/checksum.h:182:6: warning: symbol 'sum' shadows an earlier one include/asm/checksum.h:178:28: originally declared here

Re: [PATCH] Open Firmware device tree virtual filesystem

2007-01-01 Thread Mitch Bradley
David Miller wrote: We don't generally export binary representation files out of /proc or /sys, in fact this rule I believe is layed our precisely somewhere at least in the sysfs case. pci-sysfs exports PCI config space in binary. - To unsubscribe from this list: send the line

Re: [PATCH] preliminary sata_promise ATAPI support

2007-01-01 Thread Mikael Pettersson
On Sat, 30 Dec 2006 18:37:18 +0100 (MET), Mikael Pettersson wrote: This patch against 2.6.20-rc2 adds partial ATAPI support to the sata_promise driver. This patch is preliminary and for review only. ... As to why CD-writing fails with DMA enabled, I suspect that I either need to blacklist specific

Re: x86 instability with 2.6.1{8,9}

2007-01-01 Thread Ken Moffat
On Mon, Jan 01, 2007 at 05:07:58PM +, Ken Moffat wrote: On Mon, Jan 01, 2007 at 04:48:55PM +, Alistair John Strachan wrote: Obviously papering over a severe bug, but why is it necessary for you to run a 32bit kernel to test 32bit userspace? If your 64bit kernel is stable, use

Re: [PATCH] Documentation: Explain a second alternative for multi-line macros.

2007-01-01 Thread Jan Engelhardt
On Jan 1 2007 18:51, Segher Boessenkool wrote: If people want to return something from a ({ }) construct, they should do it explicitly, e.g. #define setcc(cc) ({ \ partial_status = ~(SW_C0|SW_C1|SW_C2|SW_C3); \ partial_status |= (cc) (SW_C0|SW_C1|SW_C2|SW_C3); \ partial_status; \ })

Re: [RFC] HZ free ntp

2007-01-01 Thread Roman Zippel
Hi, On Wednesday 20 December 2006 02:32, john stultz wrote: I know and all you have to change in the ntp and some related code is to replace HZ there with a variable, thus make it changable, so you can increase the update interval (i.e. it becomes 1s/hz instead of 1s/HZ). Untested patch

Re: [RFC] HZ free ntp

2007-01-01 Thread Roman Zippel
On Wednesday 20 December 2006 02:54, john stultz wrote: And here would be the follow on patch (again *untested*) for CONFIG_NO_HZ slowing the time accumulation down to once per second. Changing it to one creates a potential problem with calling second_overflow(). It should be called every

2.6.20 regression: suspend to disk no more works

2007-01-01 Thread Andrey Borzenkov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In *the same* configuration STD now fails with Cannot find swap device. The reason is changes in kernel/power/swap.c. In 2.6.19 it did not require valid swsusp_resume_device at all - it took first available swap device and saved image. Later during

Re: x86 instability with 2.6.1{8,9}

2007-01-01 Thread Alistair John Strachan
On Monday 01 January 2007 19:13, Ken Moffat wrote: On Mon, Jan 01, 2007 at 05:07:58PM +, Ken Moffat wrote: On Mon, Jan 01, 2007 at 04:48:55PM +, Alistair John Strachan wrote: Obviously papering over a severe bug, but why is it necessary for you to run a 32bit kernel to test 32bit

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Linus Torvalds
Jeff, what was the resolution to this one? Just revert the offending commit, or what? We're about five weeks into the 2.6.20-rc series. I was hoping for a two-month release rather than the usual dragged-out three months, so I'd like to get these regressions to be actively fixed. By forcible

Re: kref refcnt and false positives

2007-01-01 Thread Benjamin Herrenschmidt
This makes my Maple board very unhappy -- it triggers a WARN_ON() in kref_get() lots of times... Maybe the refounting in prom.c is broken ? I'll have a look. Ben. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [patch 2.6.20-rc1 4/6] PXA GPIO wrappers

2007-01-01 Thread David Brownell
For the list archives: here's the latest version of this. The signed-off-by discussion is offlist right now, so this version has none; see what eventually merges. From: Philipp Zabel [EMAIL PROTECTED] Arch-neutral GPIO calls for PXA. Index: pxa/include/asm-arm/arch-pxa/gpio.h

Re: [patch 2.6.20-rc1 0/6] arch-neutral GPIO calls

2007-01-01 Thread David Brownell
On Sunday 31 December 2006 11:11 am, Kevin O'Connor wrote: Based on earlier discussion, I'm sending a refresh of the generic GPIO patch, with several (ARM based) implementations in separate patches: Hi Dave, I'm very interested in seeing an abstraction for gpios. Good! I suspect most

Re: [2.6 patch] kconfig: remove the unused requires syntax

2007-01-01 Thread Roman Zippel
Hi, On Thursday 28 December 2006 22:05, Adrian Bunk wrote: How to add some warning prints? Simple, see the attached patch. And what's the problem with changing the generated files? There doesn't seem to be much activity in this area, and the noise of changing the generated files doesn't

Re: [PATCH] Open Firmware device tree virtual filesystem

2007-01-01 Thread Jan Engelhardt
On Jan 1 2007 08:10, Mitch Bradley wrote: We don't generally export binary representation files out of /proc or /sys, in fact this rule I believe is layed our precisely somewhere at least in the sysfs case. pci-sysfs exports PCI config space in binary. cat

[PATCH 0/8] UML - Locking fixes and code cleanup

2007-01-01 Thread Jeff Dike
As before, this is post-2.6.20 material. These patches fix locking, style and whitespace problems, and make small code cleanups. Jeff - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

[PATCH 3/8] UML - audio driver locking

2007-01-01 Thread Jeff Dike
Comment the lack of locking and make a couple of variables static. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/hostaudio_kern.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) Index: linux-2.6.18-mm/arch/um/drivers/hostaudio_kern.c

[PATCH 4/8] UML - audio driver formatting

2007-01-01 Thread Jeff Dike
Whitespace and style fixes. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/hostaudio_kern.c | 160 +-- 1 file changed, 73 insertions(+), 87 deletions(-) Index: linux-2.6.18-mm/arch/um/drivers/hostaudio_kern.c

[PATCH 2/8] UML - watchdog driver formatting

2007-01-01 Thread Jeff Dike
Whitespace and style fixes. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/harddog_kern.c | 33 +++-- arch/um/drivers/harddog_user.c | 23 ++- 2 files changed, 17 insertions(+), 39 deletions(-) Index:

[PATCH 1/8] UML - watchdog driver locking

2007-01-01 Thread Jeff Dike
Replace BKL use with a spinlock. Also fix the control so that open doesn't return holding a lock. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/harddog_kern.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) Index:

[PATCH 6/8] UML - make two variables static

2007-01-01 Thread Jeff Dike
Make a couple of variables static. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/port_kern.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.18-mm/arch/um/drivers/port_kern.c === ---

[PATCH 7/8] UML - port driver formatting

2007-01-01 Thread Jeff Dike
Whitespace and style fixes. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/drivers/port_kern.c | 46 +++ arch/um/drivers/port_user.c | 51 +--- 2 files changed, 43 insertions(+), 54 deletions(-) Index:

[PATCH 8/8] UML - Kill a compilation warning

2007-01-01 Thread Jeff Dike
Kill a compilation warning. Signed-off-by: Jeff Dike [EMAIL PROTECTED] -- arch/um/kernel/exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.18-mm/arch/um/kernel/exec.c === ---

[PATCH 5/8] UML - mconsole locking

2007-01-01 Thread Jeff Dike
Locking fixes. Locking was totally lacking for the mconsole_devices, which got a spin lock, and the unplugged pages data, which got a mutex. The locking of the mconsole console output code was confused. Now, the console_lock (renamed to client_lock) protects the clients list. Signed-off-by:

Re: [PATCH 1/6] UML - Console locking fixes

2007-01-01 Thread Jeff Dike
On Fri, Dec 29, 2006 at 03:48:02PM -0800, Randy Dunlap wrote: /* * Normally, ... if ( (several of these) Yeah, I'm working off the most blatant style violations at the moment. Jeff -- Work email - jdike at linux dot intel dot com - To

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Jeff Garzik
Linus Torvalds wrote: Jeff, what was the resolution to this one? Just revert the offending commit, or what? We're about five weeks into the 2.6.20-rc series. I was hoping for a two-month release rather than the usual dragged-out three months, so I'd like to get these regressions to be

Re: [patch 2.6.20-rc1 1/6] GPIO core

2007-01-01 Thread Pavel Machek
Hi! Well. when you see (something) = gpio_number + 5 ... you most likely have an error. One could surely apply that argument to hundreds of places throughout the kernel ... that doesn't make it a good one. One of the downfalls of many object oriented programming efforts was this same

Cut power to a USB port?

2007-01-01 Thread Andrew Barr
I have a simple question perhaps someone can help me with here... I have one of those simple LED keyboard lamps that get their power from the USB port. Is there some way in Linux, using files under /sys I would imagine, to cut power to the USB port into which this lamp is plugged? I know I would

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Alan
On Mon, 1 Jan 2007 12:13:08 -0800 (PST) Linus Torvalds [EMAIL PROTECTED] wrote: Jeff, what was the resolution to this one? Just revert the offending commit, or what? If you revert the commit you end with all the PCI resource tree breakage back We're about five weeks into the 2.6.20-rc

Re: Happy New Year (and v2.6.20-rc3 released)

2007-01-01 Thread Alan
* I was unable to argue against Alan's logic behind 368c73d4f689dae0807d0a2aa74c61fd2b9b075f but I just don't like it. Regardless of whether or not this truly reflects how the PCI device is wired, it makes pci_request_regions() and similar resource handling code behave differently.

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-01 Thread Pekka Enberg
On 1/1/07, Amit Choudhary [EMAIL PROTECTED] wrote: +#define KFREE(x) \ + do {\ + kfree(x); \ + x = NULL; \ + } while(0) NAK until you have actual callers for it. CONFIG_SLAB_DEBUG already catches use after

Re: [patch 2.6.20-rc1 1/6] GPIO core

2007-01-01 Thread David Brownell
On Monday 01 January 2007 12:55 pm, Pavel Machek wrote: Think of it as cookies represented by integers if you like. typedef int gpio_t would hurt, and would serve as a useful documentation hint. Yes, I agree that such needless obfuscation hurts. ;) Plus, such a typedef would disagree

Re: Patch i386: Relocatable kernel support causes instant reboot

2007-01-01 Thread Jean Delvare
Hi Vivek, Sorry for the delay, I'm just back from vacation. I tried it all again with 2.6.20-rc3 just in case, but the problem I've hit is still present. On Fri, 22 Dec 2006 16:10:56 +0530, Vivek Goyal wrote: Can you please also upload boot/compressed/vmlinux. I've shared the whole build tree

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2007-01-01 Thread Ingo Oeser
On Monday, 1. January 2007 17:25, Andreas Schwab wrote: Ingo Oeser [EMAIL PROTECTED] writes: Then this works, because the side effect (+20) is evaluated only once. It's not a side effect, it's a non-lvalue, and you can't take the address of a non-lvalue. Just verified this. So If we

Re: [PATCH] radeonfb: add support for newer cards

2007-01-01 Thread Luca Tettamanti
Il Mon, Jan 01, 2007 at 10:25:51PM +0100, Luca Tettamanti ha scritto: Hi Ben, Andrew, I've rebased 'ATOM BIOS patch' from Solomon Peachy to apply to 2.6.20. The patch adds support for newer Radeon cards and is mainly based on X.Org code. And - for an easier review - this is the diff between

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2007-01-01 Thread Jan Engelhardt
On Jan 1 2007 22:40, Ingo Oeser wrote: On Monday, 1. January 2007 17:25, Andreas Schwab wrote: Ingo Oeser [EMAIL PROTECTED] writes: Then this works, because the side effect (+20) is evaluated only once. It's not a side effect, it's a non-lvalue, and you can't take the address of a

Re: Cut power to a USB port?

2007-01-01 Thread Oliver Neukum
Am Montag, 1. Januar 2007 21:56 schrieb Andrew Barr: I have a simple question perhaps someone can help me with here... I have one of those simple LED keyboard lamps that get their power from the USB port. Is there some way in Linux, using files under /sys I would imagine, to cut power to the

[PATCH] [RESEND] include/linux/slab.h: new KFREE() macro.

2007-01-01 Thread Amit Choudhary
Description: new KFREE() macro to set the variable NULL after freeing it. Signed-off-by: Amit Choudhary [EMAIL PROTECTED] diff --git a/include/linux/slab.h b/include/linux/slab.h index 1ef822e..28da74c 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -75,6 +75,12 @@ void

Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

2007-01-01 Thread Miklos Szeredi
I'm willing to do that - and I guess this means we can probably do this instead of walking the list of VMAs for the shared mapping, thereby hitting both anonymous and shared mappings with the same code? But for the get_user_pages() case there's no point, is there? The VMA and the

Re: [RFC] MTD driver for MMC cards

2007-01-01 Thread Arnd Bergmann
On Sunday 31 December 2006 13:32, Pierre Ossman wrote: Arnd Bergmann wrote: I'm a complete MTD noob, but what uses does the MTD layer have besides JFFS2. If it's none, than this advantage isn't that big of a deal. * It becomes possible to use MMC cards with jffs2 even with CONFIG_BLOCK

2.6.20-rc2+: CFQ halving disk throughput.

2007-01-01 Thread Rene Herman
Tejun Heo wrote: Everything seems fine in the dmesg. Performance degradation is probably some other issue in -rc kernel. I'm suspecting recently fixed block layer bug. If it's still the same in the next -rc, please report. In fact, it's CFQ. The PATA thing was a red herring. 2.6.20-rc2 and

Re: 2.6.20-rc2+: CFQ halving disk throughput.

2007-01-01 Thread Rene Herman
Rene Herman wrote: In fact, it's CFQ. The PATA thing was a red herring. 2.6.20-rc2 and 3 give me ~ 24 MB/s from hdparm t /dev/hda while 2.6.20-rc1 and below give me ~ 50 MB/s. Jens: this is due to [PATCH] cfq-iosched: tighten allow merge criteria, 719d34027e1a186e46a3952e8a24bf91ecc33837:

Re: Finding hardlinks

2007-01-01 Thread Mikulas Patocka
Hi! If user (or script) doesn't specify that flag, it doesn't help. I think the best solution for these filesystems would be either to add new syscall int is_hardlink(char *filename1, char *filename2) (but I know adding syscall bloat may be objectionable) it's also the wrong api; the

  1   2   3   4   >