Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2015-01-23 Thread Bjorn Helgaas
On Wed, Jan 21, 2015 at 06:44:56PM +, Lorenzo Pieralisi wrote: > Hi Bjorn, > > On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: > > On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: > > > The introduction of pci_mmap_fits() in commit: > > > > > > b5ff7df3df9efab

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2015-01-21 Thread Lorenzo Pieralisi
Hi Bjorn, On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: > On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: > > The introduction of pci_mmap_fits() in commit: > > > > b5ff7df3df9efab511244d5a299fce706c71af48 > > "Check mapped ranges on sysfs resource files" > >

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-25 Thread Benjamin Herrenschmidt
On Fri, 2014-11-21 at 10:51 -0700, Bjorn Helgaas wrote: > I think this patch is the right thing to do. I'm going to try to write > patches for microblaze, mips, powerpc, and sparc that implement their > pci_resource_to_user() in terms of pcibios_resource_to_bus() (the patches > are easy; it's the

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-25 Thread Lorenzo Pieralisi
On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: > On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: > > The introduction of pci_mmap_fits() in commit: > > > > b5ff7df3df9efab511244d5a299fce706c71af48 > > "Check mapped ranges on sysfs resource files" > > > > allowed

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-21 Thread Bjorn Helgaas
On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: > The introduction of pci_mmap_fits() in commit: > > b5ff7df3df9efab511244d5a299fce706c71af48 > "Check mapped ranges on sysfs resource files" > > allowed to check for valid range mappings of PCI resources to user space > when mapp

[RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-13 Thread Lorenzo Pieralisi
The introduction of pci_mmap_fits() in commit: b5ff7df3df9efab511244d5a299fce706c71af48 "Check mapped ranges on sysfs resource files" allowed to check for valid range mappings of PCI resources to user space when mapping PCI resources through the sysfs filesystem. The mapping of resources through