From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A)
Date: Tue, 11 Nov 2014 00:14:30 +0000 [thread overview]
Message-ID: <20141111001427.GA29665@verge.net.au> (raw)
In-Reply-To: <CAMuHMdVJMB7Nz6dR414yG7jyneMbeoaRW43JQUKmW1u7i-=fbA@mail.gmail.com>
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@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.
WARNING: multiple messages have this Message-ID (diff)
From: horms@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A)
Date: Tue, 11 Nov 2014 09:14:30 +0900 [thread overview]
Message-ID: <20141111001427.GA29665@verge.net.au> (raw)
In-Reply-To: <CAMuHMdVJMB7Nz6dR414yG7jyneMbeoaRW43JQUKmW1u7i-=fbA@mail.gmail.com>
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@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.
next prev parent reply other threads:[~2014-11-11 0:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 11:38 [PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A) Geert Uytterhoeven
2014-11-06 11:38 ` Geert Uytterhoeven
2014-11-06 11:53 ` Arnd Bergmann
2014-11-06 11:53 ` Arnd Bergmann
2014-11-06 12:33 ` Geert Uytterhoeven
2014-11-06 12:33 ` Geert Uytterhoeven
2014-11-06 13:26 ` Arnd Bergmann
2014-11-06 13:26 ` Arnd Bergmann
2014-11-10 0:59 ` Simon Horman
2014-11-10 0:59 ` Simon Horman
2014-11-10 8:03 ` Geert Uytterhoeven
2014-11-10 8:03 ` Geert Uytterhoeven
2014-11-11 0:15 ` Simon Horman
2014-11-11 0:15 ` Simon Horman
2014-11-10 8:01 ` Geert Uytterhoeven
2014-11-10 8:01 ` Geert Uytterhoeven
2014-11-11 0:14 ` Simon Horman [this message]
2014-11-11 0:14 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141111001427.GA29665@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.