From: Michael Ellerman <mpe@ellerman.id.au>
To: Christophe Leroy <christophe.leroy@csgroup.eu>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>
Cc: cp <carlojpisani@gmail.com>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc/40x: Map 32Mbytes of memory at startup
Date: Tue, 28 Sep 2021 10:19:28 +1000 [thread overview]
Message-ID: <87mtnx1rhr.fsf@mpe.ellerman.id.au> (raw)
In-Reply-To: <e2b142ad4a44535d5aa81b0c00c5f05f312f9097.1632738876.git.christophe.leroy@csgroup.eu>
Christophe Leroy <christophe.leroy@csgroup.eu> writes:
> As reported by Carlo, 16Mbytes is not enough with modern kernels
> that tend to be a bit big, so map another 16M page at boot.
I guess we're not expecting systems with less than 32MB, so making it
unconditional is OK?
cheers
> diff --git a/arch/powerpc/kernel/head_40x.S b/arch/powerpc/kernel/head_40x.S
> index 7d72ee5ab387..5fce4680d2d3 100644
> --- a/arch/powerpc/kernel/head_40x.S
> +++ b/arch/powerpc/kernel/head_40x.S
> @@ -650,7 +650,7 @@ start_here:
> b . /* prevent prefetch past rfi */
>
> /* Set up the initial MMU state so we can do the first level of
> - * kernel initialization. This maps the first 16 MBytes of memory 1:1
> + * kernel initialization. This maps the first 32 MBytes of memory 1:1
> * virtual to physical and more importantly sets the cache mode.
> */
> initial_mmu:
> @@ -687,6 +687,12 @@ initial_mmu:
> tlbwe r4,r0,TLB_DATA /* Load the data portion of the entry */
> tlbwe r3,r0,TLB_TAG /* Load the tag portion of the entry */
>
> + li r0,62 /* TLB slot 62 */
> + addis r4,r4,SZ_16M
> + addis r3,r3,SZ_16M
> + tlbwe r4,r0,TLB_DATA /* Load the data portion of the entry */
> + tlbwe r3,r0,TLB_TAG /* Load the tag portion of the entry */
> +
> isync
>
> /* Establish the exception vector base
> --
> 2.31.1
next prev parent reply other threads:[~2021-09-28 0:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 10:34 [PATCH] powerpc/40x: Map 32Mbytes of memory at startup Christophe Leroy
2021-09-28 0:07 ` cp
2021-09-28 0:19 ` Michael Ellerman [this message]
2021-09-28 0:28 ` cp
-- strict thread matches above, loose matches on Subject: below --
2021-09-25 9:49 ppc32 doesn't boot when linkaddr=0x00900000 cp
2021-09-27 19:20 ` [PATCH] powerpc/40x: Map 32Mbytes of memory at startup cp
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=87mtnx1rhr.fsf@mpe.ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=benh@kernel.crashing.org \
--cc=carlojpisani@gmail.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.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