Write Combining (Write Coalescing) on memory mapped I/O on IA64.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Steffen Persvold
Steffen> Just a repost since I didn't get any feedback. I've also Steffen> copied some auhtors I found in asm/io.h. I appologize for Steffen> any inconvenience, but this issue is quite important to us.
I didn't see anything fundamentally wrong with what you're trying to do, but I haven't looked at the code. Some debugging may be called for.
--david
Quoted 11 lines · David Mosberger
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Steffen Persvold
Steffen> Just a repost since I didn't get any feedback. I've also Steffen> copied some auhtors I found in
asm/io.h. I appologize for Steffen> any inconvenience, but this issue is quite important to us.I didn't see anything fundamentally wrong with what you're trying to do, but I haven't looked at the code. Some debugging may be called for.
Do you think it's easier to set up a region which is mapped all the time, so that ioremap_nocache() uses the already defined region 6 for uncached accesses and ioremap() uses this new region with "Write Coalescing" enabled ? How should I proceed to introduce such a region ?
Regards,
Signature · 4 lines
Steffen Persvold | Scali Computer AS | Try out the world's best mailto:[email protected] | http://www.scali.com | performing MPI implementation: Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 - Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >310MBytes/s and <4uS latency
Re: [Linux-ia64] Re: Write Combining (Write Coalescing) on memory mapped
In reply to David MosbergerQuoted 14 lines · Steffen Persvold
Quoted 11 lines · David Mosberger
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Steffen Persvold
Steffen> Just a repost since I didn't get any feedback. I've also Steffen> copied some auhtors I found in
asm/io.h. I appologize for Steffen> any inconvenience, but this issue is quite important to us.I didn't see anything fundamentally wrong with what you're trying to do, but I haven't looked at the code. Some debugging may be called for.
Quoted 5 lines
Do you think it's easier to set up a region which is mapped all the time, so that
ioremap_nocache()uses the already defined region 6 for uncached accesses andioremap()uses this new region with "Write Coalescing" enabled ? How should I proceed to introduce such a region ?
I haven't received any response. Does that mean that you guys don't even care about this issue ??
Regards,
Signature · 4 lines
Steffen Persvold | Scali Computer AS | Try out the world's best mailto:[email protected] | http://www.scali.com | performing MPI implementation: Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 - Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >300MBytes/s and <4uS latency
Re: [Linux-ia64] Re: Write Combining (Write Coalescing) on memory mapped
In reply to David MosbergerQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Steffen Persvold
Quoted 5 lines · Steffen> Steffen Persvold wrote:
Quoted 5 lines
Do you think it's easier to set up a region which is mapped all the time, so that
ioremap_nocache()uses the already defined region 6 for uncached accesses andioremap()uses this new region with "Write Coalescing" enabled ? How should I proceed to introduce such a region ?
Steffen> I haven't received any response. Does that mean that you Steffen> guys don't even care about this issue ??
I thought I had answered this already: I don't think it's worthwhile to use up another region for write combining mappings. There are no free regions at the moment at any rate. It's quite possible that we'll get rid of the uncached region at some point in the future as well.
--david
Re: [Linux-ia64] Re: Write Combining (Write Coalescing) on memory mapped
In reply to David MosbergerQuoted 11 lines · David Mosberger
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Steffen Persvold
Quoted 5 lines · Steffen> Steffen Persvold wrote:
Quoted 5 lines
Do you think it's easier to set up a region which is mapped all the time, so that
ioremap_nocache()uses the already defined region 6 for uncached accesses andioremap()uses this new region with "Write Coalescing" enabled ? How should I proceed to introduce such a region ?
Quoted 9 lines
Steffen> I haven't received any response. Does that mean that you Steffen> guys don't even care about this issue ??
I thought I had answered this already: I don't think it's worthwhile to use up another region for write combining mappings. There are no free regions at the moment at any rate. It's quite possible that we'll get rid of the uncached region at some point in the future as well.
OK, so what you're saying is that the final solution is to use a i386 kind of approach to the problem ? This is what my original post (which included a patch) tried to do, but I didn't get it too work. I know you gave me feedback on this David, saying that it just may need some debugging. Does anyone on the list have the time to just look through the patch and try to analyze what's going wrong (or maybe just give me some hints on what to look for) ? The Oops I get is :
"Unable to handle kernel paging request at virtual address 0xa00000000015c000"
Thanks,
Signature · 4 lines
Steffen Persvold | Scali Computer AS | Try out the world's best mailto:[email protected] | http://www.scali.com | performing MPI implementation: Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 - Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >300MBytes/s and <4uS latency
Re: [Linux-ia64] Re: Write Combining (Write Coalescing) on memory mapped
In reply to David MosbergerQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Steffen Persvold
Steffen> This is what my original post (which included a patch) Steffen> tried to do, but I didn't get it too work. I know you gave Steffen> me feedback on this David, saying that it just may need Steffen> some debugging. Does anyone on the list have the time to Steffen> just look through the patch and try to analyze what's going Steffen> wrong (or maybe just give me some hints on what to look Steffen> for) ?
I don't, not in the near future at least.
There is nothing magical about debugging on ia64. Just use the normal
techniques: try to narrow down what's triggering the problem, e.g., via binary search, printk, etc. A kdb patch is also available.
--david
Re: [Linux-ia64] Re: Write Combining (Write Coalescing) on memory mapped
In reply to David MosbergerQuoted 11 lines · David Mosberger
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Steffen Persvold
Steffen> This is what my original post (which included a patch) Steffen> tried to do, but I didn't get it too work. I know you gave Steffen> me feedback on this David, saying that it just may need Steffen> some debugging. Does anyone on the list have the time to Steffen> just look through the patch and try to analyze what's going Steffen> wrong (or maybe just give me some hints on what to look Steffen> for) ?
Quoted 6 lines
I don't, not in the near future at least.
There is nothing magical about debugging on ia64. Just use the normal
techniques: try to narrow down what's triggering the problem, e.g., via binary search, printk, etc. A kdb patch is also available.
Yep, I know. But I managed to solve it without the use of kdb. It was just a question of using the right __pgprot flags. I've attached a new patch, it's made against 2.4.4 but it also applies cleanly to a vanilla 2.4.9 tree. I guess this means that we don't have to use the uncached region 6 anymore; ioremap() could be modified to use __ia64_ioremap() with the _PAGE_MA_WC attribute and ioremap_nocache() to with the _PAGE_MA_UC attribute. Any comments ?
I sure hope that this is patch that you would consider going into the main ia64 tree.
Regards,
Signature · 4 lines
Steffen Persvold | Scali Computer AS | Try out the world's best mailto:[email protected] | http://www.scali.com | performing MPI implementation: Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 - Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >300MBytes/s and <4uS latency
arch/ia64/mm/Makefile renamed from arch/ia64/mm/Makefile.~1~ +1 -1
@@ -9,6 +9,6 @@ O_TARGET := mm.o -obj-y := init.o fault.o tlb.o extable.o +obj-y := init.o fault.o ioremap.o tlb.o extable.o include $(TOPDIR)/Rules.make
arch/ia64/mm/ioremap.c renamed from arch/ia64/mm/ioremap.c.~1~ +154 -0
154 lines not on this page · raw message
arch/ia64/kernel/ia64_ksyms.c renamed from arch/ia64/kernel/ia64_ksyms.c.~1~ +2 -0
@@ -39,6 +39,8 @@EXPORT_SYMBOL (ip_fast_csum);#include <asm/io.h> +EXPORT_SYMBOL (__ia64_ioremap); +EXPORT_SYMBOL (__ia64_iounmap);EXPORT_SYMBOL (__ia64_memcpy_fromio);EXPORT_SYMBOL (__ia64_memcpy_toio);EXPORT_SYMBOL (__ia64_memset_c_io);
include/asm-ia64/io.h renamed from include/asm-ia64/io.h.~1~ +3 -0
@@ -386,6 +386,9 @@#define ioremap_nocache (o,s) ioremap(o,s) +extern void *__ia64_ioremap (unsigned long offset,unsigned long size,unsigned long flags); +extern void __ia64_iounmap (void *addr); +# ifdef __KERNEL__/*