From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org
Cc: paulus@samba.org
Subject: Re: [PATCH 2/15] powerpc, celleb: Basic supports for Celleb
Date: Tue, 12 Dec 2006 13:42:51 +0100 [thread overview]
Message-ID: <200612121342.52306.arnd@arndb.de> (raw)
In-Reply-To: <200612120314.kBC3EZqp026763@toshiba.co.jp>
On Tuesday 12 December 2006 04:14, Ishizaki Kou wrote:
> @@ -0,0 +1,10 @@
> +obj-$(CONFIG_PPC_CELLEB) += interrupt.o iommu.o setup.o \
> + lpar.o beat.o pci.o \
> + scc_epci.o scc_uhc.o
Generally, you should only add the file names to the Makefile in the
patch that actually adds the respective files, so that applying only
part of the series does not prevent you from building the kernel.
> +int64_t beat_errno;
> +
As mentioned in the last review, this global errno causes trouble
sooner or later, so you should get rid of it. Any beat hcall that
returns an error condition should do that as the return value
or through a pointer argument.
> +#ifdef CONFIG_SERIAL_TXX9
> +#include <linux/tty.h>
> +#include <linux/serial.h>
> +#include <linux/serial_core.h>
> +#endif
> +
The serial_txx9 stuff should not really be in setup.c, but in a separate
file. There are other pieces of code that could be moved to separate
source files (e.g. nvram, time, udbg), but this one is the most
obvious candidate.
> +static void celleb_show_cpuinfo(struct seq_file *m)
> +{
> + struct device_node *root;
> + const char *model = "";
> +
> + root = of_find_node_by_path("/");
> + if (root)
> + model = get_property(root, "model", NULL);
> + seq_printf(m, "machine\t\t: CHRP %s\n", model);
> + of_node_put(root);
> +}
I'm not sure if it's a good idea to claim CHRP compatibility
here. Is that a workaround for a specific incompatibility? Normally,
I'd say you should print "machine\t\t: BEAT %s\n" or
"machine\t\t: Celleb %s\n", since you are definitely not running
a CHRP compatible firmware.
> Index: linux-powerpc-git/include/asm-powerpc/firmware.h
> diff -u linux-powerpc-git/include/asm-powerpc/firmware.h:1.1.1.1 linux-powerpc-git/include/asm-powerpc/firmware.h:1.2
> --- linux-powerpc-git/include/asm-powerpc/firmware.h:1.1.1.1 Wed Dec 6 08:24:04 2006
> +++ linux-powerpc-git/include/asm-powerpc/firmware.h Wed Dec 6 08:43:16 2006
> @@ -61,6 +61,8 @@
> FW_FEATURE_ISERIES_ALWAYS = FW_FEATURE_ISERIES | FW_FEATURE_LPAR,
> FW_FEATURE_PS3_POSSIBLE = FW_FEATURE_LPAR | FW_FEATURE_PS3_LV1,
> FW_FEATURE_PS3_ALWAYS = FW_FEATURE_LPAR | FW_FEATURE_PS3_LV1,
> + FW_FEATURE_CELLEB_POSSIBLE = FW_FEATURE_LPAR,
> + FW_FEATURE_CELLEB_ALWAYS = FW_FEATURE_LPAR,
> FW_FEATURE_NATIVE_POSSIBLE = 0,
> FW_FEATURE_NATIVE_ALWAYS = 0,
> FW_FEATURE_POSSIBLE =
It's probably reasonable to define a FW_FEATURE_BEAT that is always set
for celleb, so you can test that feature before attempting a beat
specific hcall.
Arnd <><
next prev parent reply other threads:[~2006-12-12 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 3:14 [PATCH 2/15] powerpc, celleb: Basic supports for Celleb Ishizaki Kou
2006-12-12 12:42 ` Arnd Bergmann [this message]
2006-12-14 1:38 ` Ishizaki Kou
2006-12-14 5:37 ` Benjamin Herrenschmidt
2006-12-14 7:37 ` David Woodhouse
2006-12-14 7:43 ` Benjamin Herrenschmidt
2006-12-14 8:24 ` Geert Uytterhoeven
2006-12-12 17:26 ` Geoff Levand
2006-12-14 1:52 ` Ishizaki Kou
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=200612121342.52306.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linuxppc-dev@ozlabs.org \
--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).