Re: [PATCH][2.6-mm] setup_identity_mappings depends on zone init.

William Lee Irwin III
2004-04-04T09:28:07Z

On Mon, 15 Mar 2004, Andrew Morton wrote:
>> Calling page_address_init() earlier isn't the fix though - pmd pages aren't
>> in highmem so we should never have got that far. Looks like the pgd or the
>> pmd page contains garbage. Did you try it without CONFIG_DEBUG_SLAB?
>> Nick was seeing slab 0x6b patterns on the NUMAQ, inside the pmd, so there's
>> some consistency there. We do have one early setup fix from Manfred, but
>> it's unlikely to cure this.
>> I'll have a play with your .config, see if I can reproduce it. If not I'll
>> squeeze off -mm3 and would ask you to retest on that if poss.

On Sun, Apr 04, 2004 at 05:07:36AM -0400, Zwane Mwaikambo wrote:
> I spent a bit of time on this today, and the problem appears to be
> that we haven't done mem_map or zone initialisation, so
> mem_map[pfn]->flags is also wrong (e.g. PG_highmem tests). This is
> still triple faulting on 2.6.5-rc3-mm4 on my boxes. CONFIG_HIGHMEM
> and any setup without 4MB pages should do it. The following patch got
> an approving nod from Bill.

A nicer fix, though with potentially too high a "cleanup factor", would
be a pte_bootmem_alloc_map() or some such equivalent of pte_alloc_map().

-- wli