Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp39560rdb; Tue, 16 Jan 2024 14:16:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3IBgUn8o7LGH4irXWVPbXiUxrsxFTtXGGIfrCcJgjh/LWghvGLEDhSM9IY42QNHJjXTCb X-Received: by 2002:a05:622a:118b:b0:429:ca87:591f with SMTP id m11-20020a05622a118b00b00429ca87591fmr9411947qtk.73.1705443398176; Tue, 16 Jan 2024 14:16:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705443398; cv=pass; d=google.com; s=arc-20160816; b=X/RIeFXe8LOXlPZOXKuaxJndcR+/pDmQ23SzSf+wbHgOBTrBQfQ8U3N6M1gX2kc66u wiw+6Rt/HPu9VyNXNTbsWRab50fQKkZ9cvZuYTr+FN5TsGVmcyJeExi0B65fUx+Nrv95 +0CJyVSK45RbVjKQOYq6aAoT9O85LNRafyS9W2hsYt8SAgJxcN2iKfbL6RfOjLg7Z2MZ bHBI0g/9r4REzfQ0R5iEYohaF4OEAhvhOY4YXjkL12hwSI+OffawfFd4AeFwkX5WIu9S TxGJD3Am5DLXVx7wXhOcn0mnHT+9vQx16LMdb2ujSsTGDtnXiqKelN7shIBREKj3UPBz XJBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=R8qAE5gjuikBp1NBIll9/QuqezYqQyn1J5ruMHekmw0=; fh=ENVZZLIXNMnZwpgc8iPgjQRaFysTv97zafGaMQtjZ+Y=; b=yEdr5Dnl7Hq+fQszpB9mUHhgZMwyAiYFsvuqiUT46tQq2uRLLeU7TrQV48ADvodC7A WGE0rNd+iX3SJ0TejnwhhSMLfeNDV+MZuRr94Lq4KFifZxRyDL4lK484/cp8CAsK6bSi 5LNUKstn6Eu+/n7SQpWR42ffdxjN97GAtZXUxMOc+Kz7xhKLTEwOyxy+iYySJJjfgPO/ Ye5l3JoGGOX9FSS1t4Rkp5TYZYWRy+h1rAl2kY/Q3PItnv9qvVaol1DNjAQVQXIHv/4Z rs4HflB5GklJ0XunyDvb0R3UVi3Qf5gRRS2FcHd99KyaAr/dqkyn1rDeBHt9M6B/Z9++ 2JbA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-28264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s37-20020a05622a1aa500b00429d77eeadcsi7310868qtc.311.2024.01.16.14.16.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28264-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-28264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 D5F571C27357 for ; Tue, 16 Jan 2024 22:16:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FF0F3CF5B; Tue, 16 Jan 2024 20:44:06 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 94C4124B5F; Tue, 16 Jan 2024 20:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705437845; cv=none; b=ESWNVvQt1ZrPLaGgGhWMC3YycZWIhrjJTW7C2fstjABYpQrBm9SRk5CtNdq7tsOOQP8xml95c/DPtCGxf0025DJg/8SjYFO4CRwFJJx10thelkKWuPU2aFIdtFoUPOpdvIeOHBw7/jkEpasOakwLmf9ELE2zTl/ihDuO8vKgNvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705437845; c=relaxed/simple; bh=CZ7ei0D4dK8lP4GUlsYoGNzXEf7NzkxYKYx3wMd+cEI=; h=Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=c7d6qBUms3hGpvY9XYZsSl1nqqyIlpc3XkzBqPzmsn4zKVbHyye/u5ShnF6GkxZrw66pc5UXEowtD2gztL7HIGcPDEmZSiVZMxz0CjCvJlpjwj2fuoCZcJhLhMyq5Da+GksOfPLNxpTOdnHIqVZ1tF5okfaV9qtBmTSr5QMiiHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 9713A1C0079; Tue, 16 Jan 2024 21:44:01 +0100 (CET) Date: Tue, 16 Jan 2024 21:44:01 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Borislav Petkov (AMD)" , tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, puwen@hygon.cn, seanjc@google.com, kim.phillips@amd.com, reinette.chatre@intel.com, babu.moger@amd.com, jmattson@google.com, peterz@infradead.org, ashok.raj@intel.com, rick.p.edgecombe@intel.com, brgerst@gmail.com, mjguzik@gmail.com, jpoimboe@kernel.org, nik.borisov@suse.com, aik@amd.com, vegard.nossum@oracle.com, daniel.sneddon@linux.intel.com, acdunlap@google.com Subject: Re: [PATCH AUTOSEL 5.10 09/10] x86/barrier: Do not serialize MSR accesses on AMD Message-ID: References: <20240115232818.210010-1-sashal@kernel.org> <20240115232818.210010-9-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ia2zJT+I07Stjth" Content-Disposition: inline In-Reply-To: <20240115232818.210010-9-sashal@kernel.org> --4Ia2zJT+I07Stjth Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: "Borislav Petkov (AMD)" >=20 > [ Upstream commit 04c3024560d3a14acd18d0a51a1d0a89d29b7eb5 ] >=20 > AMD does not have the requirement for a synchronization barrier when > acccessing a certain group of MSRs. Do not incur that unnecessary > penalty there. =2E.. > Performance captured using an unmodified ipi-bench using the 'mesh-ipi' o= ption > with and without weak_wrmsr_fence() on a Zen4 system also showed signific= ant > performance improvement without weak_wrmsr_fence(). The 'mesh-ipi' option= ignores > CCX or CCD and just picks random vCPU. >=20 > Average throughput (10 iterations) with weak_wrmsr_fence(), > Cumulative throughput: 4933374 IPI/s >=20 > Average throughput (10 iterations) without weak_wrmsr_fence(), > Cumulative throughput: 6355156 IPI/s >=20 > [1] https://github.com/bytedance/kvm-utils/tree/master/microbenchmark/ipi= -bench Speed improvement, not a bugfix. Please drop. BR, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --4Ia2zJT+I07Stjth Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZabqkQAKCRAw5/Bqldv6 8uONAJ0WBAl/1FnlM9UMYG/+rhKbGP0K0gCgm6w4SGSIymFTPMqja4N0JqK9w7k= =ojzs -----END PGP SIGNATURE----- --4Ia2zJT+I07Stjth--