Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1492603rdb; Sat, 20 Jan 2024 01:01:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHryXz0oCcM4YMX/T86uwRF2rB6PhWar/kG4YvmTvUhMd5bfGAo7M6K5xMbJbf/2QsNxUNR X-Received: by 2002:ac8:5a83:0:b0:42a:1ece:565b with SMTP id c3-20020ac85a83000000b0042a1ece565bmr1577885qtc.69.1705741291123; Sat, 20 Jan 2024 01:01:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705741291; cv=pass; d=google.com; s=arc-20160816; b=iDNo6SRTNSSUUSfLhCApDtr0eZYhnqoOeb/oBKtusq1HgoSuWYZxwGaZNEoTnQxhxp BpWEB8WycOIbmRGeaM9nFNotuke9xkLZ6c5gsfGjvILhk7zioeKx/MpR1AqTvTpyE7bb MzQ1rCXerQPYZcTNvTOTdbQEE15SsR/v1nJOsdTNi5jH8PEp+/IWGbXJJCZOePov8myI iIY4tfsnusYBl0bhRzhwVhpBN7rrzGYKj0Cgb6DwWH1NURiGHzlOywBJYZaBKwaZukDQ tQayIfvCpHu8OCED3aN25gWuYSHXxlzwuvt6Y+SjL4V0Ch57ZiSarmuuKlqHh5crcRgQ oOAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=aZJr2zzOCbDOkGwxtzRA09fk3E/DAYeJRrK4E21Gt3c=; fh=ihPlWfI7xjmwMgkJ8C/zjSXzCJIG71VpNPfgHm9qTvQ=; b=mlVl5a2KaXNqlBKjuNScMotWz3NXeYJKPdAOCYMbpciRL09gLPGqFypajjgaqwyWeg aTsWMrg9YBovYwFOCnMycnjU3KdhfANTXCmRVfMOLBr/rejJ/OZ4yH/MRvorbizLfj+X xYSNyqWqR9gB+nx4ImfmWeaqUa+OGHPI0YqiapY/KohlcJziNs2u1XyP1ZADAFpxofDq MAjcWAQk2ZisfeK0IGYSx8vFK+iMEt2tniJfajYR+nt9spngPyk4clNqHRb4Euf2/60C Xr2FcimQ+qJK5WKwohLPYqCY9XNvygxFkeV2Vu569ppOUUF205WFaQ9ow50D/VpTa7JF h6CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zytor.com header.s=2024011201 header.b=Vly5evUB; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-31747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c19-20020ac87dd3000000b00423dccd9929si1128985qte.495.2024.01.20.01.01.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 01:01:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2024011201 header.b=Vly5evUB; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-31747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D68381C214AB for ; Sat, 20 Jan 2024 09:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACD639457; Sat, 20 Jan 2024 09:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="Vly5evUB" Received: from terminus.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6F755381; Sat, 20 Jan 2024 09:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705741283; cv=none; b=YdsrMpCN7zTr/2jozwZgR1V+e6W97rr4rq2VRc+Qzer96OkvBakKVmhinLi0EBwj0Rs35FnQonAlYzxjKhkAHaN6Lcov48gvWc0T9dAkqAGnnZyjrWzWwBhVol3yxzgX538xbdojrbQMlQk6A/n1/VdkKRgv3IA60D5fj7R99Lk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705741283; c=relaxed/simple; bh=lPXJNVUz1/fxRSsS978CphntnmhX4z/aYDogC1GW6zw=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=VsJqyr1FHVwQzaJjig2GVZBqBWknbLMHBynYn6QaTH0FiIDjlGmmfTnqLD2p3fVbt/cJMni3gnDNad5bYWuJ8YyIIZkcNI30ssdL9hFDAoFPh0Vc95V5275lqwC7RwFE67+a/l1pol9o0qcz7wW/lKJz4KGwEDmMzadNmPkUQzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=Vly5evUB; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [127.0.0.1] ([76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 40K8N2VF1422225 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 20 Jan 2024 00:23:04 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 40K8N2VF1422225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024011201; t=1705738988; bh=aZJr2zzOCbDOkGwxtzRA09fk3E/DAYeJRrK4E21Gt3c=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=Vly5evUBwlByZI3SYmfdzkHI4CXMNuCX8pyZvJeZzeu7xZt3fYyNMWnX+UAepeZLF TNecSnOrFb6g/VzC7UpOMHQJ4cNaC0KPjibXjvLi+yTwu2BpxUWmWNlDZhmBgf2SoW MNgrOtThybINUZ1uFmT3O04FS0vre6trudKUndRuaqSstBzMA0JJpshRaC/SXamuhr bBo67i6WfCXwqixEvyMbelIhFGSfCS67zQV93NxRsQzAMy2sELFdY4KipUo3Y2/aZt 0vGOP1lkjBHdcEY0+SIgYiU+zhLlyfldE4fhYPXyGxgOyCgL+ENDPmOFh5zVsnTzRD 94gHU8qNWzpsg== Date: Sat, 20 Jan 2024 00:22:59 -0800 From: "H. Peter Anvin" To: Thorsten Glaser , Peter Zijlstra CC: x86@kernel.org, rostedt@goodmis.org, torvalds@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, jpoimboe@redhat.com, alexei.starovoitov@gmail.com, mhiramat@kernel.org Subject: Re: [PATCH 1/2] x86: Remove dynamic NOP selection User-Agent: K-9 Mail for Android In-Reply-To: References: <20210312113253.305040674@infradead.org> <20210312115749.065275711@infradead.org> Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On January 19, 2024 10:58:56 PM PST, Thorsten Glaser wrot= e: >Peter Zijlstra dixit: > >>-/* generic versions from gas >[=E2=80=A6] >>- 3: leal 0x00(%esi),%esi >>- 4: leal 0x00(,%esi,1),%esi >>- 6: leal 0x00000000(%esi),%esi >>- 7: leal 0x00000000(,%esi,1),%esi > >vs=2E > >>+ * Generic 32bit nops from GAS: >[=E2=80=A6] >>+ * 3: leal 0x0(%esi),%esi >>+ * 4: leal 0x0(%esi,%eiz,1),%esi >>+ * 5: leal %ds:0x0(%esi,%eiz,1),%esi >>+ * 6: leal 0x0(%esi),%esi >>+ * 7: leal 0x0(%esi,%eiz,1),%esi >>+ * 8: leal %ds:0x0(%esi,%eiz,1),%esi > >I think there=E2=80=99s some mistake introduced=2E The BYTES_* are >identical for e=2Eg=2E #7, but %eiz must be wrong, it=E2=80=99s not >a register=2E Indeed, gas (on Debian bullseye) does not >assemble that either=2E > >(Awful AT&T syntax aside=E2=80=A6) > >bye, >//mirabilos %eiz was something that binutils used to put in when disassembling certain= redundant encodings with SIB at some point=2E