linux-kernel mailing list

FromSubjectsort iconDate
Joe Perches
[PATCH] Prefix each line of multiline printk(KERN_<level ...
Corrected printk calls with multiple output lines which did not correctly preface each line with KERN_<level> Fixed uses of some single lines with too many KERN_<level> Please pull from: git://repo.or.cz/linux-2.6/trivial-mods.git pr_newlines Signed-off-by: Joe Perches <joe@perches.com> arch/arm/kernel/ecard.c | 3 ++- arch/blackfin/kernel/dualcore_test.c | 3 ++- arch/blackfin/kernel/traps.c | 4 +++- arch/h8300/kernel/setup.c | ...
Aug 24, 4:44 pm 2007
Robert Hancock
Re: Possible problems reading a DVD-RAM disc
Well, the drive is reporting an error on a write to the disc. It's not an error code in the MMC5 standard, though, so presumably it's a vendor-specific error code. Not sure why it would be writing to the disc though.. Maybe if the disc is mounted read-write it is doing last-access-time updates or something? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http://www.roberthancock.com/ -
Aug 24, 4:36 pm 2007
Robert Hancock
Re: [sata_nv] timeout waiting for ADMA IDLE, stat=0x440
Sounds like the drive has gotten into a really hosed state after this point. The SError register is showing a CRC error, disparity error, and 10b to 8b decode error, which indicates that there are some major SATA communication problems happening. It could be a hardware problem (bad drive, bad SATA cable, insufficient power, etc.) or maybe this is another drive with broken NCQ.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home ...
Aug 24, 4:24 pm 2007
Robert Hancock
Re: USB Key light on/off state depending on mount
I think that Windows turns off power to the port when you do the "safely remove hardware" on it, or something like that. Mount/unmount doesn't really indicate whether the device is in use in Linux, though, since it can still be potentially accessed even when the device isn't mounted. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http://www.roberthancock.com/ -
Aug 24, 4:19 pm 2007
Mathieu Desnoyers
kernel BUG with 2.6.23-rc3-mm1: skb_over_panic
Hi Andrew, I get the following BUG when booting 2.6.23-rc3-mm1 on i386. I wonder if you would have some ideas about what is causing this problem. I'll start bissecting it soon. I seems to be caused by an buggy skb_put call in kobject_uevent_env. Thanks, Mathieu Synthesizing the initial hotplug events...[ 13.738308] skb_over_panic: text:c0252ede len:97 put:11 head:c2237e00 data:c2237e00 tail:0xc2237e61 end:0xc2237e60 dev:<NULL> [ 13.772252] ------------[ cut here ]------------ [ ...
Aug 24, 3:47 pm 2007
Andrew Morton
Re: kernel BUG with 2.6.23-rc3-mm1: skb_over_panic
On Fri, 24 Aug 2007 18:47:07 -0400 hm, don't know, sorry. Kay fixed a few things in there, but iirc pretty much all of the fixes were in rc3-mm1 anyway. I doubt if bisection will tell us a lot: it'll probably point at gregkh-driver-driver-core-change-add_uevent_var-to-use-a-struct.patch. What we _would_ like to know is which sysfs file is being written to. We used to have a debug patch to exactly address this problem but it got transferred into Greg's tree from whence it mysteriously ...
Aug 24, 4:10 pm 2007
Greg KH
Re: kernel BUG with 2.6.23-rc3-mm1: skb_over_panic
I think this patch got dropped a while ago when things were just reworked too much in this area. If this patch now works properly, I have no objection to taking it in my tree again. thanks, greg k-h -
Aug 24, 4:46 pm 2007
travis
[PATCH 6/6] x86: acpi-use-cpu_physical_id (v2)
This is from an earlier message from Christoph Lameter: processor_core.c currently tries to determine the apicid by special casing for IA64 and x86. The desired information is readily available via cpu_physical_id() on IA64, i386 and x86_64. Signed-off-by: Christoph Lameter <clameter@sgi.com> Additionally, boot_cpu_id needed to be exported to fix compile errors in dma code when !CONFIG_SMP. Signed-off-by: Mike Travis <travis@sgi.com> --- ...
Aug 24, 3:27 pm 2007
travis
[PATCH 5/6] x86: Convert cpu_llc_id to be a per cpu vari ...
Convert cpu_llc_id from a static array sized by NR_CPUS to a per_cpu variable. This saves sizeof(cpu_llc_id) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. Note there's an addtional change of the type of cpu_llc_id from int to u8 for ARCH i386 to correspond with the same type in ARCH x86_64. Signed-off-by: Mike Travis <travis@sgi.com> --- arch/i386/kernel/cpu/intel_cacheinfo.c | 4 ++-- arch/i386/kernel/smpboot.c | 6 +++--- ...
Aug 24, 3:26 pm 2007
travis
[PATCH 4/6] x86: Convert x86_cpu_to_apicid to be a per c ...
This patch converts the x86_cpu_to_apicid array to be a per cpu variable. This saves sizeof(apicid) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. MP_processor_info() is one of the functions that require access to the x86_cpu_to_apicid array before the per_cpu data area is setup. For this case, a pointer to the __initdata array is initialized in setup_arch() and removed in smp_prepare_cpus() after the per_cpu data area is initialized. A second change is included ...
Aug 24, 3:26 pm 2007
travis
[PATCH 3/6] x86: Convert cpu_sibling_map to be a per cpu ...
Convert cpu_sibling_map from a static array sized by NR_CPUS to a per_cpu variable. This saves sizeof(cpumask_t) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. Signed-off-by: Mike Travis <travis@sgi.com> --- arch/i386/kernel/cpu/cpufreq/p4-clockmod.c | 2 - arch/i386/kernel/cpu/cpufreq/speedstep-ich.c | 2 - arch/i386/kernel/io_apic.c | 4 +-- arch/i386/kernel/smpboot.c | 36 +++++++++++++-------------- ...
Aug 24, 3:26 pm 2007
travis
[PATCH 2/6] x86: Convert cpu_core_map to be a per cpu va ...
This is from an earlier message from 'Christoph Lameter': cpu_core_map is currently an array defined using NR_CPUS. This means that we overallocate since we will rarely really use maximum configured cpu. If we put the cpu_core_map into the per cpu area then it will be allocated for each processor as it comes online. This means that the core map cannot be accessed until the per cpu area has been allocated. Xen does a weird thing here looping over all processors ...
Aug 24, 3:26 pm 2007
travis
[PATCH 1/6] x86: fix cpu_to_node references (v2)
Fix four instances where cpu_to_node is referenced by array instead of via the cpu_to_node macro. This is preparation to moving it to the per_cpu data area. Signed-off-by: Mike Travis <travis@sgi.com> --- arch/x86_64/kernel/vsyscall.c | 2 +- arch/x86_64/mm/numa.c | 4 ++-- arch/x86_64/mm/srat.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) --- a/arch/x86_64/kernel/vsyscall.c +++ b/arch/x86_64/kernel/vsyscall.c @@ -283,7 +283,7 @@ unsigned long ...
Aug 24, 3:26 pm 2007
travis
[PATCH 0/6] x86: Reduce Memory Usage and Inter-Node mess ...
Fixed. (New export in PATCH 6/6). Previous Intro: In x86_64 and i386 architectures most arrays that are sized using NR_CPUS lay in local memory on node 0. Not only will most (99%?) of the systems not use all the slots in these arrays, particularly when NR_CPUS is increased to accommodate future very high cpu count systems, but a number of cache lines are passed unnecessarily on the system bus when these arrays are referenced by cpus on other nodes. Typically, the values in these ...
Aug 24, 3:26 pm 2007
Cliff Wickman
[PATCH 1/1] hotplug cpu: migrate a task within its cpuset
When a cpu is disabled, move_task_off_dead_cpu() is called for tasks that have been running on that cpu. Currently, such a task is migrated: 1) to any cpu on the same node as the disabled cpu, which is both online and among that task's cpus_allowed 2) to any cpu which is both online and among that task's cpus_allowed It is typical of a multithreaded application running on a large NUMA system to have its tasks confined to a cpuset so as to cluster them near the memory that they share. ...
Aug 24, 3:18 pm 2007
Andrew Morton
Re: [PATCH 1/1] hotplug cpu: migrate a task within its cpuset
On Fri, 24 Aug 2007 17:18:06 -0500 Wouldn't it be saner to refuse the offlining request if the CPU has tasks which cannot be migrated to any other CPU? I mean, the operator has gone and asked the machine to perform two inconsistent/incompatible things at the same time. Look at it this way. If we were to merge this patch then it would be logical to also merge a patch which has the following description: "if an process attempts to pin itself onto an presently-offlined CPU, the ...
Aug 24, 3:54 pm 2007
H. Peter Anvin
[GIT PULL] x86 setup: prevent gcc from doing the wrong things
Hi Linus, Please pull: git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-x86setup.git for-linus H. Peter Anvin (2): [x86 setup] Volatilize asm() statements [x86 setup] Make sure AH=00h when setting a video mode arch/i386/boot/boot.h | 24 ++++++++++++------------ arch/i386/boot/cpucheck.c | 3 ++- arch/i386/boot/edd.c | 6 +++--- arch/i386/boot/tty.c | 14 +++++++------- arch/i386/boot/video-vga.c | 17 +++++++++-------- 5 files ...
Aug 24, 3:16 pm 2007
Joe Perches
TUN/TAP driver - MAINTAINERS - bad mailing list entry?
MAINTAINERS curently has: TUN/TAP driver P: Maxim Krasnyansky M: maxk@qualcomm.com L: vtun@office.satix.net vtun@office.satix.net doesn't seem to be a valid email address. Should it be removed or modified? -
Aug 24, 2:52 pm 2007
Adrian Bunk
[2.6 patch] remove securebits
It seems that since it was added in kernel 2.2.0 (sic) securebits was never used. This patch therefore removes it. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- include/linux/sched.h | 1 - include/linux/securebits.h | 30 ------------------------------ kernel/capability.c | 1 - security/commoncap.c | 34 ++++++++++++++-------------------- security/dummy.c | 16 +++++++--------- 5 files changed, 21 insertions(+), 61 ...
Aug 24, 2:06 pm 2007
Serge E. Hallyn
Re: [2.6 patch] remove securebits
Actually IIUC Andrew Morgan had plans of making securebits per-process, which would make them far more usable. Now maybe he'd just as soon start with a clean slate... Andrew? -
Aug 24, 2:19 pm 2007
Adrian Bunk
[2.6 patch] call export_report from the Makefile
The main feature is that export_report now automatically works for O= builds. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- This patch has been sent on: - 14 Aug 2007 --- a/Makefile +++ b/Makefile @@ -1153,6 +1153,7 @@ help: @echo 'Static analysers' @echo ' checkstack - Generate a list of stack hogs' @echo ' namespacecheck - Name space analysis on compiled kernel' + @echo ' export_report - List the usages of all exported symbols' @if [ -r ...
Aug 24, 2:04 pm 2007
Adrian Bunk
[2.6 patch] fix export_report.pl
This patch fixes an annoying bug of export_report.pl missing the usages of some exports. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- This patch has been sent on: - 14 Aug 2007 --- a/scripts/export_report.pl +++ b/scripts/export_report.pl @@ -112,7 +112,7 @@ foreach my $thismod (@allcfiles) { next; } if ($state eq 2) { - if ( $_ !~ /0x[0-9a-f]{7,8},/ ) { + if ( $_ !~ /0x[0-9a-f]+,/ ) { next; } my $sym = (split /([,"])/,)[4]; -
Aug 24, 2:04 pm 2007
Ram Pai
Re: [2.6 patch] fix export_report.pl
Adrian, I am fine with these changes. RP -
Aug 24, 2:40 pm 2007
Ram Pai
[2.6 patch] fix export_report.pl on top of adrian's fix
Fixes some subtle perl coding bug observed by Jan Engelhardt <jengelh@computergmbh.de> This patch applies on top of Adrian's fix. Signed-off-by: Ram Pai <linuxram@us.ibm.com> --- scripts/export_report.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.21.5/scripts/export_report.pl =================================================================== --- linux-2.6.21.5.orig/scripts/export_report.pl +++ linux-2.6.21.5/scripts/export_report.pl @@ -103,15 ...
Aug 24, 3:32 pm 2007
Adrian Bunk
Re: [2.6 patch] fix export_report.pl
I don't care whether it compares strings or numbers as long as it works... I'm not the author of this script, and my patch fixes the one annoying bug I observed when using it. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -
Aug 24, 2:47 pm 2007
Jan Engelhardt
Re: [2.6 patch] fix export_report.pl
Perl: == for numbers, eq for strings. SH: == for strings, -eq for numbers. I have not looked closer at it, but this looks like it should be /0x[0-9a-fA-F]+,/ or Jan -- -
Aug 24, 2:36 pm 2007
Folkert van Heusden
[2.6.22] circular lock detected
Hi, 2.6.22 kernel with hyperthreading enabled only ext3 filesystems (2). [ 346.314640] ======================================================= [ 346.314758] [ INFO: possible circular locking dependency detected ] [ 346.314815] 2.6.22 #5 [ 346.314862] ------------------------------------------------------- [ 346.314920] tor/2421 is trying to acquire lock: [ 346.314973] (tty_mutex){--..}, at: [<c121aa83>] mutex_lock+0x8/0xa [ 346.315193] [ 346.315195] but task is already holding ...
Aug 24, 2:00 pm 2007
Josh Boyer
Re: USB Key light on/off state depending on mount
I think that depends on the key. My Corsair keys have the light flicker whenever I/O is on-going. josh -
Aug 24, 2:13 pm 2007
Casey Dahlin
USB Key light on/off state depending on mount
Most USB keys nowadays have a small LED somewhere inside of them that lights up when they are plugged in. On a windows box, the key is lit up whenever it is mounted, and as soon as it is unmounted it turns off, giving a handy physical indicator that the key is safe to remove. On linux, the light is simply on whenever the key is plugged in. Should linux toggle the light depending on mount state? Is it as trivial as it seems or does this reflect some larger issue? -Casey Dahlin -
Aug 24, 1:58 pm 2007
Alan Cox Aug 24, 4:18 pm 2007
Dermot Bradley
RE: "exception Emask: 0x42" errors with 2.6.22.x and SAT ...
I've two things in mind to try: (1) there is 1 newer official BIOS release and 2 beta BIOSes out for this motherboard. The recent official BIOS (0901) does mention Linux: "Fixed Red Hat Enterprise Linux 4 installation failed" So maybe a BIOS update will fix things. (2) I will try booting with the "noapic" kernel option to see what So I guess these drives should be added to the ata_blacklist_entry in libata-core.c with ATA_HORKAGE_NONCQ? Stirk, Lamont & Associates ...
Aug 24, 1:49 pm 2007
Stephen Hemminger
Re: RFC: issues concerning the next NAPI interface
On Fri, 24 Aug 2007 21:04:56 +0200 I expect the overhead of OS timers and resolution makes this unsuitable for fast networks. You need the hardware to do it. On slow networks, it doesn't matter. -- Stephen Hemminger <shemminger@linux-foundation.org> -
Aug 24, 1:24 pm 2007
Frederik Himpe
Re: CFS + Rhythmbox audio skipping
Thanks for the hint. 2.6.22.5 with CFS v20.3 does not skip anymore. It was skipping when turning the desktop cube in compiz, or (without compiz) when scrolling in the output of less in a full-screen pseudo-transparant gnome-terminal, or when rapidly scrolling with Firefox in http://phoenity.com/newtedge/ (test case from the previous thread). Now the kernel which I'm using normally, also had the high resolution timers patch for x86_64 applied. I tried applying it again to the current ...
Aug 24, 1:23 pm 2007
Paul Albrecht
coldplug zd1211rw wireless driver results in firefox segfault
Hi, I'm trying to use a hawking hwu54g with the zd1211rw driver in the 2.6.20 linux kernel. It works ok when I hotplug the device, but causes firefox to segfault when I coldplug the device. As I get the segfault whether or not I bring the device up, I'm wondering if there's a problem with the usb subsystem initialization. Any ideas? Please cc me because I don't usually subscribe to the lkml. Paul Albrecht -
Aug 24, 1:21 pm 2007
Jan Engelhardt
Re: What's up with CONFIG_BLK_DEV?
menuconfig BLK_DEV bool "Block devices" depends on BLOCK default y ---help--- Say Y here to get to see options for various different block device drivers. This option alone does not add any kernel code. If you say N, all options in this submenu will be skipped and disabled only do this if you know what you are doing. Jan -- -
Aug 24, 1:34 pm 2007
Rob Landley
What's up with CONFIG_BLK_DEV?
CONFIG_BLOCK disables the block layer. CONFIG_BLK_DEV disables the block devices. Is there _ever_ a time you want the block layer but no block devices? (I ask because this is the first time I've had to add a symbol to my User Mode Linux miniconfig since 2.6.12, and I can't figure out what the actual purpose of this symbol is.) Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. -
Aug 24, 1:17 pm 2007
Jan Engelhardt
Re: What's up with CONFIG_BLK_DEV?
Well, where do you think your hard disk drivers come from? Definitely not from the BLK_DEV menu... Jan -- -
Aug 24, 1:36 pm 2007
Olaf Hering
[PATCH] fix undefined reference to device_power_up/resume
Current Linus tree fails to link on pmac32: drivers/built-in.o: In function `pmac_wakeup_devices': via-pmu.c:(.text+0x5bab4): undefined reference to `device_power_up' via-pmu.c:(.text+0x5bb08): undefined reference to `device_resume' drivers/built-in.o: In function `pmac_suspend_devices': via-pmu.c:(.text+0x5c260): undefined reference to `device_power_down' via-pmu.c:(.text+0x5c27c): undefined reference to `device_resume' make[1]: *** [.tmp_vmlinux1] Error 1 changing CONFIG_PM > ...
Aug 24, 12:42 pm 2007
Alexey Dobriyan
[PATCH] Drop some headers from mm.h
mm.h doesn't use directly anything from mutex.h and backing-dev.h, so remove them and add them back to files which need them. Cross-compile tested on many configs and archs. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- BTW, switching to SLUB makes this nice workload to go OOM, which SLAB never allowed itself, however, I'm not prepared right now to tell the story. It smells like semi-recent breakage, because, I can swear, I ran it with SLUB for stress-testing purposes. ...
Aug 24, 12:33 pm 2007
Scott Thompson
Re: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
On Fri, 24 Aug 2007 15:15:30 -0400 Alan Cox Jiri had requested this in relation to previous patch on unchecked ioremap return codes, but if the original ioremap is better NAK is fine here and I won't resubmit w/ the hwbase var pulled out or the readl -> ioread32 switchover. --------------------------------------- Scott Thompson / postfail@hushmail.com --------------------------------------- -
Aug 24, 12:31 pm 2007
Satyam Sharma
[PATCH] x86_64 mce{_amd}: __cpuinit{data} section annotations
Hi Andrew, With the "redefine register_hotcpu_notifier() stub as static inline function" patch gone, I can no longer reproduce the section mismatches mentioned in: x86_64-mce_amd-fix-section-mismatch-warnings.patch [ The section annotations of that patch still stand, just the changelog is no longer completely accurate. ] If we care enough about this, I'm resubmitting that patch with updated patch name and changelog here -- the content is same. Satyam [PATCH] x86_64 mce{_amd}: ...
Aug 24, 12:30 pm 2007
Joe Perches
[PATCH] MAINTAINERS and scripts/get_maintainer.pl
Please pull from: git pull git://repo.or.cz/linux-2.6/trivial-mods.git get_maintainer Added the capability to more easily find the appropriate parties to CC for a patch. Uses the most frequent patch "-by:" lines in git if available and also uses MAINTAINER subsystem information. Added "F:" and "X:" file patterns to subsystems in MAINTAINERS Added scripts/get_maintainer.pl to automate CC retrieval. Usage: perl scripts/get_maintainer.pl <patchfile> Usage: perl ...
Aug 24, 12:28 pm 2007
laurent.vivier
Réf. : Re: [PATCH] export i386 smp_call
It is available for KVM compilation, not for KVM use. In fact smp_ops is not available for KVM use, so as smp_call_function_mask() is smp_ops.smp_call_function_mask() we can say it is not available... My first reflex was to export smp_ops, but as it seems it is an internal and hidden variable, it appears I should export smp_call_function_mask() instead. Laurent -
Aug 24, 12:14 pm 2007
Satyam Sharma
[PATCH] Redefine {un}register_hotcpu_notifier() !HOTPLUG ...
Hi Andrew, As discussed just now, please drop: redefine-unregister_hotcpu_notifier-hotplug_cpu.patch and apply the patch below instead. Satyam [PATCH] Redefine {un}register_hotcpu_notifier() !HOTPLUG_CPU stubs The return of the present "do {} while" based stub definition of register_hotcpu_notifier() cannot be checked. This makes the stub asymmetric w.r.t. the real HOTPLUG_CPU=y implementation that is int-returning. So let us redefine this to be consistent with the full version. Also ...
Aug 24, 12:10 pm 2007
Scott Thompson
Re: Ideas on column length in kernel "problem"?
On Thu, 23 Aug 2007 08:27:09 -0400 Jesper Juhl I submitted a patch via gmail/smtp after setting the following up and all looked well... gmail --> settings --> forwarding and pop --> enable pop. directions for setting up thunderbird: Thunderbird 1.5 http://mail.google.com/support/bin/answer.py?answer=38343 configuring Thunderbird for wordwrap: Edit -> Preferences -> Composition Wrap Plain Text Messages at: 99999 .... and that's it... I'm gathering up a list of free email ...
Aug 24, 12:09 pm 2007
Jan-Bernd Themann
Re: RFC: issues concerning the next NAPI interface
That is indeed a good question. At least for 10G eHEA we see that the average number of packets/poll cycle is very low. With high precision timers we could control the poll interval better and thus make sure we get enough packets on the queue in high load situations to benefit from LRO while keeping the latency moderate. When the traffic load is low we could just stick to plain NAPI. I don't know how expensive hp timers are, we probably just have to test it (when they are available for POWER in ...
Aug 24, 2:11 pm 2007
Linas Vepstas
Re: RFC: issues concerning the next NAPI interface
Ohh, that was inspirational. Let me free-associate some wild ideas. Suppose we keep a running average of the recent packet arrival rate, Lets say its 10 per millisecond ("typical" for a gigabit eth runnning flat-out). If we could poll the driver at a rate of 10-20 per millisecond (i.e. letting the OS do other useful work for 0.05 millisec), then we could potentially service the card without ever having to enable interrupts on the card, and without hurting latency. If the packet arrival ...
Aug 24, 1:42 pm 2007
Bodo Eggert
Re: RFC: issues concerning the next NAPI interface
Possible solution / possible brainfart: Introduce a timer, but don't start to use it to combine packets unless you receive n packets within the timeframe. If you receive less than m packets within one timeframe, stop using the timer. The system should now have a decent response time when the network is idle, and when the network is busy, nobody will complain about the latency.-) -- Funny quotes: 22. When everything's going your way, you're in the wrong lane and and going the wrong ...
Aug 24, 12:04 pm 2007
Linas Vepstas
Re: RFC: issues concerning the next NAPI interface
hrtimer worked fine on the powerpc cell arch last summer. Heh. Do the math. Even on 1gigabit cards, that's not enough: (1gigabit/sec) x (byte/8 bits) x (packet/1500bytes) x (sec/1000 jiffy) is 83 packets a jiffy (for big packets, even more for small packets, and more again for 10 gigabit cards). So polling once per jiffy is a latency disaster. --linas -
Aug 24, 2:35 pm 2007
Alan Cox
Re: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
Switch to ioread* if you are using the iomap interface. Its not a trivial conversion and its slower and bulkier - the original ioremap was much better NAK this change therefore -
Aug 24, 12:15 pm 2007
Alan Cox
Re: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
On Fri, 24 Aug 2007 22:03:42 +0200 Every single one of them is wrong. The encoding of iomap values is Agreed entirely -
Aug 24, 1:34 pm 2007
Scott Thompson
[PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
patchset against 2.6.23-rc3. moves the iomap/iounmap call to pci 'flavor'. this was a recommendation from a previously submitted patch that handles the unchecked iomap (or, now, pci_iomap) return code. Signed-off-by: Scott Thompson <postfail <at> hushmail.com> ---------------------------------------------------------- diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 85a2328..481334f 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c @@ -2626,14 +2626,14 @@ static void ...
Aug 24, 11:49 am 2007
Jiri Slaby
Re: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
Why, if you know it's surely a mem region (and thus you rely on it and do ioremap)? There are many places in the kernel, where this approach is used, e.g. at least get rid of the reading the hwbase address from pci conf space, use pci_resource_start instead. -- Jiri Slaby (jirislaby@gmail.com) Faculty of Informatics, Masaryk University -
Aug 24, 1:03 pm 2007
Jiri Slaby
Re: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api
-- http://www.fi.muni.cz/~xslaby/ Jiri Slaby faculty of informatics, masaryk university, brno, cz e-mail: jirislaby gmail com, gpg pubkey fingerprint: B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E -
Aug 24, 11:59 am 2007
Jeff Dike
Re: [PATCH] include linux/pagemap.h in asm-generic/tlb.h
Heh, it doesn't seem like -stable material to me, but if there aren't any screams while it sits in -mm, maybe it's 2.6.23 material. Jeff -- Work email - jdike at linux dot intel dot com -
Aug 24, 3:46 pm 2007
Rob Landley
Re: [PATCH] include linux/pagemap.h in asm-generic/tlb.h
It may be non-urgent to you, but it still broke my build. :) Acked-by: Rob Landley <rob@landley.net> Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. -
Aug 24, 1:51 pm 2007
Jeff Dike
[PATCH] include linux/pagemap.h in asm-generic/tlb.h
[ This looks non-urgent to me ] Without linux/pagemap.h, asm-generic/tlb.h is missing declarations of page_cache_release and release_pages. Signed-off-by: Jeff Dike <jdike@linux.intel.com> -- include/asm-generic/tlb.h | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6.22/include/asm-generic/tlb.h =================================================================== --- linux-2.6.22.orig/include/asm-generic/tlb.h 2007-07-08 19:32:17.000000000 -0400 +++ ...
Aug 24, 11:46 am 2007
akepner
[PATCH 3/3] pci: document pci_dma_flags_set_dmaflush()
Document pci_dma_flags_set_dmaflush(). Signed-off-by: Arthur Kepner <akepner@sgi.com> -- DMA-mapping.txt | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index e07f253..32f88e5 100644 --- a/Documentation/DMA-mapping.txt +++ b/Documentation/DMA-mapping.txt @@ -745,7 +745,30 @@ to "Closing". 2.5., page+offset is always used, and the "address" field has been deleted. ...
Aug 24, 11:08 am 2007
akepner
[PATCH 2/3] pci: redefine pci_dma_flags_set_dmaflush() f ...
define pci_dma_flags_set_dmaflush() for sn-ia64 - it "borrows" bits from the direction argument (renamed "flags") to the dma_map_* routines to pass an additional "dmaflush" attribute. Also define routines to retrieve the original direction and attribute from "flags". Signed-off-by: Arthur Kepner <akepner@sgi.com> -- arch/ia64/sn/pci/pci_dma.c | 33 ++++++++++++++++++++++++--------- include/asm-ia64/sn/io.h | 22 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 9 ...
Aug 24, 11:07 am 2007
akepner
[PATCH 1/3] pci: add pci_dma_flags_set_dmaflush() to pci ...
Introduce the pci_dma_flags_set_dmaflush() interface and give it a default no-op implementation. Signed-off-by: Arthur Kepner <akepner@sgi.com> -- pci.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index e7d8d4e..cee5709 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -825,6 +825,13 @@ static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, } #endif /* HAVE_ARCH_PCI_RESOURCE_TO_USER */ ...
Aug 24, 11:05 am 2007
akepner
[PATCH 0/3] pci: let devices flush DMA to host memory
On Altix, DMA may be reordered within the NUMA interconnect. This can be a problem with Infiniband, where DMA to Completion Queues can race with data DMA. This patchset allows a driver to associate a memory region with a "dmaflush" attribute, so that writes to the memory region flush in-flight DMA, preventing the CQ/data race. There are three patches in this set: [1/3]: add pci_dma_flags_set_dmaflush() to pci interface [2/3]: redefine pci_dma_flags_set_dmaflush() for ...
Aug 24, 11:02 am 2007
Steven Rostedt
[PATCH RT 3/3] fix get_monotonic_cycles for latency tracer
The latency tracer on SMP was given crazy results. It was found that the get_monotonic_cycles that it uses was not returning a monotonic counter. The cause of this was that clock->cycles_raw and clock->cycles_last can be updated on another CPU and make the cycles_now variable out-of-date. So the delta that was calculated from cycles_now - cycles_last was incorrect. This patch adds a loop to make sure that the cycles_raw and cycles_last are consistent through out the calculation (otherwise it ...
Aug 24, 10:57 am 2007
john stultz
Re: [PATCH RT 3/3] fix get_monotonic_cycles for latency tracer
Ah! good catch. I totally missed that get_monotonic_cycles was being So if I'm understanding this right, not taking a lock isn't an optimization (as the seq read lock code is almost the same), but a requirement (as this might be called while xtime_lock is held), correct? Otherwise: Acked-by: John Stultz <johnstul@us.ibm.com> thanks -john -
Aug 24, 11:30 am 2007
Steven Rostedt
[PATCH RT 3/3 - take two ] fix get_monotonic_cycles for ...
[Added comment about not being able to take the xtime lock in get_monotonic_cycles - suggested by John Stultz] The latency tracer on SMP was given crazy results. It was found that the get_monotonic_cycles that it uses was not returning a monotonic counter. The cause of this was that clock->cycles_raw and clock->cycles_last can be updated on another CPU and make the cycles_now variable out-of-date. So the delta that was calculated from cycles_now - cycles_last was incorrect. This patch ...
Aug 24, 12:02 pm 2007
Steven Rostedt
Re: [PATCH RT 3/3] fix get_monotonic_cycles for latency tracer
-- Exactly. The latency tracer uses this so no locks can be grabbed OK, will do and send a updated patch. I wasn't in the best state writing this patch in the wee hours of the night ;-) -- Steve -
Aug 24, 11:56 am 2007
Steven Rostedt
[PATCH RT 2/3] initialize the clock source to jiffies clock.
The latency tracer can call clocksource_read very early in bootup and before the clock source variable has been initialized. This results in a crash at boot up (even before earlyprintk is initialized). Since the clock->read variable is points to NULL. This patch simply initializes the clock to use clocksource_jiffies, so that any early user of clocksource_read will not crash. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Index: ...
Aug 24, 10:57 am 2007
Steven Rostedt
[PATCH RT 1/3] time keeping add cycle_raw for actual in ...
The get_monotonic_cycles needs to produce a monotonic counter as output. Currently it uses cycles_last as the base to add the delta too. cycles_last only is the counter that was last measured and is cyclic in nature (not monotonic). This patch adds a cycle_raw to produce an accumulative counter. Unfortunately there is already an cycle_accumulate variable, but that is used to avoid clock source overflow and can also be decremented (probably that name should be changed and we should use that for ...
Aug 24, 10:57 am 2007
Mike Miller (OS Dev)
[PATCH 1/1] cciss: fix error reporting for SG_IO
----- Forwarded message from Steve Cameron <scameron@quandary.americas.cpqcorp.net> ----- Date: Fri, 24 Aug 2007 11:10:44 -0500 From: Steve Cameron <scameron@quandary.americas.cpqcorp.net> To: mikem@beardog.cca.cpqcorp.net Reply-To: steve.cameron@hp.com Cc: steve.cameron@hp.com Subject: Re: [PATCH 1/1] cciss: fix error reporting for SG_IO This fixes a problem with the way cciss was filling out the "errors" field of the request structure upon completion of requests. Previously, it just ...
Aug 24, 10:53 am 2007
Michal Piotrowski
Re: [2/2] 2.6.23-rc3: known regressions with patches v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3 with patches available. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern ...
Aug 24, 10:39 am 2007
Michal Piotrowski
[1/2] 2.6.23-rc3: known regressions with patches v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3 with patches available. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern ...
Aug 24, 10:39 am 2007
David Brownell
Re: [linux-usb-devel] [4/4] 2.6.23-rc3: known regressions v3
Try with the latest kernel from GIT; maybe that cpufreq thing (since reverted) was a factor. -
Aug 24, 11:25 am 2007
Parag Warudkar
Re: [4/4] 2.6.23-rc3: known regressions v3
Zach seemed to think that this is already fixed - I am not in a position to test it immediately so if we know what fixed this - can be closed. I'll report back once I get a chance to test latest git. Thanks Parag -
Aug 24, 12:31 pm 2007
Michal Piotrowski
Re: [4/4] 2.6.23-rc3: known regressions v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern 3 Cornelia ...
Aug 24, 10:38 am 2007
Tino Keitel
Re: [4/4] 2.6.23-rc3: known regressions v3
I was at least able to reproduce it with 2.6.23-rc2. And I tried it hard with 2.6.22 but it didn't happen. Regards, Tino -
Aug 24, 11:01 am 2007
Greg KH
Re: [4/4] 2.6.23-rc3: known regressions v3
First off, thanks so much for tracking these, it can't be an easy job, Last I heard was that Tino was going to try to do further testing, but as he hasn't responded in a few weeks, I'd mark this one down to, "unknown and unreproducable". Unless someone else knows more? thanks, greg k-h -
Aug 24, 10:56 am 2007
Greg KH
Re: [4/4] 2.6.23-rc3: known regressions v3
Ick, I didn't realize this. Oliver and Alan, any follow-up on this that I need to look into? thanks, greg k-h -
Aug 24, 11:08 am 2007
Zachary Amsden
Re: [4/4] 2.6.23-rc3: known regressions v3
Parag, thanks. I reproduced this bug with your kernel config on 2.6.23-rc3 and verified it does not happen on latest git. I inspected memory after the crash and determined the problem was patching of instructions went awry. Chris in the meantime fixed a bug with patching instructions, and the change from 100% apocalyptic failure to 100% unequivocal success has convinced me that was the same bug. Zach -
Aug 24, 12:30 pm 2007
Stephen Hemminger
Re: [3/4] 2.6.23-rc3: known regressions v3
Fix posted to netdev (sky2 1.17 series), but Jeff hasn't applied it. -
Aug 24, 10:46 am 2007
Michal Piotrowski
Re: [3/4] 2.6.23-rc3: known regressions v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern 3 Cornelia ...
Aug 24, 10:38 am 2007
Michal Piotrowski
Re: [2/4] 2.6.23-rc3: known regressions v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern 3 Cornelia ...
Aug 24, 10:38 am 2007
Ivan N. Zlatev
Re: [1/4] 2.6.23-rc3: known regressions v3
Thomas Meyer, The commit just adds the pinconfigs which Mac OS X and win32 use for the Intel Macs (intel hda audio with the Sigmatel STAC9221 codec). For me "Master" works fine with the speakers/headphones plugged in. The volume of the internal speakers is bound to "Front" in the mixer (can also be controled by "PCM"), but does not react to the "Master". I've just thought this is by design - one can maintain two volume sets for the internal speakers and the external speakers. I am ...
Aug 24, 11:42 am 2007
Michal Piotrowski
[1/4] 2.6.23-rc3: known regressions v3
Hi all, Here is a list of some known regressions in 2.6.23-rc3. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces Name Regressions fixed since 21-Jun-2007 Adrian Bunk 9 Andi Kleen 5 Linus Torvalds 5 Andrew Morton 4 Al Viro 3 Alan Stern 3 Cornelia ...
Aug 24, 10:38 am 2007
Joe Perches
[PATCH] convert #include "linux/..." and #include "asm/. ...
There are several files that: #include "linux/file" not #include <linux/file> #include "asm/file" not #include <asm/file> Here's the little script that converted them: egrep -i -r -l --include=*.[ch] \ "^[[:space:]]*\#[[:space:]]*include[[:space:]]*\"(linux|asm)/(.*)\"" * \ | xargs sed -i -e 's/^[[:space:]]*#[[:space:]]*include[[:space:]]*"\(linux\|asm\)\/\(.*\)"/#include <\1\/\2>/g' Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Christoph Lameter <clameter@sgi.com> Acked-by: ...
Aug 24, 10:19 am 2007
Randy Dunlap
Re: [PATCH] Script to check for undefined Kconfig symbols - v2
Yes, I agree that it's useful and more convenient to be in linux/scripts/. -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 10:17 am 2007
Paolo Giarrusso
Re: [PATCH] Script to check for undefined Kconfig symbols - v2
They are the same, but they do not identify the files containing the dead var. It may be worth to just "grep back" in kernel sources for the dead symbol to readd this feature, but it may be slower that way. The difference is that since I find symbols together with file name, I cannot use uniq but I must use that awk script. Anyway, do we agree that a script for this should be probably merged in kernel sources? ___________________________________ L'email della prossima ...
Aug 24, 10:14 am 2007
Maarten Maathuis
[sata_nv] timeout waiting for ADMA IDLE, stat=0x440
I have this problem several times, always with the same harddrive, a samsung sp2004c. My samsung hd161hj and hd321kj don't seem to suffer from this problem. I do not know when exactly it happened for the first, but it has happened twice on a 2.6.22 kernel. Is there anything that can be done about this (besides disabling adma for all drives), or any information i can provide to help? Please CC me, as i am not a member of this mailinglist. Sincerely, Maarten Maathuis. dmesg ...
Aug 24, 10:11 am 2007
Paul Clements
Re: [PATCH 2/2] NBD: allow hung network I/O to be cancelled
No, I don't. I just basically hardcoded my nbd-client to do a 6 second timeout by default, but Wouter will probably want to do something a little less hackish for the official nbd-client. -- Paul -
Aug 24, 12:09 pm 2007
Andrew Morton
Re: [PATCH 1/2] NBD: set uninitialized devices to size 0
On Fri, 24 Aug 2007 13:06:39 -0400 I somewhat randomly marked both these as 2.6.24 material. If you think that was incorrect, please shout out. -
Aug 24, 4:48 pm 2007
Mike Snitzer
Re: [PATCH 2/2] NBD: allow hung network I/O to be cancelled
Hi Paul, Thanks for implementing this! Do you happen to have an associated nbd-client patch for userspace? If not I'd be happy to coordinate with you and Wouter on a patch. regards, Mike -
Aug 24, 11:13 am 2007
Paul Clements
[PATCH 1/2] NBD: set uninitialized devices to size 0
This fixes errors with utilities (such as LVM's vgscan) that try to scan all devices. Previously this would generate read errors when uninitialized nbd devices were scanned: # vgscan Reading all physical volumes. This may take a while... /dev/nbd0: read failed after 0 of 1024 at 0: Input/output error /dev/nbd0: read failed after 0 of 1024 at 509804544: Input/output error /dev/nbd0: read failed after 0 of 2048 at 0: Input/output error /dev/nbd1: read failed after 0 of 1024 at ...
Aug 24, 10:06 am 2007
Paul Clements
[PATCH 2/2] NBD: allow hung network I/O to be cancelled
This patch allows NBD I/O to be cancelled when a network outage occurs. Previously, I/O would just hang, and if enough I/O was hung in nbd, the system (at least user-level) would completely hang until a TCP timeout (default, 15 minutes) occurred. The patch introduces a new ioctl NBD_SET_TIMEOUT that allows a transmit timeout value (in seconds) to be specified. Any network send that exceeds the timeout will be cancelled and the nbd connection will be shut down. I've tested with various ...
Aug 24, 10:40 am 2007
Oleg Nesterov
[PATCH 2/2] migration_call(CPU_DEAD): use spin_lock_irq( ...
Change migration_call(CPU_DEAD) to use direct spin_lock_irq() instead of task_rq_lock(rq->idle), rq->idle can't change its task_rq(). This makes the code a bit more symmetrical with migrate_dead_tasks()'s path which uses spin_lock_irq/spin_unlock_irq. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> --- t/kernel/sched.c~2_RQ_LOCK 2007-08-24 20:31:03.000000000 +0400 +++ t/kernel/sched.c 2007-08-24 20:37:17.000000000 +0400 @@ -5381,13 +5381,13 @@ migration_call(struct notifier_block *nf ...
Aug 24, 9:53 am 2007
Andrew Morton
Re: [PATCH 1/2] do CPU_DEAD migrating under read_lock(ta ...
On Fri, 24 Aug 2007 20:53:03 +0400 It's not completely clear who "maintainers" refers to when it comes to this fyi, with a little rework I queued these changes behind Akinobu Mita's cpu-hotplug ...
Aug 24, 4:45 pm 2007
Oleg Nesterov
[PATCH 1/2] do CPU_DEAD migrating under read_lock(taskli ...
(the explicit ack/nack from maintainers is wanted) Currently move_task_off_dead_cpu() is called under write_lock_irq(tasklist). This means it can't use task_lock() which is needed to improve migrating to take task's ->cpuset into account. Change the code to call move_task_off_dead_cpu() with irqs enabled, and change migrate_live_tasks() to use read_lock(tasklist). This all is a preparation for the futher changes proposed by Cliff Wickman, ...
Aug 24, 9:53 am 2007
Randy Dunlap
Re: Ideas on column length in kernel "problem"?
We could update CodingStyle, but it's still just a guideline, diff -p output is preferred for diffs (for review). Thanks. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 9:51 am 2007
Scott Thompson
Re: Ideas on column length in kernel "problem"?
On Fri, 24 Aug 2007 07:07:54 -0400 Jesper Juhl Quite the hornet's nest I've stirred up -- I'm not trying to rock the boat, just trying to row. Meanwhile, I ran a couple programs against the 2.6.22.1 source to get some statistics on the source in the linux kernel tree to understand what 'reality' is: Number of files -- 23742 Number of lines > 80 columns: 247057 Number of lines > 90 columns: 127016 Number of lines > 100 columns: 21 The *winner* at 482 columns is a commented out ...
Aug 24, 9:31 am 2007
Benoit Boissinot
Re: possible BUG while doing gpg --gen-key
Sorry, I'll let the gurus speak then ;) regards, Benoit -
Aug 24, 12:32 pm 2007
Udo van den Heuvel
possible BUG while doing gpg --gen-key
While doing gpg --gen-key I can reproduce quite well some sort of crash/bug/etc: # gpg --gen-key gpg (GnuPG) 1.4.7; Copyright (C) 2006 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. Please select what kind of key you want: (1) DSA and Elgamal (default) (2) DSA (sign only) (5) RSA (sign only) Your selection? 1 DSA keypair will ...
Aug 24, 9:30 am 2007
Udo van den Heuvel
Re: possible BUG while doing gpg --gen-key
The box runs stable for days on end. Only when running gpg --gen-key I get this issue. Other gpg operations, run by a user, are without issue. There is 512MB of RAM and the hardware is `refreshed` regularly when an interesting VIA board comes out. Case stays closed otherwise. I am ESD certified. (or how to put that in the english language) memtest86 shows no problems. Kernel compiles etc run without issue. F7 upgraded installation. Updated regularly. gnupg rpm is Red Hat-stock. My own ...
Aug 24, 11:05 am 2007
Benoit Boissinot
Re: possible BUG while doing gpg --gen-key
iirg gpg-keygen uses a lot of cpu time during that phase, you probably should verify your ram and cpu. This kind of problem is often due to faulty hardware. regards, Benoit -
Aug 24, 10:57 am 2007
Andy Whitcroft
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
That comes from the fact that the KVA in x86 has traditionally been mapped with huge pages where at all possible, for performance reasons. The purpose of the remap itself always has been performance based, we are remapping node-local memory into KVA to hold the memmap in part to exploit locality of process to its memory, and to in part to distribute the load on the NUMA memory infrastructure by "striping" the storage. As a result it makes sense to map these remapped areas with huge pages also. ...
Aug 24, 9:52 am 2007
Andi Kleen
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
> This reserved portion of the KVA must be PMD aligned. Why do they need to be PMD aligned? -Andi -
Aug 24, 9:35 am 2007
Mel Gorman
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
Not in this case. memmap is allocated node local and mapped in the virtual memory area normally occupied by the end of low memory. The objective was to have memmap for the struct pages node-local. Hence, portions of I'll have to take your word for it because I haven't looked closely enough. I'll try and find time to look at it but the earliest I'll get around to it is post kernel-summit. In the meantime, SPARSEMEM works. -- Mel Gorman Part-time Phd Student Linux ...
Aug 24, 10:44 am 2007
Mel Gorman
[PATCH] x86 Boot NUMA kernels on non-NUMA hardware with ...
Currently NUMA kernels generally do not boot on non-NUMA machines in some situations. This patch addresses one such boot problem on x86 machines running a NUMA kernel with the DISCONTIG memory model. On 32-bit NUMA, the memmap representing struct pages on each node is allocated from node-local memory. As only node-0 has memory from ZONE_NORMAL, the memmap must be mapped into low memory. This is done by reserving space in the Kernel Virtual Area (KVA) for the memmap belonging to other nodes by ...
Aug 24, 9:28 am 2007
Mel Gorman
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
The KVA acronym is being used in the x86 discontig code. The terms direct or linear mappings are not perfectly accurate either because the direct mappings are being altered in a way that pages that would normally be in Other than the fact that the memmap must be PMD aligned to use hugepage entries for the memmap. It could be mapped with small pages in corner cases I can't see this type of lifting being done any time soon. As SPARSEMEM works and there is hope with the vmemmap work that ...
Aug 24, 10:26 am 2007
Mel Gorman
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
That is a bit of an over-reaction. A problem was reported, a fix was suggested. I'm simply stating that it'll be post kernel-summit before I can revisit this issue as there are more pressing bugs right now. Disabling i386 DISCONTIG on NUMA is drastically overkill because it works on NUMA machines where the node ends are PMD aligned or this would have shown up on test.kernel.org a long time ago. Maybe it would fail on a real NUMA SPARSEMEM booted on a plain old laptop and looked ok in qemu. ...
Aug 24, 11:02 am 2007
Andi Kleen
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
Ok, but that still doesn't mean it has to be PMD aligned, as long as illegal virtual aliases are prevent in the overlap Ok, so we disable DISCONTIG i386 NUMA because there's nobody willing to maintain it? I'll take your word SPARSEMEM works, although I was told DISCONTIG NUMA works too and then my testing told a quite different story. -Andi -
Aug 24, 10:53 am 2007
Andi Kleen
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
Where does this KVA acronym come from? In Linux this is traditionally It was partly a rhetorical question. My point is that we don't make any effort to PMD align end_pfn, so there is also no reason to PMD align any of the other boundaries. The only reason in theory is to avoid virtual aliases with uncached areas, but there are no uncached areas in highmem so this shouldn't be a concern. There might be overlap into the PCI hole though which is uncached and needs care rgarding virtual ...
Aug 24, 10:07 am 2007
Andi Kleen
Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware w ...
You don't need to map it with small pages in the normal case, the only requirement is that c_p_a() is aware of it so it can It's a trivial change, probably less code than your original patch. -Andi -
Aug 24, 10:38 am 2007
David Miller
Re: errno codes intertwined
From: Jan Engelhardt <jengelh@computergmbh.de> You cannot rely on error numbers being the same, every architecture has something to a few to many differences in this area. -
Aug 24, 2:41 pm 2007
Jan Engelhardt
errno codes intertwined
Hello lists, I am currently working on a FUSE-based filesystem much like nfs/sshfs. I pass the syscall on to the storage server, where it is executed, and get back the result, or errno code. Let's jump into the real world example where the storage unit is x86_64 and the mount side is sparc/sparc64, and the syscall is getxattr. If a file does not have the requested attribute, the syscall will produce ENODATA. On x86_64, that is mapped to the value 61. Back on the sparc side, 61 is ...
Aug 24, 9:24 am 2007
Andi Kleen
Re: errno codes intertwined
No. The errnos were originally designed to be compatible with the "native" Unix on that platform to make running their binaries easier. On Sparc that would be SunOS/Solaris. -Andi -
Aug 24, 1:39 pm 2007
Josef Sipek
Re: errno codes intertwined
On Fri, Aug 24, 2007 at 06:24:48PM +0200, Jan Engelhardt wrote: I'd think that passing the raw error code is a bad idea, and that you probably want to have your own set of codes that you use in the trasport and I wouldn't - Linux on different different architectures seems to have It would break userspace :-/ Josef 'Jeff' Sipek. -- *NOTE: This message is ROT-13 encrypted twice for extra protection* -
Aug 24, 10:00 am 2007
Chandra Seetharaman
Re: DM_MULTIPATH_RDAC: "scsi_normalize_sense" undefined
It does, but "rdac" _is_ for a SCSI device. What device are you using it with ? -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - sekharan@us.ibm.com | .......you may get it. ---------------------------------------------------------------------- -
Aug 24, 2:33 pm 2007
Martin Michlmayr
DM_MULTIPATH_RDAC: "scsi_normalize_sense" undefined
I just got: Building modules, stage 2. MODPOST 414 modules ERROR: "scsi_normalize_sense" [drivers/md/dm-rdac.ko] undefined! make[1]: *** [__modpost] Error 1 Presumably DM_MULTIPATH_RDAC needs to depend on SCSI (not enabled here) since it uses scsi_normalize_sense. -- Martin Michlmayr http://www.cyrius.com/ -
Aug 24, 9:08 am 2007
Randy Dunlap
Re: DM_MULTIPATH_RDAC: "scsi_normalize_sense" undefined
It does __what__ ? depend on SCSI? I don't see that in drivers/md/Kconfig. --- From: Randy Dunlap <randy.dunlap@oracle.com> DM_MULTIPATH_RDAC uses SCSI API(s) and is for a SCSI device, so add SCSI to its depends on to prevent build errors. Not tested. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- drivers/md/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.23-rc3-git6.orig/drivers/md/Kconfig +++ ...
Aug 24, 3:00 pm 2007
Chandra Seetharaman
Re: DM_MULTIPATH_RDAC: "scsi_normalize_sense" undefined
I do agree that the following patch would be needed. Since the rdac hardware handler is for a scsi device, including it without SCSI would not achieve anything (as his device won't be visible in the first place). Hence my question. -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - sekharan@us.ibm.com | .......you may get ...
Aug 24, 3:16 pm 2007
Arjan van de Ven
Re: [PATCH] export i386 smp_call_function_mask() to modules
On Fri, 24 Aug 2007 17:36:35 +0200 hmm isn't it being an inline also making it available for KVM to use? If so... isn't your patch description entirely not matching what the code does? -
Aug 24, 10:42 am 2007
Laurent Vivier
[PATCH] export i386 smp_call_function_mask() to modules
This patch export i386 smp_call_function_mask() with EXPORT_SYMBOL(). This function is needed by KVM to call a function on a set of CPUs. arch/i386/kernel/smp.c | 7 +++++++ include/asm-i386/smp.h | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Aug 24, 8:36 am 2007
Balbir Singh
[-mm PATCH 5/10] Memory controller task migration (v7)
Allow tasks to migrate from one container to the other. We migrate mm_struct's mem_container only when the thread group id migrates. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- mm/memcontrol.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff -puN mm/memcontrol.c~mem-control-task-migration mm/memcontrol.c --- linux-2.6.23-rc2-mm2/mm/memcontrol.c~mem-control-task-migration 2007-08-24 20:46:07.000000000 +0530 +++ ...
Aug 24, 8:20 am 2007
Balbir Singh
[-mm PATCH 0/10] Memory controller introduction (v7)
Hi, Andrew, Here's version 7 of the memory controller (against 2.6.23-rc2-mm2). I was told "7" is a lucky number, so I am hopeful this version of the patchset will get merged ;) The salient features of the patches are a. Provides *zero overhead* for non memory controller users b. Enable control of both RSS (mapped) and Page Cache (unmapped) pages c. The infrastructure allows easy addition of other types of memory to control d. Provides a double LRU: global memory pressure causes reclaim ...
Aug 24, 8:19 am 2007
Balbir Singh
[-mm PATCH 1/10] Memory controller resource counters (v7)
From: Pavel Emelianov <xemul@openvz.org> Introduce generic structures and routines for resource accounting. Each resource accounting container is supposed to aggregate it, container_subsystem_state and its resource-specific members within. Signed-off-by: Pavel Emelianov <xemul@openvz.org> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- include/linux/res_counter.h | 102 +++++++++++++++++++++++++++++++++++++ init/Kconfig | 7 ++ kernel/Makefile ...
Aug 24, 8:19 am 2007
Balbir Singh
[-mm PATCH 3/10] Memory controller accounting setup (v7)
From: Pavel Emelianov <xemul@openvz.org> Changelog for v5 1. Remove inclusion of memcontrol.h from mm_types.h Changelog As per Paul's review comments 1. Drop css_get() for the root memory container 2. Use mem_container_from_task() as an optimization instead of using mem_container_from_cont() along with task_container. Basic setup routines, the mm_struct has a pointer to the container that it belongs to and the the page has a page_container associated with it. Signed-off-by: ...
Aug 24, 8:20 am 2007
Balbir Singh
[-mm PATCH 9/10] Memory controller make page_referenced( ...
Make page_referenced() container aware. Without this patch, page_referenced() can cause a page to be skipped while reclaiming pages. This patch ensures that other containers do not hold pages in a particular container hostage. It is required to ensure that shared pages are freed from a container when they are not actively referenced from the container that brought them in Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- include/linux/memcontrol.h | 6 ++++++ ...
Aug 24, 8:21 am 2007
Balbir Singh
[-mm PATCH 8/10] Memory controller add switch to control ...
Choose if we want cached pages to be accounted or not. By default both are accounted for. A new set of tunables are added. echo -n 1 > mem_control_type switches the accounting to account for only mapped pages echo -n 3 > mem_control_type switches the behaviour back Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- include/linux/memcontrol.h | 9 ++++ mm/filemap.c | 2 mm/memcontrol.c | 92 +++++++++++++++++++++++++++++++++++++++++++++ ...
Aug 24, 8:21 am 2007
Balbir Singh
[-mm PATCH 7/10] Memory controller OOM handling (v7)
From: Pavel Emelianov <xemul@openvz.org> Out of memory handling for containers over their limit. A task from the container over limit is chosen using the existing OOM logic and killed. TODO: 1. As discussed in the OLS BOF session, consider implementing a user space policy for OOM handling. Signed-off-by: Pavel Emelianov <xemul@openvz.org> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- include/linux/memcontrol.h | 1 + mm/memcontrol.c | 1 + ...
Aug 24, 8:21 am 2007
Balbir Singh
[-mm PATCH 4/10] Memory controller memory accounting (v7)
Changelog for v6 1. Do a css_put() in the case of a race in allocating page containers (YAMAMOTO Takashi) Changelog for v5 1. Rename meta_page to page_container 2. Remove PG_metapage and use the lower bit of the page_container pointer for locking Changelog for v3 1. Fix a probable leak with meta_page's (pointed out by Paul Menage) 2. Introduce a wrapper around mem_container_uncharge for uncharging pages mem_container_uncharge_page() Changelog 1. Improved error ...
Aug 24, 8:20 am 2007
Balbir Singh
[-mm PATCH 6/10] Memory controller add per container LRU ...
Changelog since v3 1. Added reclaim retry logic to avoid being OOM'ed due to pages from swap cache (coming in due to reclaim) don't overwhelm the container. Changelog 1. Fix probable NULL pointer dereference based on review comments by YAMAMOTO Takashi Add the page_container to the per container LRU. The reclaim algorithm has been modified to make the isolate_lru_pages() as a pluggable component. The scan_control data structure now accepts the container on behalf of which reclaims ...
Aug 24, 8:20 am 2007
Balbir Singh
[-mm PATCH 2/10] Memory controller containers setup (v7)
Changelong 1. use depends instead of select in init/Kconfig 2. Port to v11 3. Clean up the usage of names (container files) for v11 Setup the memory container and add basic hooks and controls to integrate and work with the container. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- include/linux/container_subsys.h | 6 + include/linux/memcontrol.h | 21 ++++++ init/Kconfig | 7 ++ mm/Makefile | 1 mm/memcontrol.c ...
Aug 24, 8:20 am 2007
Balbir Singh
[-mm PATCH 10/10] Memory controller add documentation
Changelog since version 1 1. Wording and punctuation comments - Randy Dunlap 2. Differentiate between RSS and Page Cache - Paul Menage 3. Add detailed description of features - KAMEZAWA Hiroyuki 4. Fix a typo (drop_pages should be drop_caches) - YAMAMOTO Takshi Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> --- Documentation/controllers/memory.txt | 259 +++++++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) diff -L Documentation/memcontrol.txt -puN ...
Aug 24, 8:21 am 2007
Randy Dunlap
Re: [PATCH] Script to check for undefined Kconfig symbols - v2
or added to Documentation/SubmitChecklist. How does this script compare to http://www.fsdev.net/wiki/index.php?title=Misspelled_CONFIG_variables and http://www.fsdev.net/wiki/index.php?title=Dead_CONFIG_variables --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 9:03 am 2007
Paolo 'Blaisorblade' ...
[PATCH] Script to check for undefined Kconfig symbols - v2
In this version, I've updated the scripts to search for "\<$symb_bare\>" instead of $symb_bare in Kconfig files. Please ignore my previous message. To avoid to look manually for used but undefined Kconfig variables, I've written a script which tries do this efficiently, in case all other attention fail. It accounts for _MODULE suffix and for UML_ prefixes to Kconfig variable, but otherwise looks for exact matches (i.e. \<CONFIG_; this is done to exclude macros like MMCONFIG_). Undefined ...
Aug 24, 7:56 am 2007
Ingo Molnar
[patch] CFS scheduler, -v20.3, for v2.6.22.5, v2.6.21.7, ...
i've uploaded the -v20.3 CFS backport patches, which includes a handful of other (small) fixes as well, two of which could improve interactivity corner-cases. It can be picked up from the usual place: http://people.redhat.com/mingo/cfs-scheduler/ Ingo -
Aug 24, 7:39 am 2007
Linus Torvalds
Re: [git pull request] scheduler updates
Your explanation makes NO sense. It doesn't eliminate HZ at all. It's still there, and it's still totally bogus. Please just *remove* that thing. It has no possible value! You claim that the preemption granularity is in "ns", and that it defaults to "3 msec", but it does no such thing at all, even with your patch. It does: unsigned int sysctl_sched_granularity __read_mostly = 3000000000ULL/HZ; which is just total and utter CRAP! Why the hell can't you just make the code sane ...
Aug 24, 11:09 am 2007
Ingo Molnar
[git pull request] scheduler updates
Linus, please pull the latest scheduler git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched.git It includes 8 commits, 3 of which are important: the most important change is a bugfix to the new task startup penalty code. This could explain the task-startup unpredictability problem reported by Al Boldi. Then there's also a change/tweak that increases the default granularity: it's still well below human perception so should not be noticeable, but servers ...
Aug 24, 7:12 am 2007
Ingo Molnar
Re: [git pull request] scheduler updates
fair enough, and i fixed that. ( i called the previous patch the "first step" because i was too chicken to pick a single granularity default :-/ ) for the current queue i went for settings close to that of HZ=250 - that's the most common HZ variant that was tested previously. That means 10 msec on a 1-way box, 20 msec on a 2-way box, 30 msec on a 4-way box, ok, i've removed that and all the other HZ hacks too. I've uploaded a new queue with that fixed (and all other patches ...
Aug 24, 12:37 pm 2007
Subrata Modak
[ANNOUNCE] NUMA Testcases has been integrated to LTP
Hi all, Support for NUMA has been there in Linux Kernel from years. Here comes the initial set (long delayed) of NUMA Test-cases from LTP and written by sivakumar.c@in.ibm.com. You can download a copy of LTP Suite containing NUMA-testcases from: http://prdownloads.sourceforge.net/ltp/ltp-nightly-snapshot_numa.tgz?download We request you to comment on the effectiveness/coverage of these testcases and help us contribute to the same. Your suggestions/corrections are extremely valuable and ...
Aug 24, 6:59 am 2007
akepner
Re: RFC: issues concerning the next NAPI interface
We found the same on ia64-sn systems with tg3 a couple of years ago. Using simple interrupt coalescing ("don't interrupt until you've received N packets or M usecs have elapsed") worked reasonably well in practice. If your h/w supports that (and I'd guess it does, since it's such a simple thing), you might try it. -- Arthur -
Aug 24, 8:37 am 2007
Rick Jones
Re: RFC: issues concerning the next NAPI interface
Sounds exactly like the default netperf TCP_RR test and any number of other benchmarks. The "send a request, wait for reply, send next request, etc etc etc" is a rather common application behaviour afterall. rick jones -
Aug 24, 10:07 am 2007
Linas Vepstas
Re: RFC: issues concerning the next NAPI interface
Just to be clear, in the previous email I posted on this thread, I described a worst-case network ping-pong test case (send a packet, wait for reply), and found out that a deffered interrupt scheme just damaged the performance of the test case. Since the folks who came up with the test case were adamant, I turned off the defferred interrupts. While defferred interrupts are an "obvious" solution, I decided that they weren't a good solution. (And I have no other solution to ...
Aug 24, 9:51 am 2007
David Miller
Re: RFC: issues concerning the next NAPI interface
From: David Stevens <dlstevens@us.ibm.com> This is one of many reasons why hardware interrupt mitigation is really needed for this. -
Aug 24, 2:44 pm 2007
Shirley Ma
Re: RFC: issues concerning the next NAPI interface
When splitting rx and tx handler, I found some performance gain by deffering interrupt scheme in tx not rx in IPoIB driver. Shirley -
Aug 24, 10:45 am 2007
David Miller
Re: RFC: issues concerning the next NAPI interface
From: Jan-Bernd Themann <ossthema@de.ibm.com> Indeed, this is the "who should manage the list" problem. Probably the answer is that whoever transitions the NAPI_STATE_SCHED bit from cleared to set should do the list addition. This is why minimal levels of HW interrupt mitigation should be enabled in your chip. If it does not support this, you will indeed need to look into using high resolution timers or other schemes to alleviate this. I do not think it deserves a generic core networking ...
Aug 24, 2:37 pm 2007
James Chapman
Re: RFC: issues concerning the next NAPI interface
Does hardware interrupt mitigation really interact well with NAPI? In my experience, holding off interrupts for X packets or Y usecs does more harm than good; such hardware features are useful only when the OS has no NAPI-like mechanism. When tuning NAPI drivers for packets/sec performance (which is a good indicator of driver performance), I make sure that the driver stays in NAPI polled mode while it has any rx or tx work to do. If the CPU is fast enough that all work is always ...
Aug 24, 10:16 am 2007
Jan-Bernd Themann
Re: RFC: issues concerning the next NAPI interface
Hi, I don't see how this should work. Our latest machines are fast enough that they simply empty the queue during the first poll iteration (in most cases). Even if you wait until X packets have been received, it does not help for the next poll cycle. The average number of packets we process per poll queue is low. So a timer would be preferable that periodically polls the queue, without the need of generating a HW interrupt. This would allow us to wait until a reasonable amount of packets ...
Aug 24, 8:47 am 2007
David Miller
Re: RFC: issues concerning the next NAPI interface
From: Jan-Bernd Themann <ossthema@de.ibm.com> Once the per-cpu NAPI poll queues start needing locks, much of the gain will be lost. This is strictly what we want to avoid. We need real facilities for IRQ distribution policies. With that none of this is an issue. This is also a platform specific problem with IRQ behavior, the IRQ distibution scheme you mention would never occur on sparc64 for example. We use a fixed round-robin distribution of interrupts to CPUS there, they don't ...
Aug 24, 2:32 pm 2007
Jan-Bernd Themann
Re: RFC: issues concerning the next NAPI interface
Yes, that was one idea as well. But the problem with that is that net_rx_action will call the same poll function over and over again in a row if there are no further network devices. The problem about this approach is that you always poll just a very few packets each time. This does not work with LRO well, as there are no packets to aggregate... So it would make more sense to wait for a certain time before trying it again. Second problem: after the jiffies incremented by one in ...
Aug 24, 11:11 am 2007
Stephen Hemminger
Re: RFC: issues concerning the next NAPI interface
On Fri, 24 Aug 2007 17:47:15 +0200 You need hardware support for deferred interrupts. Most devices have it (e1000, sky2, tg3) and it interacts well with NAPI. It is not a generic thing you want done by the stack, you want the hardware to hold off interrupts until X packets or Y usecs have expired. The parameters for controlling it are already in ethtool, the issue is finding a good default set of values for a wide range of applications and architectures. Maybe some heuristic based on processor ...
Aug 24, 8:52 am 2007
David Stevens
Re: RFC: issues concerning the next NAPI interface
Stephen Hemminger <shemminger@linux-foundation.org> wrote on 08/24/2007 have expired. For generic hardware that doesn't support it, couldn't you use an estimater and adjust the timer dynamicly in software based on sampled values? Switch to per-packet interrupts when the receive rate is low... Actually, that's how I thought NAPI worked before I found out otherwise (ie, before I looked :-)). The hardware-accelerated one is essentially siloing as done by ancient ...
Aug 24, 9:50 am 2007
Linas Vepstas
Re: RFC: issues concerning the next NAPI interface
When turning off interrupts, don't turn them *all* off. Leave the queue-full interrupt always on. --linas -
Aug 24, 2:51 pm 2007
David Miller
Re: RFC: issues concerning the next NAPI interface
From: James Chapman <jchapman@katalix.com> It interacts quite excellently. There was a long saga about this with tg3 and huge SGI numa systems with large costs for interrupt processing, and the fix was to do a minimal amount of interrupt mitigation and this basically cleared up all the problems. Someone should reference that thread _now_ before this discussion goes too far and we repeat a lot of information and people like myself have to stay up all night correcting the misinformation ...
Aug 24, 2:47 pm 2007
Linas Vepstas
Re: RFC: issues concerning the next NAPI interface
I saw this too, on a system that is "modern" but not terribly fast, and only slightly (2-way) smp. (the spidernet) I experimented wih various solutions, none were terribly exciting. The thing that killed all of them was a crazy test case that someone sprung on me: They had written a worst-case network ping-pong app: send one packet, wait for reply, send one packet, etc. If I waited (indefinitely) for a second packet to show up, the test case completely stalled (since no second packet ...
Aug 24, 9:45 am 2007
akepner
Re: RFC: issues concerning the next NAPI interface
Here's part of the thread: http://marc.info/?t=111595306000001&r=1&w=2 Also, Jamal's paper may be of interest - Google for ""when napi comes to town". -- Arthur -
Aug 24, 3:06 pm 2007
David Miller
Re: RFC: issues concerning the next NAPI interface
From: linas@austin.ibm.com (Linas Vepstas) The tradeoff is always going to be latency vs. throughput. A sane default should defer enough to catch multiple packets coming in at something close to line rate, but not so much that latency unduly suffers. -
Aug 24, 2:43 pm 2007
Jan-Bernd Themann
RFC: issues concerning the next NAPI interface
Hi, when I tried to get the eHEA driver working with the new interface, the following issues came up. 1) The current implementation of netif_rx_schedule, netif_rx_complete    and the net_rx_action have the following problem: netif_rx_schedule    sets the NAPI_STATE_SCHED flag and adds the NAPI instance to the poll_list.    netif_rx_action checks NAPI_STATE_SCHED, if set it will add the device    to the poll_list again (as well). netif_rx_complete clears the NAPI_STATE_SCHED.    If an ...
Aug 24, 6:59 am 2007
Alan Cox
Re: "exception Emask: 0x42" errors with 2.6.22.x and SAT ...
On Fri, 24 Aug 2007 14:39:10 +0100 Probably not connected - your drive seems to be talking rubbish Neither are good, the latter is probably a drive firmware problem and the kernel will give up using NCQ with it if it keeps doing that, which should be just fine. -
Aug 24, 12:20 pm 2007
Dermot Bradley
"exception Emask: 0x42" errors with 2.6.22.x and SATA drives
I've just built a new machine using a ASUS M2A-VM boardboard (ATI SB600 chipset), AMD X2 3800+ processor, and 2 Western Digital 2.5" 80Gb drives running in RAID-1 using MD. I've had these problems with both 2.6.22.1 and now 2.6.22.5 kernels. I'm getting the following errors on occasion: Aug 24 13:19:22 playpbx kernel: APIC error on CPU0: 00(40) Aug 24 13:19:33 playpbx kernel: APIC error on CPU0: 40(40) Aug 24 13:20:01 playpbx last message repeated 5 times Aug 24 13:20:54 playpbx last message ...
Aug 24, 6:39 am 2007
Felix Homann
Regressions w.r.t. suspend behaviour in recent kernel versions
Hi, I've been experiencing several problems with s2ram/s2disk with recent kernels (mostly starting with 2.6.19): 1. s2disk won't work without the nolapic kernel option. I didn't have to use that option with kernels < 2.6.19. I only found out that I need this option with the kind help from Rafael Wysocki. Unfortunately, using the nolapic option raises new problems as I'm getting these warnings at boot time (with kernel 2.6.23-rc2): ++++++++++++++++++++++++++++++++++++ Aug 9 ...
Aug 24, 5:42 am 2007
Kentaro Takeda
[TOMOYO 02/15] Kconfig and Makefile for TOMOYO Linux.
Kconfig and Makefile for TOMOYO Linux. TOMOYO Linux is placed in security/tomoyo . Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/Kconfig | 1 + security/Makefile | 1 + security/tomoyo/Kconfig | 18 ++++++++++++++++++ security/tomoyo/Makefile | 3 +++ 4 files changed, 23 insertions(+) --- linux-2.6.orig/security/Kconfig 2007-08-23 21:25:12.000000000 +0900 +++ ...
Aug 24, 5:45 am 2007
Kentaro Takeda
[TOMOYO 10/15] Networking access control functions.
Network access control functions for TOMOYO Linux. TOMOYO Linux checks permission by the following four parameters. * protocol type (TCP, UDP, RAW) * access type (bind, listen, connect, accept) * IP address (Both IPv4 and IPv6 are available) * port number In order to check 'TCP accept' and 'UDP accept'(recv), LSM expansion patch ([TOMOYO /]) is needed. Each permission can be automatically accumulated into the policy of each domain using 'learning mode'. Signed-off-by: Kentaro ...
Aug 24, 5:54 am 2007
Jiri Kosina
Re: [TOMOYO 02/15] Kconfig and Makefile for TOMOYO Linux.
Just a trivial minor nitpick - IMHO this breaks bisectability. It might be better to add the Kconfig/Makefile patch at the end of the whole series, so that bisect doesn't end up in the tree in which Makefile references non-exsting files/directories. -- Jiri Kosina -
Aug 24, 5:50 am 2007
Kentaro Takeda
[TOMOYO 08/15] File access control functions.
File access control functions for TOMOYO Linux. TOMOYO Linux checks permission in open/creat/unlink/truncate/ftruncate/mknod/mkdir/ rmdir/symlink/link/rename/uselib/sysctl . Each permission can be automatically accumulated into the policy of each domain using 'learning mode'. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/file.c | 1565 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files ...
Aug 24, 5:53 am 2007
Kentaro Takeda
[TOMOYO 06/15] Domain transition handler functions.
Domain transition functions for TOMOYO Linux. Every process belongs to a domain in TOMOYO Linux. Domain transition occurs when execve(2) is called and the domain is expressed as 'process invocation history', such as '<kernel> /sbin/init /etc/init.d/rc'. Domain information is stored in task_struct->security. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/domain.c | 1291 ...
Aug 24, 5:50 am 2007
Kentaro Takeda
[TOMOYO 12/15] Signal transmission control functions.
Signal control functions for TOMOYO Linux. TOMOYO Linux checks sending signal by signal number and the domain of target process.In order to check signal permission, LSM expantion patch [TOMOYO /] is needed. Each permission can be automatically accumulated into the policy of each domain using 'learning mode'. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/signal.c | 238 ...
Aug 24, 5:56 am 2007
Kentaro Takeda
[TOMOYO 09/15] Argv[0] access control functions.
argv[0] check functions for TOMOYO Linux. If the executed program name and argv[0] is different, TOMOYO Linux checks permission. Each permission can be automatically accumulated into the policy of each domain using 'learning mode'. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/exec.c | 230 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 230 insertions(+) --- ...
Aug 24, 5:53 am 2007
Kentaro Takeda
[TOMOYO 00/15] TOMOYO Linux - MAC based on process invoc ...
"TOMOYO Linux" is our work in the field of security enhanced Linux. This is the second proposal of TOMOYO Linux. When we posted our first proposal to LKML, TOMOYO Linux's MAC was limited to file access control. Now TOMOYO Linux has access control functionality not only for files but also for networking, signal transmission and namespace manipulation and we got the source code cleaned-up. Patches consist of three types. * [TOMOYO 01/15]: Mandatory modifications against standard ...
Aug 24, 5:41 am 2007
Kentaro Takeda
[TOMOYO 03/15] Data structures and prototypes definition.
Data structures and prototype defitions for TOMOYO Linux. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/include/realpath.h | 44 +++ security/tomoyo/include/tomoyo.h | 516 +++++++++++++++++++++++++++++++++++++ 2 files changed, 560 insertions(+) --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6/security/tomoyo/include/realpath.h 2007-08-24 15:51:34.000000000 +0900 @@ -0,0 +1,44 ...
Aug 24, 5:46 am 2007
Kentaro Takeda
[TOMOYO 04/15] Memory and pathname management functions.
Basic functions to get canonicalized absolute pathnames for TOMOYO Linux. Even the requested pathname is symlink()ed or chroot()ed, TOMOYO Linux uses the original pathname. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/realpath.c | 697 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 697 insertions(+) --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ ...
Aug 24, 5:48 am 2007
Kentaro Takeda
[TOMOYO 15/15] LSM expansion for TOMOYO Linux.
LSM expansion for TOMOYO Linux. LSM hooks for sending signal: * task_kill_unlocked is added in sys_kill * task_tkill_unlocked is added in sys_tkill * task_tgkill_unlocked is added in sys_tgkill LSM hooks for network accept and recv: * socket_post_accept is modified to return int. * post_recv_datagram is added in skb_recv_datagram. You can try TOMOYO Linux without this patch, but in that case, you can't use access control functionality for restricting signal transmission and ...
Aug 24, 5:58 am 2007
Kentaro Takeda
[TOMOYO 01/15] Allow use of namespace_sem from LSM module.
TOMOYO Linux uses pathnames for auditing and controlling file access. Therefore, namespace_sem is needed. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- fs/namespace.c | 2 +- include/linux/mnt_namespace.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) --- linux-2.6.orig/fs/namespace.c 2007-08-23 21:25:13.000000000 +0900 +++ linux-2.6/fs/namespace.c 2007-08-24 15:51:34.000000000 ...
Aug 24, 5:44 am 2007
Kentaro Takeda
[TOMOYO 07/15] Auditing interface.
This patch makes access logs sent to auditing subsystem. TOMOYO Linux uses two channels for auditing. One is 'AUDIT_TMY_GRANTED', used for auditing accesses which are granted in the TOMOYO Linux policy. The other is 'AUDIT_TMY_REJECTED', used for auditing accesses which are not granted in the TOMOYO Linux policy. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- include/linux/audit.h | 3 ++ ...
Aug 24, 5:52 am 2007
Kentaro Takeda
[TOMOYO 11/15] Namespace manipulation control functions.
Mount access control functions for TOMOYO Linux. TOMOYO Linux checks permission according to device name, mount point, filesystem type and optional flags. TOMOYO Linux also checks permission in umount and pivot_root. Each permission can be automatically accumulated into the policy using 'learning mode'. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/mount.c | 1019 ...
Aug 24, 5:55 am 2007
Kentaro Takeda
[TOMOYO 13/15] LSM adapter for TOMOYO.
LSM wrapper functions for TOMOYO Linux access control. If bind mounts are used, TOMOYO requires all permissions for all possible pathnames (whereas AppArmor requires one of possible pathnames). If "struct vfsmount" is passed to LSM hooks as AppArmor proposes, this file will become more simpler and "namespace_sem" can remain "static". Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/tomoyo.c | 745 ...
Aug 24, 5:56 am 2007
Kentaro Takeda
[TOMOYO 05/15] Utility functions and /proc interface for ...
Common functions for TOMOYO Linux. TOMOYO Linux uses /proc/tomoyo interface for configuration. /proc/tomoyo/domain_policy is the domain-based access policy. Access control list for files, networks, argv[0] and signal is stored in domain_policy. /proc/tomoyo/system_policy is the system-wide access policy. Access control list for mount, umount and pivot_root is stored in system_policy. /proc/tomoyo/exception_policy is the other settings such as globally readable library files, domain ...
Aug 24, 5:49 am 2007
Kentaro Takeda
[TOMOYO 14/15] Conditional permission support.
This patch allows administrators use conditional permission. TOMOYO Linux supports conditional permission based on process's UID,GID etc. and/or requested pathname's UID/GID. Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> --- security/tomoyo/condition.c | 680 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 680 insertions(+) --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ ...
Aug 24, 5:57 am 2007
Frederik Himpe
CFS + Rhythmbox audio skipping
Some time ago, it was already discussed here that Rhythmbox would easily cause audio skipping when running with the CFS scheduler (http:// bhhdoa.org.au/pipermail/ck/2007-June/007886.html). It was said to be a Rhythmbox problem, for which someone needed to open a bug report. Well, I just did this, but the developer says he cannot reproduce this, and denies that Rhythmbox is making any X calls in its audio playback thread, so this bug is blocked for the ...
Aug 24, 5:15 am 2007
Ingo Molnar
Re: CFS + Rhythmbox audio skipping
could you first check whether CFS v20.3: http://people.redhat.com/mingo/cfs-scheduler/ is it still showing the same symptoms with rhythmbox? If yes, what kind of load of yours is typically causing the Rhythmbox skipping? x11perf? Ingo -
Aug 24, 7:57 am 2007
Willy Tarreau
Re: 2.6.22.5 forcedeth timeout hang
Ok, but please keep the list CC'ed. It's the second time I add it myself, if you remove the people who can help, it will be hard to get a fix. Willy -
Aug 24, 5:14 am 2007
Willy Tarreau
Re: 2.6.22.5 forcedeth timeout hang
I don't think it's much related then (though I don't know its real implications) Willy -
Aug 24, 4:51 am 2007
Marco d'Itri
Re: isapnp & module autoload (udev?)
Only for some devices, others do not provide in sysfs everything needed to build the MODALIAS string. -- ciao, Marco -
Aug 24, 4:56 am 2007
Kay Sievers
Re: isapnp & module autoload (udev?)
Right, that will not match. You could add: alias pnp:dCTL0001 snd-sb16 to: /etc/modprobe.d/pnp or some other file in that directory. We may switch to acpi based module autoloading in the future and add "acpi:*" aliases to the modules intsead of the broken pnp alias hack. Just to check if that would work, can you please provide the output of: grep . /sys/bus/acpi/devices/*/modalias Thanks, Kay -
Aug 24, 7:20 am 2007
Meelis Roos
isapnp & module autoload (udev?)
Hi, I tested 2.6.23-rc3 along with Debian unstable on a older pentium2-era PC that has a ISA bus sound card that isapnp finds. snd-sb finds it too using isapnp. However, there seems to be no module autoloading happening. So, the question is: should isapnp moudle autoloading work with current kernel + current udev? -- Meelis Roos (mroos@linux.ee) -
Aug 24, 4:36 am 2007
Kay Sievers
Re: isapnp & module autoload (udev?)
Not out-of-the-box, I guess. There are likely no aliases in the kernel modules which match the hardware for these old drivers. You could put them in a modprobe config file maybe. What's in the module? What does: /sbin/modinfo <kernel module name> | grep alias print? And what does the hardware say? What does: grep . /sys/bus/pnp/devices/*/id print? Kay -
Aug 24, 5:40 am 2007
Meelis Roos
Re: isapnp & module autoload (udev?)
filename: /lib/modules/2.6.23-rc3/kernel/sound/isa/sb/snd-sb16.ko description: Sound Blaster 16 license: GPL author: Jaroslav Kysela <perex@suse.cz> alias: pnp:ctBA03b0dPNPb003* alias: pnp:cCTL00f0dCTL0043* alias: pnp:cCTL0086dCTL0041* alias: pnp:cCTL0080dCTL0041* alias: pnp:cCTL0070dCTL0001* alias: pnp:cCTL0051dCTL0001* alias: pnp:cCTL002cdCTL0031* alias: pnp:cCTL002bdCTL0031* alias: ...
Aug 24, 6:46 am 2007
Paolo 'Blaisorblade' ...
[PATCH 1/2] Replace CONFIG_USB_OHCI with CONFIG_USB_OHCI ...
Finish the rename of CONFIG_USB_OHCI to CONFIG_USB_OHCI_HCD, which started in 2005 (before 2.6.12-rc2). The patch in this message has not been applied yet; moreover, it is not something to fix afterwards. I've verified that no more instances of 'CONFIG_USB_[UOE]HCI\>' exist in the source tree. http://www.linux-mips.org/archives/linux-mips/2005-06/msg00060.html I'm also sending a script to detect undefined Kconfig variables in next patch. Thanks to my colleague Giuseppe Patanè for the ...
Aug 24, 4:28 am 2007
Paolo 'Blaisorblade' ...
[PATCH 2/2] Script to check for undefined Kconfig symbols
To avoid to look manually for used but undefined Kconfig variables, I've written a script which tries do this efficiently, in case all other attention fail. It accounts for _MODULE suffix and for UML_ prefixes to Kconfig variable, but otherwise looks for exact matches (i.e. \<CONFIG_; this is done to exclude macros like MMCONFIG_). Undefined Kconfig variables should be not be removed without care, but for instance arch/i386/boot/ uses a bunch of undefined Kconfig vars: $ ...
Aug 24, 4:29 am 2007
Nick Piggin
[patch] 2.6.23-rc3: fsblock
Hi, I'm still plugging away at fsblock slowly. Haven't really got around to to finishing up any big new features, but there has been a lot of bug fixing and little API changes since last release. I still think fsblock has merit, and even if a more extent-based approach ends up working better for most things. I think a block based one will still have its place (either along-side or underneath), and I think fsblock is just much better than buffer_heads. fsblock proper and minix port patches ...
Aug 24, 4:20 am 2007
Sukadev Bhattiprolu
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
Oleg, if one thread can be in collect_signal() and another in sigqueue_free() and both operate on the exact same sigqueue object, its not clear how we prevent two calls to __sigqueue_free() to the same object. In that case the lock (or some lock) should be around __sigqueue_free() - no ? i.e if we enter sigqueue_free(), we will call __sigqueue_free() -
Aug 24, 1:03 pm 2007
Oleg Nesterov
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
Yes. They both will call __sigqueue_free(). But please note that __sigqueue_free() checks SIGQUEUE_PREALLOC, which is cleared by sigqueue_free(). IOW, when sigqueue_free() unlocks ->siglock, we know that it can't be used by collect_signal() from another thread. So we can clear SIGQUEUE_PREALLOC and free sigqueue. We don't need this lock around sigqueue_free() to prevent the race. collect_signal() can "see" only those sigqueues which are on list. IOW, when sigqueue_free() takes ->siglock, ...
Aug 24, 1:23 pm 2007
Oleg Nesterov
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
Not sure I understand. Yes, it is possible they are called by 2 different threads, that is why we had a race. But all threads in the same thread group have the same ->sighand, and thus the same ->sighand->siglock. Oleg. -
Aug 24, 4:08 am 2007
Greg KH
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
Then just don't build this module if you are creating such a kernel :) Same thing goes for the existing blackberry charge driver too... thanks, greg k-h -
Aug 24, 11:33 am 2007
Bodo Eggert
Re: [RFC] USB: driver for iphone charging
This should be a runtime option, because you may want to build a non-module kernel and not charge the phone while running your laptop on battery. -- Top 100 things you don't want the sysadmin to say: 72. My leave starts tomorrow. Friß, Spammer: MYowdIc@7eggert.dyndns.org -
Aug 24, 3:51 am 2007
Paolo 'Blaisorblade' ...
[PATCH] usbmon doc update - mention new wildcard ('0') bus
Update usbmon documentation, mentioning the "zero" (wildcard) bus. Possibly, in my first hunk, the 'either ... or ...' should be rephrased a bit to be expressed better. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: USB development list <linux-usb-devel@lists.sourceforge.net> Cc: Pete Zaitcev <zaitcev@redhat.com> Cc: Alan Stern <stern@rowland.harvard.edu> --- Documentation/usb/usbmon.txt | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff ...
Aug 24, 3:19 am 2007
Robert P. J. Day
[PATCH] Remove superfluous definition of __setup_null_pa ...
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> --- since i apparently removed the final remaining reference to this macro in commit f4895925976977aaeda26ee2a603a99f17db500b (thanks, adrian), there seems to be little value in keeping this definition around. $ grep -rw __setup_null_param * include/linux/init.h:#define __setup_null_param(str, unique_id) \ include/linux/init.h:#define __setup_null_param(str, unique_id) /* nothing */ $ diff --git a/include/linux/init.h ...
Aug 24, 3:14 am 2007
Robert P. J. Day
Re: [PATCH] Remove superfluous definition of __setup_nul ...
sure. if no one has any objections, i have no problem with that. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
Aug 24, 8:32 am 2007
Satyam Sharma
Re: [PATCH] Remove superfluous definition of __setup_nul ...
How about ... [PATCH] Remove superfluous definition of __setup_null_param() macro and broken (for MODULE) __setup_param() From: Robert P. J. Day <rpjday@mindspring.com> Remove superfluous definition of __setup_null_param() macro, as nobody uses it anymore. Also kill the #ifdef-MODULE-case (empty) definition for __setup_param. It is only required for the !MODULE case, as __setup() is empty for the MODULE case already. Also, no user outside init.h must use __setup_null_param ...
Aug 24, 8:36 am 2007
Rafael J. Wysocki
[PATCH -mm 0/2] Hibernation: Arbitrary boot kernel suppo ...
Hi, The following two patches make it possible to restore the memory state from a hibernation image with the help of a kernel different from the image one. The first patch adds the generic, platform independent code needed for that. The second patch implements the idea on x86_64. Greetings, Rafael -
Aug 24, 3:06 am 2007
Johannes Berg
Re: [linux-pm] [PATCH -mm 2/2] Hibernation: Arbitrary bo ...
Shouldn't that actually be added into some generic (non-x86-64) doc file? johannes
Aug 24, 3:59 am 2007
Pavel Machek
Re: [PATCH -mm 2/2] Hibernation: Arbitrary boot kernel s ...
What happens in case where both parts want to be at the same place? (Like kernel being restored is 4KB smaller, so that routines now collide?) Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -
Aug 24, 1:46 pm 2007
Andrew Morton
Re: [PATCH -mm 2/2] Hibernation: Arbitrary boot kernel s ...
On Fri, 24 Aug 2007 12:11:54 +0200 The preferred way of doing this is via Kconfig, please. ie: add a Given that these are called from non-arch-specific code, they must have the same signature across all architectures. So there's no point in putting the prototypes into an arch-specific header file. It would be better to do something like this in (say) suspend.h: #ifdef CONFIG_HIBERNATION_HEADER extern int arch_hibernation_header_save(void *addr, unsigned int max_size); extern int ...
Aug 24, 4:23 pm 2007
Rafael J. Wysocki
[PATCH -mm 2/2] Hibernation: Arbitrary boot kernel suppo ...
From: Rafael J. Wysocki <rjw@sisk.pl> Make it possible to restore a hibernation image on x86_64 with the help of a kernel different from the one in the image. The idea is to split the core restoration code into two separate parts and to place each of them in a different page.  The first part belongs to the boot kernel and is executed as the last step of the image kernel's memory restoration procedure.  It restores all of the image kernel's memory that has not been restored yet except for the ...
Aug 24, 3:11 am 2007
Rafael J. Wysocki
Re: [linux-pm] [PATCH -mm 2/2] Hibernation: Arbitrary bo ...
Yes, I will update the documentation in the future. Greetings, Rafael -
Aug 24, 6:11 am 2007
Rafael J. Wysocki
[PATCH -mm 1/2] Hibernation: Arbitrary boot kernel suppo ...
From: Rafael J. Wysocki <rjw@sisk.pl> Add the bits needed for supporting arbitrary boot kernels to the common hibernation code. To support arbitrary boot kernels, make it possible to replace the 'struct new_utsname' and the kernel version in the hibernation image header by some architecture specific data that will be used to verify if the image is valid and to restore the image. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> --- kernel/power/power.h ...
Aug 24, 3:09 am 2007
Alan Cox Aug 24, 3:45 am 2007
Eric Lammerts
[PATCH] nozomi DTR/RTS
Hi, I noticed that DTR toggling doesn't work with the nozomi driver (TIOCMBIS/TIOCMBIC ioctls have no effect). This is a nuisance because that makes it hard to get the modem back in command mode. Attached patch adds a tty_ops->tiocmset function that makes it work. Should we also rip out the TIOCMBIS/TIOCMBIC handling in ntty_ioctl()? It doesn't seem to be used anyway. Patch is against 2.6.23-rc3-mm1, but not tested with that. I tested it with 2.6.18.4 and the pharscape.org ...
Aug 24, 3:02 am 2007
Robert P. J. Day
Re: what is the value of the macro "__setup_param"?
oh, certainly. i'm just thinking that, in my condition, i shouldn't rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
Aug 24, 3:01 am 2007
Paul Mundt
Re: what is the value of the macro "__setup_param"?
That's great, but you've ignored the second part of my mail. I'll Notice the problem now? :-) -
Aug 24, 3:02 am 2007
Robert P. J. Day
Re: what is the value of the macro "__setup_param"?
never mind, i've already clued in. up too long, and trying to do too many things at once. more sleep or more coffee -- time to make a decision. sorry for the noise. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
Aug 24, 2:49 am 2007
Satyam Sharma
Re: what is the value of the macro "__setup_param"?
We should probably keep it that way. I don't see why anybody should be using __setup_param directly anyway, so this becomes a nice build-time error to flag such errant usage :-) Seriously speaking, though, we should probably just get rid of that wrong line. It's just an init.h-internal macro to be used by early_param and __setup, and because those are themselves empty when MODULE, there's no issues in removing the (unused, broken) __setup_param either. -
Aug 24, 4:29 am 2007
Randy Dunlap
Re: [patch trivial] fix typo in Documentation/Submitting ...
--- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 8:46 am 2007
andre
[patch trivial] fix typo in Documentation/SubmittingPatches
From: Andre Haupt <andre@finow14.de> Signed-off-by: Andre Haupt <andre@finow14.de> --- Index: linus/Documentation/SubmittingPatches =================================================================== --- linus.orig/Documentation/SubmittingPatches 2007-08-24 11:12:33.000000000 +0200 +++ linus/Documentation/SubmittingPatches 2007-08-24 11:13:51.000000000 +0200 @@ -126,7 +126,7 @@ without even being read. At a minimum you should check your patches with the patch style -checker prior to ...
Aug 24, 2:45 am 2007
fernando
Re: [PATCH] isdn/sc: remove unused REQUEST_IRQ and unnec ...
Bummer. Thank you for the catch Adrian. Attaching compile-tested patch. Fernando
Aug 24, 5:52 am 2007
Fernando Luis
[PATCH] isdn/sc: remove unused REQUEST_IRQ and unnecessa ...
REQUEST_IRQ is never used, so delete it. In the process get rid of the macro FREE_IRQ which makes the code unnecessarily difficult to read. Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp> --- diff -urNp linux-2.6.23-rc3-orig/drivers/isdn/sc/debug.h linux-2.6.23-rc3/drivers/isdn/sc/debug.h --- linux-2.6.23-rc3-orig/drivers/isdn/sc/debug.h 2007-07-09 08:32:17.000000000 +0900 +++ linux-2.6.23-rc3/drivers/isdn/sc/debug.h 1970-01-01 09:00:00.000000000 +0900 @@ -1,19 +0,0 @@ -/* ...
Aug 24, 2:27 am 2007
Adrian Bunk
Re: [PATCH] isdn/sc: remove unused REQUEST_IRQ and unnec ...
The header you remove get's #include'd somewhere - and this #include cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -
Aug 24, 2:33 am 2007
Sven-Thorsten Dietrich
[PATCH RT] - Mellanox IB driver patch
Hi Ingo, RT driver patch to eliminate in_atomic stack dump. The problem code was identified by Michael S. Tsirkin, and he suggested the fix. I adapted to use RT's _nort primitives- should work correctly in all configs. Thanks, Sven Fixes in_atomic stack-dump, when Mellanox module is loaded into the RT Kernel. From: Michael S. Tsirkin <mst@dev.mellanox.co.il> "Basically, if you just make spin_lock_irqsave (and spin_lock_irq) not disable interrupts for non-raw spinlocks, ...
Aug 24, 2:25 am 2007
Robert P. J. Day
Re: what is the value of the macro "__setup_param"?
i need more sleep. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
Aug 24, 2:32 am 2007
Robert P. J. Day
what is the value of the macro "__setup_param"?
perhaps i'm missing it, but it seems that the macro __setup_param is entirely superfluous: $ grep -rw __setup_param * include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \ include/linux/init.h: __setup_param(str, unique_id, NULL, 0) include/linux/init.h: __setup_param(str, fn, fn, 0) include/linux/init.h: __setup_param(str, fn, fn, 1) include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */ $ or am i must misreading something ...
Aug 24, 2:19 am 2007
Adrian Bunk
Re: what is the value of the macro "__setup_param"?
cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -
Aug 24, 2:37 am 2007
Paul Mundt
Re: what is the value of the macro "__setup_param"?
Superfluous how? It does different things depending on whether MODULE is defined or not. It's a good indicator of how often people use __setup_param() from module context though, given the complete mismatch of parameters. It's probably worth fixing that up at least. -
Aug 24, 2:50 am 2007
Sven-Thorsten Dietrich
[PATCH RT] - rebalance_domains incorrect parameter
Hi Ingo, the RT patches for .22 and .23 are passing an incorrect parameter to rebalance_domains. I had this queued up for a few days - its still wrong in .22 and .23 RT patches. Same issue has been fixed in mainline by: diff-tree de0cf899bbf06b6f64a5dce9c59d74c41b6b4232 (from 5d2b3d3695a841231b65b55 Author: Oleg Nesterov <oleg@tv-sign.ru> Date: Sun Aug 12 18:08:19 2007 +0200 sched: run_rebalance_domains: s/SCHED_IDLE/CPU_IDLE/ rebalance_domains(SCHED_IDLE) looks ...
Aug 24, 2:09 am 2007
Ingo Molnar
Re: [PATCH RT] - rebalance_domains incorrect parameter
ah, you mean we should pick up an upstream fix for -rt? We'll do that and we'll pick up much more: all the other ~100 CFS commits that happened meanwhile. (Btw., there's no need to sign off on patch forwarding or backport requests - the signoff made me first believe this is some new patch.) Ingo -
Aug 24, 2:15 am 2007
Li Yu
[Question] the precondition of calling alloc_skb()/kfree ...
Hi, all: I encountered a problem of using sk_buff. I used 2.4.20 kernel, when burst traffic come, the kernel will complain a bug report at skbuff.c:316 later: 311 void __kfree_skb(struct sk_buff *skb) 312 { 313 if (skb->list) { 314 printk(KERN_WARNING "Warning: kfree_skb passed an skb still " 315 "on a list (from %p).\n", NET_CALLER(skb)); 316 BUG(); /* HERE!!! */ 317 } /* snip some code here */ 332 } I saw the dev_kfree_skb_irq() and dev_kfree_skb_irq(), and how to use them. ...
Aug 24, 1:58 am 2007
Jan Engelhardt
Re: [PATCH][RFC] dynamic pipe resizing
Wonderful, I just did the same {-.-} (but then dropped the patch because it did not help my application at all, And using % pipe->buffers then? Jan -- -
Aug 24, 6:02 am 2007
Jens Axboe
[PATCH][RFC] dynamic pipe resizing
Hi, Dabbling around with splice a bit, I added some code to change the size of a pipe. Currently it's hardcoded as 16 pages, with this patch you can shrink (if you wanted) or grow (the likely scenario) if you want to increase the size of your in-kernel buffer for splice operations. Like with my original splice patches from 2005, I used fcntl() F_GETPIPE_SZ and F_SETPIPE_SZ to change the size of the pipe. I'm not particularly fond of that interface, so suggestions on how to improve it would ...
Aug 24, 1:52 am 2007
Pavel Emelyanov
[PATCH] Fix the sys_setpgrp() to work between namespaces
The check if (task_pgrp_nr(p) != pgid) is almost always true, because pgid is a "virtual" pid and it is most often much smaller than the "real" pgrp id of any task (because pids are generated sequentially most of the time). This leads to the task's pgrp is always reset, even if it is not needed. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- kernel/sys.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index ...
Aug 24, 1:47 am 2007
Pavel Emelyanov
[PATCH] sys_getsid/sys_getpgid return wrong id for task ...
When calling the sys_getsid/sys_getpgid for task, that actually lives in another namespace (sub-namespace) the return value should be not the id as this task sees it, but the id as the caller does. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- kernel/sys.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index c7c4fa4..c827186 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -993,16 +995,17 @@ asmlinkage long ...
Aug 24, 1:41 am 2007
Ingo Molnar Aug 24, 1:32 am 2007
Sven-Thorsten Dietrich
[PATCH RT] - trivial branch in scheduler.
Hi Ingo, the trivial code is in various RT patches as well as in 2.6.23-rc git's scheduler. Thanks Sven Remove trivial conditional branch in Linux RT CFS scheduler's can_migrate_task function. signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com> Index: linux-2.6.22/kernel/sched.c =================================================================== --- linux-2.6.22.orig/kernel/sched.c +++ linux-2.6.22/kernel/sched.c @@ -2603,12 +2603,6 @@ int ...
Aug 24, 1:19 am 2007
SL Baur
Re: false positive in checkpatch.pl (complex macro values)
I mean the error message is badly worded. That's bad C and the macro needs deletion a lot more than it needs an extra set of parens. Been chasing a heisen bug too long. Need sleep. Sorry. -sb -
Aug 24, 5:50 am 2007
Andy Whitcroft
Re: false positive in checkpatch.pl (complex macro values)
Ok, we can add that to the check. Next update will allow that. Thanks for the report. -apw -
Aug 24, 4:41 am 2007
Mike Frysinger
false positive in checkpatch.pl (complex macro values)
in some code that does like: #define foo { a, b, c, \ d, e, f, g } ... int boo[] = foo; ... checkpatch.pl throws a fit: ERROR: Macros with complex values should be enclosed in parenthesis #10: FILE: ... +#define foo {a, b, c, d} perhaps the check should also allow {...} ? or ignore lists like this ... -mike -
Aug 24, 12:51 am 2007
Olivier Galibert
Re: false positive in checkpatch.pl (complex macro values)
People who think Posix is an example to follow maybe? Not sure if it would go past the maintainers though :-) # define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, { 0 } } } # ifdef __USE_GNU # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \ { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } } # define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \ { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { 0 } } } # define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \ { { 0, 0, 0, ...
Aug 24, 10:22 am 2007
SL Baur
Re: false positive in checkpatch.pl (complex macro values)
I sent a reply accidentally only to Mike and not the list. I think the error message is wrong. That is really ugly code. Linux Kernel code believes in C not preprocessor tricks, so why would you need this? Who uses code like this, by the way? -sb -
Aug 24, 5:43 am 2007
Mike Frysinger
Re: false positive in checkpatch.pl (complex macro values)
i did point out that grepping the tree shows plenty of results ... if this one is not satisfactory, you're free to grep to locate ones that are the code we're using is used to initialize a data structure ... you can find similar things in: ./sound/ppc/tumbler.c ./sound/pci/emu10k1/p16v.c ./sound/pci/hda/patch_realtek.c ./sound/pci/hda/patch_si3054.c ./sound/usb/usbquirks.h ./sound/oss/sscape.c and then i hit ctrl+c -mike -
Aug 24, 12:10 pm 2007
Mike Frysinger
Re: false positive in checkpatch.pl (complex macro values)
the way we came across it was in code that hasnt been pushed to mainline yet ... we run the code on our tree however, there are plenty of cases in the tree right now ... a quick grep picks out sound/pci/ice1712/aureon.h as the first offender $ diff -Nu /dev/null ./sound/pci/ice1712/aureon.h | perl ./scripts/checkpatch.pl - ERROR: Macros with complex values should be enclosed in parenthesis #31: FILE: sound/pci/ice1712/aureon.h:28: +#define AUREON_DEVICE_DESC "{Terratec,Aureon ...
Aug 24, 6:24 am 2007
Josef Sipek
Re: false positive in checkpatch.pl (complex macro values)
On Fri, Aug 24, 2007 at 09:24:17AM -0400, Mike Frysinger wrote: This is a different thing. This is a long string, not a list of elements. IMO, this one shouldn't have given a warning regardless of whether or not the original case is valid. Josef 'Jeff' Sipek. -- If I have trouble installing Linux, something is wrong. Very wrong. - Linus Torvalds -
Aug 24, 9:47 am 2007
Ryusuke Konishi
[BUG] problem with nfs_invaildate_page
Hi, I got the following BUG in nfs_inode_add_request() when I was using eCryptfs on NFS. (Don't ask me why I was doing that) ------------[ cut here ]------------ kernel BUG at fs/nfs/write.c:387! invalid opcode: 0000 [#1] PREEMPT SMP Modules linked in: cbc md5 aes ecb blkcipher cryptomgr crypto_algapi ecryptfs nfs iscsi_tcp libiscsi scsi_transport_iscsi nfsd exportfs lockd nfs_acl sunrpc nbd md_mod dm_snapshot dm_mirror dm_mod video output CPU: 5 EIP: 0060:[<f90113e2>] Not ...
Aug 24, 12:43 am 2007
Kumar Gala
Re: [PATCH 12/30] net: No point in casting kmalloc retur ...
Acked-by: Kumar Gala <galak@kernel.crashing.org> - k -
Aug 24, 12:25 am 2007
Zachary Amsden
[PATCH] Fix preemptible lazy mode bug
I recently sent off a fix for lazy vmalloc faults which can happen under paravirt when lazy mode is enabled. Unfortunately, I jumped the gun a bit on fixing this. I neglected to notice that since the new call to flush the MMU update queue is called from the page fault handler, it can be pre-empted. Both VMI and Xen use per-cpu variables to track lazy mode state, as all previous calls to set, disable, or flush lazy mode happened from a non-preemptable state. I have no idea how to ...
Aug 23, 10:46 pm 2007
Jeremy Fitzhardinge
Re: [PATCH] Fix preemptible lazy mode bug
Hm. Doing any kind of lazy-state operation with preemption enabled is fundamentally meaningless. How does it get into a preemptable state with a lazy mode enabled now? If a sequence of code with preempt disabled touches a missing vmalloc mapping, it gets a fault to fix up the mapping, and the fault handler can end up preempting the thread? That sounds like a larger bug than just paravirt lazy mode problems. J -
Aug 23, 11:53 pm 2007
Zachary Amsden
Re: [PATCH] Fix preemptible lazy mode bug
Agree 100%. It is the lazy mode flush that might happen when preempt is enabled, but lazy mode is disabled. In that case, the code relies on per-cpu variables, which is a bad thing to do in preemtible code. This can happen in the current code path. Thinking slightly deeper about it, it might be the case that there is no bug, because the local lazy mode variables are only _modified_ in the preemptible state, and guaranteed to be zero in the non-preemtible state; but it was not clear ...
Aug 23, 11:59 pm 2007
Neil Brown
Re: [patch 1/1] md: Software Raid autodetect dev list no ...
I must admit that I'm not very keen on this. I would much rather that in-kernel autodetect were deprecated rather than enhanced. Just use 'mdadm' in an initrd, or during normal boot, to assemble all your arrays. No. No-one outside this file uses them, so they are fine where they Probably list_add_tail would be better so the ordering is the same as i_passed is never used. And what is the point of i_loops (and i_scanned)? The comments list_entry will *never* return NULL. It ...
Aug 23, 8:37 pm 2007
Michael Evans
Re: [patch 1/1] md: Software Raid autodetect dev list no ...
I'll look at this again on my next weekend and make the changes. If it exists I'd rather it functioned without issues. My initrds are created by gentoo's genkernel script, which places dmraid on them. I'm not sure if it supports autodetect or not. -
Aug 23, 10:50 pm 2007
Eugene Teo
[PATCH] clean up exports in fs/{open,read_write}.c
Takashi-san fixed sound/isa/wavefront/wavefront_synth.c to use request_firmware instead of sys_*. Since that is the last driver in the kernel that uses sys_{read,close}, this patch kills these exports. sys_open is left exported for sparc64 only. Cc: Takashi Iwai <tiwai@suse.de> Cc: Christoph Hellwig <hch@infradead.org> Cc: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Eugene Teo <eugeneteo@kernel.sg> --- fs/open.c | 4 ++-- fs/read_write.c | 1 - 2 files changed, 2 ...
Aug 23, 8:33 pm 2007
Greg KH
Re: [PATCH][resend] fix IDE legacy mode resources
Ok, I confused it with that one, sorry. But as this is in the same area, some one needs to sort it all out :( thanks, greg k-h -
Aug 24, 4:44 pm 2007
Alan Cox
Re: [PATCH][resend] fix IDE legacy mode resources
News to me. Ths one looks sane and is different to the one Andrew has been fiddling with to stop broken X servers from crashing. Alan -
Aug 24, 9:37 am 2007
Greg KH
Re: [PATCH][resend] fix IDE legacy mode resources
I thought this patch was rejected in the past as it broke other machines. thanks, greg k-h -
Aug 24, 9:14 am 2007
Yoichi Yuasa
[PATCH][resend] fix IDE legacy mode resources
Hi, I got the following error on MIPS Cobalt. PCI: Unable to reserve I/O region #1:8@f00001f0 for device 0000:00:09.1 pata_via 0000:00:09.1: failed to request/iomap BARs for port 0 (errno=-16) PCI: Unable to reserve I/O region #3:8@f0000170 for device 0000:00:09.1 pata_via 0000:00:09.1: failed to request/iomap BARs for port 1 (errno=-16) pata_via 0000:00:09.1: no available native port The legacy mode IDE resources set the following order. pci_setup_device() Legacy mode ATA ...
Aug 23, 7:55 pm 2007
Andrew Morton
Re: [PATCH][resend] fix IDE legacy mode resources
On Fri, 24 Aug 2007 11:55:59 +0900 ho hum. Below is the patch from Jan (which I'll now need to drop) which we are, in a rather haphazard manner, trying to get into some sort of working shape. Please discuss. From: Jan Beulich <jbeulich@novell.com> Fix http://bugzilla.kernel.org/show_bug.cgi?id=8187 The change to force legacy mode IDE channels' resources to fixed non-zero values confuses (at least some versions of) X, because the values reported by the kernel and those readable from ...
Aug 24, 3:20 pm 2007
TheOneKEA
Possible problems reading a DVD-RAM disc
While doing a long mega-copy from one side of a DVD-RAM disc formatted with the vfat filesystem to an smbfs network share, I got lots and lots of these in the dmesg: Buffer I/O error on device sr0, logical block 4396 lost page write due to I/O error on sr0 sr 6:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08 sr 6:0:0:0: [sr0] Sense Key : 0x7 [current] sr 6:0:0:0: [sr0] <<vendor>> ASC=0x92 ASCQ=0x0ASC=0x92 ASCQ=0x0 end_request: I/O error, dev sr0, sector 17584 Buffer I/O error on device ...
Aug 23, 7:44 pm 2007
Lennart Sorensen
Re: Possible problems reading a DVD-RAM disc
No idea about the error, but isn't vfat torture of a dvd-ram? Don't they come preformated with UDF since it does wear leveling while vfat would very very quickly trash the part of the disk storing the FAT. -- Len Sorensen -
Aug 24, 6:58 am 2007
TheOneKEA
Re: Possible problems reading a DVD-RAM disc
I wouldn't know - someone else gave the media to me and wanted to try to rescue the data on it. I certainly didn't out vfat on it on purpose. As soon as I can fix the dmesg errors and get a clean read of the disk, I intend to clean it off and put UDF on both sides. -- SCREW THE ADS! http://adblock.mozdev.org/ -
Aug 24, 7:41 am 2007
Tom Spink
Re: Fork Bombing Patch
Hi, I agree with Chris on this point, it seems like this sort of detection (and reporting) should be a job for a user-space daemon, rather than polluting kernel code (and logs) with warning messages of this sort... I don't think the type of warning this patch yields is appropriate for kernel logs, nor do I think the kernel should be the entity to decide that this warning should be given. It _feels_ wrong. -- Regards, Tom Spink University of Edinburgh -
Aug 23, 5:37 pm 2007
Nelson, Shannon
RE: [PATCH v2 -mm 3/7] I/OAT: code cleanup from checkpat ...
These are admittedly not the smartest move, but they are replaced later in the patch-set. sln -- ====================================================================== Mr. Shannon Nelson LAN Access Division, Intel Corp. Shannon.Nelson@intel.com I don't speak for Intel (503) 712-7659 Parents can't afford to be squeamish. -
Aug 24, 9:39 am 2007
Nelson, Shannon
RE: [PATCH v2 -mm 7/7] I/OAT: Add DCA services
Added to include/asm-i386/cpufeature.h, which is also used by the x86_64 Possibly, but I don't know pci well enough to know for sure, so I'll let Done. Thanks again, sln -- ====================================================================== Mr. Shannon Nelson LAN Access Division, Intel Corp. Shannon.Nelson@intel.com I don't speak for Intel (503) 712-7659 Parents can't afford to be squeamish. -
Aug 24, 2:50 pm 2007
Shannon Nelson
[PATCH v2 -mm 0/7] I/OAT: Add support for DCA - Direct C ...
Andrew, Here's a new rev of the IOAT DCA patches that are currently in -mm. These patches include updates based on feedback on the first set, as well as a couple of other fixes we found internally. These were originally posted on 20-Jul-2007 - see http://marc.info/?l=linux-kernel&m=118489237427303&w=2 The following series implements support for providers and clients of Direct Cache Access (DCA), a method for warming the cache in the correct CPU before needing ...
Aug 23, 5:14 pm 2007
Nelson, Shannon
RE: [PATCH v2 -mm 5/7] I/OAT: Add support for MSI and MSI-X
Thanks, sln -- ====================================================================== Mr. Shannon Nelson LAN Access Division, Intel Corp. Shannon.Nelson@intel.com I don't speak for Intel (503) 712-7659 Parents can't afford to be squeamish. -
Aug 24, 11:18 am 2007
Randy Dunlap
Re: [PATCH v2 -mm 4/7] I/OAT: Split PCI startup from DMA ...
This field name change needs a corresponding change in the Please use parameter variable names in function prototypes (above; --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 23, 11:08 pm 2007
Randy Dunlap
Re: [PATCH v2 -mm 3/7] I/OAT: code cleanup from checkpat ...
What's with these (KERN_INFO " " "...more strings"); ?? --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 23, 10:38 pm 2007
Randy Dunlap
Re: [PATCH v2 -mm 6/7] DCA: Add Direct Cache Access driver
We conventionally put help text last in each config entry. Can global_dca be static, or is it used in other source files? It would be good to have all of these global/exported interfaces documented somewhere. Did I miss it in another file? If not, you could use kernel-doc to add inline function docs. or just (in all cases): --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 23, 10:55 pm 2007
Shannon Nelson
[PATCH v2 -mm 2/7] I/OAT: Rename the source file
Rename the ioatdma.c file in preparation for splitting into multiple files, which will allow for easier adding new functionality. Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dma/Makefile | 1 drivers/dma/ioat_dma.c | 828 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/dma/ioatdma.c | 828 ------------------------------------------------ 3 files changed, 829 insertions(+), 828 deletions(-) diff ...
Aug 23, 5:15 pm 2007
Shannon Nelson
[PATCH v2 -mm 4/7] I/OAT: Split PCI startup from DMA han ...
Split the general PCI startup from the DMA handling code in order to prepare for adding support for DCA services and future versions of the ioatdma device. Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dma/Makefile | 2 drivers/dma/ioat.c | 186 ++++++++++++++++++++++++++++++++++++++++++++ drivers/dma/ioat_dma.c | 196 +++++++++++----------------------------------- drivers/dma/ioatdma.h | 16 ...
Aug 23, 5:15 pm 2007
Randy Dunlap
Re: [PATCH v2 -mm 7/7] I/OAT: Add DCA services
Yes, feature bits need to be integrated with the other CPU-specific --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 12:12 pm 2007
Nelson, Shannon
RE: [PATCH v2 -mm 4/7] I/OAT: Split PCI startup from DMA ...
Yep, I'll get it. Again, thanks for your comments, sln -- ====================================================================== Mr. Shannon Nelson LAN Access Division, Intel Corp. Shannon.Nelson@intel.com I don't speak for Intel (503) 712-7659 Parents can't afford to be squeamish. -
Aug 24, 9:47 am 2007
Nelson, Shannon
RE: [PATCH v2 -mm 6/7] DCA: Add Direct Cache Access driver
Yep, will do. Thanks for the comments, sln -- ====================================================================== Mr. Shannon Nelson LAN Access Division, Intel Corp. Shannon.Nelson@intel.com I don't speak for Intel (503) 712-7659 Parents can't afford to be squeamish. -
Aug 24, 9:43 am 2007
Shannon Nelson
[PATCH v2 -mm 1/7] I/OAT: New device ids
Add device ids for new revs of the Intel I/OAT DMA engine Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dma/ioatdma.c | 5 +++-- include/linux/pci_ids.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ioatdma.c b/drivers/dma/ioatdma.c index 2d1f178..55227d4 100644 --- a/drivers/dma/ioatdma.c +++ b/drivers/dma/ioatdma.c @@ -516,8 +516,9 @@ static enum dma_status ...
Aug 23, 5:14 pm 2007
Shannon Nelson
[PATCH v2 -mm 6/7] DCA: Add Direct Cache Access driver
Direct Cache Access (DCA) is a method for warming the CPU cache before data is used, with the intent of lessening the impact of cache misses. This patch adds a manager and interface for matching up client requests for DCA services with devices that offer DCA services. In order to use DCA, a module must do bus writes with the appropriate tag bits set to trigger a cache read for a specific CPU. However, different CPUs and chipsets can require different sets of tag bits, and the methods for ...
Aug 23, 5:15 pm 2007
Shannon Nelson
[PATCH v2 -mm 7/7] I/OAT: Add DCA services
Add code to connect to the DCA driver and provide cpu tags for use by drivers that would like to use Direct Cache Access hints. [Adrian Bunk] Several Kconfig cleanup items [Andrew Morten, Chris Leech] fix for using cpu_physical_id() even when built for uni-processor Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dca/Kconfig | 7 - drivers/dma/Kconfig | 60 ++++++----- ...
Aug 23, 5:15 pm 2007
Shannon Nelson
[PATCH v2 -mm 3/7] I/OAT: code cleanup from checkpatch output
Take care of a bunch of little code nits in ioatdma files Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dma/ioat_dma.c | 200 +++++++++++++++++++++++++++--------------------- 1 files changed, 111 insertions(+), 89 deletions(-) diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c index 55227d4..9a4d154 100644 --- a/drivers/dma/ioat_dma.c +++ b/drivers/dma/ioat_dma.c @@ -1,10 +1,10 @@ /* - * Copyright(c) ...
Aug 23, 5:15 pm 2007
Randy Dunlap
Re: [PATCH v2 -mm 5/7] I/OAT: Add support for MSI and MSI-X
Any reason that this macro shouldn't be added to include/linux/bitops.h instead of here? I'd prefer/expect such Unfortunately, function name + short description in kernel-doc must be on one line (only). If you want to add more text/description, put it We normally use one * ... --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
Aug 24, 10:48 am 2007
Shannon Nelson
[PATCH v2 -mm 5/7] I/OAT: Add support for MSI and MSI-X
Add support for MSI and MSI-X interrupt handling, including the ability to choose the desired interrupt method. Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Acked-by: David S. Miller <davem@davemloft.net> --- drivers/dma/ioat_dma.c | 353 ++++++++++++++++++++++++++++++++------- drivers/dma/ioatdma.h | 12 + drivers/dma/ioatdma_registers.h | 6 + 3 files changed, 305 insertions(+), 66 deletions(-) diff --git a/drivers/dma/ioat_dma.c ...
Aug 23, 5:15 pm 2007
Willy Tarreau
Re: 2.6.22.5 forcedeth timeout hang
Most likely you also had the problem with 2.6.22.2 (maybe you have not tested this one, though). There were bug fixes for forcedeth introduced in this version, one of them being buggy. The patch below fixes it. Can you please give it a try ? If it does not fix the problem, please try 2.6.22.1 which does not include those changes. I'm interested because I have those changes pending for 2.6.20.17 too. diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 10f4e3b..1938d6d ...
Aug 23, 10:06 pm 2007
David Schwartz
RE: division and cpu usage
As the HOWTO says: "The kernel is written using GNU C and the GNU toolchain. While it adheres to the ISO C89 standard, it uses a number of extensions that are not featured in the standard. The kernel is a freestanding C environment, with no reliance on the standard C library, so some portions of the C standard are not supported. Arbitrary long long divisions and floating point are not allowed. It can sometimes be difficult to understand the assumptions the kernel has on the toolchain and ...
Aug 23, 6:04 pm 2007
Jan Engelhardt
Re: division and cpu usage
* So use integer math: (task->utime + task->stime) * 100 / jiffies and you get the 'common' percentage. In integer, that is. IIRC they are allowed since ... recently (2.6.16, .17? can't remember). When the kernel tries to execute an FP instruction (and traps as a result), more kernel code will enable that the FP stack gets properly switched when a process That will give link failure for __udivdi3. Use do_div(). Jan -- -
Aug 24, 5:46 am 2007
linux-os (Dick Johnson)
Re: division and cpu usage
Floating point operations are not allowed in the kernel. Often, when you think you are simply creating a constant, the compiler generates runtime code so you have to watch out for that as well. You can use "long long" for high precision math if necessary. Cheers, Dick Johnson Penguin : Linux version 2.6.22.1 on an i686 machine (5588.30 BogoMips). My book : http://www.AbominableFirebug.com/ _ **************************************************************** The information ...
Aug 24, 4:34 am 2007
Jesper Juhl
[PATCH 26/30] md: vmalloc() returns void pointer so we d ...
In drivers/md/dm-ioctl.c::copy_params() there's a call to vmalloc() where we currently cast the return value, but that's pretty pointles given that vmalloc() returns "void *". Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/md/dm-ioctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index b441d82..efbf9b6 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1358,7 +1358,7 @@ static int ...
Aug 23, 5:30 pm 2007
Jesper Juhl
[PATCH 23/30] video: Remove pointless kmalloc() return v ...
No need to cast the void pointer returned by kmalloc() in drivers/media/video/zoran_driver.c::v4l_fbuffer_alloc(). Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/media/video/zoran_driver.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 72a037b..bc2e5b3 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c @@ -347,10 +347,7 @@ ...
Aug 23, 5:22 pm 2007
Matthew Wilcox
Re: [PATCH 20/30] scsi: In the Advansys driver, do not c ...
I think I fixed all these already; please check scsi-misc. -- "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -
Aug 23, 7:03 pm 2007
Jesper Juhl Aug 24, 1:44 am 2007
Jesper Juhl
Re: [PATCH 20/30] scsi: In the Advansys driver, do not c ...
I just checked out the latest scsi-misc-2.6 tree and it does indeed look like these have already been dealt with. Sorry about the noise. -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html -
Aug 24, 2:00 am 2007
Jesper Juhl
[PATCH 21/30] oss: Remove unneeded vmalloc() return valu ...
vmalloc() returns a void pointer that we don't need to cast. This patch should clean this up in sound/oss/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- sound/oss/midibuf.c | 4 ++-- sound/oss/pss.c | 6 +++--- sound/oss/sequencer.c | 4 ++-- sound/oss/sscape.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/oss/midibuf.c b/sound/oss/midibuf.c index a40be0c..66f8a7f 100644 --- a/sound/oss/midibuf.c +++ ...
Aug 23, 5:18 pm 2007
Dan Williams
Re: [PATCH 14/30] net: Kill some unneeded allocation ret ...
Applied to libertas-2.6 'for-linville' branch, thanks. -
Aug 24, 8:50 am 2007
Jeff Dike
Re: [PATCH 03/30] um: Don't unnecessarily cast allocatio ...
Righto, I'll take care of this. Jeff -- Work email - jdike at linux dot intel dot com -
Aug 23, 5:22 pm 2007
Jesper Juhl
[PATCH 27/30] usb: avoid redundant cast of kmalloc() ret ...
In drivers/usb/serial/oti6858.c::pl2303_buf_alloc() the return value of kmalloc() is being cast to "struct pl2303_buf *", but that need not be done here since kmalloc() returns "void *". Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/usb/serial/oti6858.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index d7db71e..fc5e808 100644 --- a/drivers/usb/serial/oti6858.c +++ ...
Aug 23, 5:35 pm 2007
Denys Vlasenko Aug 24, 3:41 am 2007
Jesper Juhl
[PATCH 20/30] scsi: In the Advansys driver, do not cast ...
There's no reason to cast void pointers returned by the generic memory allocation functions. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/scsi/advansys.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 79c0b6e..b28729c 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -18513,7 +18513,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type) * ...
Aug 23, 5:16 pm 2007
Jesper Juhl
Re: [PATCH 19/30] scsi: Remove explicit casts of [kv]all ...
Thank you for pointing that out. I plan to resend those patches that don't get picked up in about a week or so. I'll address this issue then (or if it does get picked up -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html -
Aug 24, 1:46 am 2007
Jesper Juhl
Re: [PATCH 28/30] jfs: avoid pointless casts of kmalloc( ...
Ok, I wasn't aware of that, but that's perfect. Sorry for the noise. -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html -
Aug 24, 1:48 am 2007
Hans Verkuil
Re: [PATCH 22/30] ivtv: kzalloc() returns void pointer, ...
Jesper, Thanks for the patch. I've applied it to my latest tree and will ask Mauro to pull from it. The latest source is a bit different and has in fact a third cast which I've also removed. Thanks, -
Aug 24, 1:32 am 2007
Jesper Juhl
[PATCH 22/30] ivtv: kzalloc() returns void pointer, no n ...
Since kzalloc() returns a void pointer, we don't need to cast the return value in drivers/media/video/ivtv/ivtv-queue.c Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/media/video/ivtv/ivtv-queue.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/ivtv/ivtv-queue.c b/drivers/media/video/ivtv/ivtv-queue.c index a04f938..45825b8 100644 --- a/drivers/media/video/ivtv/ivtv-queue.c +++ b/drivers/media/video/ivtv/ivtv-queue.c @@ -196,7 ...
Aug 23, 5:20 pm 2007
Jesper Juhl
[PATCH 29/30] mm: No need to cast vmalloc() return value ...
vmalloc() returns a void pointer, so there's no need to cast its return value in mm/page_alloc.c::zone_wait_table_init(). Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- mm/page_alloc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6427653..a8615c2 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2442,7 +2442,7 @@ int zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages) * To use this new ...
Aug 23, 5:39 pm 2007
Jesper Juhl
[PATCH 24/30] dvb: remove some unneeded vmalloc() return ...
vmalloc() returns void * - no need to cast it. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/media/dvb/ttpci/av7110.c | 2 +- drivers/media/dvb/ttpci/av7110_ir.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 8178832..27fa5f8 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c @@ -1543,7 +1543,7 @@ static int get_firmware(struct ...
Aug 23, 5:25 pm 2007
Jesper Juhl
[PATCH 14/30] net: Kill some unneeded allocation return ...
kmalloc() and friends return void*, no need to cast it. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/net/wireless/libertas/debugfs.c | 2 +- drivers/net/wireless/libertas/ethtool.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 715cbda..6ade63e 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -1839,7 ...
Aug 23, 5:03 pm 2007
Jesper Juhl
[PATCH 17/30] isdn: Get rid of some pointless allocation ...
vmalloc() returns a void pointer - no need to cast the return value. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/isdn/i4l/isdn_bsdcomp.c | 5 ++--- drivers/isdn/i4l/isdn_common.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c index 90a2379..02d9918 100644 --- a/drivers/isdn/i4l/isdn_bsdcomp.c +++ b/drivers/isdn/i4l/isdn_bsdcomp.c @@ -341,7 +341,7 @@ static void *bsd_alloc ...
Aug 23, 5:09 pm 2007
Armin Schindler
Re: [PATCH 18/30] isdn: eicon - get rid of a pointless v ...
vmalloc() returns void*. No need to cast in drivers/isdn/hardware/eicon/platform.h::diva_os_malloc() Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Armin Schindler <armin@melware.de> --- drivers/isdn/hardware/eicon/platform.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index 15d4942..8756ef1 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ ...
Aug 23, 11:47 pm 2007
Jesper Juhl
[PATCH 30/30] emu10k1: There's no need to cast vmalloc() ...
vmalloc() returns void *. no need to cast. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- sound/pci/emu10k1/emu10k1_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index 404ae1b..91d986b 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c @@ -1722,8 +1722,8 @@ int __devinit snd_emu10k1_create(struct snd_card *card, goto error; } ...
Aug 23, 5:41 pm 2007
Rolf Eike Beer
Re: [PATCH 19/30] scsi: Remove explicit casts of [kv]all ...
Three lines later: for (i=0; i < osst_max_dev; ++i) os_scsi_tapes[i] = NULL; This wants to be os_scsi_tapes = kcalloc(osst_max_dev, sizeof(struct osst_tape *), GFP_ATOMIC); Eike
Aug 24, 12:04 am 2007
Robert P. J. Day
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value ...
actually, i would think kcalloc would be more appropriate here, no? rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
Aug 24, 3:43 am 2007
Jesper Juhl
[PATCH 28/30] jfs: avoid pointless casts of kmalloc() re ...
There's no need to cast the, void *, return value of kmalloc() when assigning to a pointer variable. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- fs/jfs/jfs_dtree.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c index c14ba3c..3f15b36 100644 --- a/fs/jfs/jfs_dtree.c +++ b/fs/jfs/jfs_dtree.c @@ -592,9 +592,7 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data, struct component_name ...
Aug 23, 5:36 pm 2007
Jesper Juhl
[PATCH 25/30] tty: dont needlessly cast kmalloc() return value
kmalloc() hands us a void pointer, we don't need to cast it. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/char/tty_io.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 51ea93c..9c867cf 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -2063,8 +2063,7 @@ static int init_dev(struct tty_driver *driver, int idx, } if (!*tp_loc) { - tp = (struct ktermios *) ...
Aug 23, 5:28 pm 2007
Dave Kleikamp
Re: [PATCH 28/30] jfs: avoid pointless casts of kmalloc( ...
Thanks, but Jack Stone submitted the same patch a few weeks ago. It's already in the jfs git tree and the -mm kernel. Shaggy -- David Kleikamp IBM Linux Technology Center -
Aug 23, 9:19 pm 2007
Jesper Juhl
[PATCH 18/30] isdn: eicon - get rid of a pointless vmall ...
vmalloc() returns void*. No need to cast in drivers/isdn/hardware/eicon/platform.h::diva_os_malloc() Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/isdn/hardware/eicon/platform.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index 15d4942..8756ef1 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h @@ -167,7 +167,7 @@ ...
Aug 23, 5:11 pm 2007
Jesper Juhl
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value ...
Ok, thank you for that feedback. I'll respin the patch with that change when I resubmit all the ones that don't get picked up (probably next week). -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html -
Aug 24, 3:48 am 2007
Joachim Fenkes
Re: [PATCH 04/30] powerpc: Don't cast kmalloc return val ...
Acked-By: Joachim Fenkes <fenkes@de.ibm.com> -
Aug 23, 5:37 pm 2007
Jesper Juhl
[PATCH 19/30] scsi: Remove explicit casts of [kv]alloc r ...
[kv]alloc() return void *. No need to cast the return value. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/scsi/osst.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 08060fb..3ad9d49 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c @@ -1404,7 +1404,7 @@ static int osst_read_back_buffer_and_rewrite(struct osst_tape * STp, struct osst int dbg = debugging; #endif ...
Aug 23, 5:12 pm 2007
Jesper Juhl
Re: [PATCH 0/30] Remove unneeded casts of [kv][mzc]alloc ...
On 24/08/07, Jesper Juhl <jesper.juhl@gmail.com> wrote: Damn, I managed to mess up that list. Here's how it should have looked : [PATCH 01/30] ia64: Remove unnecessary cast of allocation return value in sn_hwperf_enum_objects() [PATCH 02/30] cris: Remove unnecessary cast of allocation return value in intmem.c [PATCH 03/30] um: Don't unnecessarily cast allocation return value in ubd_kern.c [PATCH 04/30] powerpc: Don't cast kmalloc return value in ibmebus.c [PATCH 05/30] atm: No need to cast ...
Aug 23, 5:53 pm 2007
Jesper Juhl
[PATCH 16/30] net: Avoid pointless allocation casts in B ...
The general kernel memory allocation functions return void pointers and there is no need to cast their return values. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- drivers/net/bsd_comp.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/bsd_comp.c b/drivers/net/bsd_comp.c index 202d4a4..88edb98 100644 --- a/drivers/net/bsd_comp.c +++ b/drivers/net/bsd_comp.c @@ -406,8 +406,7 @@ static void *bsd_alloc (unsigned char *options, int opt_len, int ...
Aug 23, 5:06 pm 2007
Karsten Keil
Re: [PATCH 17/30] isdn: Get rid of some pointless alloca ...
... -- Karsten Keil SuSE Labs ISDN and VOIP development SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg) -
Aug 24, 2:23 am 2007
Alan Stern
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
I would do it like this: static int iphone_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *udev = interface_to_usbdev(intf); int rc; if (udev->actconfig->desc.bConfigurationValue != 3) { dbg(&udev->dev, "Calling set_configuration\n"); rc = usb_driver_set_configuration(udev, 3); } else { dbg(&udev->dev, "Configuration set, sending magic comand\n"); rc = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x40, (USB_DIR_OUT | ...
Aug 24, 7:08 am 2007
Alan Stern
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
You know, now that I think back on it, it may be that the Set-Config really does have to come after the magic command. Perhaps it triggers the changeover. In which case the subroutine should look like this: static int iphone_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *udev = interface_to_usbdev(intf); int rc; if (udev->actconfig->desc.bConfigurationValue != 3) { dbg(&udev->dev, "Sending magic comand\n"); rc = usb_control_msg(udev, ...
Aug 24, 11:55 am 2007
Oliver Neukum
Re: [RFC] USB: driver for iphone charging
Am Freitag 24 August 2007 schrieb Greg KH: int usb_driver_set_configuration(struct usb_device *udev, int config) { struct set_config_request *req; req = kmalloc(sizeof(*req), GFP_KERNEL); if (!req) return -ENOMEM; req->udev = udev; req->config = config; INIT_WORK(&req->work, driver_set_config_work); usb_get_dev(udev); schedule_work(&req->work); return 0; } This schedules the change via a workqueue, so you'll be reprobed. If you fire of the first vendor command you are ...
Aug 24, 12:20 am 2007
Oliver Neukum
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
That makes sense. However, Greg's version might work by putting out a magic init sequence and then changing the configuration. Then it would just be coded in an obscure way. However, does this really belong into kernel space? We have been knowing that user space infrastructure for configuration selection is necessary and this seems like a fine starting point. Regards Oliver -
Aug 24, 7:23 am 2007
Greg KH
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
Yeah, that would make more sense, if that is what is needed. Can someone with a iphone test this out? If you look at how the berry_charge driver does it, the set_config stuff happens after the magic command. As I don't have an iphone, nor have I ever seen any dumps of the command streams, I don't really know if the set_config message really is necessary or not. thanks, greg k-h -
Aug 24, 11:35 am 2007
Greg KH
Re: [linux-usb-devel] [RFC] USB: driver for iphone charging
The berry_charge driver is also one that might be done in userspace, but it turns out that people update their kernel much more than they do userspace packages... thanks, greg k-h -
Aug 24, 11:36 am 2007
Greg KH
Re: [stable] [patch 25/28] USB: cdc-acm: fix sysfs attri ...
I thought so too, untill you look at the 2.6.22.5 release, which already has that change in it for some reason. So that part of the patch drops out, it turns out you just reverted things back to the way things used to be here :) thanks, greg k-h -
Aug 24, 8:49 am 2007
Alan Stern
Re: [stable] [patch 25/28] USB: cdc-acm: fix sysfs attri ...
I don't understand. The history for stable/linux-2.6.22.y.git at http://git.kernel.org shows that the commit for my patch, labelled 6b30a4e1c357410a78d7bcb831743b0e99bab4ad, includes both hunks. And patch-2.6.22.5.bz2 includes both as well. Something's fishy. Alan Stern -
Aug 24, 10:59 am 2007
Alan Stern
Re: [patch 25/28] USB: cdc-acm: fix sysfs attribute regi ...
Odd. This doesn't include the entire patch; the second hunk is missing. It should go on to say: @@ -1109,10 +1113,12 @@ static void acm_disconnect(struct usb_interface *intf) return; } if (acm->country_codes){ - device_remove_file(&intf->dev, &dev_attr_wCountryCodes); - device_remove_file(&intf->dev, ...
Aug 24, 6:59 am 2007
Greg KH
Re: [stable] [patch 25/28] USB: cdc-acm: fix sysfs attri ...
Ah crap, I see it now, this was already applied, I tried to apply it again, it went with some fuzz for one chunk, which I ignored. I'm starting to really appreciate Linus's hate for patch-fuzz :) I'll drop this from the queue as it's already in the -stable series. Thanks for pointing out my mistake, I appreciate it. greg k-h -
Aug 24, 11:04 am 2007
Paolo Ornati
Re: "double" hpet clocksource && hard freeze [bisected]
On Fri, 24 Aug 2007 08:46:31 -0400 This one works too. -- Paolo Ornati Linux 2.6.23-rc3-g1a8f4610-dirty on x86_64 -
Aug 24, 6:27 am 2007
Paolo Ornati
Re: "double" hpet clocksource && hard freeze [bisected]
On Thu, 23 Aug 2007 14:41:45 -0700 It works: there's only one "hpet" in "available_clocksource" and also -- Paolo Ornati Linux 2.6.23-rc3-g1a8f4610-dirty on x86_64 -
Aug 24, 12:01 am 2007
Paolo Ornati
Re: "double" hpet clocksource && hard freeze [bisected]
On Thu, 23 Aug 2007 14:05:35 -0700 Using plain 2.6.23-rc3-g1a8f4610 and "nmi_watchdog=1" I've managed to capture a Kernel Panic (about 40 seconds after switching to hpet as clocksource): http://img170.imageshack.us/img170/1552/2hpetoopshw9.jpg it's stuck in "update_wall_time()". -- Paolo Ornati Linux 2.6.23-rc3-g1a8f4610-dirty on x86_64 -
Aug 24, 2:03 am 2007
Bob Picco
Re: "double" hpet clocksource && hard freeze [bisected]
[snip] I saw what was missed by me in my brief examination of this last night. The platform registers the hpet clocksource too. Instead of adding the config flag to hpet driver, how about the patch below? Since you already check for duplication by address then adding a check for by name too seems okay to me. bob Prevent duplicate names being registered with clocksource. This also eliminates the duplication of hpet clock registration when the arch uses the hpet timer and the hpet ...
Aug 24, 5:46 am 2007
john stultz
RE: "double" hpet clocksource && hard freeze [bisected]
Ok, since no one screamed too badly about this one, and it does fix this issue, I'm sending it out for reals. I think Bob's patch which addresses duplicate clocksources should go in, but this one is a little more forceful in keeping the wrong hpet clocksource from possibly being selected. Andrew, would you mind picking this up? thanks -john The ia64 hpet clocksource was implemented in generic code, and is not yet ready to replace the i386 and x86_64 implementations. This ...
Aug 24, 11:43 am 2007
Paolo Ornati
Re: "double" hpet clocksource && hard freeze [bisected]
On Thu, 23 Aug 2007 17:38:49 -0400 Note: this was always there as far as I can remember. -- Paolo Ornati Linux 2.6.23-rc3-g1a8f4610-dirty on x86_64 -
Aug 24, 12:03 am 2007
john stultz
Re: "double" hpet clocksource && hard freeze [bisected]
Yea. While I'm still not completely comfortable leaving this up to boot order alone (the ia64 hpet clocksource is clearly causing issues on -
Aug 24, 11:17 am 2007
Luck, Tony
RE: "double" hpet clocksource && hard freeze [bisected]
It is good to avoid registering two clocksources with the same name, but the fix might be a bit more fragile than the eariler one that temporarily marked the drivers/char/hpet.c one as CONFIG_IA64 only. Given that the hang went away when you applied the earlier patch, I conclude that the drivers/char/hpet.c code is the one that got selected when you had two "hpet" entries ... and that there is something wrong with that code that doesn't work right on x86_64. The fix to prevent registering a ...
Aug 24, 9:04 am 2007
Paolo Ornati
Re: "double" hpet clocksource && hard freeze [bisected]
On Fri, 24 Aug 2007 09:04:22 -0700 100% agree -- Paolo Ornati Linux 2.6.23-rc3-g1a8f4610-dirty on x86_64 -
Aug 24, 9:13 am 2007
Steve French
Re: [PATCH] CIFS: fix unbalanced calls to Get/FreeXid
merged into cifs-2.6.git tree -- Thanks, Steve -
Aug 23, 6:42 pm 2007
Oleg Nesterov
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
collect_signal() is always called under ->siglock which is also taken by sigqueue_free(), so this is not possible. Basically, this patch is the same one-liner I sent you before http://marc.info/?l=linux-kernel&m=118772206603453&w=2 (Thanks for the additional testing and report, btw). P.S. It would be nice to know if this patch solves the problems reported by Jeremy, but his email is disabled. Oleg. -
Aug 24, 12:45 am 2007
taoyue
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
Applying previous patch,it seems likely that the __sigqueue_free() is also called twice. collect_signal: sigqueue_free: list_del_init(&first->list); spin_lock_irqsave(lock, flags); if (!list_empty(&q->list)) list_del_init(&q->list); spin_unlock_irqrestore(lock, flags); q->flags &= ...
Aug 24, 7:26 am 2007
taoyue
Re: [PATCH] sigqueue_free: fix the race with collect_signal()
I know, using current->sighand->siglock to prevent one sigqueue is free twice. I want to know whether it is possible that the two function is called in different thread. If that, the spin_lock is useless. yue.tao -
Aug 24, 2:29 pm 2007
martin f krafft
Re: what does this mean: "kernel: 7.0.0.1:53 L=79 S=0x00 ...
also sprach Alexander E. Patrakov <patrakov@ums.usu.ru> [2007.08.23.1847 +0= This is not being used on the machine. --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 "never attribute to malice what can be adequately explained by incompetence."=20 -- mark twain =20 spamtraps: madduck.bogus@madduck.net
Aug 23, 11:06 pm 2007
Ingo Molnar
Re: [patch] CFS scheduler, -v20, for v2.6.22.5, v2.6.21. ...
look at the contents and you'll see why :-) Ingo -
Aug 24, 7:59 am 2007
Willy Tarreau
Re: [patch] CFS scheduler, -v20, for v2.6.22.5, v2.6.21. ...
Hi Ingo, Great, thanks a lot ! I had been grepping 2.6.23's shortlog to catch all patches beginning with "sched:", hoping to miss none. I had caught up with -rc2 with something that worked fairly well, but I never was 100% sure it was OK. So, once again, thanks ;-) Willy -
Aug 23, 9:59 pm 2007
Ingo Molnar Aug 23, 11:09 pm 2007
Bruce Ashfield
Re: [patch] CFS scheduler, -v20, for v2.6.22.5, v2.6.21. ...
Ingo, Great to see the older kernels updated, thanks for the patches. I've got a bit of a modified 2.6.21.7, but when I built with CONFIG_FAIR_GROUP_SCHED=y, I need the following change to make things right (On a quick glance, my change matches the 2.6.23-rc3 code). Then again, I may just be doing something stupid. My apologies in advance if gmail decides to mangle the patch. --- a/kernel/sched_fair.c.orig 2007-08-23 21:25:08.000000000 -0400 +++ a/kernel/sched_fair.c 2007-08-23 ...
Aug 23, 6:43 pm 2007
Folkert van Heusden
Re: intel_rng: FWH not detected (and no entropy)
If you have a spare audio-card lying around or maybe a tv-card/webcam or so, give then: http://www.vanheusden.com/aed/ (for audio) http://www.vanheusden.com/ved/ (for video4linux) a try. And no, audio-entropyd won't fill up the entropy pool in a second, it takes a while. And often video-entropyd bails out because of not enough noise in the video-signal. Folkert van Heusden -- MultiTail er et flexible tool for å kontrolere Logfiles og commandoer. Med filtrer, farger, sammenføringer, ...
Aug 24, 2:38 pm 2007
Ryusuke Konishi
Re: [Ecryptfs-devel] [PATCH] eCryptfs: fix possible faul ...
Yes, I certainly encountered the problem during testing eCryptfs on -mm, OK, I understand the reason and your plan. Thanks for letting me know! As you say, I honestly felt that it's a difficult task to write stackable filesystems using low level operations. It's good idea to replace them with the vfs functions. So, how long does it take for the conversion, do you think? Though I'm currenty focussing on eCryptfs in mainline, I'd like to shift my focus to the new one if it's ...
Aug 23, 7:33 pm 2007
Andi Kleen Aug 24, 5:33 am 2007
Laurent Vivier
[PATCH][RESEND] Implement missing x86_64 function smp_ca ...
This patch defines the missing function smp_call_function_mask() for x86_64, this is more or less a cut&paste of i386 function. It removes also some duplicate code. This function is needed by KVM to execute a function on all CPUs. arch/x86_64/kernel/smp.c | 118 ++++++++++++++++++++++++----------------------- include/asm-x86_64/smp.h | 2 2 files changed, 64 insertions(+), 56 deletions(-) Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Aug 24, 4:21 am 2007
Christoph Lameter
Re: [patch 4/6] SLUB: Avoid touching page struct when fr ...
Sorry. No we do not need this fix. The patch is fine as is. In slab_alloc() the slow path is entered if c->lockless is NULL. So it does not matter for slow path determination that node_match always returns 1 in the !NUMA case. c->node only needs to be checked for slow path determination in slab_free(). And there the node_match is not called. -
Aug 24, 9:46 am 2007
Andrew Morton
Re: [patch 0/6] Per cpu structures for SLUB
On Wed, 22 Aug 2007 23:46:53 -0700 I'm struggling a bit to understand these numbers. Bigger is better, I OK, but what happened to the third pair of columns (Concurrent Alloc, Kmalloc) for 1024 and 2048-byte allocations? They seem to have become significantly slower? Thanks for running the numbers, but it's still a bit hard to work out Most Linux machines are uniprocessor. We should keep an eye on what effect a change like this has on code size and performance for ...
Aug 24, 2:38 pm 2007
Jesper Juhl
Re: Ideas on column length in kernel "problem"?
So let's update CodingStyle once and for all so that doesn't pop up again. See attached patch (inline version is whitespace damaged - can't help it from my current location). As continuously gets pointed out, the 80 col line length defined in CodingStyle is not a hard limit in real life. Let the document reflect reality. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- --- Documentation/CodingStyle~ 2007-08-24 13:04:20.000000000 +0200 +++ Documentation/CodingStyle 2007-08-24 ...
Aug 24, 4:07 am 2007
Bron Gondwana
Re: Ideas on column length in kernel "problem"?
<disclaimer>I work for them</disclaimer> FastMail (http://fastmail.fm/) have a tickbox in the web interface so you can turn off line-wrapping if you need to. Otherwise, as other people have said, use direct SMTP (we don't allow it for non-paying accounts, but do for all levels of paying user) and use a sane local client (in my case mutt+offlineimap) Bron. -
Aug 23, 6:43 pm 2007
Andi Drebes
Re: Ideas on column length in kernel "problem"?
It happens so often that people send mangled patches that it might be useful to create a wiki page or something with the most common email clients and a sample configuration that prevents them from mangling patches. Maybe somebody I think this is also a matter of conding style. Documentation/CodingStyle says: "The limit on the length of lines is 80 columns and this is a hard limit." So actually there shouldn't be any line longer than that. Perhaps it would be nice to create a patches ...
Aug 24, 3:31 am 2007
Alan Cox
Re: Ideas on column length in kernel "problem"?
As has repeatedly been stated this is a bug in Documentation/CodingStyle and bears no resemblence to reality. -
Aug 24, 3:46 am 2007
Suresh Jayaraman
Re: Ideas on column length in kernel "problem"?
I too had thought about this problem. I think email clients do wordwrap to improve readability. But, in some cases we just might have to override. ( I had an experience of sending a malformed patch just because my wordwrap setting for vim and my email client were different) What should be ideally expected out of a good email client? Is it sufficient if the email client provides a facility to disable wordwrap while inserting file alone and does wordwrap while typing text? or is it expected to ...
Aug 24, 1:17 am 2007
Rudolf Marek
Re: [PATCH] hwmon coretemp: Remove bogus __cpuinitdata e ...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good catch. Thanks for the fixes. Acked-by: Rudolf Marek <r.marek@assembler.cz> Rudolf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGz0wO3J9wPJqZRNURAnerAKDiDMzqqvymSbvVuVzuvA+dkF8p8gCdGyq7 spqOnJ6YD8NxNgTNSBW8okY= =/u3Y -----END PGP SIGNATURE----- -
Aug 24, 2:22 pm 2007
Fengguang Wu
Re: [PATCH 0/6] writeback time order/delay fixes take 3
Thank you. That explains the linear write curve(perfect!) in Chris' graph. I wonder if XFS can benefit any more from the general writeback clustering. How large would be a typical XFS cluster? -fengguang -
Aug 24, 6:55 am 2007
Martin Schwidefsky
Re: [PATCH] s390 appldata_base: Remove module_exit funct ...
ACK, the patches are fine. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -
Aug 24, 12:37 am 2007
Greg KH
Re: sysfs_dir_cache growing out of control
Do you have a pointer to the scanbuttond source code? I'll try to take a look at this tomorrow. thanks, greg k-h -
Aug 23, 5:54 pm 2007
Gabriel C Aug 23, 6:26 pm 2007
Joel Fuster
Re: sysfs_dir_cache growing out of control
Right. The problem is that the memory never seems to get freed no matter what I do. I've tried setting /proc/sys/vm/vfs_cache_pressure to 10000, but after a few days all my programs are running out of swap and OK I just rebuilt 2.6.22.3 with SLAB and I seem to be getting the same result..obviously I haven't waited several days, but sysfs_dir_cache/dentry/inode_cache grow continuously when scanbuttond is Yes, I don't know enough to understand why this would affect sysfs_dir_cache, but ...
Aug 23, 5:44 pm 2007
Greg KH
Re: [linux-usb-devel] [GIT PATCH] USB fixes for 2.6.23-rc3
Heh, ok, fair enough, I'll do --no-chain-reply-to next time and see how it turns out. thanks, greg k-h -
Aug 23, 5:02 pm 2007
Mauro Carvalho Chehab
Re: TV card detected wrongly by the kernel. Any chance t ...
I can't see and subsystem ID. Since it is not on the few range of boards where we know other ways for detecting the board internals, there's no known way for auto-detecting your board. The solution for you is to add: options bttv card=65 into /etc/modprobe.conf (or /etc/modules.conf, or /etc/modules - depending on your distro). This way, every time the driver is loaded, the card=65 option will automatically be used by the bttv driver. -- Cheers, Mauro -
Aug 24, 8:37 am 2007
Anders Rune Jensen
Re: Forcedeth: Nvidia NIC goes up and down
I got it working by connecting the network card my old 100mbit hub. It seems that the problem is only when it runs a 1gbit. So my setup is now 1gbit switch <> computers, 1mbit hub <> machine with broken netcard. This is good enough for now, since I don't really transfer that much data to and from the machine, but of course I would like to have 1gbit -- Anders Rune Jensen http://people.iola.dk/anders/ -
Aug 23, 6:40 pm 2007
Kamalesh Babulal
Re: [BUG] 2.6.23-rc3-mm1 kernel BUG at mm/page_alloc.c:2876!
boot log with the andrew patch applied Welcome to yaboot version 1.3.13 Enter "help" to get some basic usage information boot: autobench Please wait, loading kernel... Elf64 kernel loaded... Loading ramdisk... ramdisk loaded at 02400000, size: 1191 Kbytes OF stdout device is: /vdevice/vty@30000000 Hypertas detected, assuming LPAR ! command line: ro console=hvc0 autobench_args: root=/dev/sda6 ABAT:1187885681 memory layout at init: alloc_bottom : 000000000252a000 alloc_top : ...
Aug 23, 11:15 pm 2007
Christoph Lameter
Re: [BUG] 2.6.23-rc3-mm1 kernel BUG at mm/page_alloc.c:2876!
Argh. PPC64. The typical thing that we break on all major NUMA Uhhh huh. So we have node 0 and 2 that got zonelists. What happened to Hmmm... The boot occurs on node 2?? There could be something wrong with zonelist generation since various people worked on it. Could you add some printks to show how the zonelists are generated? -
Aug 24, 9:54 am 2007
Mel Gorman
Re: [BUG] 2.6.23-rc3-mm1 kernel BUG at mm/page_alloc.c:2876!
This indicates to me that the zonelists are trashed. All memory is on zone 2 according to early_node_map[] and the CPU is most likely part of -- -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -
Aug 24, 1:58 am 2007
Andy Whitcroft
Re: [PATCH RFC] Priority boosting for preemptible RCU
ERROR: Use of SPIN_LOCK_UNLOCKED is deprecated: see Documentation/spinlocks.txt #58: FILE: Z17.c:55: + rbdp[i].rbs_mutex = SPIN_LOCK_UNLOCKED; Also picks up the RW_LOCK_UNLOCKED version too. -apw -
Aug 24, 3:09 am 2007
Paul E. McKenney
Re: [PATCH RFC] Priority boosting for preemptible RCU
OK, will try to keep an open mind... ;-) Thanx, Paul -
Aug 24, 10:27 am 2007
Gautham R Shenoy
Re: [PATCH RFC] Priority boosting for preemptible RCU
If it was doing something more complicated in the critical section other than summing stuff up, I would probably recommend going for another map instead of using the current hotplug synchronization. But for this case the current hotplug synchronization would work just fine. I can very well understand your paranoia, but let me assure you, you are not the only one ;-) Regards -- Gautham R Shenoy Linux Technology Center IBM India. "Freedom comes with a price tag of responsibility, which ...
Aug 24, 1:21 am 2007
Randy Dunlap
[PATCH v2] MAINTTAINERS: update DCO info
From: Randy Dunlap <randy.dunlap@oracle.com> Drop the URL for DCO (URL is invalid). Also, point to SubmittingPatches for the current DCO. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- MAINTAINERS | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- linux-2.6.23-rc3-git6.orig/MAINTAINERS +++ linux-2.6.23-rc3-git6/MAINTAINERS @@ -44,9 +44,10 @@ trivial patch so apply some common sense or does something very odd once a month document it. PLEASE remember ...
Aug 23, 11:50 pm 2007
Matthew Wilcox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
That's not what you said last year ... http://thunk.org/pipermail/ksummit-2006-discuss/2006-July/000665.html -- "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -
Aug 24, 6:42 am 2007
Greg KH
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
I currently object to becoming an SPI member due to a number of personal reasons at this point in time. thanks, greg k-h -
Aug 24, 8:57 am 2007
Matthew Wilcox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
That's true -- but bear in mind that most SPI members are inactive, and don't even vote for SPI leader. I doubt most existing members could be The crucial difference is that anyone (within reason) can join SPI. It's hard to join KS. And it doesn't just 'favour' kernel developers, I think that's a statement of the current position, and not necessarily where the TAB wants to be. -- "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ...
Aug 24, 4:56 am 2007
Josh Boyer
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
Because git only goes back to 2.6.12. josh -
Aug 23, 7:34 pm 2007
Matthew Wilcox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
As I'm not invited to KS this year, I am disenfranchised from the process. I object to this. -- "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -
Aug 24, 11:29 am 2007
Matthew Wilcox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
As I said; what's wrong with just using SPI membership? It's not like it is remotely hard for kernel hackers to gain membership in SPI. And somebody else takes care of the bureaucracy for you. -- "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -
Aug 23, 7:55 pm 2007
Matt Mackall
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
If you haven't had a patch accepted since 2.6.12, it's not really clear you're still a contributor. Giving various kernel janitors more votes than people doing more difficult work might be frowned on though. But I can see giving, say, the top N contributors by some simple metric a vote. That'd broaden the base. (But given that only about 30% of last year's KS attendees voted even though they were a more or less captive audience, I'd be surprised if many bothered.) The other part of the ...
Aug 23, 7:52 pm 2007
Adrian Bunk
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
My impression as an SPI member is that in practice most SPI members come from the SPI projects [1], and due to Debian's size Debian developers are the majority of SPI members. If you elect at KS it'll favor kernel developers. If you let all SPI members elect it'll favor Debian developers. The Linux Foundation homepage says "The Technical Advisory Board (TAB) provides the Linux kernel community a direct voice into The Linux Foundation’s activities...". If this is the intention, an ...
Aug 23, 9:54 pm 2007
Greg KH
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
In private conversations, my previous objections were found to be baseless and incorrect on my part, so I now withdraw my objection to SPI. I really have no feeling about them one way or the other now, although I would worry about their members only being the ones voting on the TAB for no other reason than the bias toward one distro only at this point in time. thanks, greg k-h -
Aug 24, 4:48 pm 2007
Alan Cox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
> How about one vote per git commit merged to linus' tree? So you think people who send hundreds of small typo fixes are worth more than say someone who spends 3 months writing a new driver and gets it in with one commit ? Curious.... And very gameable of course. James proposal at least has the advantage of simplicity, of drawing from a rough set of relevant people (far from perfectly) and a certain amount of random changeover according to the KS of the year I would make only one change ...
Aug 24, 3:41 am 2007
Matt Mackall
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
Ahh, I didn't realize you were suggesting making -them- do the work instead of just stealing their model. I suppose that could work, provided no one finds being an SPI member objectionable and they'd provide us with their member list. -- Mathematics is the supreme nostalgia of our time. -
Aug 23, 8:22 pm 2007
Matthew Wilcox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
I don't think it's the /perfect/ organisation by any means, but let's consider the requirements: - Membership open to significant contributors to 'Linux' [1] - Has a voting process - Reasonably agnostic Maybe an organisation like Linux International could handle this too, I ran the election last year (by counting hands) and there was no weighting by contribution ;-) More important though is the expressed desire for the TAB to be more than kernel people. [1] Is Linux even the right ...
Aug 24, 6:08 am 2007
Alan Cox
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
On Fri, 24 Aug 2007 07:42:24 -0600 And if you follow the further discussion both online and off (ok that bit might be trickier), James explained what he was trying to achieve, why he thought it was the right way to do it, and persuaded me he was right. Alan -
Aug 24, 6:57 am 2007
Theodore Tso
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
Given the huge overlap between SPI membership and Debian membership, and then taking a look at the craziness that takes place on various Debian mailing lists, such as but not limited to debian-legal, I'm quite convinced that this would be a baaaaaad idea. - Ted -
Aug 24, 3:45 am 2007
Andy Isaacson
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
This is a dumb suggestion, but... How about one vote per git commit merged to linus' tree? Might be worthwhile to allocate votes for Acked-By and so on, as well. -andy -
Aug 23, 6:27 pm 2007
James Bottomley
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
There's another alternative: and that's that we could use the voting mechanism of the LF itself. When the LF was formed, it inherited the individual affiliate members from the FSG (These members actually elect two of the board seats to the LF). We could simply use that pool as the electorate for the TAB ... of course, coming from the FSG it will be more user space centric. To be brutally frank, I couldn't give a toss about choosing the perfect representational system for the TAB election. ...
Aug 24, 9:10 am 2007
Jes Sorensen
Re: [Tech-board-discuss] Re: [Ksummit-2007-discuss] Re: ...
Hi, It was fair enough to run the vote at KS last year to get the TAB started in the first place. However limiting the vote to a small closed cabal, for the future, pretty much ensures that anyone will ever stand a chance to challenge the board if they felt a change of direction was needed. I don't have the old emails at hand, but I thought it was stated clearly last year that the intention was to change the process for the future? Personally I am not sure whether SPI would be the right ...
Aug 24, 5:13 am 2007
Christoph Lameter
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
Ahh. Yes. I remember some of that. Acked-by: Christoph Lameter <clameter@sgi.com> -
Aug 24, 11:08 am 2007
Yasunori Goto
[PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc3-mm ...
I found find_next_best_node() was wrong. I confirmed boot up by the following patch. Mel-san, Kamalesh-san, could you try this? Bye. --- Fix decision of memoryless node in find_next_best_node(). This can be cause of SW-IOMMU's allocation failure. This patch is for 2.6.23-rc3-mm1. Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com> --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: ...
Aug 23, 11:53 pm 2007
Christoph Lameter
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
Right. Lets make sure to cc Lee on future discussions of the memoryless node patchset. Acked-by: Christoph Lameter <clameter@sgi.com> -
Aug 24, 10:02 am 2007
Christoph Lameter
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
Could you post a diff to rc3-mm1 of that patch? -
Aug 24, 10:00 am 2007
Mel Gorman
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
This boots the IA-64 successful and gets rid of that DMA corrupts memory message. As a bonus, it fixes up the memoryless nodes (the bug where Total pages == 0 and there is a BUG in page_alloc.c) by building zonelists properly. The machine still fails to boot with the more familiar net/core/skbuff.c:95 but that is a separate problem. Well spotted Yasunori-san. Andrew, this fixes a real problem and should be considered a fix ...
Aug 24, 7:52 am 2007
Lee Schermerhorn
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
Sure. Here it is. This looks nicer to me than explicitly skipping unpopulated nodes in find_next_best_node()--as I tried to do, but botched it :-(. I didn't notice that because I'd moved on to v2 before testing with any significant load. Even when I was running with v1 with botched zonelists, I apparently had sufficient memory on each node that I never had to fallback. I also didn't notice that Andrew had added v1 instead of v2 to the mm tree. Will pay more attention in the future, I ...
Aug 24, 11:03 am 2007
Kamalesh Babulal
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
This patch resolves the kernel panic problem. - Kamalesh Babulal. -
Aug 24, 9:46 am 2007
Lee Schermerhorn
Re: [PATCH] Fix find_next_best_node (Re: [BUG] 2.6.23-rc ...
I reworked that patch and posted the update on 16aug which does not have this problem: http://marc.info/?l=linux-mm&m=118729871101418&w=4 This should replace memoryless-nodes-fixup-uses-of-node_online_map-in-generic-code.patch in -mm. Lee -
Aug 24, 8:49 am 2007
YAMAMOTO Takashi Aug 24, 1:48 am 2007
Pavel Machek Aug 24, 1:13 am 2007
Jeremy Fitzhardinge
Re: [PATCH] memchr (trivial) optimization
It's a bit gross that the compiler is using inc here rather than lea or add, but still... Er, something's spending 30% of its time in memchr? This is not the code to fix. J -
Aug 23, 6:03 pm 2007
Matt Mackall
Re: [PATCH] memchr (trivial) optimization
And you can do even better with this: void *memchr(const void *s, int c, size_t n) { const unsigned char *p = s, *e = s + n; const unsigned char *e = p + n; for (; p < e ; p++) if ((unsigned char)c == *p) return (void *)p; return NULL; } which changes the inner loop from: 50: 38 08 cmp %cl,(%eax) 52: 74 08 je 5c <memchr2+0x1a> 54: 4a dec ...
Aug 23, 5:13 pm 2007
Matt Mackall
Re: [PATCH] memchr (trivial) optimization
Indeed. I'm just pointing out the general optimization of walking one counter instead of two. Hmm, perhaps the culprit is validate_nla? -- Mathematics is the supreme nostalgia of our time. -
Aug 23, 7:19 pm 2007
Jan Engelhardt
Re: [PATCH] memchr (trivial) optimization
Or do it glibc-style void *memchr(const void *s, unsigned char c, size_t n) { ... for (; p + 3 < e; p += 4) { if (c == p[0]) return (void *)&p[0]; if (c == p[1]) return (void *)&p[1]; if (c == p[2]) return (void *)&p[2]; if (c == p[3]) return (void *)&p[3]; } ... /* check the rest */ } Jan -- -
Aug 24, 5:54 am 2007
Matt Mackall
Re: [PATCH] memchr (trivial) optimization
Yes, very funny. -- Mathematics is the supreme nostalgia of our time. -
Aug 24, 8:57 am 2007
Frederik Deweerdt
Re: [-mm patch] enforce noreplace-smp in alternative_ins ...
I agree, but I don't think it is doable (alt_smp_once comes to mind). I'll double check however. Thanks, Frederik -
Aug 23, 11:06 pm 2007
Eric W. Biederman
Re: 2.6.23-rc3-mm1 - irda goes belly up
Grumble. Ok. This is a two sided bug. The NET_IRDA define as not put in sysctl.h where it belongs so I missed it, when making the list of all existing binary sysctls. So really I need to put update the sysctl_check tables to have the NET_IRDA numbers, because at least at first skim everything looks ok on the binary side. Patches to follow shortly. Eric -
Aug 23, 8:11 pm 2007
Eric W. Biederman
Re: 2.6.23-rc3-mm1 - irda goes belly up
I should say something about the return value issue. Currently the only time this matters is when someone messes up in development, and if it isn't an out of memory error we get messages in dmesg so it shouldn't be to hard to sort out. I agree it is a bit of a short coming that we can only return NULL and it might be worth changing that at some point. Perhaps when I introduce register_sysctl_path would be a good time. Going through all of the callers just to give a better return value ...
Aug 23, 8:46 pm 2007
Tilman Schmidt
Re: 2.6.23-rc3-mm1
3/2.6.23-rc3-mm1/ After applying Matthew Wilcox' patch to include/linux/isa.h this compiles= and boots on my Intel/openSUSE 10.2 test machine but throws out the following messages I don't remember ever seeing with other kernels: - on console early during boot, also in SuSE's /var/log/boot.msg: your system time is not correct: Wed Jul 13 13:15:31 UTC 1910 setting system time to: Tue Jul 24 00:00:00 UTC 2007 - later, dto. on console and in /var/log/boot.msg: FATAL: Error inserting ...
Aug 24, 4:27 pm 2007
Jiri Kosina
Re: 2.6.23-rc3-mm1 - memory layout change? - lost suppo ...
(some more CCs added) Hi Andrew, well, whenever it comes to address space layout randomization, there usually follows a huge debate whether it is needed or not, some people think it's useful and powerful security protection against 0day attacks, other people think that it's just fighting the bugs in userspace software in a wrong way. Opinions differ, that's why there is a way to turn the VA space randomization completely off trivially. We already have randomized stack, randomized ...
Aug 23, 5:09 pm 2007
Eric W. Biederman
[PATCH 2/2] sysctl: For irda update sysctl_checks list o ...
It turns out that the net/irda code didn't register any of it's binary paths in the global sysctl.h header file so I missed them completely when making an authoritative list of binary sysctl paths in the kernel. So add them to the list of valid binary sysctl paths. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> --- kernel/sysctl_check.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl_check.c ...
Aug 23, 8:55 pm 2007
Frederik Deweerdt
Re: [-mm patch] enforce noreplace-smp in alternative_ins ...
[Added Gerd Hoffman and Rusty Russel to cc] It dies with: [ 0.131000] SMP alternatives: switching to UP code lguest: bad stack page 0xc057a000 I added a dump_stack on the Host, which gives: [124320.090946] [<c01052f8>] dump_trace+0x65/0x1de [124320.090956] [<c010548b>] show_trace_log_lvl+0x1a/0x2f [124320.090970] [<c0105ea4>] show_trace+0x12/0x14 [124320.090975] [<c0105fcd>] dump_stack+0x16/0x18 [124320.090980] [<f888032c>] pin_page+0x5f/0xa3 [lg] [124320.090993] [<f8880654>] ...
Aug 24, 1:22 am 2007
Eric W. Biederman
[PATCH 1/2] sysctl: Properly register the irda binary sy ...
Grumble. These numbers should have been in sysctl.h from the beginning if we ever expected anyone to use them. Oh well put them there now so we can find them and make maintenance easier. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> --- include/linux/sysctl.h | 20 ++++++++++++++++++++ net/irda/irsysctl.c | 34 ++++++++++++++-------------------- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index ...
Aug 23, 8:53 pm 2007
Arjan van de Ven
Re: 2.6.23-rc3-mm1 - memory layout change? - lost suppo ...
On Fri, 24 Aug 2007 02:09:59 +0200 (CEST) randomizing PIE's is as a whole worth getting right and in mainline. That means that ONLY the PIE text should be randomized, not that mmap should break ;) Randomizing address space is very widely recognized as being part of a whole set of things (and there's a lot of discussion about what that whole set should be, each vendor will say their solution should be part of that and that all others suck) that you need to do to make it a LOT harder to get a ...
Aug 24, 9:17 am 2007
Frederik Deweerdt
Re: [-mm patch] enforce noreplace-smp in alternative_ins ...
That means that even when you specify noreplace_smp, some replacing takes place anyway. One of the consequences, besides noreplace_smp not working as expected, is that lguest crashes when you feed it an SMP kernel Hmm yes, my bad. Regards, Frederik -
Aug 23, 11:04 pm 2007
Jeremy Fitzhardinge Aug 23, 11:46 pm 2007
Pavel Machek Aug 24, 2:02 am 2007
Rafael J. Wysocki
Re: [linux-pm] Re: [RFC][PATCH -mm 3/4] Hibernation: Pas ...
I forgot about it. I've already sent the 1/4 and 2/4 patches to Andrew, so I'll keep the remaining two ones in the queue for a couple of days. Thanks for the ACKs! Greetings, Rafael -
Aug 24, 2:24 pm 2007
Pavel Machek Aug 24, 1:31 am 2007
Pavel Machek
Re: [PATCH] Add I/O hypercalls for i386 paravirt
SCSI controller in ISA slot? IDE without DMA enabled? Yes, those are performance-critical. The second case seems common with compactflash cards. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -
Aug 24, 5:20 am 2007
taoyue
Re: [BUG]: posix timer: slab error 'double free'
Think you for your help. I reserved the first patch: http://lkm.org/lkml/2007/8/12/193 and applied the previous patch, running the test program again. Up to now, the test program has been running for more than one day. It seems likely that the patches avoid the race condition. yue.tao -
Aug 24, 7:01 am 2007
Ric Wheeler
Re: NFS hang + umount -f: better behaviour requested.
Would it be sufficient to insure that that application always issues an fsync() before closing any recently written/updated file? Is there some other subtle paranoid techniques that should be used? ric -
Aug 24, 8:09 am 2007
Peter Staubach
Re: NFS hang + umount -f: better behaviour requested.
I suspect that this is not sufficient. The application should be prepared to rewrite data if it can determine what data did not get written. Using fsync will tell the application when data was not written to the server correctly, but not which part of the data. Perhaps O_SYNC or fsync following each write, but either one of these options will also cause a large performance degradation. The right solution is the use of TCP and hard mounting. ps -
Aug 24, 8:37 am 2007
J. Bruce Fields
Re: NFS hang + umount -f: better behaviour requested.
NFS already syncs on close (and on unlock), so you should just need to check the return values from any writes, fsyncs, closes, etc. (and realize that an error there may mean some or all of the previous writes to this file descriptor failed). And operations like mkdir have the same problem--a timeout leaves you not knowing whether the directory was created, because you don't know whether the operation reached the server or not. I assume the problems with executables that Peter Staubach ...
Aug 24, 8:53 am 2007
Benjamin Herrenschmidt
Re: [patch 04/14] Convert from class_device to device fo ...
Good. That stuff shouldn't have been a class in the first place. ADB is a bus type, not a class. -
Aug 23, 10:04 pm 2007
Mathieu Desnoyers
Re: [patch 1/4] Linux Kernel Markers - Architecture Inde ...
Declaring variables with __attribute__((section("__markers_strings"))) will likely put them in an allocated section, you are right. Will fix. The same applies to immediate values with .section __immediate, \"a\", Just they are internal functiona meant to be called with markers_mutex held. But I guess having a static prefix and not being exported is enough. Will remove. I'll just keep _marker_update_probes/marker_update_probes to differentiate between Let's say we have abc\0 for ...
Aug 24, 9:26 am 2007
Mathieu Desnoyers
Re: [patch 2/2] Sort module list by pointer address to g ...
Hi Rusty, Please tell me if I'm wrong, but I think it would not be a problem: - seq_read() makes sure that a buffer large enough is available so that m_show() can fully extract and print the information relative to 1 module. - m_start() and m_stop() takes the module_mutex, therefore within one seq_read(), once m_start has returned, the struct module * that we have is valid and will be consistent during the whole seq_read operation. - If a module is removed, and then a different ...
Aug 24, 8:45 am 2007
Sergei Shtylyov
Re: [PATCH 2/4] hpt366: UltraDMA filter for SATA cards ( ...
... and I was actually going to get rid of all explict masks there, just modifying the 'mask' variable -- this was may paper version but I was in hury This is certainly worth a big patch covering all PCI drivers. Maybe I'll I'll do my best (althou I've already encountered trouble with displays suddenly being blanked -- some{one|thing} set the standby timer to 1-2 minutes. :-) Beside that my typing loses as an effect of some pills. +:-) MBR, Sergei -
Aug 24, 11:11 am 2007
Sergei Shtylyov
Re: [PATCH 1/4] ide: add ide_dev_is_sata() helper
The same could have been achieved more simply: if (id->hw_config == 0 && (short}id->major_rev_num >= 0x0020 so I'll probably recast... MBR, Sergei -
Aug 24, 11:49 am 2007
Richard Knutsson
Re: [PATCH 4/9] s2io, rename BIT macro
Sorry for the late response, but would it not be better/easier to use BIT() instead (or a global #define LLBIT(nr) (1ULL << (nr))) and just recalculate the values? Richard Knutsson -
Aug 23, 7:35 pm 2007
Bjorn Helgaas
Re: [2.6.23-rc3 possible regression] 8250 claims nonexis ...
I agree. 8250_pnp is actually fine -- it won't claim SMCf010 devices. The problem is that we have the legacy addresses (including the SMCf010 SIR range) in SERIAL_PORT_DFNS, so 8250.c claims the SIR range in serial8250_isa_init_ports(). I'm still hoping to fix that bit of 8250, but it's going to take some work. I'll post the SMCf010 quirk removal as a fix for the 2.6.23-rc3 regression. Bjorn -
Aug 24, 11:33 am 2007
Andrey Borzenkov
Re: [2.6.23-rc3 possible regression] 8250 claims nonexis ...
I am fine with any patch that works. Of course, it would be better to fix 8= 250=20 to respect PnP (it does load 8250_pnp in the first place). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
Aug 24, 10:42 am 2007
Jeff Dike
Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style
How does that help? gdb should stop as easily on a "else foo;" line as on else foo; right? Jeff -- Work email - jdike at linux dot intel dot com -
Aug 24, 8:21 am 2007
Blaisorblade
Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style
Sorry, a better example is on: if (bar) foo; where the test and foo are two distinct parts. One step is "I execute the i= f",=20 another (possible) step is "I perform foo" - which is not easy to tell if i= t=20 is not on a different line. =2D-=20 "Doh!" (cit.), I've made another mistake! Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
Aug 24, 9:10 am 2007
Len Brown Aug 23, 10:04 pm 2007
Martin Knoblauch
RE: [PATCH 00/23] per device dirty throttling -v9
Hi Peter, thanks a lot. It applies to 2.6.22.5 almost cleanly, with just one 8-line offset in readahead.c. I will report testing-results separately. Thanks Martin ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de -
Aug 24, 3:47 am 2007
Hugh Blemings
Re: [PATCH] PS3: Update MAINTAINERS
Good call, have changed the configuration accordingly. Thanks for the feedback all :) Cheers, Hugh -
Aug 23, 10:52 pm 2007
Hugh Blemings
Re: [Cbe-oss-dev] [PATCH] PS3: Update MAINTAINERS
Correct. I aim to check messages at least once a day, typically more like three or four times. There is a (increasingly brief it seems) period where I sleep so things may languish during that period, or if I've gone bush or some such :) No prob, good result all round it seems. Cheers, Hugh -
Aug 23, 11:48 pm 2007
Hugh Blemings
Re: [Cbe-oss-dev] [PATCH] PS3: Update MAINTAINERS
As per recent discussions... The list is moderated for SPAM prevention, messages from valid senders will be forwarded manually and their email added to the whitelist. I've changed the list config so that it no longer generates the "subscriber-only" notification. On this basis I recommended the patch be NAKd so that people aren't put off copying the list where appropriate. Thanks, Regards, Hugh -
Aug 23, 11:25 pm 2007
Satyam Sharma
Re: [Cbe-oss-dev] [PATCH] PS3: Update MAINTAINERS
So ... if someone (!subscriber && !whitelisted) sends a message, it stays put somewhere till you get to it and determine whether it is relevant or not, and either (1) forward it on to the list if appropriate, or (2) drop it if detected as spam. And no "notifications" are ever sent out to Fair enough, if my understanding (as mentioned above) is correct, then I believe the patch achieved a greater purpose than what it was originally sent out for! Thanks, Satyam -
Aug 23, 11:47 pm 2007
Ingo Molnar
Re: QUESTION: RT & SCHED & fork: ?MISSING EQUIV of task_ ...
your original claim and these additional claims are both incorrect. What Mike said is true: there is nothing "missing", RT class tasks do not need any extra setup over what they already receive from the generic function. A NULL pointer for sched_class->task_new means: "do default setup, no class-specific setup needed". If you disagree with what we say then please send a fix-patch or quote the specific code that is missing something in your opinion. Ingo -
Aug 24, 2:51 am 2007
Andrew Morton
Re: [PATCH] Sort module list - use ppos instead of m->private
On Fri, 24 Aug 2007 11:39:33 -0400 Confused. What problem is this patch fixing? I'm guessing that something is going wrong when /proc/modules is read one-byte-at-a-time? <tests that> <nope> Better changelogs, please. -
Aug 24, 4:34 pm 2007
Mathieu Desnoyers
[PATCH] Sort module list - use ppos instead of m->private
Sort modules list - use ppos instead of m->private When reading the data by small chunks (i.e. byte by byte), the index (ppos) is incremented by seq_read() directly and no "next" callback is called when going to the next module. Therefore, use ppos instead of m->private to deal with the fact that this index is incremented directly to pass to the next module in seq_read() after the buffer has been emptied. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> --- fs/seq_file.c ...
Aug 24, 8:39 am 2007
Ingo Molnar
Re: [PATCH] sched: Reduce overhead in balance_tasks()
hm, i like it, and added it to my queue (probably .24 material though), but note that it increases .text and .data overhead: text data bss dec hex filename 41028 37794 2168 80990 13c5e sched.o.before 41349 37826 2168 81343 13dbf sched.o.after is that expected? Ingo -
Aug 23, 11:04 pm 2007
Denys Vlasenko
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
I think better name may help. Nuke atomic_read() altogether. n = atomic_value(x); // doesnt hint as strongly at reading as "atomic_read" n = atomic_fetch(x); // yes, we _do_ touch RAM n = atomic_read_uncached(x); // or this How does that sound? -- vda -
Aug 24, 1:26 pm 2007
Denys Vlasenko
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
For less-than-briliant people like me, it's totally non-obvious that cpu_relax() is needed for correctness here, not just to make P4 happy. IOW: "atomic_read" name quite unambiguously means "I will read this variable from main memory". Which is not true and creates potential for confusion and bugs. -- vda -
Aug 24, 4:59 am 2007
Satyam Sharma
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
Hi Denys, in atomic_{read,set} myself, but frankly, at least personally speaking (now that I know better), I'm not so much in favour of implicit barriers (compiler, memory or both) in atomic_{read,set}. This might sound like an about-turn if you read my own postings to Nick Piggin from a week back, but I do agree with most his opinions on the matter now -- separation of barriers from atomic ops is actually good, beneficial to certain code that knows what it's doing, explicit usage of ...
Aug 24, 6:30 am 2007
Chris Snook
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
atomic_value() vs. atomic_fetch() should be rather unambiguous. atomic_read_uncached() begs the question of precisely which cache we are avoiding, and could itself cause confusion. So, if I were writing atomic.h from scratch, knowing what I know now, I think I'd use atomic_value() and atomic_fetch(). The problem is that there are a lot of existing users of atomic_read(), and we can't write a script to correctly guess their intent. I'm not sure auditing all uses of atomic_read() is ...
Aug 24, 1:34 pm 2007
Kenn Humborg
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
To me, "atomic_read" means a read which is synchronized with other changes to the variable (using the atomic_XXX functions) in such a way that I will always only see the "before" or "after" state of the variable - never an intermediate state while a modification is happening. It doesn't imply that I have to see the "after" state immediately after another thread modifies it. Perhaps the Linux atomic_XXX functions work like that, or used to work like that, but it's counter-intuitive to me ...
Aug 24, 5:12 am 2007
Andi Kleen
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
I find it also non obvious. It would be really better to have a barrier Agreed. -Andi -
Aug 24, 5:07 am 2007
Linus Torvalds
Re: [PATCH 0/24] make atomic_read() behave consistently ...
I would agree that fixing the compiler in this case would be a good thing, even quite regardless of any "atomic_read()" discussion. I just have a strong suspicion that "volatile" performance is so low down the list of any C compiler persons interest, that it's never going to happen. And quite frankly, I cannot blame the gcc guys for it. That's especially as "volatile" really isn't a very good feature of the C language, and is likely to get *less* interesting rather than more (as ...
Aug 24, 10:19 am 2007
Linus Torvalds
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
No. This is a common mistake, and it's total crap. Any "sane coder" will often use inline functions, macros, etc helpers to do certain abstract things. Those things may contain "atomic_read()" calls. The biggest reason for compilers doing CSE is exactly the fact that many opportunities for CSE simple *are*not*visible* on a source code level. That is true of things like atomic_read() equally as to things like shared offsets inside structure member accesses. No difference ...
Aug 24, 10:34 am 2007
Luck, Tony
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
Not just P4 ... there are other threaded cpus where it is useful to let the core know that this is a busy loop so it would be a good thing to let other threads have priority. Even on a non-threaded cpu the cpu_relax() could be useful in the future to hint to the cpu that it could drop into a lower power hogging state. But I agree with your main point that the loop without the cpu_relax() looks like it ought to work because atomic_read() ought to actually go out and read memory each time ...
Aug 24, 9:19 am 2007
Christoph Lameter
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
The confusion may be the result of us having barrier semantics in atomic_read. If we take that out then we may avoid future confusions. -
Aug 24, 10:06 am 2007
Denys Vlasenko
Re: [PATCH 0/24] make atomic_read() behave consistently ...
It doesn't mean that (volatile int*) cast is bad, it means that current gcc is bad (or "not good enough"). IOW: instead of avoiding volatile cast, Linus, in all honesty gcc has many more cases of suboptimal code, case of "volatile" is just one of many. Off the top of my head: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28417 unsigned v; void f(unsigned A) { v = ((unsigned long long)A) * 365384439 >> (27+32); } gcc-4.1.1 -S -Os -fomit-frame-pointer t.c f: movl ...
Aug 24, 5:19 am 2007
Denys Vlasenko
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecp ...
So you are ok with compiler propagating n1 to n2 here: n1 += atomic_read(x); other_variable++; n2 += atomic_read(x); without accessing x second time. What's the point? Any sane coder will say that explicitly anyway: tmp = atomic_read(x); n1 += tmp; other_variable++; n2 += tmp; if only for the sake of code readability. Because first code is definitely hinting that it reads RAM twice, and it's actively *bad* for code readability when in fact it's not the case! Locking, compiler ...
Aug 24, 7:25 am 2007
Jens Axboe
Re: [PATCH 1/1] cciss: fix error reporting for SG_IO
Please don't make that a macro, make it a function. Otherwise it looks ok, care to fix that up and resubmit? -- Jens Axboe -
Aug 24, 3:24 am 2007
Nick Piggin
Re: [RFC 2/9] Use NOMEMALLOC reclaim to allow reclaim if ...
It isn't ;) At least I don't think so for the minix-derived ones I don't know what this is solving? You don't need to run all reclaim from kswapd process in order to limit concurrency. Just explicitly limit it when a process applies for PF_MEMALLOC reserves. I had a patch to do this at one point, but it never got much testing -- I think there were other problems iwth a single process able to do unbounded writeout and such anyway. But yeah, I don't think getting Directly getting back pages ...
Aug 23, 9:00 pm 2007
Alan Cox
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
It doesn't send a complaint, it sends a useful note that your message is pending moderation. The rest appears to be your personal issue Matt, perhaps caused by not setting up smart enough mail filters ? -
Aug 24, 2:09 am 2007
Mike Frysinger
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
there's a difference between getting a response that says it's being held pending a moderator approving it and a response that says it's that's easy enough to do -mike -
Aug 24, 2:11 pm 2007
Matt Mackall
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
Does your list generate a complaint message back to the sender if a non-subscriber posts to it? If so, it qualifies as a subscribers-only list. -- Mathematics is the supreme nostalgia of our time. -
Aug 23, 5:24 pm 2007
Matt Mackall
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
My observation is actually from the other side, Alan. I run a list that used to send exactly such messages and got complaints from people in this community about running a subscribers-only list. My natural conclusion was that the messages were considered to be a problem. Given that the moderation messages from Mailman actually mention "subscribers-only", I can't blame non-subscribers for feeling thwarted, frustrated, annoyed, or inconvenienced when they receive it. Since I was already ...
Aug 24, 9:14 am 2007
Matt Mackall
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
And as I said, "does your list generate a complaint message back to the sender?" It's the moderation message that's the problem. -- Mathematics is the supreme nostalgia of our time. -
Aug 23, 9:56 pm 2007
Bryan Wu
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
As Mike said, "it is moderated which means you do not need to subscribe, we will forward any relevant messages" Thanks - Bryan Wu -
Aug 23, 9:04 pm 2007
Andy Isaacson
Re: [PATCH take #2] MAINTAINTERS: use our mail list as B ...
It's another waste of space in my inbox due to poorly-implemented software. If their mailman installation uses a whitelist, so I get *one* message per list rather than a bounce for every message I send, then that's somewhat acceptable. If I get mailbombed just for participating in a thread on lkml, that's definitely not acceptable (and I will remove such lists from the Cc). It would be vastly better if mailman were smart enough to autoapprove threaded replies -- it's not as if the ...
Aug 24, 10:42 am 2007
Fengguang Wu
Re: [PATCH 0/6] writeback time order/delay fixes take 3
Exactly, the current writeback logics are unsatisfactory in many ways. As for writeback clustering, inode/data localities can be different. But I'll follow your suggestion to start simple first and give the idea a spin on ext3. -fengguang -
Aug 24, 5:56 am 2007
Fengguang Wu
Re: [PATCH 0/6] writeback time order/delay fixes take 3
Yeah, I was thinking about elevators :) It's meaningless to convert s_io to radix tree. Because inodes on s_io will normally be sent to block layer elevators at the same time. Also s_dirty holds 30 seconds of inodes, while s_io only 5 seconds. The more inodes, the more chances of good clustering. That's the general rule. s_dirty is the right place to do address-clustering. As for the dirty_expire_interval parameter on dirty age, we can apply a simple rule: do one full scan/sweep over ...
Aug 24, 6:24 am 2007
Chris Mason
Re: [PATCH 0/6] writeback time order/delay fixes take 3
On Fri, 24 Aug 2007 21:24:58 +0800 Not entirely, using a radix tree instead lets you tag things instead of This gives you an O(inodes dirty) behavior instead of the current O(old inodes). It might not matter, but walking the radix tree is more expensive than walking a list. But, I look forward to your patches, we can tune from there. -chris -
Aug 24, 7:36 am 2007
Ingo Molnar
Re: CFS review
ok. I think i might finally have found the bug causing this. Could you try the fix below, does your webserver thread-startup test work any better? Ingo ---------------------------> Subject: sched: fix startup penalty calculation From: Ingo Molnar <mingo@elte.hu> fix task startup penalty miscalculation: sysctl_sched_granularity is unsigned int and wait_runtime is long so we first have to convert it to long before turning it negative ... Signed-off-by: Ingo Molnar ...
Aug 24, 6:45 am 2007
Andrew Victor
Re: [PATCH] at91 pm: Compilation fix for at91sam926x
I think we will go with the following change for now. We need to pull in different header files anyway. (This file will need to be re-looked at if we ever allow compiling a single kernel image that supports multiple AT91 processors) --- pm.c 6 Jul 2007 09:18:01 -0000 1.5 +++ pm.c 24 Aug 2007 07:22:13 -0000 @@ -27,12 +27,24 @@ #include <asm/mach-types.h> #include <asm/arch/at91_pmc.h> -#include <asm/arch/at91rm9200_mc.h> #include <asm/arch/gpio.h> #include <asm/arch/cpu.h> ...
Aug 24, 12:11 am 2007
Clemens Ladisch
Re: MOTU Fastlane USB MIDI interface
Hmmm, it's either the driver or device. Please uncomment the "#define DUMP_PACKETS" in line 58 of sound/usb/usbmidi.c and recompile the driver. All MIDI data should then be visible in the system log. Regards, Clemens -
Aug 24, 8:02 am 2007
Denys Vlasenko
Re: [PATCH 0/24] make atomic_read() behave consistently ...
But here you do have some notion of time: while (atomic_read(&x)) continue; "continue when other CPU(s) decrement it down to zero". If "read" includes an insn which accesses RAM, you will see "new" value sometime after other CPU decrements it. "Sometime after" is on the order of nanoseconds here. It is a valid concept of time, right? The whole confusion is about whether atomic_read implies "read from RAM" or not. I am in a camp which thinks it does. You are in an opposite one. We ...
Aug 24, 1:21 pm 2007
Denys Vlasenko Aug 24, 5:50 am 2007
Christoph Lameter
Re: [PATCH 0/24] make atomic_read() behave consistently ...
A "timely" fashion? One cannot rely on something like that when coding. The visibility of updates is insured by barriers and not by some fuzzy notion of "timeliness". -
Aug 24, 10:15 am 2007
Jarek Poplawski
Re: 2.6.23-rc2-mm1: irq lock inversion dependency detected
IMHO, this should be fixed by last changes to free_irq & request_irq. (Seems to be possible only with CONFIG_DEBUG_SHIRQ?) Otherwise I can be CC-ed - my pleasure! Cheers, Jarek P. -
Aug 24, 1:27 am 2007
Jarek Poplawski
Re: 2.6.23-rc2-mm1: irq lock inversion dependency detected
OOPS! But, since it's about inversion - not state - there should be no connection... Anyway if this returns currently (and if _SHIRQ only) I'm interested. Jarek P. -
Aug 24, 1:50 am 2007
Jarek Poplawski
Re: [PATCH (take 2)] request_irq fix DEBUG_SHIRQ handlin ...
So, this time I f-ed the diff part: it's not exactly against 2.6.23-rc-git6. But, it's Andrew to blame: he should've known that some old & slow chips can't do science and poetry at the same time. Sorry (for him)! Anyway, beside an offset, should be OK... Regards, Jarek P. -
Aug 23, 10:46 pm 2007
previous daytodaynext day
August 23, 2007August 24, 2007August 25, 2007