Hi Laurent, On Mon, Dec 15, 2014 at 7:44 PM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > On Monday 15 December 2014 14:07:52 Geert Uytterhoeven wrote: >> On Mon, Dec 15, 2014 at 1:13 AM, Laurent Pinchart wrote: >> > Add the seven IPMMU instances found in the r8a7791 to DT with a disabled >> > status. >> > >> > Signed-off-by: Laurent Pinchart >> > <laurent.pinchart+rene...@ideasonboard.com> >> >> The addresses and interrupt numbers look OK to me. >> However, my comment about the "0x800" offset is still valid. >> Shouldn't we have two register blocks, and let the driver use only the >> second one? >> >> If you ignore, feel free to add my >> Acked-by: Geert Uytterhoeven <geert+rene...@glider.be> > > I don't want to ignore your comment, but I don't know what to do here :-/ The > datasheet lacks detailed information about secure vs. non-secure mode and how > the two register sets are supposed to interoperate and be handled by the > operating system.
When in doubt, the safest thing to do is "describe the hardware in DT". The datasheet says there are two register sets of size 0x800, so IMHO we should have both in DT. Whether the driver only uses the second bank due to our limited understanding of the hardware is something different. We can still fix the driver later, if needed. Fixing the DT is, ... well... complicated ;-) Following the rule "describe the hardware in DT", I would also add the second interrupt (marked "SEC") for the DS0, MX, SY0, and GP IPMMU instances. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu