All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] sparc64: Netra AX1105 loses console output while
Date: Tue, 16 Nov 2010 20:01:01 +0000	[thread overview]
Message-ID: <20101116.120101.15223441.davem@davemloft.net> (raw)
In-Reply-To: <20101107132051.GE19881@here>

From: Adrien Mazarguil <maz@p0d.org>
Date: Sun, 7 Nov 2010 14:20:51 +0100

> While trying recent kernels on a Sun Netra AX1105 board, I noticed that the
> boot process stopped before init had a chance to run. Using git bisect, I
> narrowed this regression down to that commit:
 ...
> On this board, the new prom_nbputchar() fails at some point in the boot
> process and no subsequent output is shown. Using either the older function
> in place of this one or a static buffer solve that issue. This seems related
> to this paragraph in the above commit log:
...
> Looks like it is still required by older boards, or maybe something else
> needs to be fixed? This is strange because everything works fine until the
> first call to schedule() just before the last assembly part of switch_to()
> macro.

Thanks for tracking down this problem.

The real issue is that on older boards, passing larger than 32-bit
addresses to prom calls (generally) doesn't work correctly.

That's why using a static variable instead of a kernel stack variable
fixes the problem.

This is a larger can of worms than just these two console I/O
routines, let me do the audit and I'll give you a patch to test.

Thanks!

  reply	other threads:[~2010-11-16 20:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-07 13:20 [PATCH] sparc64: Netra AX1105 loses console output while booting Adrien Mazarguil
2010-11-16 20:01 ` David Miller [this message]
2010-12-03 18:18 ` [PATCH] sparc64: Netra AX1105 loses console output while David Miller
2010-12-04  9:34 ` [PATCH] sparc64: Netra AX1105 loses console output while booting Adrien Mazarguil
2010-12-04 19:53 ` [PATCH] sparc64: Netra AX1105 loses console output while David Miller

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=20101116.120101.15223441.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=sparclinux@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 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.