lkml.org 
[lkml]   [2007]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: pgprot_writecombine() and PATs on x86
Date
"Michael S. Tsirkin" <mst@dev.mellanox.co.il> writes:

>> So in general the pci prefetchable attribute means write-combining as
>> well as prefetching is safe. A sane BIOS will allocate prefetchable
>> BARS contiguously in the address space. So on a good day you
>> can just use one MTRR to map all of the prefetchable BARs as write-combining.
>
> Good point, and sounds easy enough.
> So why does not linux do it automatically then where possible?

It does when we have support in the page tables. The MTRRs appear
to complex to use automatically. Getting the all of the memory
set to write-back using the can be a chore. If things were truly
straight forward every BIOS would setup write-combining automatically.

> There are sure to be some broken devices, but if some device
> can't live with WC, we can always disable WC system-wide.

Yes.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-04-26 08:19    [W:0.684 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site