From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by kanga.kvack.org (Postfix) with ESMTP id 545316B0036 for ; Thu, 4 Sep 2014 15:15:16 -0400 (EDT) Received: by mail-la0-f43.google.com with SMTP id gi9so1607924lab.30 for ; Thu, 04 Sep 2014 12:15:15 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id ee12si3808753lbd.126.2014.09.04.12.15.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 12:15:14 -0700 (PDT) Received: by mail-la0-f41.google.com with SMTP id s18so1644825lam.14 for ; Thu, 04 Sep 2014 12:15:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1409857025.28990.125.camel@misato.fc.hp.com> References: <1409855739-8985-1-git-send-email-toshi.kani@hp.com> <1409855739-8985-5-git-send-email-toshi.kani@hp.com> <1409857025.28990.125.camel@misato.fc.hp.com> From: Andy Lutomirski Date: Thu, 4 Sep 2014 12:14:54 -0700 Message-ID: Subject: Re: [PATCH 4/5] x86, mm: Add set_memory_wt() for WT Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Toshi Kani Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , akpm@linuxfoundation.org, Arnd Bergmann , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Juergen Gross , Stefan Bader , Konrad Rzeszutek Wilk On Thu, Sep 4, 2014 at 11:57 AM, Toshi Kani wrote: > On Thu, 2014-09-04 at 11:57 -0700, Andy Lutomirski wrote: >> On Thu, Sep 4, 2014 at 11:35 AM, Toshi Kani wrote: >> > This patch adds set_memory_wt(), set_memory_array_wt(), and >> > set_pages_array_wt() for setting range(s) of memory to WT. >> > >> >> Possibly dumb question: I thought that set_memory_xyz was only for >> RAM. Is that incorrect? > > It works for non-RAM ranges as well. For instance, you can use > set_memory_xyz() to change cache attribute for a non-RAM range mapped by > ioremap_cache(). OK -- I didn't realize that was legal. Do you, by any chance, have a test driver for this? For example, something that lets your reserve some WT memory at boot and mmap it? I wouldn't mind getting some benchmarks, and I can even throw it at the NV-DIMM box that's sitting under my desk :) --Andy -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org