Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1414971

Re: [RFC v2 1/4] ARM: mm: add early page table attribute modification ability

From Russell King - ARM Linux <linux@armlinux.org.uk>
Newsgroups linux.kernel
Subject Re: [RFC v2 1/4] ARM: mm: add early page table attribute modification ability
Date 2016-06-06 14:20 +0200
Message-ID <rH1FD-4Qb-7@gated-at.bofh.it> (permalink)
References <rGToJ-7AE-3@gated-at.bofh.it> <rGToK-7AE-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jun 05, 2016 at 11:20:26PM -0400, Bill Mills wrote:
> Allow early-init to specify modifications to be made to the boot time page
> table. Any modifications specified will be done with MMU off at the same
> time that any Phy<->Virt fixup is done.

I think this is rather over-engineered - do we need to support multiple
different fixups to the page tables like this?

Given how this has grown, I think it would be better to duplicate the
existing swapper_pg_dir, modify the new copy, and then have the
pv-fixup-asm code merely copy the new to the old with the MMU off.
That way, the only two things that the assembly code has to do is to
deal with the page table update, and updating the TTBR registers.
Most of the complexity can then be kept in the C code.

I think we also need to modify the TTBCR to match the sharability of
memory - currently, TTB walks will be inner sharable, but my
understanding is that if we switch memory to be outer sharable, we
also need to update the TTB walks to match.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC v2 0/4] ARM LPAE Outer Shared v2 Bill Mills <wmills@ti.com> - 2016-06-06 05:30 +0200
  [RFC v2 1/4] ARM: mm: add early page table attribute modification ability Bill Mills <wmills@ti.com> - 2016-06-06 05:30 +0200
    Re: [RFC v2 1/4] ARM: mm: add early page table attribute  modification ability Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-06-06 14:20 +0200
      Re: [RFC v2 1/4] ARM: mm: add early page table attribute modification  ability William Mills <wmills@ti.com> - 2016-06-06 14:40 +0200
  [RFC v2 2/4] ARM: mm: Add LPAE support for outer shared Bill Mills <wmills@ti.com> - 2016-06-06 05:30 +0200

csiph-web