Re: [PATCH v2 2/5] iommu: Implement of_iommu_get_resv_regions()

2021-07-30 Thread Will Deacon
On Sat, Jul 17, 2021 at 02:07:12PM +0300, Dmitry Osipenko wrote: > 16.07.2021 17:41, Rob Herring пишет: > > On Fri, Jul 2, 2021 at 8:05 AM Dmitry Osipenko wrote: > >> > >> 23.04.2021 19:32, Thierry Reding пишет: > >>> +void of_iommu_get_resv_regions(struct device *dev, struct list_head > >>>

Re: [PATCH v2 2/5] iommu: Implement of_iommu_get_resv_regions()

2021-07-17 Thread Dmitry Osipenko
16.07.2021 17:41, Rob Herring пишет: > On Fri, Jul 2, 2021 at 8:05 AM Dmitry Osipenko wrote: >> >> 23.04.2021 19:32, Thierry Reding пишет: >>> +void of_iommu_get_resv_regions(struct device *dev, struct list_head *list) >>> +{ >>> + struct of_phandle_iterator it; >>> + int err; >>> + >>> +

Re: [PATCH v2 2/5] iommu: Implement of_iommu_get_resv_regions()

2021-07-16 Thread Rob Herring
On Fri, Jul 2, 2021 at 8:05 AM Dmitry Osipenko wrote: > > 23.04.2021 19:32, Thierry Reding пишет: > > +void of_iommu_get_resv_regions(struct device *dev, struct list_head *list) > > +{ > > + struct of_phandle_iterator it; > > + int err; > > + > > + of_for_each_phandle(, err,

Re: [PATCH v2 2/5] iommu: Implement of_iommu_get_resv_regions()

2021-07-02 Thread Dmitry Osipenko
23.04.2021 19:32, Thierry Reding пишет: > +void of_iommu_get_resv_regions(struct device *dev, struct list_head *list) > +{ > + struct of_phandle_iterator it; > + int err; > + > + of_for_each_phandle(, err, dev->of_node, "memory-region", > "#memory-region-cells", 0) { > +

[PATCH v2 2/5] iommu: Implement of_iommu_get_resv_regions()

2021-04-23 Thread Thierry Reding
From: Thierry Reding This is an implementation that IOMMU drivers can use to obtain reserved memory regions from a device tree node. It uses the reserved-memory DT bindings to find the regions associated with a given device. If these regions are marked accordingly, identity mappings will be