From: Thomas Huth <thuth@redhat.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
boqun.feng@gmail.com
Subject: Re: [PATCH] powerpc: Kconfig.cputype: Disallow TUNE_CELL on LE systems
Date: Mon, 21 Sep 2015 12:07:27 +0200 [thread overview]
Message-ID: <55FFD6DF.2080300@redhat.com> (raw)
In-Reply-To: <1442819926.354.5.camel@ellerman.id.au>
On 21/09/15 09:18, Michael Ellerman wrote:
> On Fri, 2015-09-18 at 16:17 +0200, Thomas Huth wrote:
>> It looks somewhat weird that you can enable TUNE_CELL on little
>> endian systems, so let's disable this option with CPU_LITTLE_ENDIAN.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>> I first thought that it might be better to make this option depend
>> on PPC_CELL instead ... but I guess it's a bad idea to depend a
>> CPU option on a platform option? Alternatively, would it make
>> sense to make it depend on (GENERIC_CPU || CELL_CPU) instead?
>
> Hmm, it's a little backward, but I think it would be fine, and less confusing
> for users. Both PS3 and Cell select PPC_CELL, so it would work in both those
> cases.
It's just that when you step through the kernel config (e.g. with "make
menuconfig"), you normally step through the "Processor support" first,
and then later do the "Platform support". I think most users won't look
back into "Processor support" again once they already reached the
"Platform support" section, so this TUNE_CELL option then might appear
unnoticed when you enable a Cell platform under "Platform support".
That's why thought that CPU_LITTLE_ENDIAN or (GENERIC_CPU || CELL_CPU)
might be the better option here... but if you think PPC_CELL is the
better way to go, I'm also fine to change my patch to use this instead
(in the end, TUNE_CELL is likely hardly used anymore nowadays, so it
should not be that bad if it does not appear "immediately" to the user).
Thomas
next prev parent reply other threads:[~2015-09-21 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 14:17 [PATCH] powerpc: Kconfig.cputype: Disallow TUNE_CELL on LE systems Thomas Huth
2015-09-21 7:18 ` Michael Ellerman
2015-09-21 10:07 ` Thomas Huth [this message]
2015-10-06 10:05 ` Michael Ellerman
2015-10-06 10:48 ` Thomas Huth
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=55FFD6DF.2080300@redhat.com \
--to=thuth@redhat.com \
--cc=benh@kernel.crashing.org \
--cc=boqun.feng@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.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).