Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754871AbbBKWZ1 (ORCPT ); Wed, 11 Feb 2015 17:25:27 -0500 Received: from mga03.intel.com ([134.134.136.65]:15415 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754576AbbBKWZ0 (ORCPT ); Wed, 11 Feb 2015 17:25:26 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,561,1418112000"; d="scan'208";a="665089294" Message-ID: <54DBD6D5.9060804@intel.com> Date: Wed, 11 Feb 2015 14:25:25 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Ross Zwisler , linux-kernel@vger.kernel.org CC: Ingo Molnar , Thomas Gleixner , Borislav Petkov Subject: Re: [PATCH v3 2/2] x86: Add support for the clwb instruction References: <1422377631-8986-1-git-send-email-ross.zwisler@linux.intel.com> <1422377631-8986-3-git-send-email-ross.zwisler@linux.intel.com> In-Reply-To: <1422377631-8986-3-git-send-email-ross.zwisler@linux.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 26 On 01/27/2015 08:53 AM, Ross Zwisler wrote: > Add support for the new clwb (cache line write back) instruction. This > instruction was announced in the document "Intel Architecture > Instruction Set Extensions Programming Reference" with reference number > 319433-022. > > https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf > > The clwb instruction is used to write back the contents of dirtied cache > lines to memory without evicting the cache lines from the processor's > cache hierarchy. This should be used in favor of clflushopt or clflush > in cases where you require the cache line to be written to memory but > plan to access the data again in the near future. > > One of the main use cases for this is with persistent memory where clwb > can be used with pcommit to ensure that data has been accepted to memory > and is durable on the DIMM. Acked-by: H. Peter Anvin -- 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/