linux-kernel mailing list

FromSubjectsort iconDate
Matthias Kaehlcke
[PATCH] qla2xxx driver: convert mbx_intr_sem to completion
QLA2XXX driver: convert the semaphore mbx_intr_sem to a completion Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> -- diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 04e8cbc..ae3b3f4 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2418,7 +2418,7 @@ typedef struct scsi_qla_host { struct semaphore mbx_cmd_sem; /* Serialialize mbx access */ struct semaphore vport_sem; /* Virtual port synchronizati...
Dec 7, 11:06 am 2007
Daniel Walker
[PATCH 3/4] mcheck mce_64: mce_read_sem to mutex
Converted to a mutex, and changed the name to mce_read_mutex. Signed-off-by: Daniel Walker <dwalker@mvista.com> --- arch/x86/kernel/cpu/mcheck/mce_64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.23/arch/x86/kernel/cpu/mcheck/mce_64.c =================================================================== --- linux-2.6.23.orig/arch/x86/kernel/cpu/mcheck/mce_64.c +++ linux-2.6.23/arch/x86/kernel/cpu/mcheck/mce_64.c @@ -564,7 +564,7 @@ static ssize_t m...
Dec 7, 4:00 am 2007
Daniel Walker
[PATCH 4/4] md: dm driver: suspend_lock semaphore to mutex
Signed-off-by: Daniel Walker <dwalker@mvista.com> --- drivers/md/dm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Index: linux-2.6.23/drivers/md/dm.c =================================================================== --- linux-2.6.23.orig/drivers/md/dm.c +++ linux-2.6.23/drivers/md/dm.c @@ -73,7 +73,7 @@ union map_info *dm_get_mapinfo(struct bi struct mapped_device { struct rw_semaphore io_lock; - struct semaphore suspend_lock; + struct mutex suspen...
Dec 7, 4:00 am 2007
Daniel Walker
[PATCH 1/4] media: video: usbvision: remove ctrlUrbLock
The ctrlUrbLock has all it's users commented out, and so it's unused. This patch removes it. Signed-off-by: Daniel Walker <dwalker@mvista.com> --- drivers/media/video/usbvision/usbvision-core.c | 3 --- drivers/media/video/usbvision/usbvision-video.c | 1 - drivers/media/video/usbvision/usbvision.h | 1 - 3 files changed, 5 deletions(-) Index: linux-2.6.23/drivers/media/video/usbvision/usbvision-core.c =================================================================== ...
Dec 7, 4:00 am 2007
Daniel Walker
[PATCH 2/4] docs: kernel-locking: Convert semaphore references
I converted some of the document to reflect mutex usage instead of semaphore usage. Since we shouldin't be promoting semaphore usage when it's on it's way out.. Signed-Off-By: Daniel Walker <dwalker@mvista.com> --- Documentation/DocBook/kernel-locking.tmpl | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) Index: linux-2.6.23/Documentation/DocBook/kernel-locking.tmpl =================================================================== --- linux-2.6....
Dec 7, 4:00 am 2007
devzero
ata_piix init/performance regression ?
Hello ! on my old fujitsu-siemens lifebook, booting is at least 20 seconds slower as before. on ata_piix init i can see 2 longer delays of ~10 seconds each, which didn`t happen before. i`m using SuSE kernel of the day from http://ftp.suse.com/pub/projects/kernel/kotd/ problem exists with these kernels: kernel-vanilla-2.6.24_rc3_git3-20071201095839 kernel-default-2.6.24_rc3_git3-20071201095839 kernel-default-2.6.24_rc4_git3-20071206172629 kernel-vanilla-2.6.24_rc4_git3-20071206172629 probl...
Dec 7, 7:46 pm 2007
Parag Warudkar
Re: new card to me?
The site says it is based on ALi M5283 and this[1] SATA support status page (Revised Feb 27 2007) says it is supported and the driver is production quality. sata_uli is the driver. This [2] review over at Newegg says it works with Linux. More over the changelogs for sata_uli.c do not indicate they removed support for it and Google says people found and fixed bugs with that drive [3] - so it would be a safe bet to say it should be supported with current kernels. [1] [ message continues ]
" title="http://linuxmafia.com/faq/H...">http://linuxmafia.com/faq/H...
Dec 7, 7:25 pm 2007
Remy Bohmer
lockdep problem conversion semaphore->mutex (dev->sem)
I was looking for an easy semaphore I could convert to a mutex, and I ran into one that was widely spread and interesting, and which seemed quite doable at first sight. So, I started working on it, but was forgotten this discussion, (until Daniel made me remember it this afternoon). So, I (stupid me ;-) ) tried to convert dev->sem... After doing the monkey part of the conversion I can boot the kernel completely on X86 and ARM, and everything works fine, except after enabling lockdep, lockdep ...
Dec 7, 7:02 pm 2007
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
Got this on today's git (2.6.24-rc4) while compiling stuff - Looks like it is related to CpuIdle stuff. I chose CONFIG_CPU_IDLE for the first time so I don't know when this was introduced. This is on x86_32, SMP. BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] Pid: 0, comm: swapper Not tainted (2.6.24-rc4 #3) EIP: 0060:[<c0603e22>] EFLAGS: 00000202 CPU: 1 EIP is at _spin_lock_irqsave+0x16/0x27 EAX: c06b4110 EBX: 00000001 ECX: f7873808 EDX: 00000293 ESI: 00000005 EDI: f7873808 EBP:...
Dec 7, 6:53 pm 2007
Andrew Morton
Re: BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
On Fri, 7 Dec 2007 17:53:47 -0500 OK, thanks. Another one for the regression list, please. --
Dec 7, 7:17 pm 2007
Pallipadi, Venkatesh
RE: soft lockup - CPU#1 stuck for 15s! [swapper:0]
Looks like tick_broadcast_lock did not get freed in some path. You do not see this when you CPU_IDLE is not configured? Thanks, Venki --
Dec 7, 7:12 pm 2007
Parag Warudkar
Re: soft lockup - CPU#1 stuck for 15s! [swapper:0]
On Dec 7, 2007 6:12 PM, Pallipadi, Venkatesh No, I did not see this prior to enabling CPU_IDLE. All previous kernels without CPU_IDLE also had soft lockup detection enabled. Parag --
Dec 7, 7:31 pm 2007
Balbir Singh
[PATCH] Fake NUMA emulation for PowerPC (Take 2)
Changelog 1. Get rid of the constant 5 (based on comments from Geert.Uytterhoeven@sonycom.com) 2. Implement suggestions from Olof Johannson 3. Check if cmdline is NULL in fake_numa_create_new_node() Tested with additional parameters from Olof numa=debug,fake= numa=foo,fake=bar Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake NUMA nodes can be specified using the following command line option numa=fake=<node range> node ...
Dec 7, 6:37 pm 2007
Balbir Singh
[PATCH] Fake NUMA emulation for PowerPC
Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake NUMA nodes can be specified using the following command line option numa=fake=<node range> node range is of the format <range1>,<range2>,...<rangeN> Each of the rangeX parameters is passed using memparse(). I find the patch useful for fake NUMA emulation on my simple PowerPC machine. I've tested it on a non-numa box with the following arguments numa=fake=1G numa=fake=1G,2G name=fake=1G,512M,...
Dec 7, 5:14 pm 2007
Nathan Lynch
Re: [PATCH] Fake NUMA emulation for PowerPC
Hi Balbir- So this doesn't appear to allow one to assign cpus to fake nodes? Do all cpus just get assigned to node 0 with numa=fake? A different approach that occurs to me is to use kexec with a doctored device tree (i.e. with the ibm,associativity properties modified to reflect your desired topology). Perhaps a little bit obscure, but it seems more flexible. --
Dec 7, 6:11 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Yes, they all appear on node 0. We could have tweaks to distribute CPU's That would be interesting, but it always means that we need to run kexec, which might involve two boots. -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
Dec 7, 6:26 pm 2007
David Rientjes
Re: [PATCH] Fake NUMA emulation for PowerPC
You're going to want to distribute the cpu's based on how they match up physically with the actual platform that you're running on. x86_64 does this already and it makes fake NUMA more useful because it matches the real-life case more often. --
Dec 7, 7:11 pm 2007
Arnd Bergmann
Re: [PATCH] Fake NUMA emulation for PowerPC
Excellent idea! I'd love to have this in RHEL5u1, because that would make that distro boot on certain machines that have more memory than is supported without an iommu driver. The problem we have is that when you simply say mem=1G but all of the first gigabyte is on the first node, you end up with a memoryless node, which is not supported. Unfortunately, it comes too late for me now, as all new distros already boot on Cell machines that need an IOMMU. Arnd <>< --
Dec 7, 6:01 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Very interesting use case! I am sure there are others were fake NUMA nodes can be applied. I just listed one other in another email, apart from using it for playing around with NUMA like machines. -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
Dec 7, 6:22 pm 2007
Geert Uytterhoeven
Re: [PATCH] Fake NUMA emulation for PowerPC
Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even without -O. With kind regards, Geert Uytterhoeven Software Architect Sony Network and Software Technology Center Europe The Corporate Village
Dec 7, 5:30 pm 2007
Dave Quigley
Re: [PATCH] Fake NUMA emulation for PowerPC
If some odd reason it doesn't replace it wouldn't it be smarter to do sizeof("fake="); It should definitely optimize that away to a constant --
Dec 7, 5:33 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Thanks for pointing that out, but I am surprised that a compiler would -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
Dec 7, 5:35 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
I just tested it and it turns out that you are right. I'll go hunt to --
Dec 7, 5:43 pm 2007
Arnd Bergmann
Re: [PATCH] Fake NUMA emulation for PowerPC
Even if it wasn't: Why the heck would you want to optimize this? The function is run _once_ at boot time and the object code gets thrown away afterwards! Arnd <>< --
Dec 7, 5:58 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Cause, I see no downside of doing it. The strlen of fake= is fixed. But having said that, I am not a purist about the approach, I just want cmdline to point after "fake=" -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
Dec 7, 6:03 pm 2007
Olof Johansson
Re: [PATCH] Fake NUMA emulation for PowerPC
Hi, Care to explain what this is useful for? (Not saying it's a stupid idea, This doesn't look right. You check if it contains fake=, not if it starts with it. So if someone did: "numa=foo,fake=bar", or even "numa=debug,fake=", things wouldn't work right. -Olof --
Dec 7, 5:28 pm 2007
David Rientjes
Re: [PATCH] Fake NUMA emulation for PowerPC
Fake NUMA has always been useful for testing NUMA code without having to have a wide range of hardware available to you. It's a clever tool on x86_64 intended for kernel developers that simply makes it easier to test code and adds an increased level of robustness to the kernel. I think it's a valuable addition. --
Dec 7, 7:06 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
In my case, I use it to test parts of my memory controller patches on an emulated NUMA machine. I plan to use it to test out page migration Yes, you are right. I merely followed the strstr convention already present, which as you righly point out is wrong. I suspect I need to do something like p = strstr(p, "fake=") if (p) cmdline = p + 5; This would still allow us to do things like numa=foo,fake=bar but the memparse() utility would fail at fake=bar ^^^ or even numa=debu...
Dec 7, 5:35 pm 2007
Kumar Gala
Re: [PATCH] Fake NUMA emulation for PowerPC
Can you explain that further. I'm still not clear on why this is useful. - k --
Dec 7, 5:55 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Sure. In my case I need to emulate NUMA nodes to do some NUMA specific testing. The memory controller I've written has some interesting data structures like per node, per zone LRU lists. To be able to test those features on a non-numa box is a problem, since we get just the default node. To be able to test the memory controller under NUMA, I use fake NUMA nodes. x86-64 has a similar feature, the code I have here is the simplest I could come up with for PowerPC. I just thought of another very in...
Dec 7, 6:12 pm 2007
David Rientjes
Re: [PATCH] Fake NUMA emulation for PowerPC
Magnus Damm had patches from over a year ago that, I believe, made much of the x86_64 fake NUMA code generic so that it could be extended for architectures such as i386. Perhaps he could resurrect those patches if there is wider interest in such a tool. --
Dec 7, 7:10 pm 2007
Kumar Gala
Re: [PATCH] Fake NUMA emulation for PowerPC
Maybe I'm missing something, what do you mean by memory controller you've written? (I'm use to the term 'memory controller' meaning the - k --
Dec 7, 6:15 pm 2007
Balbir Singh
Re: [PATCH] Fake NUMA emulation for PowerPC
Ah! that explains the disconnect. If you look at the latest -mm tree. We have a memory controller under control groups, we use it to control how -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
Dec 7, 6:18 pm 2007
Casey Schaufler
[PATCH] (2.6.24-rc4-mm1) -mm Smack getpeercred_stream fix fo...
From: Casey Schaufler <casey@schaufler-ca.com> Collect the Smack label of the other end on connection so that getsockopt(..., SO_PEERSEC, ...) can report it. This is done in smack_inet_conn_request(). Report the correct value in smack_socket_getpeersec_stream(). Initialize the smk_packet field in the socket blob. Comment on the purpose of smk_packet in the header file and remove the unused smk_depth field from the blob. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> --- ...
Dec 7, 4:57 pm 2007
Zan Lynx
2.6.24-rc4-mm1 and excessive block IO errors
I am not sure if this problem has been addressed already. I read some about the fast-fail issues and this may be related? On nearly all my USB block devices, I have been getting zillions of I/O errors. But they aren't real, they don't appear with 2.6.23 kernels. I can often read and write data to the device, but these IO errors cause error aborts in user space applications in many cases, making it a chancy thing to run backup software, for example. Here is a bit of dmesg from plugging in a pe...
Dec 7, 4:44 pm 2007
Andrew Morton
Re: 2.6.24-rc4-mm1 and excessive block IO errors
On Fri, 07 Dec 2007 20:44:45 +0000 Yes, this is breakage in the scsi tree. I believe that the offending patch has been found and I have a nasty fix somewhere in my inbox - it involves reverting a patch which doesn't revert properly. I haven't got onto looking at it yet, sorry. --
Dec 7, 7:05 pm 2007
Alexey Dobriyan Dec 7, 7:33 pm 2007
Zan Lynx
2.6.24-rc4-mm1 and Very Slow PCMCIA Compact Flash
While I'm reporting problems I'll get this one out there. I normally use a USB-2 memory card reader but I also have a PCMCIA CompactFlash adapter that I use occasionally. During the MM series kernels 2.6.22 and 23 (I am pretty sure) this didn't work at all. I don't know about vanilla since I don't run that. Now with MM kernels 2.6.24 rc1-4 the PCMCIA adapter works again, but I only get read rates of 1.6 MB/s. When it used to work in 2.6.20 I got at least 16 MB/s. The card itself is capable of...
Dec 7, 4:38 pm 2007
Andrew Morton
Re: 2.6.24-rc4-mm1 and Very Slow PCMCIA Compact Flash
On Fri, 07 Dec 2007 20:38:24 +0000 Are we talking about this? Yenta: CardBus bridge found at 0000:02:04.0 [103c:006d] PCI: Bus 3, cardbus bridge: 0000:02:04.0 IO window: 00003000-000030ff IO window: 00003400-000034ff PREFETCH window: 50000000-53ffffff MEM window: e0400000-e07fffff Yenta: Enabling burst memory read transactions Yenta: Using CSCINT to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta TI: socket 0000:02:04.0, mfunc 0x01111d22, devctl 0x64 Yent...
Dec 7, 7:02 pm 2007
Zan Lynx
Re: 2.6.24-rc4-mm1 and Very Slow PCMCIA Compact Flash
No, this: pccard: PCMCIA card inserted into slot 0 cs: memory probe 0x50000000-0x57ffffff: excluding 0x50000000-0x57ffffff cs: memory probe 0xe0100000-0xe17fffff: excluding 0xe0100000-0xe026ffff 0xe= 03e0000-0xe082ffff 0xe0b10000-0xe10cffff pcmcia: registering new device pcmcia0.0 scsi2 : pata_pcmcia ata3: PATA max PIO0 cmd 0x3100 ctl 0x310e irq 19 ata3.00: CFA: LEXAR ATA FLASH, V2.00, max PIO6 ata3.00: 8018640 sectors, multi 0: LBA=20 ata3.00: configured for PIO0 ata3.00: configured for PIO0...
Dec 7, 7:09 pm 2007
Andrew Morton
Re: 2.6.24-rc4-mm1 and Very Slow PCMCIA Compact Flash
On Fri, 07 Dec 2007 23:09:43 +0000 Oh, OK. Hopefully the ata guys can help out with this. I don't know if it actually strictly a regression? Did libata ever support that device in any earlier kernels? Alan will be non-respnosive for a few weeks. <looks> Maybe pata_pcmcia-minor-cleanups-and-support-for-dual-channel-cards.patch? Could you try a `patch -R' of the below? From: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Alan Cox <alan@redhat.com> Signed-o...
Dec 7, 7:22 pm 2007
Zan Lynx
Re: 2.6.24-rc4-mm1 and Very Slow PCMCIA Compact Flash
That could be why it didn't work for a few kernel versions. I reconfigured for a libata-only system a while back. And, since I usually use the USB-2 flash reader I didn't care much about the PCMCIA. I will try reverting that patch later tonight, in a few hours. --=20 Zan Lynx <zlynx@acm.org>
Dec 7, 7:39 pm 2007
Jeff Garzik
[git patches] libata fixes
Notable: kill spurious NCQ completion detection libata disabling command queueing (aka NCQ) based on some hueristics for detection device brokenness.... that ultimately turned out to be broken. Remove the broken hueristic and turn NCQ back on for all the wrongfully maligned hard drives. Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus to receive the following updates: drivers/ata/ahci.c | 96 +++++++...
Dec 7, 4:34 pm 2007
Frans Pop Dec 7, 5:27 pm 2007
Jeff Garzik
[git patches] net driver fixes
Nothing remarkable. Mainly bonding fixes and bringing ibm_newemac up to snuff. Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus to receive the following updates: Documentation/networking/bonding.txt | 29 ++++++++- arch/powerpc/boot/dts/sequoia.dts | 5 ++ drivers/net/Kconfig | 1 + drivers/net/bonding/bond_main.c | 116 +++++++++++++++++++++------------- drivers/net/bonding/bond...
Dec 7, 4:31 pm 2007
Zan Lynx
2.6.24-rc4-mm1 and /proc/<pid>/status Name: field
Today I noticed pgrep doesn't work. It seems the reason is a missing Name: tag in the status file for a process in /proc. # cat /proc/1/status init State: S (sleeping) Tgid: 1 Pid: 1 PPid: 0 TracerPid: 0 ...etc, etc... This is supposed to look like: # cat /proc/1/status Name: init State: S (sleeping) Tgid: 1 Pid: 1 PPid: 0 TracerPid: 0 ... --=20 Zan Lynx &lt;zlynx@acm.org&gt;
Dec 7, 4:26 pm 2007
Andrew Morton
Re: 2.6.24-rc4-mm1 and /proc/<pid>/status Name: field
On Fri, 07 Dec 2007 20:26:43 +0000 Thanks. Two (more) bugs in proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces.patch --- a/fs/proc/array.c~proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces-fix-3 +++ a/fs/proc/array.c @@ -98,9 +98,9 @@ static inline void task_name(struct seq_ get_task_comm(tcomm, p); + seq_printf(m, "Name:\t"); end = m-&gt;buf + m-&gt;size; buf = m-&gt;buf + m-&gt;count; - seq_printf(m, "Name:\n"); name = tcomm; i = ...
Dec 7, 7:58 pm 2007
Gene Heskett
new card to me?
Greetings; Is this drive interface card supported by the current linux kernel? Masscool XWT-RC018, as seen on tigerdirect's site: &lt;http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=3501402&amp;CatId=1455&gt; Thank you. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If a man had a child who'd gone anti-social, killed perhaps, he'd still tend to protect ...
Dec 7, 2:19 pm 2007
Nick Warne
scsi_wait_scan Kconfig option
Hi all, I am bringing this up again - primarily as I forgot about it after patching my build tree ages ago: http://lkml.org/lkml/2007/10/27/68 Today I built and installed git for the first time and cloned Linus' tree (very trick!). I try not to build a modular kernel, but only have modules ON due to nVidia (sigh). So I was semi-surprised when I saw the scsi_wait_scan module being built again, yet NO WHERE in menuconfig is it present to turn OFF. Even if I hand edit .config, make puts it...
Dec 7, 3:12 pm 2007
Glauber de Oliveira ...
[PATCH 0/3] Unify segment headers
Hi, In this patch, I unify segment_32.h and segment_64.h into segment.h They have some common parts, but a considerable ammount of code still has to be around ifdefs. The only patch that is really important to paravirt is the first one, that moves a paravirt definition into the common header. The other two are just normal integration, and pretty much independent --
Dec 7, 12:22 pm 2007
previous daytodaynext day
December 6, 2007December 7, 2007December 8, 2007