Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1134253rwb; Wed, 28 Sep 2022 13:47:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OsYp8Md4uyIyMSuIY54v4Q71dnQ+5OeKRXKJYVfjcqIIWzW4MFH5jeI49k8nAOEctueDw X-Received: by 2002:a05:6402:2804:b0:439:83c2:8be2 with SMTP id h4-20020a056402280400b0043983c28be2mr35523056ede.292.1664398021832; Wed, 28 Sep 2022 13:47:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664398021; cv=pass; d=google.com; s=arc-20160816; b=LfFl4PfsihDB5hzg3mrIoaefJqYRFG64u7k0CVfs+Gadx7S3JrxdCGiBRFE1BIr2Qy bdGr9moKEdx4WdEFvtUeCHBvif+m/MNpzRc+xdB9cg3xKhJYeDc3KSQgfUP0lX40YiKn nJ2nHWu9xW9b+FFiC6BPa+5s1GjJUfQ7usAqF0y+vmG7Ejnq5tbtHSB7Cmn1aXIWH8ZQ J3huBHLmVSLeqoVthZIhfArv7I2TKhsLHw89DGUQkuBLNPeN1PCAKoT7iB9WZL9eIMC9 2/Tr2nND3wrN2lrdFx0wqEnVPckDHJS5PSuptQ44SDuL64AzstJi/eg4nkilYpgYQGKL lBFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=ihJgrHGHCzz/dDSbXeY+6Jjjc9L4TX1zB4Ro6t7zurY=; b=CwDjCXeEoZGBOdANHVdEWQrOYfucibLsM57exs9aIuLrAwcnRzvpIRGEmZH8D71kaj 5wm5G0bzHEUpX2qapiAzHSkIaHtOvB9mO5nHrqjtBMyNSsnaeC96e4DX/zRxR2k7hvfV nfm2+nRDP5WZUWX+328LO4yCxsOO6AWCGx0Gwmn5lqHGi9U5+36CD9b+P3Qlp8qcF2mR JCyXt0APgPvTXAjiuLC+n00dDf/E28UJYfMhrW5r58pniwTVIuP2cGmzcw1mZsklQzD8 rwVrILUavkxqiw12O1f6u1LfuhTlTgERiKcRB73+coRnINYyzuYmeCvyrbM00ZnPJsz5 clSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gNE/rMJd"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw7-20020a170906478700b00787b30fb920si763014ejc.868.2022.09.28.13.46.36; Wed, 28 Sep 2022 13:47:01 -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; dkim=pass header.i=@intel.com header.s=Intel header.b="gNE/rMJd"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233698AbiI1UYb (ORCPT + 99 others); Wed, 28 Sep 2022 16:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233235AbiI1UY3 (ORCPT ); Wed, 28 Sep 2022 16:24:29 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BC8AF499 for ; Wed, 28 Sep 2022 13:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664396668; x=1695932668; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SNQDEbMi0n6O8jkdGIm1mtXhz4l951HTgZ426l1DvmM=; b=gNE/rMJdKiwKIkv0sNVC19gsn265FJNp3ooa1+8RNcj/lIOrf/I8E/Yh QGn0K3QoP0P1O8p6aTgQJgobPQtp5xb5ltQsRlNmKXFKxjVbvuOwrbyQR +WDuNULz0eU0IK9uL+B4b/EPWHE9paDBohVXaLfYDN3GFO1uyrGC3JV/3 4xjfR+a2kZjdiuoGd/aZCepBbQfkTsEs2Oor/sgsA3zJixzI8cTzdNsAH m4ZS9mzx0+05C7+pKVEA63iwMePrel6Zh53rkvg1ne0VFO/QSL6lHekZ2 SevwuMvfdrhiVfzaGPPIa0LjS7Izf2deqmno5JgBVyI7hooirgVqQzmkd A==; X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="282072102" X-IronPort-AV: E=Sophos;i="5.93,352,1654585200"; d="scan'208";a="282072102" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 13:24:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="573181460" X-IronPort-AV: E=Sophos;i="5.93,352,1654585200"; d="scan'208";a="573181460" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga003.jf.intel.com with ESMTP; 28 Sep 2022 13:24:27 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 28 Sep 2022 13:24:27 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 28 Sep 2022 13:24:27 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.49) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 28 Sep 2022 13:24:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O30VQOSeDB0vZhtRPlyyJgzuex5CVrSmWI4e9pyPDTo4xq8BRRP3iK37XjN72kTEs1wZcggRzof2/BowalZOy1qYugj/gI+NbEB6coPK9/pgxFIGN3dboZxpki38N+ftuvldpf/VUFwBz0xS/3+n9mjG7VZkUQfuAMdokUYzs7q4v9iUjgT5KXpW18vFrifM3YWESxfnlMzcTbHRg7C39YJ+Nsn5Ql0B10UNeO9v+Z/wPHSV8vr+ayYV9mY/sez0XjtTPKIKwIfHzB6+r4BPXi5q2oxlpMGeiZS+dg6Lp6AUjjnHAEaXo0RDi3o5x5kAETYjqQZ/veYp84c1toN3aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ihJgrHGHCzz/dDSbXeY+6Jjjc9L4TX1zB4Ro6t7zurY=; b=VAKGFwP+yXH5Mix05yVQhwdrdPPEpqiJjfPLud/qWDQX8ySBM+iOrO16CpYIyY58mEmAUNqOYVIJkB7L2XpEJ9jqgw2glKHpJ332A4IMt43AiEFHB7H5MifVmr1hQ9ghgy0iJt1IUu9ooT1Jd2yJixl24EHrhJucHfcUhBSjj5FexYhIJKO3Gt9TzD1nRF53jqq6Yk/sSkjyxaMvi1AqBHUmaj30I9T+P27oTXoKhFdL0/kuzc3dUcA8aGiwtJa+1uX8x4pF5qP0jQg9jp1rrTDv/EUXCr9FxS4fnQfIL3eDg3/68z2GhxNYNO1InmJaD5KeGAGj4TEjEsqwr0QkOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SJ1PR11MB6083.namprd11.prod.outlook.com (2603:10b6:a03:48a::9) by MW4PR11MB5822.namprd11.prod.outlook.com (2603:10b6:303:185::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Wed, 28 Sep 2022 20:24:24 +0000 Received: from SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::10a6:b76c:4fb1:2d60]) by SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::10a6:b76c:4fb1:2d60%5]) with mapi id 15.20.5612.022; Wed, 28 Sep 2022 20:24:23 +0000 From: "Luck, Tony" To: "Guilherme G. Piccoli" , "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" CC: "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 Thread-Topic: [PATCH] x86/split_lock: Restore warn mode (and add a new one) to avoid userspace regression Thread-Index: AQHY00XBSghclGVOu0aBjgkf6Dcm5a31R9GQ Date: Wed, 28 Sep 2022 20:24:23 +0000 Message-ID: References: <20220928142109.150263-1-gpiccoli@igalia.com> In-Reply-To: <20220928142109.150263-1-gpiccoli@igalia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6083:EE_|MW4PR11MB5822:EE_ x-ms-office365-filtering-correlation-id: d4464e79-f9bb-4664-956e-08daa18f6ee4 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DMXPEIImdOWcp/Wv7h/gDE9QLmluf4nwOiJhTIT13yx3qgZJiNvlVhvyPT3y+XpfmKi+lfsxQtEfcOXuFhwjfPiV04rkwb/AVnERlXUcUm54F24JmU+9BzKeGLIiyH+nRcHQzbc0rIpDBjrhHt2A5TvOQv8f6bQIVJ5wve3erm6+Ce6tfK4IBNNBl4iyFlnRhg3GLJl8teW9Q5yuunwrZ7JNRRb5dTcAtrkxSGRYChDJZdl73eTd2cBUMGGkMmvyCZ+lz4TjBme/k+Ftj/wlkICNODPJ5Fs0zko5yVvRay3YLfkd6yuctEBKmX3nR1KvplpJjMm9idTFTswP8t2LwVAMkOALvJQKjtOSvDlDed6/25S/+49IhAfn6rpmnaTktLdm5akNhsO7OfK+FueG/VXt8w1mLIQFmjv0Vhrn6NQybpoDidAlDoebwCqYj+Rih+AMHQO4XTU8vBCbk45JYtqR7nuIJ3q5myxoHlISxzOuhM8UfXFot1CutNBBGUUGH17IfyPdH76G4v455nHiv1ukszANvyneWpgGVG6L64NtYGgtKxIbGXlOfRaKTGpY+mOr74IXTL8HbAao2uwcG5GqIxImfAgfLoRXKwUONCA7YSkTtPE8lFq20dneOLTf9E72I3+NLG9eMNwY2YBBZboIgbmiwjnnPojiU32R4Yvmi4FXTmgZp01Utbgs7RR3aAlL9+8u93PTOkoM1QFLUA7nCykfT5cV2HjU6V/7Ibb5t69XNtqL6tMJ+Qyut+5g2lJNKf7vcJgE9d24pYQWWntIgMefVS8TYt/ry+oNkiA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR11MB6083.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(136003)(366004)(376002)(346002)(396003)(451199015)(83380400001)(55016003)(66946007)(110136005)(86362001)(38100700002)(52536014)(33656002)(9686003)(66476007)(82960400001)(38070700005)(2906002)(64756008)(66446008)(4744005)(8936002)(7416002)(66556008)(5660300002)(8676002)(4326008)(6506007)(122000001)(316002)(7696005)(41300700001)(76116006)(186003)(966005)(54906003)(478600001)(26005)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LU497bPSxJC/T9rxlDUXd6H0L0R/KPdL6JoK2HxSrsyZkd/HfqJnCyAM0RiI?= =?us-ascii?Q?XNeqi/VxY11olxQ8zYv96+KYF2QNFfQjtcwheYIp4TlVgLH/SahJuF+PRWsA?= =?us-ascii?Q?7LDgg0EO1r1/JE1SHFMDaJLyZRAYLXZRQAcVJAMxnUwmDUyv46ZnsHkZY7qg?= =?us-ascii?Q?XZgvPVb449wZ7MarNZzfnAua9xxiWEvEBduQ8aEJPzkpJfKeZ/xKhxpvWBRj?= =?us-ascii?Q?SbXXsbj3kdCntHinXlA4nu/aYXTYsalTzA8N9lxhhYUD491cW20GefHdVb+E?= =?us-ascii?Q?+FUAFuyJM5sMltHUTVleFHMXUWsvfWTVKlHSlOpsApmkMr5neZJhjlCcEU71?= =?us-ascii?Q?CA8S9/sJcpdIZBhXQwOVJxRWkzgPlPV/mIZfN5s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gCiJWoYF3hWZPq8fKlmZ8ovJB0hpGwWGlIHBmr3JhNZqjayL?= =?us-ascii?Q?SWMGWVHu+ckDrk7o8Uc2Yz77b9NCJvxv/loWWokg6RC+gae4uOsMj6pc40Cr?= =?us-ascii?Q?SC/vf0YF/5p57Pa8yIv9fUsgb8aSEezgrRqsoHsfXP6CRhzNFjRY43rJkuPh?= =?us-ascii?Q?5LbhHau8otXeuJnO0pH27uLDp9hHc607Eil+loeIzi9rGSBhNGuY2C4CZ3K8?= =?us-ascii?Q?gE9zAdY/dAeHW8DAjnyQ85nB6RgTL+hjRsTJwlYE3Nz6CF1k12RV6PppyKs+?= =?us-ascii?Q?R7IYNb8Stps933RzEZD+6R/2lsIEr0+9FgBf8zTr?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6083.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4464e79-f9bb-4664-956e-08daa18f6ee4 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2022 20:24:23.8903 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nOnzcDdfQPb1ZbAv+7rnzpUmIWPUuOcaxziev4523c9MPX7Z01HvGpQfHcLuPcxY/m+J5yCaWed9UXq2glMI6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB5822 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 > 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 Why not just use the workaround suggested in that bug report: "so manual switching from default setting to split_lock_detect=3Doff hel= ps as workaround here" 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. Has a bug report been filed against the God Of War game? Probably worth fix= ing, the performance penalty for split lock is only going to get worse as number= s of cores keeps increasing. -Tony