Hi Azuma-san,
On Wed September 5 2007 9:14 am, Kevin Corry wrote:
> Add register definitions to the Cell MMIO register structures that are
> needed by the Cell signal-routing patch.
>
> This is a modification of the patch posted on the cbe-oss-dev mailing list
> by Takaki Azuma ([EMAIL PROTECTED]) and Takayuki Uchikawa
> ([EMAIL PROTECTED]). Only the registers that are used by the
> new Perfmon/Cell code are included in this version.
>
> Signed-off-by: Kevin Corry <[EMAIL PROTECTED]>
> ---
>
> arch/powerpc/platforms/cell/cbe_regs.c | 27 +++++++++++++++++++++++++++
> arch/powerpc/platforms/cell/cbe_regs.h | 31
> +++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 2
> deletions(-)
>
> diff --git a/arch/powerpc/platforms/cell/cbe_regs.c
> b/arch/powerpc/platforms/cell/cbe_regs.c index c8f7f00..f198bd6 100644
> --- a/arch/powerpc/platforms/cell/cbe_regs.c
> +++ b/arch/powerpc/platforms/cell/cbe_regs.c
> @@ -207,6 +225,11 @@ void __init cbe_fill_regs_map(struct cbe_regs_map
> *map) for_each_node_by_type(np, "mic-tm")
> if (of_get_parent(np) == be)
> map->mic_tm_regs = of_iomap(np, 0);
> +
> + for_each_node_by_type(np, "ppe-mmio")
> + if (of_get_parent(np) == be)
> + map->ppe_priv_regs = of_iomap(np, 0);
> +
> } else {
> struct device_node *cpu;
> /* That hack must die die die ! */
This is likely what Arnd was referring to in his comment on cbe-oss-dev last
week. The "ppe-mmio" node should already exist in the device-tree, and will
have the necessary register map offset and length, so you don't need add the
BP_BASE_OFFSET_PPE_MMIO_REGS definition . This works on the IBM Cell Blades.
To see if it should work on your platform, check for the
directory /proc/device-tree/[EMAIL PROTECTED]/[EMAIL PROTECTED] If that exists,
it should work for your system as well.
Thanks,
--
Kevin Corry
[EMAIL PROTECTED]
http://www.ibm.com/linux/
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/