Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp644164rwb; Thu, 6 Oct 2022 02:26:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61GORWjWylrI0WUMICb7/wGfpY2Q0CNy4AkZqMoEt/konmXjW25zscVA5JB4/+nXhU+aFV X-Received: by 2002:a05:6a00:1898:b0:561:1990:63c0 with SMTP id x24-20020a056a00189800b00561199063c0mr3823148pfh.49.1665048366894; Thu, 06 Oct 2022 02:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665048366; cv=none; d=google.com; s=arc-20160816; b=ZhfPZJVFibUwuQBM/iP+Z+UXFopc6xRe49Lz8dKlnasJD8puNkd9Tds2Bx00tOQAG9 zx7yTiC3yTUo6uCiSTQZuDyt9kj8yckR2SjJiRICJVjC54ziCTnIAuTXCrAc6qjUeOSi 00sngy/Z0/OFhAbZgIuytpXjtr08d6UKqj+xWDKs5KOYIv4k/Eq0Kc3BmcGUNxLOvVI+ Krner8DD+J3yeB3itkuPwgptVZAmAmQniuRgQXeJemi6TC2iTKnGsUh4+IvQGYpViL4v 0lVVVICVL62Dri8FbbuR0XXL0gVKsLd6wklA4UBoKwARhKwNrxKcw5t2HISG1GvYbzfk 0nHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FnyIVBhFosa512Fu4YiRHWdiAddam62NOLFQw7QJK4M=; b=SjDtSlTxaB/g3wsCXOHs6zQkRy5g6DmLtftRYzPsGimo/v5FDPwmQQF1qvF++fuT+y taeN4ZQhWKc3s3CfUMCj9icFx2HpKNMJV27d7MdWm+TkJDzsw/Z65ZsY/oBNFaP+iRsq cV5ZTVvSzkDxHcj9Bo5dfWPA3pC1ykPkEi6bfWRqzifQry+urpQ+rg10LObrQ4sbesyC 42ZeSEu7UYC9EOZPVSqSy+Q1l/yfURYDCNpvWckYGbjQTCAHP7LN7obcF7nJiFH0dXlA 4I6qUyVB+cB3qX2PWi36PTbkyEZcHJ2EoDQ95PcukscooIMZ4uF1tkS067Gk26jwMQHU K6hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0043c1cb75c22si19365908pgi.333.2022.10.06.02.25.55; Thu, 06 Oct 2022 02:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbiJFJEZ (ORCPT + 99 others); Thu, 6 Oct 2022 05:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbiJFJEY (ORCPT ); Thu, 6 Oct 2022 05:04:24 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4A8261B39 for ; Thu, 6 Oct 2022 02:04:22 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 6A3E71C0017; Thu, 6 Oct 2022 11:04:20 +0200 (CEST) Date: Thu, 6 Oct 2022 11:04:18 +0200 From: Pavel Machek To: "Luck, Tony" Cc: "Guilherme G. Piccoli" , "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "Lutomirski, Andy" , "kernel-dev@igalia.com" , "kernel@gpiccoli.net" , "Yu, Fenghua" , Joshua Ashton , Paul Gofman , Pavel Machek , Pierre-Loup Griffais , Melissa Wen Subject: Re: [PATCH] x86/split_lock: Restore warn mode (and add a new one) to avoid userspace regression Message-ID: <20221006090418.GA14960@amd> References: <20220928142109.150263-1-gpiccoli@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2022-09-28 20:24:23, Luck, Tony wrote: > > So let's revamp the idea of having another option/mode for the split > > lock detector, which is hereby called "seq" (based on the original > > "sequential" naming in [0]). Also introduces a Kconfig option to give > > the option of Linux vendors have a choice what mode should be their > > default. While at it, fix/improve the documentation about bus locking. > > > > [1] https://github.com/doitsujin/dxvk/issues/2938 >=20 > Why not just use the workaround suggested in that bug report: >=20 > "so manual switching from default setting to split_lock_detect=3Doff h= elps as workaround here" >=20 > If you add this extra mode, I'm going to argue that the kernel default > should be "seq" rather than "warn". So these game players will need > to add a split_lock_detect=3Doff (or warn) option. Kernel should not cause userland regressions, and this is one. That should make it pretty clear what the solution is. And no, I don't like CONFIG option, either. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmM+mhIACgkQMOfwapXb+vKLhACdH4DxQqgPIBpJlefnoth8wjtT uoIAmgONAilNmvaXGsTx6qaCB//qGcY/ =r8Et -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--