Re: [PATCHv6 2/8] dma-debug: add support for resource mappings

2016-05-19 Thread Robin Murphy
On 19/05/16 12:21, Niklas Söderlund wrote: Hi Konrad, Thanks for your feedback. On 2016-05-17 10:50:02 -0400, Konrad Rzeszutek Wilk wrote: +void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t size, + int direction, dma_addr_t dma_addr) +{ +

Re: [PATCHv6 2/8] dma-debug: add support for resource mappings

2016-05-19 Thread Niklas Söderlund
Hi Konrad, Thanks for your feedback. On 2016-05-17 10:50:02 -0400, Konrad Rzeszutek Wilk wrote: > > +void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t > > size, > > + int direction, dma_addr_t dma_addr) > > +{ > > + struct dma_debug_entry *entry; >

Re: [PATCHv6 2/8] dma-debug: add support for resource mappings

2016-05-17 Thread Konrad Rzeszutek Wilk
> +void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t > size, > + int direction, dma_addr_t dma_addr) > +{ > + struct dma_debug_entry *entry; > + > + if (unlikely(dma_debug_disabled())) > + return; > + > + entry =

[PATCHv6 2/8] dma-debug: add support for resource mappings

2016-05-09 Thread Niklas Söderlund
A MMIO mapped resource can not be represented by a struct page so a new debug type is needed to handle this. This patch add such type and functionality to add/remove entries and how to translate them to a physical address. Signed-off-by: Niklas Söderlund