Re: [ofa-general] [PATCH 2.6.21-rc2] iw_cxgb3: Don't use mm after its freed in iwch_mmap().

2007-03-06 Thread Roland Dreier
Thanks, applied. - 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: [5/6] 2.6.21-rc2: known regressions

2007-03-06 Thread Thomas Gleixner
On Tue, 2007-03-06 at 08:25 +0100, Ingo Molnar wrote: The programming of periodic tick devices needs to be saved/restored across suspend/resume - otherwise we might end up with a system coming up that relies on getting a PIT (or HPET) interrupt, while those devices default to 'no

Question: schedule()

2007-03-06 Thread Mockern
Hi, What does schedule() function do? I want to make my kthread preemptive. 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

Re: [patch 00/13] Syslets, Threadlets, generic AIO support, v3

2007-03-06 Thread Pavel Machek
As for why common abstractions like file are a good thing, think about why having /dev/null is cleaner that having a special plug DEVNULL_FD fd value to be plugged everywhere, This is a stupid comparaison. By your logic we should also have /dev/stdin, /dev/stdout and /dev/stderr. Bzzt,

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 23:54:45.0 +0100 +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04 11:50:48.0 +0100

Re: [patch] paravirt: VDSO page is essential

2007-03-06 Thread Ingo Molnar
* Roland McGrath [EMAIL PROTECTED] wrote: Jan Beulich just posted a patch to do just this - relocate the vdso's ELF header. If that's all that's really required to keep COMPAT_VDSO viable under PARAVIRT, then it seems like the way to go. I found

Re: [PATCH] sched: fix idle at tick

2007-03-06 Thread J.A. Magallón
On Tue, 6 Mar 2007 18:41:08 +1100, Con Kolivas [EMAIL PROTECTED] wrote: On Tuesday 06 March 2007 18:02, Andrew Morton wrote: On Tue, 6 Mar 2007 17:25:36 +1100 Con Kolivas [EMAIL PROTECTED] wrote: Signed-off-by: Con Kolivas [EMAIL PROTECTED] --- kernel/sched.c |2 +- 1 file

Re: [ck] Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler

2007-03-06 Thread Xavier Bestel
On Tue, 2007-03-06 at 09:10 +1100, Con Kolivas wrote: Hah I just wish gears would go away. If I get hardware where it runs at just the right speed it looks like it doesn't move at all. On other hardware the wheels go backwards and forwards where the screen refresh rate is just perfectly a

2.6.21-rc2-mm2

2007-03-06 Thread Andrew Morton
Temporarily at http://userweb.kernel.org/~akpm/2.6.21-rc2-mm2/ Will appear later at ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc2/2.6.20-rc2-mm2/ - git-block.patch is having problems which are getting in the way - it has been dropped. - As a consequence all

Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1]

2007-03-06 Thread Jean Delvare
Hi Greg, Andrew, J.A., On Mon, 5 Mar 2007 16:44:44 -0800, Greg KH wrote: On Mon, Mar 05, 2007 at 04:33:20PM -0800, Andrew Morton wrote: On Tue, 6 Mar 2007 01:16:21 +0100 J.A. Magall__n [EMAIL PROTECTED] wrote: On Fri, 2 Mar 2007 03:00:26 -0800, Andrew Morton [EMAIL PROTECTED]

Re: SATA resume slowness, e1000 MSI warning

2007-03-06 Thread Ingo Molnar
* Kok, Auke [EMAIL PROTECTED] wrote: BUG: at drivers/pci/msi.c:611 pci_enable_msi() I would poke Eric Biederman(sp?) about this one. Maybe its even solved by the MSI-enable-related patch he posted in the past 24-48 hours. I tried the 3-patch series [PATCH 0/3] Basic msi bug fixes..

Re: 2.6.21-rc2-mm2

2007-03-06 Thread J.A. Magallón
On Tue, 6 Mar 2007 00:44:08 -0800, Andrew Morton [EMAIL PROTECTED] wrote: Temporarily at http://userweb.kernel.org/~akpm/2.6.21-rc2-mm2/ Does this include a fix for the NFS problem ? BTW, I have in my kernel a patch like this below, isn't it needed ? Original thread:

Re: SATA resume slowness, e1000 MSI warning

2007-03-06 Thread Ingo Molnar
* Ingo Molnar [EMAIL PROTECTED] wrote: with real resume it takes even longer time - but i dont see where the delays come from in that case - i suspect it's SATA. update: Thomas' PIT/HPET resume-fix patch fixed the delay for me. Ingo - To unsubscribe from this list: send the line

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Rafael J. Wysocki
On Tuesday, 6 March 2007 09:32, Pavel Machek wrote: Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig 2007-02-28 23:54:45.0 +0100 +++

Re: [patch] paravirt: VDSO page is essential

2007-03-06 Thread Roland McGrath
-# define VDSO_PRELINK VDSO_HIGH_BASE +# ifndef CONFIG_XEN +# define VDSO_PRELINK VDSO_HIGH_BASE +# else +# define VDSO_PRELINK (0UL - FIX_VDSO * PAGE_SIZE) +# endif should be Kconfig driven, not #ifdef driven, due to cleanliness and also because lguest wants

Re: [patch] paravirt: VDSO page is essential

2007-03-06 Thread Jeremy Fitzhardinge
Roland McGrath wrote: For everything else to work, it needs to be set by changing __FIXADDR_TOP, which seems to be done by calling reserve_top_address early enough. It looks like that needs to be properly tied into paravirt_ops somehow. The startup code for whatever hypervisor you're

RE: Question: schedule()

2007-03-06 Thread albcamus
your kthread IS preemptible unless you call preempt_disable or some locking functions explicitly . Regards, albcamus 2007/3/6, Mockern [EMAIL PROTECTED]: Hi, What does schedule() function do? I want to make my kthread preemptive. Thanks - To unsubscribe from this list: send the line

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Andrew Morton
On Tue, 6 Mar 2007 10:06:23 +0100 J.A. Magallón [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 00:44:08 -0800, Andrew Morton [EMAIL PROTECTED] wrote: Temporarily at http://userweb.kernel.org/~akpm/2.6.21-rc2-mm2/ Does this include a fix for the NFS problem ? Which NFS problem?

Re: Trouble using some (fast) compact flash as ide device on an embedded system

2007-03-06 Thread Marco Lazzarotto
Ciao! Bartlomiej Zolnierkiewicz ha scritto: On Friday 02 March 2007, Pavel Machek wrote: Hi! As I reported in bug 8036 in bugzilla.kernel.org, Hardware Environment: - Use a compact flash SanDisk SDCFB-128 Firmware revision HDX 2.15 (we used other compact flashes with the same hw ad sw

Re: [S390] system call cleanup.

2007-03-06 Thread Martin Schwidefsky
On Tue, 2007-03-06 at 07:27 +, Christoph Hellwig wrote: + struct pt_regs *regs = task_pt_regs(current); + char *filename; + unsigned long result; + int rc; + + filename = getname(compat_ptr(regs-orig_gpr2)); + if (IS_ERR(filename)) { + result =

Re: PAGE_SIZE Availability Inconsistency

2007-03-06 Thread Christoph Hellwig
On Mon, Mar 05, 2007 at 03:55:06PM -0800, David Brown wrote: I was rtfc'ing the code one day and noticed somethings about the PAGE_SIZE define that is kinda inconsistent around its relative location to the __KERNEL__ define. On some architectures the PAGE_SIZE is outside the __KERNEL__

Re: Question: schedule()

2007-03-06 Thread Schmidt Michal
Mockern wrote: Hi, What does schedule() function do? I want to make my kthread preemptive. It makes a scheduling decision, i.e. it assigns the CPU time to a suitable runnable task. If called with the current task's state set to TASK_(UN)INTERRUPTIBLE, it puts the task to sleep. Kernel

BUG in kernel-rt 2.6.20-0119.rt8

2007-03-06 Thread Zoltan Boszormenyi
Hi, I am using kernel-rt on my FC6/x86-64 system, the CPU is an Athlon64 X2. It locks up very rarely (I haven't found any sign in the logs for that) but I always get this on shutdown, I wonder if it might be related to the lockup: Mar 5 23:53:52 static-81-17-177-202 kernel: BUG: using

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

2007-03-06 Thread David Howells
Wu, Bryan [EMAIL PROTECTED] wrote: When adding utrace support to blackfin architecture, I found a compiling error in nommu related utrace stuff. Then this little patch will fix this for nommu arch utrace. You really don't want to do it like this. This prevents ELF shared libraries from being

Re: 2.6.21-rc2-mm2

2007-03-06 Thread J.A. Magallón
On Tue, 6 Mar 2007 01:15:24 -0800, Andrew Morton [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 10:06:23 +0100 J.A. Magallón [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 00:44:08 -0800, Andrew Morton [EMAIL PROTECTED] wrote: Temporarily at

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 23:54:45.0 +0100 +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04 11:50:48.0

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Andrew Morton
On Tue, 6 Mar 2007 10:38:23 +0100 J.A. Magallón [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 01:15:24 -0800, Andrew Morton [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 10:06:23 +0100 J.A. Magallón [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 00:44:08 -0800, Andrew Morton [EMAIL PROTECTED]

Re: 2.6.21-rc2-mm2

2007-03-06 Thread J.A. Magallón
On Tue, 6 Mar 2007 01:42:40 -0800, Andrew Morton [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 10:38:23 +0100 J.A. Magallón [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 01:15:24 -0800, Andrew Morton [EMAIL PROTECTED] wrote: On Tue, 6 Mar 2007 10:06:23 +0100 J.A. Magallón [EMAIL PROTECTED]

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

2007-03-06 Thread Wu, Bryan
On Tue, 2007-03-06 at 09:37 +, David Howells wrote: Wu, Bryan [EMAIL PROTECTED] wrote: When adding utrace support to blackfin architecture, I found a compiling error in nommu related utrace stuff. Then this little patch will fix this for nommu arch utrace. You really don't want to

[kj]patch7:replace pci_find_device in sound/oss/trident.c

2007-03-06 Thread Surya
Hi, Cleanup of pci_find_device to pci_get_device in sound/oss/trident.c Applies and compiles clean to latest Linus tree. Not tested! thanks.. Signed-off-by: Surya Prabhakar [EMAIL PROTECTED] --- diff --git a/sound/oss/trident.c b/sound/oss/trident.c index 72a8a0e..882ab27 100644 ---

[PATCH] Use a zero-size array in the struct devres

2007-03-06 Thread Catalin Marinas
Commit 9ac7849e35f705830f7b016ff272b0ff1f7ff759 adds the devres structure containing a flexible unsigned long long array, with a comment about the guaranteed alignment. According to the gcc manual, flexible arrays are considered incomplete types and it is an error to ask for their alignment. This

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

2007-03-06 Thread Kari Hurtta
Vaidyanathan Srinivasan [EMAIL PROTECTED] writes in gmane.linux.kernel,gmane.linux.kernel.mm: --- linux-2.6.20.orig/mm/pagecache_acct.c +++ linux-2.6.20/mm/pagecache_acct.c @@ -29,6 +29,7 @@ #include linux/uaccess.h #include asm/div64.h #include linux/pagecache_acct.h +#include

Makefile for module with multiple directories

2007-03-06 Thread Rick Brown
Hi, I want to compile a kernel module whose source is organized in a directory hierarchy. For eg: driver |---A ||---1.c ||---2.c | |---B |---3.c |---4.c I want to compile a single module (.ko) out of these source files. Can you please suggest me a Makefile?

BUG() during suspend to disk (2.6.21-rc2, x86_64)

2007-03-06 Thread Vivek Goyal
Hi, I see following BUG() on serial console while hibernating on a x86_64 machine. I am using 2.6.21-rc2 kernel. BUG: at arch/x86_64/kernel/acpi/sleep.c:70 init_low_mapping() Call Trace: [80214b9a] acpi_save_state_mem+0x70/0xd6 [8036e90e] acpi_pm_enter+0x23/0xc1

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Linus Torvalds [EMAIL PROTECTED]: Ok, it does indeed solve the problem for me. Not yet for me unfortunately, although this seems to help. Is this the patch I should have applied? http://lkml.org/lkml/2007/3/5/445 With this applied, on resume I get *some* screen output soon after

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

2007-03-06 Thread David Woodhouse
On Tue, 2007-03-06 at 14:53 +1300, Paul Collins wrote: In case it's of interest, 2.6.20 has been running fine on my PowerBook5,4. How much memory? What if you boot with mem=512M or mem=256M? It works fine on my PowerBook5,3 unless I do that. -- dwmw2 - To unsubscribe from this list: send

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Linus Torvalds [EMAIL PROTECTED]: Ok, it does indeed solve the problem for me. Not yet for me unfortunately, although this seems to help. Is this the patch I should have applied? http://lkml.org/lkml/2007/3/5/445 With this applied, on resume I get *some* screen output soon after

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

2007-03-06 Thread Ingo Molnar
* Michael S. Tsirkin [EMAIL PROTECTED] wrote: Quoting Linus Torvalds [EMAIL PROTECTED]: Ok, it does indeed solve the problem for me. Not yet for me unfortunately, although this seems to help. Is this the patch I should have applied? http://lkml.org/lkml/2007/3/5/445 With this

Re: khubd and ent:sda1 sucking CPU with reiser4 + USB HD

2007-03-06 Thread Oliver Neukum
Am Dienstag, 6. März 2007 05:13 schrieb Eric Buddington: reiser4[khubd(163)]: commit_current_atom (fs/reiser4/txnmgr.c:1049)[nikita-3176]: WARNING: Flushing like mad: 16384 reiser4[khubd(163)]: commit_current_atom (fs/reiser4/txnmgr.c:1049)[nikita-3176]: WARNING: Flushing like mad: 32768

Re: [linux-usb-devel] [DOC] The documentation for HID Simple Driver Interface 0.5.0

2007-03-06 Thread Jiri Kosina
On Tue, 6 Mar 2007, Li Yu wrote: If we define HID bus allowing drivers to bind on VID:PID and provide default library module for parsing HID reports and providing access to HID transports (USB/BT) then writing tiny drivers adjusting just a part of hid_input_event and relying on default

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Ingo Molnar [EMAIL PROTECTED]: Subject: Re: [5/6] 2.6.21-rc2: known regressions * Michael S. Tsirkin [EMAIL PROTECTED] wrote: Quoting Linus Torvalds [EMAIL PROTECTED]: Ok, it does indeed solve the problem for me. Not yet for me unfortunately, although this seems to

Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1]

2007-03-06 Thread Jean Delvare
Hi All, On Tue, 6 Mar 2007 09:45:43 +0100, Jean Delvare wrote: I guess we need to wait and see if someone hits the same problems with an in-kernel driver. I just did, with i2c-nforce2. The key to trigger it seems to be to load an i2c bus driver _after_ loading i2c-isa and a suitable

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Andrew Morton
On Tue, 6 Mar 2007 19:27:18 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: Following panic ouccurred (always) on ia64/NUMA(with empty node.) Bug in here. == void move_native_irq(int irq) { struct irq_desc *desc = irq_desc + irq; if (likely(!(desc-status

2.6.21-rc2-mm2 rtc_cmos cart/horse problem

2007-03-06 Thread Mike Galbraith
Greetings, I noticed the below during boot. [ 28.772015] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 35.451802] rtc_cmos: dev (239:0) [ 35.461708] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0 [ 35.474330] rtc0: alarms up to one month -Mike - To

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Jens Axboe
On Tue, Mar 06 2007, J.A. Magallón wrote: On Tue, 6 Mar 2007 00:44:08 -0800, Andrew Morton [EMAIL PROTECTED] wrote: Temporarily at http://userweb.kernel.org/~akpm/2.6.21-rc2-mm2/ Does this include a fix for the NFS problem ? BTW, I have in my kernel a patch like this below,

Re: tdfx framebuffer garbles display in 2.6.19.5

2007-03-06 Thread DervishD
Hi Antonino :) * Antonino A. Daplas [EMAIL PROTECTED] dixit: On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote: * Antonino A. Daplas [EMAIL PROTECTED] dixit: On Thu, 2007-03-01 at 17:01 +0100, DervishD wrote: * Antonino A. Daplas [EMAIL PROTECTED] dixit: Can you try this

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

2007-03-06 Thread Vaidyanathan Srinivasan
Kari Hurtta wrote: Vaidyanathan Srinivasan [EMAIL PROTECTED] writes in gmane.linux.kernel,gmane.linux.kernel.mm: --- linux-2.6.20.orig/mm/pagecache_acct.c +++ linux-2.6.20/mm/pagecache_acct.c @@ -29,6 +29,7 @@ #include linux/uaccess.h #include asm/div64.h #include

Re: 2.6.21-rc2-mm2

2007-03-06 Thread KAMEZAWA Hiroyuki
On Tue, 6 Mar 2007 03:09:27 -0800 Andrew Morton [EMAIL PROTECTED] wrote: == Is mask always valid pointer ? I can only find two `struct irq_chip's in arch/ia64 and they both have a .mask. And a .unmask. So perhaps that is a misreading of what oopsed. There are no changes in

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

2007-03-06 Thread Soeren Sonnenburg
On Tue, 2007-03-06 at 12:46 +0200, Michael S. Tsirkin wrote: Quoting Ingo Molnar [EMAIL PROTECTED]: Subject: Re: [5/6] 2.6.21-rc2: known regressions * Michael S. Tsirkin [EMAIL PROTECTED] wrote: Quoting Linus Torvalds [EMAIL PROTECTED]: Ok, it does indeed solve the

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Con Kolivas
(tglx cc'ed as he may know something about this - sorry if it's inappropriate) On Tuesday 06 March 2007 19:44, Andrew Morton wrote: Temporarily at http://userweb.kernel.org/~akpm/2.6.21-rc2-mm2/ Will appear later at

Re: [S390] Use generic bug.

2007-03-06 Thread Heiko Carstens
On Mon, Mar 05, 2007 at 02:56:29PM -0800, David Miller wrote: From: Martin Schwidefsky [EMAIL PROTECTED] Date: Mon, 5 Mar 2007 23:43:54 +0100 + if (__builtin_constant_p(__ret_warn_on)) { \ + if (__ret_warn_on) \ +

encrypting jffs2 filesystem with DM-crypt or what else?

2007-03-06 Thread emin ak
Hi Folks, I need to encrypt a jffs2/mtd formatted flash filesystem for an embedded device, Normally using a loopback interface (cryptoloop, DM-crypt or loop-aes) solves this problem but they are not well known on journalling file systems (like jffs2) because of cached write etc.. Also I could'nt

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

2007-03-06 Thread Ingo Molnar
* Soeren Sonnenburg [EMAIL PROTECTED] wrote: BTW, Ingo, can you suspend/resume any number of times with this patch? well I could at least two times in a row in my minimalistic setup (config attached) however using the full kernel config it still hangs ... (config also attached in

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

2007-03-06 Thread Jeff Chua
On 3/6/07, Soeren Sonnenburg [EMAIL PROTECTED] wrote: Not yet for me unfortunately, although this seems to help. Is this the patch I should have applied? http://lkml.org/lkml/2007/3/5/445 Same problem for me on 2.6.21-rc2/rc1 on IBM X60s. I've applied this patch and Ingo Molnar's

Re: kref refcounting breakage in mainline

2007-03-06 Thread Mel Gorman
On (05/03/07 16:25), Greg KH didst pronounce: On Fri, Mar 02, 2007 at 12:58:33AM -0800, Andrew Morton wrote: -mm has a debugging patch which warns when atomic_dec_and_test() takes an atomic_t negative

Re: userspace pagecache management tool

2007-03-06 Thread Pádraig Brady
Andrew Morton wrote: Yes. Let's flesh it out the backup program policy some more: - Unconditionally invalidate output files - on entry to read(), probe pagecache, record which pages in the range are present - on entry to next read(), shoot down those pages from the previous read

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Ingo Molnar [EMAIL PROTECTED]: Subject: Re: [5/6] 2.6.21-rc2: known regressions * Soeren Sonnenburg [EMAIL PROTECTED] wrote: BTW, Ingo, can you suspend/resume any number of times with this patch? well I could at least two times in a row in my minimalistic setup

Re: kernel BUG at arch/x86_64/mm/../../i386/mm/hugetlbpage.c:140!

2007-03-06 Thread Alexander Y. Fomichev
On Saturday 03 March 2007, Nish Aravamudan wrote: On 3/2/07, Alexander Y. Fomichev [EMAIL PROTECTED] wrote: G'day I'm hit a bug on 2.6.21-rc1 at startup of mysql with 'large-pages' flag set. (at this point mysql trying to allocate pages from hugetlb pool by sysv shm syscalls). Seems

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Ingo Molnar [EMAIL PROTECTED]: Subject: Re: [5/6] 2.6.21-rc2: known regressions * Michael S. Tsirkin [EMAIL PROTECTED] wrote: Not yet for me unfortunately, although this seems to help. Is this the patch I should have applied? http://lkml.org/lkml/2007/3/5/445

[GIT PULL] MMC and NCP fixes

2007-03-06 Thread Pierre Ossman
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git for-linus to receive the following updates: drivers/mmc/mmc.c | 83 ++-- drivers/mmc/sdhci.c | 39 +++- fs/ncpfs/inode.c | 16 -

[PATCH 0/8] x86 boot, pda and gdt cleanups

2007-03-06 Thread Rusty Russell
Hi all, The GDT stuff on x86 is a little more complex than it need be, but playing with boot code is always dangerous. These compile and boot on UP and SMP for me, but Andrew should let the cook in -mm for a while. Thanks! Rusty. - To unsubscribe from this list: send the line

[PATCH] strlcpy is smart enough

2007-03-06 Thread Jean Delvare
strlcpy already accounts for the trailing zero in its length computation, so there is no need to substract one to the buffer size. Untested, as I do not have the hardware. Signed-off-by: Jean Delvare [EMAIL PROTECTED] --- arch/s390/kernel/debug.c |2 +-

Re: [PATCH] Use a zero-size array in the struct devres

2007-03-06 Thread Tejun Heo
Hello, Catalin. Catalin Marinas wrote: Commit 9ac7849e35f705830f7b016ff272b0ff1f7ff759 adds the devres structure containing a flexible unsigned long long array, with a comment about the guaranteed alignment. According to the gcc manual, flexible arrays are considered incomplete types and it

Re: kernel BUG at arch/x86_64/mm/../../i386/mm/hugetlbpage.c:140!

2007-03-06 Thread Alexander Y. Fomichev
On Saturday 03 March 2007, Bill Irwin wrote: On Fri, Mar 02, 2007 at 04:51:15PM +0300, Alexander Y. Fomichev wrote: I'm hit a bug on 2.6.21-rc1 at startup of mysql with 'large-pages' flag set. (at this point mysql trying to allocate pages from hugetlb pool by sysv shm syscalls). Seems like

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Thomas Gleixner
On Tue, 2007-03-06 at 22:58 +1100, Con Kolivas wrote: (tglx cc'ed as he may know something about this - sorry if it's inappropriate) John cc'ed as well :) ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc2/2. 6.20-rc2-mm2/ qemu doesn't like it with the config from my

Re: [PATCH 1/2] x86_64: add reporting of SVM flags to /proc/cpuinfo

2007-03-06 Thread Joerg Roedel
On Mon, Mar 05, 2007 at 04:25:31PM +0100, Andi Kleen wrote: On Monday 05 March 2007 15:39, Joerg Roedel wrote: From: Joerg Roedel [EMAIL PROTECTED] This patch adds the advanced SVM reporting to /proc/cpuinfo on the x86_64 architecture. Adding more fields to /proc/cpuinfo is always

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

2007-03-06 Thread Ingo Molnar
* Ingo Molnar [EMAIL PROTECTED] wrote: BTW, Ingo, can you suspend/resume any number of times with this patch? well I could at least two times in a row in my minimalistic setup (config attached) however using the full kernel config it still hangs ... (config also attached in case

Intel chooses not to support its HECI/QPS Chip in Linux?

2007-03-06 Thread Justin Piszcz
On Mon, 5 Feb 2007, Justin Piszcz wrote: On Mon, 5 Feb 2007, Arjan van de Ven wrote: On Sun, 2007-02-04 at 10:57 -0500, Justin Piszcz wrote: Hi, Anyone from Intel that reads LKML, could you provide an update as to what is happening with support for your HECI Controller/QPS chip, which

[PATCH 1/8] Remove cpu_gdt_table: use boot_gdt_table until migration to per-cpu

2007-03-06 Thread Rusty Russell
Linux uses three GDTs to boot: the boot_gdt_table, which contains only the __BOOT_CS and __BOOT_DS entries is used first up, before kernel is mapped at PAGE_OFFSET. Then we transition to cpu_gdt_table during boot, and finally we allocate a per-cpu GDT and switch to that. We can simplify this by

[PATCH 2/8] Remove NR_CPUS from asm-generic/percpu.h

2007-03-06 Thread Rusty Russell
I managed to get an error about NR_CPUS undefined after a make allyesconfig. Admittedly this was a patched kernel, but it's easy to remove it and avoid the error in future even if it's OK at the moment. Signed-off-by: Rusty Russell [EMAIL PROTECTED] diff -r 4519e3475c4f

[PATCH 3/8] Use per-cpu variables for GDT, PDA

2007-03-06 Thread Rusty Russell
Allocating PDA and GDT at boot is a pain. Using simple per-cpu variables adds happiness (although we need the GDT page-aligned for Xen, see later). Finally, we can simply call it cpu_gdt rather than enduring the superfluous and unnecessarily redundant tautology of cpu_gdt_table. Signed-off-by:

[PATCH 4/8] Cleanup setup_pda

2007-03-06 Thread Rusty Russell
The comment above this function has never been true in mainline: talking to Jeremy it's from previous patch churn. What setup_pda actually does is to write the segment entry for boot_pda into the boot_gdt_table. Ideally, this would be a static initialization, but because the addresses are split

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

2007-03-06 Thread Michael S. Tsirkin
Quoting Ingo Molnar [EMAIL PROTECTED]: Subject: Re: [5/6] 2.6.21-rc2: known regressions * Ingo Molnar [EMAIL PROTECTED] wrote: BTW, Ingo, can you suspend/resume any number of times with this patch? well I could at least two times in a row in my minimalistic setup (config

[PATCH 5/8] Cleanup GDT access

2007-03-06 Thread Rusty Russell
Now we have an explicit per-cpu GDT variable, we don't need to keep the descriptors around to use them to find the GDT. Also remove the cpu_pda() accessor: it's just a per-cpu variable. Signed-off-by: Rusty Russell [EMAIL PROTECTED] diff -r e9d5b8e6f5ee arch/i386/kernel/cpu/common.c ---

[PATCH 6/8] Allow per-cpu variables to be page-aligned

2007-03-06 Thread Rusty Russell
Xen wants page-aligned GDT (and PDA must not cross a page-boundary, but that doesn't happen at the moment since it's so close to start of page). Let's allow page-alignment in general for per-cpu data. Because larger alignments can use more room, we increase the max per-cpu memory to 64k rather

[PATCH 7/8] Page-align the GDT

2007-03-06 Thread Rusty Russell
Xen wants a dedicated page for the GDT. I believe VMI likes it too. lguest, KVM and native don't care. Simple transformation to page-aligned struct gdt_page. Signed-off-by: Rusty Russell [EMAIL PROTECTED] diff -r 576929b5b43f arch/i386/kernel/cpu/common.c --- a/arch/i386/kernel/cpu/common.c

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

2007-03-06 Thread Thomas Gleixner
On Tue, 2007-03-06 at 13:51 +0100, Ingo Molnar wrote: * Ingo Molnar [EMAIL PROTECTED] wrote: BTW, Ingo, can you suspend/resume any number of times with this patch? well I could at least two times in a row in my minimalistic setup (config attached) however using the full

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

2007-03-06 Thread Ingo Molnar
* Michael S. Tsirkin [EMAIL PROTECTED] wrote: update: this only happens with simulation, and even then it's not a full hang but 'hangs until i hit a key'. With real resume i'm hitting a real key anyway so it doesnt hang. How 'bout my .config? your config works fine here too - did

[PATCH 8/8] Convert PDA into the percpu section

2007-03-06 Thread Rusty Russell
Currently x86 (similar to x84-64) has a special per-cpu structure called i386_pda which can be easily and efficiently referenced via the %fs register. An ELF section is more flexible than a structure, allowing any piece of code to use this area. Indeed, such a section already exists: the per-cpu

Re: Problem with freezable workqueues

2007-03-06 Thread Johannes Berg
On Tue, 2007-02-27 at 22:51 +0100, Rafael J. Wysocki wrote: For 2.6.21-rc1 I've invented the appended workaround (works for me, waiting for Johannes to confirm it works for him too), but I think we need something better for -mm and future kernels. Finally I could get back to this but

Re: [PATCH 8/8] Convert PDA into the percpu section

2007-03-06 Thread Ingo Molnar
* Rusty Russell [EMAIL PROTECTED] wrote: Currently x86 (similar to x84-64) has a special per-cpu structure called i386_pda which can be easily and efficiently referenced via the %fs register. An ELF section is more flexible than a structure, allowing any piece of code to use this area.

Re: [PATCH 6/8] Allow per-cpu variables to be page-aligned

2007-03-06 Thread Ingo Molnar
* Rusty Russell [EMAIL PROTECTED] wrote: Xen wants page-aligned GDT (and PDA must not cross a page-boundary, but that doesn't happen at the moment since it's so close to start of page). Let's allow page-alignment in general for per-cpu data. Because larger alignments can use more room,

Re: [PATCH 1/8] Remove cpu_gdt_table: use boot_gdt_table until migration to per-cpu

2007-03-06 Thread Ingo Molnar
* Rusty Russell [EMAIL PROTECTED] wrote: +/* The boot Global Descriptor Table: after boot we allocate a per-cpu copy */ .align L1_CACHE_BYTES ENTRY(boot_gdt_table) - .fill GDT_ENTRY_BOOT_CS,8,0 - .quad 0x00cf9a00/* kernel 4GB code at 0x */ - .quad

Re: [PATCH 2/8] Remove NR_CPUS from asm-generic/percpu.h

2007-03-06 Thread Ingo Molnar
* Rusty Russell [EMAIL PROTECTED] wrote: I managed to get an error about NR_CPUS undefined after a make allyesconfig. Admittedly this was a patched kernel, but it's easy to remove it and avoid the error in future even if it's OK at the moment. -extern unsigned long

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Con Kolivas
On Tuesday 06 March 2007 23:52, Thomas Gleixner wrote: On Tue, 2007-03-06 at 22:58 +1100, Con Kolivas wrote: (tglx cc'ed as he may know something about this - sorry if it's inappropriate) John cc'ed as well :) Thanks. [8018401c] do_timer+0x301/0x419 --- list

Re: [PATCH 1/8] Remove cpu_gdt_table: use boot_gdt_table until migration to per-cpu

2007-03-06 Thread Ingo Molnar
* Ingo Molnar [EMAIL PROTECTED] wrote: + .quad 0x00cf9a00/* boot: 4GB code at 0x */ + .quad 0x00cf9200/* boot: 4GB data at 0x */ .quad 0x/* 0x20 unused */ .quad 0x/* 0x28 unused */

Re: [PATCH] Wistron button support for TravelMate 610

2007-03-06 Thread Dmitry Torokhov
Hi Eric, On 3/5/07, Eric Piel [EMAIL PROTECTED] wrote: Hello, Here is a patch adding support to wistron button for Acer TravelMate 610. This is tested and works fine with the exception of the leds which cannot be controlled (yet, that would require writing a led interface for them when I've

Re: Question: shutdown Linux from user space

2007-03-06 Thread Jiri Kosina
On Tue, 6 Mar 2007, Mockern wrote: I need to shutdown Linux from user level application. Which is the best way to do it? (I need it for embedded system) Use sys_reboot() syscall with either LINUX_REBOOT_CMD_HALT or LINUX_REBOOT_CMD_POWER_OFF. Also this is probably offtopic here, please use

Re: encrypting jffs2 filesystem with DM-crypt or what else?

2007-03-06 Thread markus reichelt
* emin ak [EMAIL PROTECTED] wrote: I need to encrypt a jffs2/mtd formatted flash filesystem for an embedded device, Normally using a loopback interface (cryptoloop, DM-crypt or loop-aes) solves this problem but they are not well known on journalling file systems (like jffs2) because of cached

[ALSA PATCH] alsa-git merge request

2007-03-06 Thread Jaroslav Kysela
Linus, please pull from [the linus branch at]: master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa.git linus gitweb interface: http://www.kernel.org/git/?p=linux/kernel/git/perex/alsa.git The GNU patch is available at:

Re: [PATCH] Use a zero-size array in the struct devres

2007-03-06 Thread Catalin Marinas
Tejun, Tejun Heo [EMAIL PROTECTED] wrote: Catalin Marinas wrote: Commit 9ac7849e35f705830f7b016ff272b0ff1f7ff759 adds the devres structure containing a flexible unsigned long long array, with a comment about the guaranteed alignment. According to the gcc manual, flexible arrays are

[PATCH -rt] airo: threaded IRQ handler sleeps forever

2007-03-06 Thread Michal Schmidt
The airo driver tries to avoid excessive latencies when issuing commands to the card by calling schedule() after several retries. But issuecommand() can be run from an interrupt handler. The function is careful enough to check with in_atomic() if it is safe to call schedule(). This check breaks

Re: 2.6.21-rc2-mm2

2007-03-06 Thread Thomas Gleixner
On Wed, 2007-03-07 at 00:24 +1100, Con Kolivas wrote: printk(KERN_INFO Time: %s clocksource has been installed.\n, clock-name); } So clock seems to be NULL, but was accessed before clocksource_calculate_interval() as well. It seems to be specifically tripping

Re: Boot time Bluetooth BUG: warning: (value m) at hid-core.c:793

2007-03-06 Thread Jiri Kosina
On Tue, 6 Mar 2007, Amedee Van Gasse wrote: This would be in fact very interesting to know. 1) does the BUG trigger only with newer versions of bluez-utils? 2) If so, does everything work with these older versions, or do the things fail in a same way, but silently? I could install an

Re: [PATCH] Use a zero-size array in the struct devres

2007-03-06 Thread Tejun Heo
Catalin Marinas wrote: Chapter 5.31 (http://gcc.gnu.org/onlinedocs/gcc/Alignment.html) states that it is an error to ask for the alignment of an incomplete type and flexible array members have incomplete type (according to ISO C99 as described in

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

2007-03-06 Thread francesco foresti
Hi, i'm happy to report that i've been able to boot my ibook without any error, using Ken Moffat's .config (thanks again Ken!) as a base. I'm putting the prominent part here for completeness. I still have no idea what caused these errors, but at least i'll try to find what was compiled with the

Re: [ck] Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler

2007-03-06 Thread Al Boldi
Xavier Bestel wrote: On Tue, 2007-03-06 at 09:10 +1100, Con Kolivas wrote: Hah I just wish gears would go away. If I get hardware where it runs at just the right speed it looks like it doesn't move at all. On other hardware the wheels go backwards and forwards where the screen refresh

Re: [PATCH] Use a zero-size array in the struct devres

2007-03-06 Thread Catalin Marinas
Tejun Heo [EMAIL PROTECTED] wrote: Catalin Marinas wrote: It sounds to me like the alignment of an incomplete type is not guaranteed (as you can't even enquire about it, though I might be wrong). This is probably dependent on the compiler as well - with gcc-3.3 on x86, __alignof__(unsigned

Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)

2007-03-06 Thread Alan Stern
On Mon, 5 Mar 2007, Roland McGrath wrote: The actual guarantee I need is that nobody will switch_to() the task while my routines are running. You can't get that. It can always be woken for SIGKILL (which is a good thing). What you are guaranteed is that if it does, it will never return

Re: [PATCH] Wistron button support for TravelMate 610

2007-03-06 Thread Éric Piel
03/06/2007 02:36 PM, Dmitry Torokhov wrote/a écrit: Hi Eric, I believe we have KEY_WLAN for Wifi, not KEY_XFER. I will fix that up. Oh! Yes, this sounds better, I used KEY_XFER just for historical reasons ;-) Thanks I'm sending just this one for now (as I can test it) but if you like it,

  1   2   3   4   5   6   7   8   9   10   >