提交 2cb22e23 编写于 作者: B Bjorn Helgaas 提交者: Tony Luck

[IA64] allow WB /sys/.../legacy_mem mmaps

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: NBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 9b50ffb0
...@@ -659,8 +659,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma) ...@@ -659,8 +659,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma)
return -EINVAL; return -EINVAL;
prot = phys_mem_access_prot(NULL, vma->vm_pgoff, size, prot = phys_mem_access_prot(NULL, vma->vm_pgoff, size,
vma->vm_page_prot); vma->vm_page_prot);
if (pgprot_val(prot) != pgprot_val(pgprot_noncached(vma->vm_page_prot)))
return -EINVAL;
addr = pci_get_legacy_mem(bus); addr = pci_get_legacy_mem(bus);
if (IS_ERR(addr)) if (IS_ERR(addr))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册