linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org, dja@axtens.net
Subject: Re: [PATCH] powerpc/powernv: Remove powernv RTAS support
Date: Sat, 28 Mar 2015 21:57:20 +1100	[thread overview]
Message-ID: <1427540240.7547.1.camel@ellerman.id.au> (raw)
In-Reply-To: <87k2y24n4f.fsf@linux.vnet.ibm.com>

On Fri, 2015-03-27 at 18:24 +0530, Aneesh Kumar K.V wrote:
> Michael Ellerman <mpe@ellerman.id.au> writes:
> 
> > The powernv code has some conditional support for running on bare metal
> > machines that have no OPAL firmware, but provide RTAS.
> >
> > No released machines ever supported that, and even in the lab it was
> > just a transitional hack in the days when OPAL was still being
> > developed.
> >
> > So remove the code.
> 
> So when we select CONFIG_PPC_PSERIES, we end up selecting
> CONFIG_PPC_RTAS. What is the expected behaviour there for powernv ? 

After this patch, the expected behaviour is that the powernv platform code
won't use RTAS, even if it's there. And that's fine because no real powernv
machines have RTAS.

In a perfect world the RTAS code would be isolated in platforms/pseries, but
it's used on other platforms, so it's a bit messier than that. But the expected
behaviour is that the powernv code won't use RTAS, even if the code is still
built in.

Is that what you meant?

> Can we use RTAS call from powernv code if rtas node is present in device
> tree ? 

Yes you can, if you build with CONFIG_PPC_RTAS=y. Though when I add a
powernv_defconfig (soon), it won't have CONFIG_PPC_RTAS.

> Or do we want to make sure powernv always use OPAL call ?

It depends what you mean by "powernv". Once this patch is applied the powernv
*platform* code will not use RTAS.

There may still be other code that can be built into a kernel and booted on
powernv that then uses RTAS. That's fine, if it makes sense for someone, I
don't think we need to prevent that happening.

> For example, right now we will use rtas_node get-term-char and
> put-term-char even with this patch applied.

Well you will *if* your machine has RTAS, and you have CONFIG_HVC_RTAS=y and/or
CONFIG_UDBG_RTAS_CONSOLE=y.

So I think that's fine?

cheers

      reply	other threads:[~2015-03-28 10:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12  6:27 [PATCH] powerpc/powernv: Remove powernv RTAS support Michael Ellerman
2015-03-25  5:25 ` Benjamin Herrenschmidt
2015-03-25  5:46 ` Stewart Smith
2015-03-25  9:42   ` Michael Ellerman
2015-04-07  5:36     ` Stewart Smith
2015-03-27 12:54 ` Aneesh Kumar K.V
2015-03-28 10:57   ` Michael Ellerman [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=1427540240.7547.1.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=dja@axtens.net \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).