public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: "Ralph Blach" <ralph.blach@gmail•com>
To: "moris dong" <moris_dong@hotmail•com>
Cc: linuxppc-embedded@ozlabs•org
Subject: Re: Large Page Support, 2.6 kernel , PPC440
Date: Mon, 8 May 2006 08:36:43 -0400	[thread overview]
Message-ID: <b06339d40605080536u2b68eedya42531ad9761dc30@mail.gmail.com> (raw)
In-Reply-To: <BAY19-F90D433E50C500C4EF93CBF8B10@phx.gbl>

[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]

Morris,

A long time ago, I did this for a 405 and it involves much more than just
changing the page shift.

>From my memory, I will give you what I think you have to do.
1)you must go into tlb handling code and change it.  That is in the
header file 44x.S i beleive.
2)You have to change the pte directory sizes
3)You have to chage the linker script.
4)You have to change the size of the zero page.
5)you have to chage dcache flush routines, to cover the new page size.
You have to find where 4096/4095 is hard coded as the page size and change
it.

This  is no small job, and what you come up with will be very unsupported.
I beleive If you pin the kerel TLB you might get
the performance you need and this should be in the kernel config scripts.

Good luck,

Chip

On 5/1/06, moris dong <moris_dong@hotmail•com> wrote:
>
> Friends,
> My PPC440 (32bit) MMU supports multiple page sizes.
> For the default 4K pages, my 2.6.11 kernel compiles and boots just fine.
> I want to re-build it with large pages, to improve my application
> performance.
> I tried modifying PAGE_SHIFT in "page.h" to 13 (8K pages) and re-build my
> kernel.
> Compilation worked out fine, but my kernel does NOT boot, nor it prints
> anything to the console.
>
> Has anyone successfully compiled & booted a 2.6 kernel with pages larger
> than 4K ?
> What am I doing wrong ?
>
> Thanks a lot.
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs•org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>

[-- Attachment #2: Type: text/html, Size: 2352 bytes --]

  reply	other threads:[~2006-05-08 12:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 17:35 Large Page Support, 2.6 kernel , PPC440 moris dong
2006-05-08 12:36 ` Ralph Blach [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-01 17:34 moris dong
2006-04-30  8:17 moris dong
2006-04-30  8:15 moris dong

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=b06339d40605080536u2b68eedya42531ad9761dc30@mail.gmail.com \
    --to=ralph.blach@gmail$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    --cc=moris_dong@hotmail$(echo .)com \
    /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