Devicetree
 help / color / mirror / Atom feed
From: Nicolas Pitre <nico@fluxnic.net>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Catalin Marinas <catalin.marinas@arm.com>,
	devicetree-discuss <devicetree-discuss@lists.ozlabs.org>,
	Philippe Robin <Philippe.Robin@arm.com>,
	David Rusling <David.Rusling@arm.com>,
	Mitch Bradley <wmb@firmworks.com>,
	Jeremy Kerr <jeremy.kerr@canonical.com>,
	Dave P Martin <Dave.Martin@arm.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: RFC: ARM Boot standard for passing device tree blob
Date: Fri, 26 Mar 2010 15:30:06 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.00.1003261435460.694@xanadu.home> (raw)
In-Reply-To: <fa686aa41003261113o7cd8612eh9b51904114902a3a@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1652 bytes --]

On Fri, 26 Mar 2010, Grant Likely wrote:

> On Fri, Mar 26, 2010 at 11:43 AM, Mitch Bradley <wmb@firmworks.com> wrote:
> > Catalin Marinas wrote:
> >> On Thu, 2010-03-25 at 21:04 +0000, Russell King - ARM Linux wrote:
> >>> On Wed, Mar 24, 2010 at 09:11:56AM -0600, Grant Likely wrote:
> >>>> *IRQs disabled
> >>>> *MMU off
> >>>> *Instruction cache either on or off
> >>>> *Data cache turned off
> >>>
> >>> Would recommend saying "Data cache(s) turned off" so that L2 cache is
> >>> included.
> >>
> >> There are platforms where the L2 cache is turned on by the boot monitor
> >> (secure monitor) and Linux has no control over it (I think OMAP).
> >
> > What is the reason for turning off the data caches?  Leaving all caches
> > turned on and coherent with one another has always worked well for me at the
> > interface from firmware to a booted program.
> 
> Data cache off is specified in Documentation/arm/Booting in the Linux
> source tree and I used that document as a starting point to get
> discussion going.  I don't have a technical argument either way.
> 
> Russell, what is the reason for having the data cache off?

At least on machines with a VIVT cache, you need to have the MMU enabled 
for the data cache to be enabled.  That means a page table set up 
somewhere in memory, and then the kernel would need to know where that 
page table is not to overwrite it until the kernel has set its own page 
table, etc.  This makes the booting requirements more complex for very 
little gain.

So by mandating that the MMU be off (implying that the dcache has to be 
disabled too) then the kernel can set it up without restrictions.


Nicolas

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2010-03-26 19:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 15:11 RFC: ARM Boot standard for passing device tree blob Grant Likely
2010-03-25 21:04 ` Russell King - ARM Linux
     [not found]   ` <20100325210409.GH24984-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2010-03-25 23:40     ` David Gibson
2010-03-26  0:23       ` Jeremy Kerr
2010-03-26  3:24     ` Grant Likely
2010-03-26 13:37   ` Catalin Marinas
     [not found]     ` <1269610665.807.51.camel-uqmqopRKlSLZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2010-03-26 17:43       ` Mitch Bradley
     [not found]         ` <4BACF238.3040405-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2010-03-26 18:13           ` Grant Likely
2010-03-26 19:30             ` Nicolas Pitre [this message]
     [not found]               ` <alpine.LFD.2.00.1003261435460.694-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2010-03-26 19:52                 ` Grant Likely
     [not found]                   ` <fa686aa41003261252u7dc31bb6nca2e77ae8feb4355-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-03-26 23:03                     ` Russell King - ARM Linux
2010-03-29 11:24                       ` Dave P. Martin
2010-03-30  0:26                         ` Jamie Lokier
     [not found]                           ` <20100330002638.GI9876-yetKDKU6eevNLxjTenLetw@public.gmane.org>
2010-03-30 13:32                             ` Dave P. Martin
2010-03-26 23:00           ` Russell King - ARM Linux
2010-03-31  1:10         ` Ben Dooks

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=alpine.LFD.2.00.1003261435460.694@xanadu.home \
    --to=nico@fluxnic.net \
    --cc=Dave.Martin@arm.com \
    --cc=David.Rusling@arm.com \
    --cc=Philippe.Robin@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jeremy.kerr@canonical.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@arm.linux.org.uk \
    --cc=wmb@firmworks.com \
    /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