All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A)
Date: Thu, 06 Nov 2014 13:26:45 +0000	[thread overview]
Message-ID: <20777697.th35W64j5e@wuerfel> (raw)
In-Reply-To: <CAMuHMdUU7XK57a70HWP0+nfwaZ-sXQ5EC2CShgmxwx6JKnuyPQ@mail.gmail.com>

On Thursday 06 November 2014 13:33:58 Geert Uytterhoeven wrote:
> 
> On Thu, Nov 6, 2014 at 12:53 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> > On Thursday 06 November 2014 12:38:30 Geert Uytterhoeven wrote:
> >> Add serial port debug macros for the SCIF(A) serial ports.
> >> This includes all shmobile SoCs, except for EMEV2.
> 
> > I don't object to this patch going in, but have you looked at doing
> > just earlycon instead? We are still missing some fixmap changes
> 
> I was thinking about earlycon support...
> 
> > before that works on arm32, but in general, early looks nicer than
> 
> Good to know there are still some parts missing.
> 
> > debug_ll because it doesn't require you to build for a particular
> > machine, with the downside that it's not available as early during
> > boot.
> 
> Hence we're gonna need debug_ll anyway?
> So far I only needed it for real early issues.

It depends on whether you were missing it in the past. shmobile
so far only supports early_platform, which isn't quite as
early as earlycon. If early_platform was good enough then
earlycon will work too.

> >> +     {
> >> +             .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.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3/resend] ARM: shmobile: Add early debugging support using SCIF(A)
Date: Thu, 06 Nov 2014 14:26:45 +0100	[thread overview]
Message-ID: <20777697.th35W64j5e@wuerfel> (raw)
In-Reply-To: <CAMuHMdUU7XK57a70HWP0+nfwaZ-sXQ5EC2CShgmxwx6JKnuyPQ@mail.gmail.com>

On Thursday 06 November 2014 13:33:58 Geert Uytterhoeven wrote:
> 
> On Thu, Nov 6, 2014 at 12:53 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> > On Thursday 06 November 2014 12:38:30 Geert Uytterhoeven wrote:
> >> Add serial port debug macros for the SCIF(A) serial ports.
> >> This includes all shmobile SoCs, except for EMEV2.
> 
> > I don't object to this patch going in, but have you looked at doing
> > just earlycon instead? We are still missing some fixmap changes
> 
> I was thinking about earlycon support...
> 
> > before that works on arm32, but in general, early looks nicer than
> 
> Good to know there are still some parts missing.
> 
> > debug_ll because it doesn't require you to build for a particular
> > machine, with the downside that it's not available as early during
> > boot.
> 
> Hence we're gonna need debug_ll anyway?
> So far I only needed it for real early issues.

It depends on whether you were missing it in the past. shmobile
so far only supports early_platform, which isn't quite as
early as earlycon. If early_platform was good enough then
earlycon will work too.

> >> +     {
> >> +             .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.

	Arnd

  reply	other threads:[~2014-11-06 13:26 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 [this message]
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
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=20777697.th35W64j5e@wuerfel \
    --to=arnd@arndb.de \
    --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.