Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2456419rwj; Mon, 19 Dec 2022 05:01:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DYXRZQWjjZ2x6U5yBjDCBOZdOTyRA5Zoa+79c4dfCz5gugcU3ykyUQss8Q0McaOHzlJXx X-Received: by 2002:a17:902:e285:b0:189:fd83:eb80 with SMTP id o5-20020a170902e28500b00189fd83eb80mr41234497plc.62.1671454861557; Mon, 19 Dec 2022 05:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671454861; cv=none; d=google.com; s=arc-20160816; b=gW9MQTyPrAuRIZCsik4JiCnQMmZIyB4D8PhhFyoqeQunQ8jMDuXhXWOF8+Kbo2NkTz D3LtIqYDmV6j+Y1BJkKUOiETtCNfgsD4FKZLwR9eHhsz5/xOBiHVwuxQcpilHGvRkhC8 KOGWBUwbhpT/kJyphXBJaUoLL64sfOi5BXM9zn2NJNYyt8m3TtTR1ETsURsLhq8c0MwR df4i4/EJwIVjAsZtt7AWY3eBCvCdmq8lvUjwugbNQ6Di9U92j4t4EexWS/7A2O9KmKBV cVr8dpcqA50avrzAMh+spWTPssnIyKR5fVtCwJSdLdnb2vMpsJy+cBYXp3UCWPWon6+w QUOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qb34MAU0ZEKzBpLKg0adOlW9E7RFwMB3/UYEgFSDOn8=; b=EKPb8jR4DeTHFhwynaMNMzWTDSDrNsLTZjZEc5J/QTQTOSDILU4c7jYv1P2CRdpEnu qNUxHJwddBxy/aON8x76eKSc4vb+I8NYHVrlvyqyYaMTANO69ySOItOH79JSfPiPAeRM zoiWSiHgAWk3hUHhVwOuqnXTbqCdMt1iQcEdUmgbpP3rQDTRzdEn/OdVJTkdgkoOnaKj 86GlLsmpAqEkq/+dFOTVmJaltbvPuajmCeaZ7+ftNaEJj9Gi+ZIlrEDHt9aSlo8uIemh Oxc3dxb9yBAsdQ4D36f8DnGnSyYl6EZGpYtbonn0oUFrPzHSVg+HZnnIDNttnXS/MzRY 2qXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=UqSA0EsQ; 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 x4-20020a1709029a4400b00186a4763532si10006992plv.28.2022.12.19.05.00.52; Mon, 19 Dec 2022 05:01:01 -0800 (PST) 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=fail header.i=@igalia.com header.s=20170329 header.b=UqSA0EsQ; 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 S231935AbiLSMs6 (ORCPT + 70 others); Mon, 19 Dec 2022 07:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbiLSMsz (ORCPT ); Mon, 19 Dec 2022 07:48:55 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98AFBE089; Mon, 19 Dec 2022 04:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qb34MAU0ZEKzBpLKg0adOlW9E7RFwMB3/UYEgFSDOn8=; b=UqSA0EsQxeAV6MF38ZT2DQ+DK4 cfZeCzYx+t3G1PSUTVKnC3o8nb1EdyExg17toHM9oEsBzv5FddcNlG1xC+038DT7GhQfdwyVmCNy6 VfKUGD3oWOr3eGMTwWfqreS21NDDbnyaQuDFAvhqHKcs36uAfbslJckOQJVtCTdj5sQuF1WQWu/R0 byufzpfTk0x/oIcUNNcaT7jtDQoQloqZEpLM//hPhjs8QTbylSggKdLP7T3PeRfm1umGjz1afgLky 1l6HRRDIFY7zsN2JKmjOuUZ+OBsRFjK6KhUR+JJ2VMzY+bi1oMbeY4ugiW1pgEhMrJtBJWcBhF/vx SoOflzuQ==; Received: from 200-158-226-94.dsl.telesp.net.br ([200.158.226.94] helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1p7FZI-006Ikw-6P; Mon, 19 Dec 2022 13:48:32 +0100 Message-ID: <3ff9f56c-479b-2dbd-9ee6-c7d00c7bd285@igalia.com> Date: Mon, 19 Dec 2022 09:48:18 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 6.0.y / 6.1.y] x86/split_lock: Add sysctl to control the misery mode To: Peter Zijlstra , Greg KH Cc: stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, kernel-dev@igalia.com, kernel@gpiccoli.net, fenghua.yu@intel.com, joshua@froggi.es, pgofman@codeweavers.com, pavel@denx.de, pgriffais@valvesoftware.com, zfigura@codeweavers.com, cristian.ciocaltea@collabora.com, Thomas Gleixner , Dave Hansen , Tony Luck , Andre Almeida References: <20221218234400.795055-1-gpiccoli@igalia.com> Content-Language: en-US From: "Guilherme G. Piccoli" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 19/12/2022 07:59, Peter Zijlstra wrote: > On Mon, Dec 19, 2022 at 11:17:39AM +0100, Greg KH wrote: > >> What specific programs have this problem and what are the exact results >> of it? > > IIRC it was God of War (2018) that triggered this initially. But it's > possible more games were found to tickle this specific thing. Since it's > binary only gunk that is unlikely to ever get fixed we need something to > allow for it. > > (slow motion Kratos yelling B...o...y...) > >> Also, this is really a new feature and not really a "fix", but one could >> argue a lot that this is a "resolve a performance problem" if you want >> to and have the numbers to back it up {hint} > > Right, there were some, they should indeed have been included. Thanks Peter, that's exactly it - the current report is linked on commit message. About performance numbers, the only "numbers" I have is: game is unplayable, according to the report "When I launch God of War through Steam or Lutris I get around 25 fps, on lowest settings and at 10% resolution scaling", FPS for for games is double of that usually. I understand this is not a regular fix in which something is completely broken, but it does fix a behavior introduced on kernel that prevent some userspace binaries to properly run, in practice. Ofc some will argue that we already have the kernel parameter, but it's different - requires reboot and bootloader understanding. If 6.0.y is too much, I'd ask we have it at least for 6.1, which is long-term, that will help a lot of people for sure. Thanks, Guilherme