Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933410AbaGOT5V (ORCPT ); Tue, 15 Jul 2014 15:57:21 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:63386 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933253AbaGOT5T (ORCPT ); Tue, 15 Jul 2014 15:57:19 -0400 MIME-Version: 1.0 In-Reply-To: <1405452884-25688-4-git-send-email-toshi.kani@hp.com> References: <1405452884-25688-1-git-send-email-toshi.kani@hp.com> <1405452884-25688-4-git-send-email-toshi.kani@hp.com> From: Andy Lutomirski Date: Tue, 15 Jul 2014 12:56:57 -0700 Message-ID: Subject: Re: [RFC PATCH 3/11] x86, mm, pat: Change reserve_memtype() to handle WT type To: Toshi Kani Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andrew Morton , Arnd Bergmann , Konrad Rzeszutek Wilk , plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Stefan Bader , Dave Airlie , Borislav Petkov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 15, 2014 at 12:34 PM, Toshi Kani wrote: > This patch changes reserve_memtype() to handle the new WT type. > When (!pat_enabled && new_type), it continues to set either WB > or UC- to *new_type. When pat_enabled, it can reserve a given > non-RAM range for WT. At this point, it may not reserve a RAM > range for WT since reserve_ram_pages_type() uses the page flags > limited to three memory types, WB, WC and UC. FWIW, last time I looked at this, it seemed like all the fancy reserve_ram_pages stuff was unnecessary: shouldn't the RAM type be easy to track in the direct map page tables? --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/