[IA64] allow WB /sys/.../legacy_mem mmaps
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Fri, 30 Mar 2007 16:34:44 +0000 (10:34 -0600)
committerTony Luck <tony.luck@intel.com>
Fri, 30 Mar 2007 16:38:03 +0000 (09:38 -0700)
Allow cacheable mmaps of legacy_mem if WB access is supported for the region.
The "legacy_mem" file often contains a shadow option ROM, and some versions of
X depend on this.

Tim Yamin <plasm@roo.me.uk> reported that this change fixes X on a Dell
PowerEdge 3250.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/pci/pci.c

index 0e83f3b419b5597e8f56899cb238a121a071ac5e..9f635896d2527b86a1a84702dfa8030369511afc 100644 (file)
@@ -659,8 +659,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma)
                return -EINVAL;
        prot = phys_mem_access_prot(NULL, vma->vm_pgoff, size,
                                    vma->vm_page_prot);
-       if (pgprot_val(prot) != pgprot_val(pgprot_noncached(vma->vm_page_prot)))
-               return -EINVAL;
 
        addr = pci_get_legacy_mem(bus);
        if (IS_ERR(addr))