Re: [PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-04-05 Thread David Woodhouse
On Tue, 2017-04-04 at 16:36 -0500, Bjorn Helgaas wrote: > > --- a/arch/xtensa/kernel/pci.c > > +++ b/arch/xtensa/kernel/pci.c > > @@ -345,7 +345,7 @@ __pci_mmap_set_pgprot(struct pci_dev *dev, struct > > vm_area_struct *vma, > >   > >   /* Set to write-through */ > >   prot = (prot &

Re: [PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-04-05 Thread David Woodhouse
On Tue, 2017-04-04 at 16:36 -0500, Bjorn Helgaas wrote: > > --- a/arch/xtensa/kernel/pci.c > > +++ b/arch/xtensa/kernel/pci.c > > @@ -345,7 +345,7 @@ __pci_mmap_set_pgprot(struct pci_dev *dev, struct > > vm_area_struct *vma, > >   > >   /* Set to write-through */ > >   prot = (prot &

Re: [PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-04-04 Thread Bjorn Helgaas
On Wed, Mar 22, 2017 at 01:25:18PM +, David Woodhouse wrote: > From: David Woodhouse > > Most of the almost-identical versions of pci_mmap_page_range() silently > ignore the 'write_combine' argument and give uncached mappings. > > Yet we allow the PCIIOC_WRITE_COMBINE

Re: [PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-04-04 Thread Bjorn Helgaas
On Wed, Mar 22, 2017 at 01:25:18PM +, David Woodhouse wrote: > From: David Woodhouse > > Most of the almost-identical versions of pci_mmap_page_range() silently > ignore the 'write_combine' argument and give uncached mappings. > > Yet we allow the PCIIOC_WRITE_COMBINE ioctl in

[PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-03-22 Thread David Woodhouse
From: David Woodhouse Most of the almost-identical versions of pci_mmap_page_range() silently ignore the 'write_combine' argument and give uncached mappings. Yet we allow the PCIIOC_WRITE_COMBINE ioctl in /proc/bus/pci, expose the 'resourceX_wc' file in sysfs, and allow an

[PATCH 04/17] pci: Add arch_can_pci_mmap_wc() macro

2017-03-22 Thread David Woodhouse
From: David Woodhouse Most of the almost-identical versions of pci_mmap_page_range() silently ignore the 'write_combine' argument and give uncached mappings. Yet we allow the PCIIOC_WRITE_COMBINE ioctl in /proc/bus/pci, expose the 'resourceX_wc' file in sysfs, and allow an attempted mapping to