[PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A)

Simon Horman horms at verge.net.au
Mon Nov 10 16:14:30 PST 2014


On Mon, Nov 10, 2014 at 09:01:45AM +0100, Geert Uytterhoeven wrote:
> On Thu, Nov 6, 2014 at 2:26 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> >> >> +     {
> >> >> +             .virtual        = 0xffe40000,
> >> >> +             .pfn            = __phys_to_pfn(0xffe40000),
> >> >> +             .length         = SZ_64K,
> >> >> +             .type           = MT_DEVICE_NONSHARED
> >> >> +     },
> >> >> +#endif /* CONFIG_DEBUG_R8A7779_SCIF2 */
> >> >>  };
> >> >
> >> > This should be done automatically if you call debug_ll_io_init() or
> >> > have an empty map_io() callback.
> >>
> >> On r8a7779 map_io() is not empty, but it didn't cover the SCIF registers,
> >> cfr. the commit log:
> >>
> >> > >   4. On SoCs using the legacy machine_desc.map_io(), an identity mapping
> >> > >      of the SCIF(A) registers must be set up in .map_io(). On all but
> >> > >      r8a7779 this was already done.
> >
> > Ok. You can of course just call debug_ll_io_init() manually from the
> > map_io function, it will create the same mapping.
> 
> Good idea, that would indeed simpify the logic, both in Kconfig and
> renesas-scif.S.
> 
> I gave it a try. On Armadillo it worked, on kzm9g it didn't.
> Probably the virtual address choice is wrong.
> 
> As I can't test it on the other boards using map_io(), I'd like to
> keep this as-is
> for now. We can migrate them gradually later.

I am happy to assist with testing but I think your incremental approach is
a good one: lets merge something that works and then improve on it.



More information about the linux-arm-kernel mailing list