Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2758525ybk; Tue, 12 May 2020 07:28:58 -0700 (PDT) X-Google-Smtp-Source: APiQypKCtY1x/F3wkdhHY6xPU0jCniJV+wCv/kd4BRSefTRvmToyvYbP0Gnw9OaVu50wwf+8eb4I X-Received: by 2002:a17:906:dbf6:: with SMTP id yd22mr16575448ejb.231.1589293738449; Tue, 12 May 2020 07:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589293738; cv=none; d=google.com; s=arc-20160816; b=eHlXPMON7JTrWDR8e6DncrQAc8lLQcNHDW4vsxiOGpLbJCdw95z4xi4TFdRnFe5Nm1 7shML/L5pmYfU0DWfVedX2jxsC5K+A05Njk2Juk/4oKCknuCuqnPHFl5qZi+FABTLOJl SdQoVMsLmu9bGFJh3cO3A74GDC475i8uV/xBxSb2lbl8NtYOI/obHE3y4j4GB+4pdnQ9 jhviPfAh5Q/5baYRhBRqwGk5Emz/Ln6BGYdbIVg9D0Z6ie+Pq5X8GJbrjTxvaczsa9uy Bpqr684KbqVgb9kWTawdn0aHsIdobxGeQITHCP8H0QVHMR/HdglgPIwbbyMXP42GsKna 1hfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=euS789G40ClREipHMw3+RHqcFIzlVY5CpOIPVEki6lg=; b=PEQ3BLOlMNjO5Rg9/zZT2o+LGr/QazVGDFNG2FjvveBv8rUEsp4GCq4B/0KJpStqEe OW5Fxu5julKYlszoTqTUqTkVpyF+eu+ORkLQEtK23nXOLGt7+G4Gyehr8/ET5t4OidLR Ckw/Eklrw9zzzHG4QH71sjUaInsq1qkQxhfpjr3//O6LhXvX6tdBiUsBUUum7oxrhHxm VavbJ0YjbFGjW5Tlcxn0uJL2IjkzOSD+Owd/M1WMvVPDpO7TdcKFfKleB/kHOsSG7AlV vCGXAlog3E38hUGdIhclIS0HRPZLXaVjdhWCuHoUZnFNrOitk/iTTcjZ/ltsqpFmMzCT ihSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AvtECquk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si7976093ejj.253.2020.05.12.07.28.35; Tue, 12 May 2020 07:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AvtECquk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgELO0u (ORCPT + 99 others); Tue, 12 May 2020 10:26:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbgELO0t (ORCPT ); Tue, 12 May 2020 10:26:49 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F00C061A0C; Tue, 12 May 2020 07:26:49 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id x5so5022164ioh.6; Tue, 12 May 2020 07:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=euS789G40ClREipHMw3+RHqcFIzlVY5CpOIPVEki6lg=; b=AvtECquk72BWa108Y6qDur37GANVAriAzDMWrfSFul6biN+gfWHD88H3kfGPSmlKyz wAh6VH0k60MeCfytXbn6CKZzw6b4C1M5IqXdI3XVwBASUwJIyiAHZWbY4IIVFpaOYZMj dHG8/3mPkk1WxG2UEfJMBfJTBGpGit2MbNYx/bS6DFux7feQU+gfXoukWzcvdPUifjRj QRqifKeeq+/mhySia+QoAfEEbqp1vub3cQBRxfv8sj3GE0exssLuezFYtppvu0FRuJSg AlXZqgRDnrE81aNFuFy8HKnBfmW1aAehYtBUECoNCxBPd57Opv4S5LvArDxYNxkmdDQM v8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=euS789G40ClREipHMw3+RHqcFIzlVY5CpOIPVEki6lg=; b=b1jh8FjBYps+VawzvOx1xRlV15LHVM3ve6YxvtbObqoWuML1eOVnsMFwF/M/vqoCQj TvgBvOqIVTJDBJpoj09xMFdFAxml5nLKrDV0UZ+HQC+vs+T10rOoCVkHdNBYwUAYZzq0 N7NKOZx2M/YHZGsgQ9+41QCvH3gY4adtbpCcQa8RzZP9Md3hXkIAUKdDkxWr1+R2C/hS kvZ/fXMY0EDMjj9/iRuwhNVk/vm/em2/9GGQ3Ts74Uq+8XuicHB01u+3WojkW6NqlLe3 CPzfGdpzyo2yHhVxDQqRX4ysKj9KAdYWvRy8yfhBTGBf8Olld8D1MVXkofBRUoexdJ1x k0xQ== X-Gm-Message-State: AGi0PuYoTolhERXFK32ivonAITZd91iQWaSbt4LJvshjAFT50wVBl9mS U0tCP69wTA1ybTefDI9yit3TVgbhmLufoAjVraElsMf2 X-Received: by 2002:a02:628f:: with SMTP id d137mr20543429jac.4.1589293608845; Tue, 12 May 2020 07:26:48 -0700 (PDT) MIME-Version: 1.0 References: <20200508092247.132147-1-ubizjak@gmail.com> <158929264101.390.18239205970315804831.tip-bot2@tip-bot2> In-Reply-To: <158929264101.390.18239205970315804831.tip-bot2@tip-bot2> From: Uros Bizjak Date: Tue, 12 May 2020 16:26:37 +0200 Message-ID: Subject: Re: [tip: x86/cpu] x86/cpu: Use INVPCID mnemonic in invpcid.h To: LKML Cc: linux-tip-commits@vger.kernel.org, Borislav Petkov , "H. Peter Anvin (Intel)" , "Peter Zijlstra (Intel)" , x86 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 4:10 PM tip-bot2 for Uros Bizjak wrote: > > The following commit has been merged into the x86/cpu branch of tip: > > Commit-ID: 7e32a9dac9926241d56851e1517c9391d39fb48e > Gitweb: https://git.kernel.org/tip/7e32a9dac9926241d56851e1517c9391d39fb48e > Author: Uros Bizjak > AuthorDate: Fri, 08 May 2020 11:22:47 +02:00 > Committer: Borislav Petkov > CommitterDate: Tue, 12 May 2020 16:05:30 +02:00 > > x86/cpu: Use INVPCID mnemonic in invpcid.h > > The current minimum required version of binutils is 2.23, which supports > the INVPCID instruction mnemonic. Replace the byte-wise specification of > INVPCID with the proper mnemonic. > > [ bp: Add symbolic operand names for increased readability and flip > their order like the insn expects them for the AT&T syntax. ] Actually, the order was correct for AT&T syntax in the original patch. The insn template for AT&T syntax goes: insn arg2, arg1, arg0 where rightmost arguments are output operands. The operands in asm template go asm ("insn template" : output0, output1 : input0, input1 : clobbers) so, in effect: asm ("insn template" : arg0, arg1 : arg2, arg3: clobbers) As you can see, the operand order in insn tempate is reversed for AT&T syntax. I didn't notice the reversal of operands in your improvement. Uros. Uros.