Re: [PATCH v2 2/3] lib: logic_pio: Reject access to unregistered CPU MMIO regions

2019-03-25 Thread John Garry
On 23/03/2019 19:15, Andy Shevchenko wrote: On Wed, Mar 20, 2019 at 8:14 PM John Garry wrote: Currently when accessing logical indirect PIO addresses in logic_{in, out}{,s}, we first ensure that the region is registered. However, no such check exists for CPU MMIO regions. The CPU MMIO

Re: [PATCH v2 2/3] lib: logic_pio: Reject access to unregistered CPU MMIO regions

2019-03-23 Thread Andy Shevchenko
On Wed, Mar 20, 2019 at 8:14 PM John Garry wrote: > > Currently when accessing logical indirect PIO addresses in > logic_{in, out}{,s}, we first ensure that the region is registered. > > However, no such check exists for CPU MMIO regions. The CPU MMIO regions > would be registered by the PCI host

[PATCH v2 2/3] lib: logic_pio: Reject access to unregistered CPU MMIO regions

2019-03-20 Thread John Garry
Currently when accessing logical indirect PIO addresses in logic_{in, out}{,s}, we first ensure that the region is registered. However, no such check exists for CPU MMIO regions. The CPU MMIO regions would be registered by the PCI host (when PCI_IOBASE is defined) in pci_register_io_range(). We