Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2015 20:47:15 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292478 - head/sys/x86/x86
Message-ID:  <201512192047.tBJKlFXY045886@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat Dec 19 20:47:15 2015
New Revision: 292478
URL: https://svnweb.freebsd.org/changeset/base/292478

Log:
  x86: Detect feature flags "CLWB" and "PCOMMIT"
  
  "The availability of CLWB instruction is indicated by the presence of
  the CPUID feature flag CLWB (bit 24 of the EBX register)."
  
  CLWB is similar to CLFLUSHOPT, except that it is not required to discard
  cacheline contents.
  
  "On processors that supports PCOMMIT, PCOMMIT is enumerated through
  CPUID (CPUID.7.0.EBX[22]) only when the feature is enabled by BIOS."
  
  PCOMMIT is used to cause store-to-memory operations to become persistent
  (protected from power failure).
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/x86/x86/identcpu.c

Modified: head/sys/x86/x86/identcpu.c
==============================================================================
--- head/sys/x86/x86/identcpu.c	Sat Dec 19 20:42:01 2015	(r292477)
+++ head/sys/x86/x86/identcpu.c	Sat Dec 19 20:47:15 2015	(r292478)
@@ -916,7 +916,9 @@ printcpuinfo(void)
 				       "\024ADX"
 				       /* Supervisor Mode Access Prevention */
 				       "\025SMAP"
+				       "\027PCOMMIT"
 				       "\030CLFLUSHOPT"
+				       "\031CLWB"
 				       "\032PROCTRACE"
 				       "\033AVX512PF"
 				       "\034AVX512ER"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512192047.tBJKlFXY045886>