Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174748
b: refs/heads/master
c: 2992e54
h: refs/heads/master
v: v3
  • Loading branch information
Suresh Siddha authored and Jesse Barnes committed Nov 4, 2009
1 parent 109187b commit 9960078
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a007b3791cdba3601d835ea10e68c14115b9afb
refs/heads/master: 2992e545ea006992ec9dc91c4fa996ce1e15f921
9 changes: 9 additions & 0 deletions trunk/arch/x86/pci/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,15 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
return -EINVAL;

prot = pgprot_val(vma->vm_page_prot);

/*
* Return error if pat is not enabled and write_combine is requested.
* Caller can followup with UC MINUS request and add a WC mtrr if there
* is a free mtrr slot.
*/
if (!pat_enabled && write_combine)
return -EINVAL;

if (pat_enabled && write_combine)
prot |= _PAGE_CACHE_WC;
else if (pat_enabled || boot_cpu_data.x86 > 3)
Expand Down

0 comments on commit 9960078

Please sign in to comment.