public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] Fix SCI console output
Date: Mon, 01 Jun 2009 15:38:57 +0000	[thread overview]
Message-ID: <20090601153857.GB32746@linux-sh.org> (raw)
In-Reply-To: <4.2.0.58.J.20090601123439.00b52740@router.itonet.co.jp>

On Mon, Jun 01, 2009 at 08:34:52PM +0900, SUGIOKA Toshinobu wrote:
> At 13:59 09/06/01 +0900, Paul Mundt <lethal@linux-sh.org> wrote:
> >On Mon, Jun 01, 2009 at 12:53:41PM +0900, SUGIOKA Toshinobu wrote:
> >> Fix SCI transmission sequence in console output function.
> >> 
> >> Signed-off-by: Toshinobu Sugioka <sugioka@itonet.co.jp>
> >> 
> >This change was intentional. Do you have a use case where this causes a
> >problem? 
> 
> On my SH7709S board, after switching to console(SCI), output is not correct.
> Linefeed code output twice, and the first character of the next line is
> not seen.
> 
> Like follows.
> --- console output ----
> SuperH SCI(F) driver initialized
> sh-sci: ttySC0 at MMIO 0xfffffe80 (irq = 25) is a sci
> console handover: boot [bios0] -> real [ttySC0]
> 
> h-sci: ttySC1 at MMIO 0xa4000150 (irq = 59) is a scif
> 
> h-sci: ttySC2 at MMIO 0xa4000140 (irq = 55) is a irda
> 
> oop: module loaded
> ---------------------------
> Atfer applying the patch, I got normal output.
> 
Interesting, so it seems to be a SCI issue. I've never seen that on any
SCIF or SCIFA at least.

> According to sh7709s hardware manual, SCI tx flow-chart says
>  (1) wait until TDRE=1
>  (2) write data to TDR
>  (3) clear TDRE
> 
> Why did you changed the sequence ?
> 
We changed it as there is an inherent race with that sequence under QEMU,
and as no hardware seemed to have an issue with the ordering change, it
was easier to do that than try to fix up the QEMU mess. But in light of
the fact SH-3 SCI has issues, we will have to revert to the previous
ordering with your patch and give the QEMU issues a bit of a rethink.

Thanks for the report!

      parent reply	other threads:[~2009-06-01 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01  3:53 [PATCH] Fix SCI console output SUGIOKA Toshinobu
2009-06-01  4:59 ` Paul Mundt
2009-06-01 11:34 ` SUGIOKA Toshinobu
2009-06-01 15:38 ` Paul Mundt [this message]

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=20090601153857.GB32746@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox