From: David Gibson <david@gibson.dropbear.id.au>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] [POWERPC] More useful cputable defaults
Date: Mon, 12 May 2008 11:33:57 +1000 [thread overview]
Message-ID: <20080512013357.GA5227@yookeroo.seuss> (raw)
In-Reply-To: <20080505052405.23E38DDE0A@ozlabs.org>
On Mon, May 05, 2008 at 03:22:27PM +1000, Benjamin Herrenschmidt wrote:
> Changes the cputable so that various CPU families that have an exclusive
> CONFIG_ option have a more sensible default entry to patch if the specific
> processor hasn't been identified.
>
> This makes the kernel more generally useful when booted on an unknown
> PVR for things like new 4xx variants.
This patch (as commit 76bc080ef5a34aedb63e1691f28c6b42f3468e4e) leaves
the last cputable entry for E200 and E500 without a closing brace.
[...]
> -#elif defined(CONFIG_E500)
> + { /* default match */
> + .pvr_mask = 0x00000000,
> + .pvr_value = 0x00000000,
> + .cpu_name = "(generic E200 PPC)",
> + .cpu_features = CPU_FTRS_E200,
> + .cpu_user_features = COMMON_USER_BOOKE |
> + PPC_FEATURE_HAS_EFP_SINGLE |
> + PPC_FEATURE_UNIFIED_CACHE,
> + .dcache_bsize = 32,
> + .machine_check = machine_check_e200,
> + .platform = "ppc5554",
-> here
> +#endif /* CONFIG_E200 */
> +#ifdef CONFIG_E500
[snip]
> -#if !CLASSIC_PPC
> { /* default match */
> .pvr_mask = 0x00000000,
> .pvr_value = 0x00000000,
> - .cpu_name = "(generic PPC)",
> - .cpu_features = CPU_FTRS_GENERIC_32,
> - .cpu_user_features = PPC_FEATURE_32,
> + .cpu_name = "(generic E500 PPC)",
> + .cpu_features = CPU_FTRS_E500,
> + .cpu_user_features = COMMON_USER_BOOKE |
> + PPC_FEATURE_HAS_SPE_COMP |
> + PPC_FEATURE_HAS_EFP_SINGLE_COMP,
> .icache_bsize = 32,
> .dcache_bsize = 32,
> + .machine_check = machine_check_e500,
> .platform = "powerpc",
> - }
-> and here.
> -#endif /* !CLASSIC_PPC */
> +#endif /* CONFIG_E500 */
> #endif /* CONFIG_PPC32 */
> };
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
prev parent reply other threads:[~2008-05-12 1:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 5:22 [PATCH] [POWERPC] More useful cputable defaults Benjamin Herrenschmidt
2008-05-12 1:33 ` David Gibson [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=20080512013357.GA5227@yookeroo.seuss \
--to=david@gibson.dropbear.id.au \
--cc=benh@kernel.crashing.org \
--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).