From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 31649387084B; Tue, 13 Oct 2020 18:06:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31649387084B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] format_proc_cpuinfo: add enqcmd cpuinfo flag X-Act-Checkin: newlib-cygwin X-Git-Author: Brian Inglis X-Git-Refname: refs/heads/master X-Git-Oldrev: 1ed2fe0f03f4c8f9cb663c36720e786a229bcabe X-Git-Newrev: 3fd14da2c36f32a6a8d5b8f2f6ed6fc38b9e90e3 Message-Id: <20201013180620.31649387084B@sourceware.org> Date: Tue, 13 Oct 2020 18:06:20 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 18:06:20 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3fd14da2c36f32a6a8d5b8f2f6ed6fc38b9e90e3 commit 3fd14da2c36f32a6a8d5b8f2f6ed6fc38b9e90e3 Author: Brian Inglis Date: Tue Oct 13 09:11:08 2020 -0600 format_proc_cpuinfo: add enqcmd cpuinfo flag Add linux-next 5.9 cpuinfo flag for Intel enqcmd/s instructions: x86/cpufeatures: Enumerate ENQCMD and ENQCMDS instructions: Work submission instruction comes in two flavors. ENQCMD can be called both in ring 3 and ring 0 and always uses the contents of a PASID MSR when shipping the command to the device. ENQCMDS allows a kernel driver to submit commands on behalf of a user process. The driver supplies the PASID value in ENQCMDS. There isn't any usage of ENQCMD in the kernel as of now. The CPU feature flag is shown as "enqcmd" in /proc/cpuinfo. Diff: --- winsup/cygwin/fhandler_proc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 6f6e8291a..13397150f 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -1563,6 +1563,7 @@ format_proc_cpuinfo (void *, char *&destbuf) ftcprint (features1, 25, "cldemote"); /* cldemote instr */ ftcprint (features1, 27, "movdiri"); /* movdiri instr */ ftcprint (features1, 28, "movdir64b"); /* movdir64b instr */ + ftcprint (features1, 29, "enqcmd"); /* enqcmd/s instructions*/ } /* AMD MCA cpuid 0x80000007 ebx */