[Top] [All Lists]

Re: [PATCH] Revert fixrange_init() limiting to the FIXMAP region.

To: "Yegoshin, Leonid" <>
Subject: Re: [PATCH] Revert fixrange_init() limiting to the FIXMAP region.
From: Kevin Cernekee <>
Date: Mon, 9 Apr 2012 20:58:48 -0700
Cc: "Hill, Steven" <>, "" <>, "" <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PowEYgX6gyftAFlxbGK9y8HNaa6DaHNTOeeY1SmORBs=; b=ofSoHTNnRkoSu9yGIwPV8PgzoVDEGJ6bcSspfkSTCvua0xeGUMnQbEjvqRkvfz2Nbo NNpSQ/+hjYku1E/laP6pgIhW+Epe5+/rrbaOIrpSdyDKjawhuOn9htkDAK6j0yWIBVpa FEBnNSC4iVJc9rwK58g/u0Sa8FAuTWLXJy2nHitd3q/+5iK2qAlJBQHo2B77jWM39Jub oVqd32nvfIUxx88SgS4zTvQcLAhnT56ugQFLaTs4Uka7yWGsGJ8HdOBw/OfYfoWv74AZ Ebxo7zC8TDBM89uzFRzKTyfsvUV8+RkiXOxlrkkjp8gAjC8kqqbU37eH5WZSao/hk0aX OcaQ==
In-reply-to: <>
References: <> <> <>
On Mon, Apr 9, 2012 at 7:59 PM, Yegoshin, Leonid <> wrote:
> Sorry, it was a couple of months ago while I worked on HIGHMEM with cache 
> aliasing. I got a soak test failure and rollback of this patch helped.

Is it possible that HIGHMEM / kmap was using pages above the PKMAP
range, and the bug was masked by re-enabling the old behavior (create
PMDs all the way up to the top of the virtual address space)?

>Besides that it is clearly wrong to add unmodified memory area length to 
>aligned start address of that memory. It seems easy to fix but I hadn't time.

On the pre-464fd83e implementation, that would have been a problem
because of the "vaddr != end" terminating condition.

On the post-464fd83e implementation, it should be fine because we are
checking for "vaddr < end" instead.  This means we should get just
enough PMDs to cover the requested range.

I just checked one of my systems and it is calling
fixrange_init(0xff000000, 0xff039000, pgd_base).  This creates a
single PMD covering a 4MB range, as expected.

<Prev in Thread] Current Thread [Next in Thread>