Introduction of write-combined memory type mappings.
Introduction of VR_WRITE_COMBINED, PTATTR_WRITE_COMBINED and modification to the memobj's get_page() interface so that Linux communicates back mapping flags (such as write-combined).
This commit is contained in:
@ -264,7 +264,11 @@ static unsigned long attr_to_l1attr(enum ihk_mc_pt_attribute attr)
|
||||
{
|
||||
if (attr & PTATTR_UNCACHABLE) {
|
||||
return (attr & ATTR_MASK) | PFL1_PCD | PFL1_PWT;
|
||||
} else {
|
||||
}
|
||||
else if (attr & PTATTR_WRITE_COMBINED) {
|
||||
return (attr & ATTR_MASK) | PFL1_PWT;
|
||||
}
|
||||
else {
|
||||
return (attr & ATTR_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user