linux-kernel mailing list

FromSubjectsort iconDate
akepner
[PATCH 5/5] mthca: allow setting "dmabarrier" on user-alloca...
Allow setting a "dmabarrier" when the mthca driver registers user- allocated memory. Signed-off-by: Arthur Kepner <akepner@sgi.com> --- mthca_provider.c | 7 ++++++- mthca_user.h | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 17486a4..c818708 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_prov...
Oct 2, 10:50 pm 2007
Heikki Orsila
Re: [PATCH 5/5] mthca: allow setting "dmabarrier" on user-al...
Seems like a very odd place to #define something new.. -- Heikki Orsila Barbie's law: heikki.orsila@iki.fi "Math is hard, let's go shopping!" http://www.iki.fi/shd -
Oct 2, 10:56 pm 2007
akepner
[PATCH 4/5] infiniband: add "dmabarrier" argument to ib_umem...
Pass a "dmabarrier" argument to ib_umem_get() and use the new argument to control setting the DMA_BARRIER_ATTR attribute on the memory that ib_umem_get() maps for DMA. Signed-off-by: Arthur Kepner <akepner@sgi.com> --- drivers/infiniband/core/umem.c | 8 ++++++-- drivers/infiniband/hw/amso1100/c2_provider.c | 2 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 +- drivers/infiniband/hw/ehca/ehca_mrmw.c | 2 +- drivers/infiniband/hw/ipath/ipath_mr....
Oct 2, 10:49 pm 2007
David Miller
Re: [PATCH 4/5] infiniband: add "dmabarrier" argument to ib_...
From: akepner@sgi.com Acked-by: David S. Miller <davem@davemloft.net> However I'm a little unhappy with how IA64 achieves this. The last argument for dma_map_foo() is an enum not an int, every platform other than IA64 properly defines the last argument as "enum dma_data_direction". It can take one of several distinct values, it is not a mask. This hijacking of the DMA direction argument is hokey at best, and at worst is type bypassing which is going to explode subtly for someone in t...
Oct 2, 11:10 pm 2007
akepner
[PATCH 3/5] dma: document dma_flags_set_attr()
Document dma_flags_set_attr(). Signed-off-by: Arthur Kepner <akepner@sgi.com> --- DMA-API.txt | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+) diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt index cc7a8c3..16e15c0 100644 --- a/Documentation/DMA-API.txt +++ b/Documentation/DMA-API.txt @@ -544,3 +544,30 @@ size is the size (and should be a page-sized multiple). The return value will be either a pointer to the processor virtual address of th...
Oct 2, 10:47 pm 2007
David Miller
Re: [PATCH 3/5] dma: document dma_flags_set_attr()
From: akepner@sgi.com Acked-by: David S. Miller <davem@davemloft.net> -
Oct 2, 11:02 pm 2007
akepner
[PATCH 2/5] dma: redefine dma_flags_set_attr() for sn-ia64
define dma_flags_set_attr() for sn-ia64 - it "borrows" bits from the direction argument (renamed "flags") to the dma_map_* routines to pass an additional attributes. 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 | 37 +++++++++++++++++++++++++++---------- include/asm-ia64/sn/io.h | 23 +++++++++++++++++++++++ 2 files changed, 50 insertions(+), 10 deletions(-) ...
Oct 2, 10:46 pm 2007
David Miller
Re: [PATCH 2/5] dma: redefine dma_flags_set_attr() for sn-ia64
From: akepner@sgi.com Acked-by: David S. Miller <davem@davemloft.net> -
Oct 2, 11:02 pm 2007
akepner
[PATCH 1/5] dma: add dma_flags_set_attr() to dma interface
Introduce the dma_flags_set_attr() interface and give it a default no-op implementation. Signed-off-by: Arthur Kepner <akepner@sgi.com> --- dma-mapping.h | 8 ++++++++ 1 files changed, 8 insertions(+) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 2dc21cb..4990aaf 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -99,4 +99,12 @@ static inline void dmam_release_declared_memory(struct device *dev) } #endif /* ARCH_HAS...
Oct 2, 10:44 pm 2007
David Miller
Re: [PATCH 1/5] dma: add dma_flags_set_attr() to dma interface
From: akepner@sgi.com Acked-by: David S. Miller <davem@davemloft.net> -
Oct 2, 11:01 pm 2007
akepner
[PATCH 0/5] allow drivers to flush in-flight DMA v3
On Altix, DMA may be reordered between a device and host memory. This reordering can happen in the NUMA interconnect, and it usually results in correct operation and improved performance. In some situations it may be necessary to explicitly synchronize DMA from the device. This patchset allows a memory region to be mapped with a "dmabarrier". Writes to the memory region will cause in-flight DMA to be flushed, providing a mechanism to order DMA from a device. There are 5 patches in this p...
Oct 2, 10:43 pm 2007
Sonny
Traffic Controller Performance in Kernel 2.4 vs 2.6
Hello This is a repost, there seems to have a misunderstanding before. I hope this is the right place to ask this. Does any know if there is a substantial difference in the performance of the traffic controller between kernel 2.4 and 2.6. We tested it using 1 iperf server and use 250 and 500 clients, altering the burst. This is the set-up: iperf client - router (w/ traffic controller) - iperf server We use the top command inside the router to check the idle time of our router to see this. Th...
Oct 2, 10:43 pm 2007
David Chinner
Re: [PATCH 5/5] writeback: introduce writeback_control.more_...
Sure, but I'm asking about the effect of the patches on the (avg-write-speed == device-capabilities) case. I agree that they are necessary for timely syncing of data but I'm trying to understand what effect they have on the normal write case True, but if we know we are not congested and have more work I'm interested to know what tests show that pushing more I/O when you don't have block device congestion make the system go mad (and what mad means). It sounds to me like it's hiding (yet ano...
Oct 2, 10:41 pm 2007
David Chinner
Re: [PATCH 4/5] writeback: remove pages_skipped accounting i...
Yes, that's the case here. Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group -
Oct 2, 10:22 pm 2007
Jeff Garzik
[PATCH] Document x86-64 iommu kernel parameters
Signed-off-by: Jeff Garzik <jgarzik@redhat.com> --- After having to go figure out what some of these means, I figured I would save others the trouble. Some of these are "best guess" based on a quick scan of the code, so it certainly needs a sanity review before going upstream. diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 4d175c7..8afea9b 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -763,6 +...
Oct 2, 9:34 pm 2007
Randy Dunlap
Re: [PATCH] Document x86-64 iommu kernel parameters
"iommu" is listed in Documentation/x86_64/boot-options.txt along with more x86_64-specific boot options. --- ~Randy -
Oct 2, 10:22 pm 2007
Jeff Garzik
Re: [PATCH] Document x86-64 iommu kernel parameters
Ah! Well, seeing as how we already have a provision for arch-specific options in kernel-parameters.txt, and some less-obscure arch-specific options can be found there, I think an argument can be made for my patch :) Nonethless, if the maintainer disagrees, they can drop this patch I suppose. Jeff -
Oct 2, 10:30 pm 2007
Randy Dunlap
Re: [PATCH] Document x86-64 iommu kernel parameters
or maybe during the x86 merge, we can merge the docs also... -- ~Randy -
Oct 2, 11:42 pm 2007
KAMEZAWA Hiroyuki
[Question] How to represent SYSTEM_RAM in kerenel/resouce.c
Hi, Now, SYSTEM_RAM is registerd to resouce list and a user can see memory map from /proc/iomem, like following. == [kamezawa@drpq linux-2.6.23-rc8-mm2]$ grep RAM /proc/iomem 00000000-0009ffff : System RAM 00100000-03ffffff : System RAM 04000000-04f1bfff : System RAM 04f1c000-6b4b9fff : System RAM 6b4ba000-6b797fff : System RAM 6b798000-6b799fff : System RAM 6b79a000-6b79dfff : System RAM 6b79e000-6b79efff : System RAM 6b79f000-6b7fbfff : System RAM 6b7fc000-6c629fff : System RAM 6c62a000-6...
Oct 2, 9:31 pm 2007
Matthew Wilcox
Re: [Question] How to represent SYSTEM_RAM in kerenel/resouc...
Should probably be BUSY. Non-BUSY regions can have io resources requested underneath them, but you wouldn't want a PCI device to be assigned an address which overlaps with physical memory. -- Intel are signing my paycheques ... these opinions are still mine "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." -
Oct 2, 9:52 pm 2007
Ian Kumlien
[BUG] sky2 errors in 2.6.23-rc9-git1
Hi,=20 Sorry about this but the latest sky2 seems damned odd. I have been running with jumbo frames at home for quite some time but with this kernel that doesn't work, i instead get loads of: sky2 eth0: rx length error: status 0x5e60500 length 1510 sky2 eth0: rx length error: status 0x5e60500 length 1510 sky2 eth0: rx length error: status 0x5ea0500 length 1514 sky2 eth0: rx length error: status 0x5ea0500 length 1514 Where length can be just about anything from 800 -> MTU That is not enough...
Oct 2, 8:42 pm 2007
Stephen Hemminger
[PATCH] sky2: jumbo frame regression fix
Remove unneeded check that caused problems with jumbo frame sizes. The check was recently added and is wrong. When using jumbo frames the sky2 driver does fragmentation, so rx_data_size is less than mtu. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> --- a/drivers/net/sky2.c 2007-10-02 17:56:31.000000000 -0700 +++ b/drivers/net/sky2.c 2007-10-02 17:58:56.000000000 -0700 @@ -2163,9 +2163,6 @@ static struct sk_buff *sky2_receive(stru sky2->rx_next = (sky2->rx_next...
Oct 2, 9:02 pm 2007
Ian Kumlien
Re: [PATCH] sky2: jumbo frame regression fix
Confirmed working. Now running with 9k mtu with no errors, =3D) It also seems that the FIFO bug was the one that affected me before, Tested-by: Ian Kumlien <pomac@vapor.com> (if that tag exists now) Btw, Sorry but all mail directly to you will be blocked. I have yet to fix the relaying properly with isp:s blocking port 25 etc so for some of --=20 Ian Kumlien <pomac () vapor ! com> -- http://pomac.netswarm.net
Oct 2, 9:34 pm 2007
Jeff Garzik
Re: [PATCH] sky2: jumbo frame regression fix
2.6.23? 2.6.24? enquiring minds want to know... -
Oct 2, 9:07 pm 2007
Sonny
Kernel 2.4 vs 2.6 Traffic Controller performance
Hello I hope this is the right place to ask this.Does any know if there is a substantial difference in the performance of the traffic controller between kernel 2.4 and 2.6. We tested it using 1 iperf server and use 250 and 500 clients, altering the burst. We use the top command to check the idle time of our router to see this. The results we got from the 2.4 kernel shows around 65-70% idle time while the 2.6 shows 60-65% idle time. We tried to use MRTG and we're not getting any results either. We wa...
Oct 2, 8:05 pm 2007
Stephen Hemminger
Re: Kernel 2.4 vs 2.6 Traffic Controller performance
On Wed, 3 Oct 2007 08:05:30 +0800 Some related thoughts: 1. Make sure you have the iperf yield fix in place. Otherwise iperf eats cpu. 2. Proper mailing lists are: netdev@vger.kernel.org and lartc@mailman.ds9a.nl 3. The latest versions of 2.6 use different clock measurement that should be better than older 2.4 (where there are three choices). The new clock is finer resolution (at slightly higher overhead), which should make accuracy higher but might increase cpu usage. -- Stephen Hemmi...
Oct 2, 8:17 pm 2007
Rusty Russell
[PATCH 0/5] Boot protocol changes
Hi all, Jeremy had some boot changes for bzImages, but buried in there was an update to the boot protocol to support Xen and lguest (and kvm-lite). I've copied those fairly simple patches, and if HPA is happy I'd like to push them for 2.6.24 (after correcting for the Great Arch Merge of course). Thanks, Rusty. -
Oct 2, 7:34 pm 2007
Jeremy Fitzhardinge
Re: [PATCH 0/5] Boot protocol changes
Ah, good. I was thinking about reviving this work. The main problem is that sticking an ELF header at the 1 meg mark (the address of the bzImage "payload") breaks 32-bit bootloaders which think they can just jump to 32-bit code there. I started a conversation with Eric at KS about it, but we didn't reach any conclusions. This series looks like a good start for Xen, but we still need to work out where to stash the metadata which normally lives in ELF notes. Using ELF is convenient for Xen bec...
Oct 2, 7:46 pm 2007
H. Peter Anvin
Re: [PATCH 0/5] Boot protocol changes
This sounds like another good reason to do the ELF image as the postcompression image. The interface to the embedded compression routine is then unchanged, and we get the "full vmlinux" with any notes that belongs there. I'll try to get an implementation of that done -- it really shouldn't be very hard. -hpa -
Oct 2, 7:53 pm 2007
Jeremy Fitzhardinge
Re: [PATCH 0/5] Boot protocol changes
Please explain what you're proposing again, because my memory of your plan from last time wouldn't help in this case. Are you proposing that the bzImage contains compressed data that its expecting the bootloader to decompress? Won't that completely break backwards compatibility? If we don't care about backwards compatibility with old bootloaders, then it doesn't matter what we do one way or the other. J -
Oct 2, 7:56 pm 2007
H. Peter Anvin
Re: [PATCH 0/5] Boot protocol changes
No, not at all. I'm proposing that the existing bzImage format be retained, but that the payload of the decompressor (already a gzip file) simply be vmlinux.gz -- i.e. a gzip compressed ELF file, notes and all. A pointer in the header will point to the offset of the payload (this is new, obviously.) The decompression stub is adjusted to expect an ELF image, instead of a raw binary. Existing bootloaders (16- or 32-bit) simply load the bzImage the way they do now; new bootloaders have th...
Oct 2, 8:43 pm 2007
Jeremy Fitzhardinge
Re: [PATCH 0/5] Boot protocol changes
OK, but that has the same problem as making the payload an ELF file: 32-bit bootloaders which simply jump to 1M will be jumping into data rather than code - and I got the impression from taking to Eric at KS that there are such bootloaders. If that's not an issue, then I still think the payload should be a plain ELF file (possibly self-decompressing, or just a plain uncompressed vmlinux, if that's what's desired). Still think making a protected-mode bootloader do the decompression is the wro...
Oct 2, 8:58 pm 2007
H. Peter Anvin
Re: [PATCH 0/5] Boot protocol changes
It would be cleaner to actually parse the ELF; it's only a handful of lines of code (we don't have to support arbitrary placement of sections, Uhm, no it doesn't. Those bootloaders jump to the decompressor, not to It doesn't have to if it doesn't want to; it only needs to do so if it wants to access the kernel as an ELF. Again, it has the advantage that the ELF is the real vmlinux, no funnies. -hpa -
Oct 2, 9:03 pm 2007
H. Peter Anvin
Re: [PATCH 0/5] Boot protocol changes
Slight correction: it does, of course, break loaders which root through the bzImage for a gzip header and decode that themselves and place in memory. These loaders are pretty broken, though; they can't deal with the fact that the physical address of the kernel is configurable, for one thing. -hpa -
Oct 2, 8:46 pm 2007
H. Peter Anvin
Re: [PATCH 0/5] Boot protocol changes
Acked-by: H. Peter Anvin <hpa@zytor.com> -hpa -
Oct 2, 7:44 pm 2007
Rusty Russell
[PATCH 1/5] update boot spec to 2.07
Proposed updates for version 2.07 of the boot protocol. This includes: load_flags.KEEP_SEGMENTS- flag to request/inhibit segment reloads hardware_subarch - what subarchitecture we're booting under hardware_subarch_data - per-architecture data The intention of these changes is to make booting a paravirtualized kernel work via the normal Linux boot protocol. The intention is that the bzImage payload can be a properly formed ELF file, so that the bootloader can use its ELF notes and Phdrs to get m...
Oct 2, 7:35 pm 2007
Rusty Russell
[PATCH 2/5] add WEAK() for creating weak asm labels
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- include/linux/linkage.h | 6 ++++++ 1 file changed, 6 insertions(+) =================================================================== --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -34,6 +34,12 @@ name: #endif +#ifndef WEAK +#define WEAK(name) \ + .weak name; \ + name: +#endif + #define KPROBE_ENTRY(name) \ .pushsection .k...
Oct 2, 7:35 pm 2007
Rusty Russell
[PATCH 3/5] i386: paravirt boot sequence
This patch uses the updated boot protocol to do paravirtualized boot. If the boot version is >= 2.07, then it will do two things: 1. Check the bootparams loadflags to see if we should reload the segment registers and clear interrupts. This is appropriate for normal native boot and some paravirtualized environments, but inapproprate for others. 2. Check the hardware architecture, and dispatch to the appropriate kernel entrypoint. If the bootloader doesn't set this, then we ...
Oct 2, 7:36 pm 2007
Rusty Russell
[PATCH 4/5] Revert lguest magic and use hook in head.S
Version 2.07 of the boot protocol uses 0x23C for the hardware_subarch field, that for lguest is "1". This allows us to use the standard boot entry point rather than the "GenuineLguest" string hack. This entry point also clears the BSS and copies the boot parameters and commandline for us, saving more code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/lguest.c | 31 ++++--------------------------- arch/i386/kernel/head.S | 8 ++++++++ drivers...
Oct 2, 7:39 pm 2007
Rusty Russell
[PATCH 5/5] lguest: loading bzImage directly
Now arch/i386/boot/compressed/head.S understands the hardware_platform field, we can directly execute bzImages. No more horrific unpacking code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/lguest.c | 97 ++++++++++++-------------------------- arch/i386/boot/compressed/head.S | 6 ++ drivers/lguest/lguest.c | 5 + 3 files changed, 42 insertions(+), 66 deletions(-) diff -r b0480fd71a72 Documentation/lguest/lguest.c --- a/Documentation/...
Oct 2, 7:40 pm 2007
Guillaume Chazarain
[PATCH] Handle errors in sync_sb_inodes()
Hello, Currently it is possible for some errors to be detected at write-back time but not reported to the program as shown by the following script using the included make_file.c. ---------8<---------8<---------8<---------8<---------8<---------8<--------- #!/bin/sh # We binary search the size of a file in 40M filesystem that can cause # the missed error. MIN=5000000 MAX=50000000 rm fs.40M dd if=/dev/zero of=fs.40M bs=40M count=0 seek=1 status=noxfer mkfs.ext2 -F fs.40M...
Oct 2, 6:57 pm 2007
Guillaume Chazarain
Re: [PATCH] Handle errors in sync_sb_inodes()
> + mapping_set_error(mapping, ret); And of course, s/ret/err/ :-( -- Guillaume -
Oct 2, 7:03 pm 2007
Frederic Lepied
Announce: hardware4linux.info
Hello, Now that the site has a few months of life, it's time to advertize its existence to the kernel community! The site is collecting hardware compatibilities and incompatibilities with Linux distributions in a collaborative way: users run a hardware collector program, upload the resulting file and then rate and comment how their hardware works. You could be interested in the pages around kernel modules: http://hardware4linux.info/modules/. You can also access to the information concerning PCI a...
Oct 2, 5:53 pm 2007
Matt Mackall
pgd_none_or_clear_bad strangeness?
In lib/pagewalk.c, I've been using the various forms of {pgd,pud,pmd}_none_or_clear_bad while walking page tables as that seemed the canonical way to do things. Lately (eg with -rc7-mm1), these have been triggering messages like "bad pgd 0x01e3" and causing nasty double faults. It appears this is actually triggered at the pmd level (mm/memory.c:116), though it appears to produce the wrong message. Has something changed here? I'm pretty sure this used to work! Is this not a kosher thing to do? Does...
Oct 2, 6:20 pm 2007
Jimmy
Point of gpl-only modules (flame)
I know I'll be getting hell for this, I must be a masochist. Anyway, I've been trying to figure out what purpose the gpl-only code serves. What good comes out of disabling people from probing modules that do not have a gpl-compatible license? Of cause, I would love to see more hardware manufactures release either full specs, or GPL'd drivers, and I'm sure it will happen, in time. But until then, why are people wasting time writing code to inhibit those who do not agree with them on licensing? ...
Oct 2, 5:49 pm 2007
Arjan van de Ven
Re: Point of gpl-only modules (flame)
On Tue, 02 Oct 2007 23:49:04 +0200 DO NOT FEED THE TROLL. -
Oct 2, 7:25 pm 2007
Jan Engelhardt
Re: Point of gpl-only modules (flame)
find /lib/modules/`uname -r` -iname '*.ko' | wc -l: 2021 Proprietary modules that I can think of: 5 to 10 It's not even 1/2 a !#$ percent. (Though knowing that many modules are for Not a kernel problem. (That said, MS would probably face yet another antitrust charge if it did that. Perhaps you intended to buy a game console instead? That said, no one is restraining you. You can edit the kernel source and rip out all the GPL checks. On top, it's not like the ati or nvidia blob...
Oct 2, 7:01 pm 2007
Olivier Galibert
Re: Point of gpl-only modules (flame)
People who do binary-only drivers have a much better chance of not doing a derivative work when they only use non-EXPORT_GPL exports, and as a result not being in the wrong legally. OG. -
Oct 2, 6:58 pm 2007
Anders
PROBLEM: high load average when idle
Hi! My computer suffers from high load average when the system is idle, introduced by commit 44d306e1508fef6fa7a6eb15a1aba86ef68389a6 . Long story: 2.6.20 and all later versions I've tested, including 2.6.21 and 2.6.22, make the load average high. Even when the computer is totally idle (I've tested in single user mode), the load average end up at ~0.30. The computer is still responsive, and the only fault seems to be the too high load average. All versions up to and including 2.6.19.7 is fine...
Oct 2, 5:37 pm 2007
Arjan van de Ven
Re: PROBLEM: high load average when idle
can you tell me if you're tuning ext3 in any way to have a much shorter timeout than the standard 5 seconds? -
Oct 2, 7:13 pm 2007
previous daytodaynext day
October 1, 2007October 2, 2007October 3, 2007