public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Albert Herranz <albert_herranz@yahoo•es>
Cc: linuxppc-dev@lists•ozlabs.org
Subject: Re: [RFC PATCH v2 08/11] powerpc: gamecube/wii: early debugging using usbgecko
Date: Mon, 30 Nov 2009 07:15:42 +0100	[thread overview]
Message-ID: <4B13630E.1050405@yahoo.es> (raw)
In-Reply-To: <4B135D3D.9030006@yahoo.es>

Albert Herranz wrote:
> Benjamin Herrenschmidt wrote:
>> On Sat, 2009-11-28 at 21:43 +0100, Albert Herranz wrote:
>>> +        * Prepare again the same BAT for MMU_init.
>>> +        * This allows udbg I/O to continue working after the MMU is
>>> +        * turned on for real.
>>> +        *
>>> +        * We are assuming here that exi_io_base is identity mapped.
>>> +        */
>>> +       addr = ((unsigned long)exi_io_base) & 0xffff0000;
>>> +       setbat(1, addr, addr, 128*1024, PAGE_KERNEL_NCG); 
>> How do you prevent that from overlapping otherwise valid kernel
>> mappings ?
>>
> 
> ug_udbg_init() is called from ppc_md.init_early.

  ^^^
This got here, but although it's true it doesn't apply here :)

> It doesn't overlap any valid kernel mappings because exi_io_base is hardcoded to an i/o region not used yet by the kernel.
> See udbg_early_grab_exi_io_base().
> The setbat just prepares again, exactly in the same way, the same BAT that we got setup by setup_usbgecko_bat in head_32.S.
> 

Thanks,
Albert

  parent reply	other threads:[~2009-11-30  6:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-28 20:43 [RFC PATCH v2 00/11] powerpc: nintendo gamecube support Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 01/11] powerpc: gamecube/wii: usbgecko bootwrapper console support Albert Herranz
2009-12-01 18:28   ` Segher Boessenkool
2009-11-28 20:43 ` [RFC PATCH v2 02/11] powerpc: gamecube: device tree Albert Herranz
2009-12-01 18:29   ` Segher Boessenkool
2009-11-28 20:43 ` [RFC PATCH v2 03/11] powerpc: gamecube: bootwrapper bits Albert Herranz
2009-12-01 18:31   ` Segher Boessenkool
2009-11-28 20:43 ` [RFC PATCH v2 04/11] powerpc: gamecube/wii: introduce GAMECUBE_COMMON Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 05/11] powerpc: gamecube/wii: declare as non-coherent platforms Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 06/11] powerpc: gamecube/wii: do not include PCI support Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 07/11] powerpc: gamecube/wii: udbg support for usbgecko Albert Herranz
2009-12-01 18:33   ` Segher Boessenkool
2009-11-28 20:43 ` [RFC PATCH v2 08/11] powerpc: gamecube/wii: early debugging using usbgecko Albert Herranz
2009-11-29 23:18   ` Benjamin Herrenschmidt
2009-11-30  5:50     ` Albert Herranz
2009-11-30  6:14       ` Benjamin Herrenschmidt
2009-11-30  6:28         ` Albert Herranz
2009-11-30  6:42           ` Benjamin Herrenschmidt
2009-11-30  6:15       ` Albert Herranz [this message]
2009-11-28 20:43 ` [RFC PATCH v2 09/11] powerpc: gamecube/wii: flipper interrupt controller support Albert Herranz
2009-11-29 23:21   ` Benjamin Herrenschmidt
2009-12-01 18:35   ` Segher Boessenkool
2009-12-01 19:48     ` Albert Herranz
2009-12-02 20:56       ` Benjamin Herrenschmidt
2009-12-02 23:29         ` Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 10/11] powerpc: gamecube: platform support Albert Herranz
2009-11-28 20:43 ` [RFC PATCH v2 11/11] powerpc: gamecube: default config Albert Herranz

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=4B13630E.1050405@yahoo.es \
    --to=albert_herranz@yahoo$(echo .)es \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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