Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 23 Feb 2019 18:26:30 -0000 Received: from smtp.ctxuk.citrix.com ([185.25.65.24] helo=SMTP.EU.CITRIX.COM) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gxc0I-0003f6-2x for speck@linutronix.de; Sat, 23 Feb 2019 19:26:27 +0100 From: Andrew Cooper Subject: [MODERATED] Some microperf tests Message-ID: <8e57a8b6-15e7-9dc3-be10-15270e984e9d@citrix.com> Date: Sat, 23 Feb 2019 18:26:17 +0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="EBHYjdI1b3zPMKtudUe6r9svgxmtICYIx"; protected-headers="v1" To: speck@linutronix.de List-ID: --EBHYjdI1b3zPMKtudUe6r9svgxmtICYIx Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hello, So I've finally got my Coffee Lake system and alpha microcode working. All numbers are the deltas between two RDTSCP instructions, with the single instruction under test and just enough compiler-inserted mov's to preserve the output of the first RDTSCP for later calculations. (Insert some disclaimer about these not being statistically rigorous, but they do at least give a rough ballpark.) Pre microcode: * VERW of NUL =3D> 65-69 cycles * VERW of %ds =3D> 33-37 cycles * MSR_FLUSH_CMD =3D> 925-980 cycles Post microcode: * VERW of NUL =3D> 512-520 cycles * VERW of %ds =3D> 520-540 cycles * MSR_FLUSH_CMD =3D> 1300-1500 cycles So, MSR_FLUSH_CMD has got longer, but not by as much as VERW got longer by. Pre microcode, the "use %ds" advice is clearly a win, but post microcode, it appears to be fractionally worse. I've raise the selector question with Intel - its possible it is a side effect of this piece of alpha ucode being an early prototype, or that this particular system is different to most older parts. Thanks, ~Andrew --EBHYjdI1b3zPMKtudUe6r9svgxmtICYIx--