[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ia64
Subject:    Re: pgprot_writecombine & shub 1.x
From:       Jesse Barnes <jbarnes () engr ! sgi ! com>
Date:       2005-01-20 16:42:31
Message-ID: 200501200842.32771.jbarnes () engr ! sgi ! com
[Download RAW message or body]

On Thursday, January 20, 2005 5:43 am, Hugo Kohmann wrote:
> X86 and X86_64 kernels rely on MTRR to enable writecombining. X86 and
> X86_64 systems supports WriteCombining using the PAT bit in the PTE, but
> this is not yet supported by Linux kernels. ( There are no PAGE_PAT bit
> defiend and the PAT MSR power on value does not include support for the WC
> attribute.) After changing the PAT MSR to enable WC, I can do:
>
> #define _PAGE_PAT  0x80 /* for AMD64 and X86 */
>   pgprot_val(vma->vm_page_prot) = pgprot_val(vma->vm_page_prot) |= 
> _PAGE_PAT;
>
> to set up a user space write combine map ( using mmmap())
>
> and
>
> __ioremap(ioaddr, size, _PAGE_PAT);
>
> To set up a kernel space write combine map.
>
> I can send the code to change the PAT MSR if anybody needs it - but I
> guess this is the wrong interest group (As this only works for
> x86/x86_64)

Yeah, I think this is the wrong list for that, but it definitely sounds 
useful.  You should send the code to Andi Kleen and see if he's interested in 
adding support for WC in the x86-64 codebase.

Jesse
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic