linux-kernel mailing list

FromSubjectsort iconDate
Andrew Patterson
bdev size not updated correctly after underlying device is r...
I ran into this problem while trying to resize a mounted file-system after growing/shrinking the size of the underlying block device (in this case, a fibre-channel LUN). The kernel recognizes the device size change when revalidate_disk() is called, but the bdev->bd_inode->i_size will not be updated for any new openers if there are already openers of the device. In my case I was using LVM thusly: 1. Create a volume group with a physical volume on something that can be resized (us...
Apr 9, 7:29 pm 2008
Steven Rostedt
[PATCH] pop previous section in alternative.c
gcc expects all toplevel assembly to return to the original section type. The code in alteranative.c does not do this. This caused some strange bugs in sched-devel where code would end up in the .rodata section and when the kernel sets the NX bit on all .rodata, the kernel would crash when executing this code. This patch adds a .previous marker to return the code back to the original section. Signed-off-by: Steven Rostedt <srostedt@redhat.com> --- arch/x86/kernel/alternative.c | 12 +...
Apr 9, 7:04 pm 2008
Steven Rostedt
Re: [PATCH] pop previous section in alternative.c
Oh, and this would not be complete without giving Andrew Pinski complete credit for telling me it wasn't a gcc bug but a bug in the toplevel asm code in the kernel. ;-) -- Steve --
Apr 9, 7:51 pm 2008
David Brownell
[patch 2.6.25-rc8] watchdog: fix platform driver hotplug/col...
From: Kay Sievers <kay.sievers@vrfy.org> Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable watchdog drivers, to re-enable auto loading. [ dbrownell@users.sourceforge.net: more drivers; registration fixes ] Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Wim Van Sebroeck <wim@iguana.be> --- drivers/watchdog/at32ap...
Apr 9, 6:45 pm 2008
sukadev
[PATCH 0/3] clone64() and unshare64() system calls
This is a resend of the patch set Cedric had sent earlier. I ported the patch set to 2.6.25-rc8-mm1 and tested on x86 and x86_64. --- We have run out of the 32 bits in clone_flags ! This patchset introduces 2 new system calls which support 64bit clone-flags. long sys_clone64(unsigned long flags_high, unsigned long flags_low, unsigned long newsp); long sys_unshare64(unsigned long flags_high, unsigned long flags_low); The current version of clone64() does not support CLONE_PARE...
Apr 9, 6:26 pm 2008
sukadev
[PATCH 3/3] add the clone64() and unshare64() syscalls
From: Cedric Le Goater <clg@fr.ibm.com> Subject: [PATCH 3/3] add the clone64() and unshare64() syscalls This patch adds 2 new syscalls : long sys_clone64(unsigned long flags_high, unsigned long flags_low, unsigned long newsp); long sys_unshare64(unsigned long flags_high, unsigned long flags_low); The current version of clone64() does not support CLONE_PARENT_SETTID and CLONE_CHILD_CLEARTID because we would exceed the 6 registers limit of some arches. It's possible to get ...
Apr 9, 6:34 pm 2008
Jakub Jelinek
Re: [PATCH 3/3] add the clone64() and unshare64() syscalls
Can you explain why are you adding it for 64-bit arches too? unsigned long is there already 64-bit, and both sys_clone and sys_unshare have unsigned long flags, rather than unsigned int. Jakub --
Apr 9, 7:07 pm 2008
sukadev
[PATCH 2/3] add do_unshare()
From: Sukadev Bhattiprolu <sukadev@us.ibm.com> Subject: [PATCH 2/3] add do_unshare() This patch adds a do_unshare() routine which will be common to the unshare() and unshare64() syscall. Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> --- kernel/fork.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Index: 2.6.25-rc2-mm1/kernel/fork.c ==================================================================...
Apr 9, 6:34 pm 2008
sukadev
[PATCH 1/3] change clone_flags type to u64
From: Sukadev Bhattiprolu <sukadev@us.ibm.com> Subject: [lxc-dev] [patch -lxc 1/3] change clone_flags type to u64 This is a preliminary patch changing the clone_flags type to 64bits for all the routines called by do_fork(). It prepares ground for the next patch which introduces an enhanced version of clone() supporting 64bits flags. This is work in progress. All conversions might not be done yet. Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Sukadev Bhattiprol...
Apr 9, 6:32 pm 2008
Alan Mayer
[PATCH] x86_64: Change FIRST_SYSTEM_VECTOR to a variable.
Subject: [PATCH] x86_64: Change FIRST_SYSTEM_VECTOR to a variable. From: Alan Mayer <ajm@sgi.com> The SGI UV system needs several more system vectors than a vanilla x86_64 system. Rather than burden the other archs with extra system vectors that they don't use, change FIRST_SYSTEM_VECTOR to a variable, so that it can be dynamic. Signed-off-by: Alan Mayer <ajm@sgi.com> --- Index: ingo/arch/x86/kernel/i8259_64.c ==================================================================...
Apr 9, 5:33 pm 2008
Linus Torvalds
Re: [PATCH] x86_64: Change FIRST_SYSTEM_VECTOR to a variable.
Can we please just merge that syntax and make a single function like alloc_intr_gate(RESCHEDULE_VECTOR, reschedule_interrupt); instead? Linus --
Apr 9, 6:08 pm 2008
Alan Mayer
[PATCH] x86_64: Add XPC interrupt vectors for SGIs UV system.
Subject: [PATCH] x86_64: Add XPC interrupt vectors for SGIs UV system. From: Alan Mayer <ajm@sgi.com> The UV system needs two high priority interrupts for the XPC subsystem. This adds them below the common system interrupt vectors. Signed-off-by: Alan Mayer <ajm@sgi.com> --- Index: ingo/arch/x86/kernel/i8259_64.c =================================================================== --- ingo.orig/arch/x86/kernel/i8259_64.c 2008-04-09 10:08:11.000000000 -0500 +++ ingo/arch/x86/...
Apr 9, 5:35 pm 2008
Hiroshi Shimamoto
[RFC PATCH] ipc: add shm_locked for IPC shm
From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Shared memory users probably don't think the shared memory is swapped out. But actually shared memory could be swapped out under memory pressure. Linux has SHM_LOCK feature for prevent shared memory swapping, and it can be used by shmctl() after create the shared memory. There are some needs that SHM_LOCK is default behavior. This patch adds shm_locked sysctl to turn SHM_LOCK on when creating. kernel.shm_locked = 0, is default and the beh...
Apr 9, 5:31 pm 2008
Francis Moreau
Disk geometry from /sys
Hi, I'm trying to know the geometry of my hard disk from a bash script and that's the reason I'm looking in /sys. The reason is that I'd like to figure out the size of a cylinder without doing a ioctl(bdev, HDIO_GETGEO, &geo) Unfortunately I can't find anything useful and this is certainly a sign that I'm doing something wrong. Or maybe can I simply assume from my script that the geometry is always heads=255 and the number of sectors per track is 63 for all disks. Looking at parted(8) ...
Apr 9, 4:53 pm 2008
Mark Lord
Re: Disk geometry from /sys
$ DEV=/dev/sda $ GEOM="`/sbin/hdparm -g $DEV | awk '{print $3}'`" $ echo $GEOM 19457/255/63 $ --
Apr 9, 5:57 pm 2008
Lennart Sorensen
Re: Disk geometry from /sys
Many compact flash cards will report 16 heads, and 16 or 32 sectors per track. Compact flash can of course connect as an IDE drive, so they are worth supporting (I keep trying to get the grub guys to accept my patch to fix their code that also assumed all disks have 63 sectors per track if they use LBA, but which is false since compact flash also supports LBA even with smaller sizes). Simplest way to find out what geometry a disk pretents to have is to ask fdisk, and since the only use for the i...
Apr 9, 5:28 pm 2008
Bernd Eckenfels
Re: Disk geometry from /sys
Unfortunatelly there is also bios' view of the geometry, which is especially a problem for boot loaders. Just another hint: # lilo -T geom bios=0x00, cylinders=80, heads=2, sectors=18 ( 1.44Mb 2,880 sectors) C:H:S supported (PC bios) BIOS reports 2 hard drives bios=0x80, cylinders=527, heads=255, sectors=63 vol-ID: 2C731DD1 ( 4.33Gb 8,467,199 sectors) LBA32 supported (EDD bios) bios=0x81, cylinders=527, heads=255, sectors=63 ...
Apr 9, 6:16 pm 2008
Alan Cox
Re: Disk geometry from /sys
And some other OS's make certain assumptions about layout that must agree with that OS view of the disk. A good general rule is to believe the partition table information if present and if not use SG_IO to issue an IDENTIFY to any ATA or CFA drive to see how it has mapped the device. Even better make use fo the existing tools whenever possible - disk partitioning is more like magic than science Alan --
Apr 9, 5:52 pm 2008
Tvrtko A. Ursulin
libata errors with smartctl on 2.6.24, WD3200AAKS and nVidia...
Hi all, When running smartctl to get the attributes readout libata seems to get really confused on my system. After a timeout it recovers without apparent ill-effect, but the reported values are complete rubbish. Unfortunately I don't remember if this is a regression or it was always like this.. I have attached some data below, but if more is needed just shout! Regards, Tvrtko root@sol:~# uname -a Linux sol 2.6.24.3 #4 SMP PREEMPT Sat Mar 8 12:57:56 GMT 2008 x86_64 GNU/Linux root@sol...
Apr 9, 4:30 pm 2008
Tvrtko A. Ursulin
Western Digital GreenPower drives and Linux
Hi all, The subject may be a bit misleading since I haven't investigated the whole issue under other OS-es (nor do I plan to), but this is how the story goes.. Those fancy new WD GreenPower drives seem to be heavily suffering from the rapidly increasing head load/unload problem. And the bad thing is they don't respond to 'hdparm -B', which would mean (I think) their power management behaviour is solely up to their firmware. I got one of them (WD5000AACS) recently and to my horror after le...
Apr 9, 4:18 pm 2008
Auke Kok
[PATCH] e1000e: set CONFIG_E1000E=y in x86 defconfigs
This adds to the already default CONFIG_E1000=y in these files. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> --- arch/x86/configs/i386_defconfig | 1 + arch/x86/configs/x86_64_defconfig | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig index 3df340b..35f6308 100644 --- a/arch/x86/configs/i386_defconfig +++ b/arch/x86/configs/i386_defconfig @@ -814,6 +814,7 @@ CONFIG_NETDEV_1000=y CONFI...
Apr 9, 4:17 pm 2008
Andi Kleen
Re: [ANNOUNCE] e1000 to e1000e migration of PCI Express devi...
Regarding getting bitten: could you please add E1000E to the x86 defconfigs? That bit me an hour ago or so. Thanks, -Andi --
Apr 9, 3:38 pm 2008
Davide Libenzi
[patch] eventfd/kaio integration fix
Jeff Roberson discovered a race when using kaio eventfd based notifications. This patch fixes the race by moving the notification inside the spinlocked section of kaio. The operation is safe since eventfd spinlock and kaio one are unrelated. Signed-off-by: Davide Libenzi <davidel@xmailserver.org> - Davide --- fs/aio.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) Index: linux-2.6.mod/fs/aio.c ====================================================...
Apr 9, 2:45 pm 2008
Andrew Morton
Re: [patch] eventfd/kaio integration fix
On Wed, 9 Apr 2008 11:45:47 -0700 (PDT) Missing information. Yes, it's safe from that perspective. However with this patch applied, we will no longer run eventfd_signal() if kiocbIsCancelled(iocb). Convincing is needed, please? --
Apr 9, 3:08 pm 2008
Davide Libenzi
Re: [patch] eventfd/kaio integration fix
This was described in the original email. I posted a patch back then (waiting for Jeff test feedback - that never came), but then I forgot about it till now: This was the intended behaviour. No event was actually *ready*, so no need to signal completion of an event. - Davide --
Apr 9, 3:19 pm 2008
Jeff Roberson
Re: [patch] eventfd/kaio integration fix
I was thinking about stirring this up again myself. Testing was complicated by several factors. None of them related to this patch. However, I feel confident that this has solved our issue. --
Apr 9, 3:33 pm 2008
Bartlomiej Zolnierki...
[PATCH 3/3] siimage: remove proc_reports_siimage()
* proc_reports_siimage() is now only called by init_chipset_siimage() so inline it there. * Use array instead of switch statement for reporting clock modes. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> --- drivers/ide/pci/siimage.c | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) Index: b/drivers/ide/pci/siimage.c ===================================================...
Apr 9, 2:52 pm 2008
Bartlomiej Zolnierki...
[PATCH 2/3] siimage: add sil_* I/O ops
Add sil_iowrite{8,16,32}() and sil_ioread{8,16}() helpers, then use them to merge code accessing configuration registers through PCI and MMIO together. [ because of this SATA initialization bits from setup_mmio_siimage() are moved to init_chipset_siimage() ] This also cuts code size a bit: text data bss dec hex filename 4437 164 0 4601 11f9 drivers/ide/pci/siimage.o.before 3979 164 0 4143 102f drivers/ide/pci/siimage.o.after While at ...
Apr 9, 2:51 pm 2008
Bartlomiej Zolnierki...
[PATCH 1/3] siimage: do clocking register posting earlier in...
Do clocking register posting earlier in setup_mmio_siimage() to match code in init_chipset_siimage(). This is a preparation for the next patch which merges PCI and MMIO code paths together. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> --- drivers/ide/pci/siimage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: b/drivers/ide/pci/siimage.c =================================================================== --- a/drivers/ide/pci/siimage.c +++ b/dr...
Apr 9, 2:51 pm 2008
Harvey Harrison
[RFC PATCH] kernel: revamp handling of unaligned access
Create a linux/unaligned folder similar in spirit to the linux/byteorder folder to hold generic implementations collected from various arches. Currently there are five implementations: 1) cpu_endian.h: C-struct based, from asm-generic/unaligned.h 2) little_endian.h: Open coded byte-swapping, taken from arm 3) big_endian.h: Open coded byte-swapping, taken from arm 4) no_builtin_memcpy.h: multiple implementations 5) access_ok.h: x86 and others, unaligned access is ok. There is also the addition of...
Apr 9, 2:22 pm 2008
Harvey Harrison
[PATCH] unaligned access, fix some includes
Missed a few includes when moving some files around, this makes it actually compile. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> --- Applies on top of the unaligned access revamp, missed when moving files around. include/linux/unaligned/generic_be.h | 2 +- include/linux/unaligned/generic_le.h | 2 +- include/linux/unaligned/no_builtin_memcpy.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/unaligned/generic_be....
Apr 9, 3:46 pm 2008
John W. Linville
pull request: wireless-2.6 2008-04-09
Dave, This request includes everything from the pull request made on 2008-04-07, plus two fixes related to interrupts on the SSB bus and a mac80211 fix for problems relating to associating with an 802.11b-only AP after previously associating with an 802.11g AP. Original pull request message (quoted below) still applies. If for some reason you only want the original set of patches, you can pull the 'master-2008-04-07' branch instead. Thanks! John --- Dave, Here is another batch of ...
Apr 9, 1:55 pm 2008
David Miller
Re: pull request: wireless-2.6 2008-04-09
From: "John W. Linville" <linville@tuxdriver.com> Pulled and pushed out to net-2.6, thanks! --
Apr 9, 6:11 pm 2008
Yinghai Lu
build error on x86_64 with x86.git#latest
commit 0465ac59164eda30f4fe49006a67dd6d2c9fc3cf Author: Pavel Machek <pavel@suse.cz> Date: Wed Feb 20 01:48:39 2008 +0100 suspend: wakeup code in c Suspend: Wakeup code in C cause In file included from arch/x86/kernel/acpi/sleep.c:14: arch/x86/kernel/acpi/sleep.h:12: error: conflicting types for 'initial_code' include/asm/smp.h:62: error: previous declaration of 'initial_code' was here make[2]: *** [arch/x86/kernel/acpi/sleep.o] Error 1 make[1]: *** [arch/x86/kernel/acp...
Apr 9, 1:36 pm 2008
Yinghai Lu
Re: build error on x86_64 with x86.git#latest
after fixing that, got arch/x86/kernel/smpboot.c:143: error: 'TRAMPOLINE_BASE' undeclared here (not in a function) arch/x86/kernel/smpboot.c: In function 'do_boot_cpu': arch/x86/kernel/smpboot.c:908: warning: assignment makes pointer from integer without a cast make[1]: *** [arch/x86/kernel/smpboot.o] Error 1 make: *** [arch/x86/kernel] Error 2 YH
Apr 9, 1:42 pm 2008
Ingo Molnar
Re: build error on x86_64 with x86.git#latest
oops, that was not meant to be pushed out at all - it was just a temporary merge which clearly needed more work. it's all fixed up now - please let me know if you still see any problems. Ingo --
Apr 9, 4:42 pm 2008
Pavel Machek
Re: build error on x86_64 with x86.git#latest
Is there something I could do to pull this? Lu, could you post the patch to fix the first problem you hit? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html --
Apr 9, 5:01 pm 2008
Yinghai Lu
Re: build error on x86_64 with x86.git#latest
but Ingo already pulled off your patch. YH
Apr 9, 5:11 pm 2008
Ingo Molnar
Re: build error on x86_64 with x86.git#latest
did you get the patch i sent to you earlier today? That is the patch that i included in x86.git mistakenly. Ingo --
Apr 9, 5:05 pm 2008
Veda N
wait interruptible does not work
I am having a kernel thread that waits on a completion object. I am also having an ISR that wakes up the thread when ever an interrupt occurs. The thread calls wait_completion_interruptible and waits for "completion" event. What is happening is Even though i get the interrupt - The ISR calls 'complete' The Thread does not wakeup. I dont know why?. I notice that i replaced wait_completion_interruptible with wait_completion_timeout. What happens is i keep getting the messages. As soon as t...
Apr 9, 1:33 pm 2008
Markus Armbruster
[PATCH] printk: Don't read beyond string arguments' terminat...
Fix add_preferred_console() and update_console_cmdline() not to to read beyond the terminating zero of their name argument. Signed-off-by: Markus Armbruster <armbru@redhat.com> --- kernel/printk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c index c46a20a..52526df 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -865,7 +865,7 @@ int add_preferred_console(char *name, int idx, char *options) return -E2BIG; selecte...
Apr 9, 12:41 pm 2008
Mathieu Desnoyers
[patch 13/17] Immediate Values - x86 Optimization
x86 optimization of the immediate values which uses a movl with code patching to set/unset the value used to populate the register used as variable source. Changelog: - Use text_poke_early with cr0 WP save/restore to patch the bypass. We are doing non atomic writes to a code region only touched by us (nobody can execute it since we are protected by the imv_mutex). - Put imv_set and _imv_set in the architecture independent header. - Use $0 instead of %2 with (0) operand. - Add x86_64 support, r...
Apr 9, 11:08 am 2008
H. Peter Anvin
Re: [patch 13/17] Immediate Values - x86 Optimization
Any reason to keep carrying this completely misleading comment chunk still? -hpa --
Apr 9, 2:01 pm 2008
Mathieu Desnoyers
Re: [patch 13/17] Immediate Values - x86 Optimization (updat...
Hrm, since even the nmi-safe version supports REX-prefixed instructions, there is no need for an =q constraint on single-byte immediate values anymore. (thanks to your "discard" section used in the nmi-safe version) Here is the updated patch for the "[patch 13/17] Immediate Values - x86 Optimization". Thanks! Mathieu Immediate Values - x86 Optimization x86 optimization of the immediate values which uses a movl with code patching to set/unset the value used to populate the register used as ...
Apr 9, 4:21 pm 2008
H. Peter Anvin
Re: [patch 13/17] Immediate Values - x86 Optimization (updat...
WRONG! Using =r for single-byte values is incorrect for 32-bit code -- that would permit %spl, %bpl, %sil, %dil which are illegal in 32-bit mode. That is not the incorrect bit, it's the description that is confused. -hpa --
Apr 9, 6:33 pm 2008
Mathieu Desnoyers
Re: [patch 13/17] Immediate Values - x86 Optimization (updat...
Ah, right. I remembered there was something that made us use =q, but could not remember what. I'll describe it correctly. Therefore, this updated patch is bogus. The original one was ok, given that we change the header to : Immediate Values - x86 Optimization x86 optimization of the immediate values which uses a movl with code patching to set/unset the value used to populate the register used as variable source. Note : a movb needs to get its value froma =q constraint. Quoting "H. Pete...
Apr 9, 7:15 pm 2008
Mathieu Desnoyers
Re: [patch 13/17] Immediate Values - x86 Optimization
This comment explains why I use the =q constraint for the 1 bytes immediate value. It makes sure we use an instruction with 1-byte opcode, without REX.R prefix, on x86_64. That's required for the NMI-safe version of the immediate values, which uses a breakpoint, but not for this version based on stop_machine_run(). However, to minimize the amount of changes between the two versions, I left the =q constraint, which is more restrictive. Is it worth it to use =r instead ? It will typically let the c...
Apr 9, 3:08 pm 2008
H. Peter Anvin
Re: [patch 13/17] Immediate Values - x86 Optimization
No, it doesn't. That would be "=Q". -hpa --
Apr 9, 6:33 pm 2008
Mathieu Desnoyers
[patch 11/17] Implement immediate update via stop_machine_run
-Updating immediate values, cannot rely on smp_call_function() b/c synchronizing cpus using IPIs leads to deadlocks. Process A held a read lock on tasklist_lock, then process B called apply_imv_update(). Process A received the IPI and begins executing ipi_busy_loop(). Then process C takes a write lock irq on the task list lock, before receiving the IPI. Thus, process A holds up process C, and C can't get an IPI b/c interrupts are disabled. Solve this problem by using a new 'ALL_CPUS' parame...
Apr 9, 11:08 am 2008
Mathieu Desnoyers
[patch 09/17] Add all cpus option to stop machine run
-allow stop_mahcine_run() to call a function on all cpus. Calling stop_machine_run() with a 'ALL_CPUS' invokes this new behavior. stop_machine_run() proceeds as normal until the calling cpu has invoked 'fn'. Then, we tell all the other cpus to call 'fn'. Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> CC: Rusty Russell <rusty@rustcorp.com.au> CC: Adrian Bunk <bunk@stusta.de> CC: Andi Kleen <andi@firstfloo...
Apr 9, 11:08 am 2008
previous daytodaynext day
April 8, 2008April 9, 2008April 10, 2008