Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5915466rwb; Wed, 7 Sep 2022 09:45:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Ijh2w6MGF+86OHE9j8xTv9xtu2gfKW5I/XA9GTGULBRN5v2tGdhEWizyoK4gSD+3Phmvd X-Received: by 2002:a17:907:75c1:b0:72f:248d:5259 with SMTP id jl1-20020a17090775c100b0072f248d5259mr2993657ejc.227.1662569148225; Wed, 07 Sep 2022 09:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662569148; cv=none; d=google.com; s=arc-20160816; b=LaDZ0Nxvp4CwPD+swbXAz7btRfQ66Rn/EHKPQjm5C1f86RI9BUpfnBUqtSS3sM26tM 0efNRol0ngONLuoXLfXQw6ax3MjdOMYn5juKYyaCfJhiffG5Rsazk+l3ObdaOE4KRaF6 sNdT4gF0GY7QD31Y3R/hOZb6yPaTYzhG1oMjk05YRuqXDOk2SErT9X/0iY/TxrU5KnAL 8EXDmZfG4ykD2DeITkKz4vq2DUabc9Ovb39vVRnD6Pa4v/3WCdoffmFIgkE8dBHXY6Xf FXcOzYFQs/WF8iyIhnZ5gMWaRhxSxCRD3Ev8SAb/FptwynCiKN/AW426+4I3E0g310Y3 6xHw== 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 :dkim-signature; bh=3TatqiziJNi1kyCUNMhNe3FtObLdJoPtULSo3T+DQKo=; b=aRnLqVF9zDiCaDG+T+rkFowsqg980eKVAn6pKNBU7DBfwTE4XBrhFmqlLYf1m/Ji9p dOauWRzwgT1oaGTg+axtZtIvywNyR2KhFTvA32oYQMhdmxiy7GRP+idBJIuCFZbcILLr nclNXExLIjxLjKhgA/6v8ZBlTXxUZXal/t3JnYlrTOu8h4nFOEybnJNcf3lGgQt8paSQ 0I5wJod4RhpQTvX2uWuTfWM5wCZA3qTGgbMehAgLYUnmODpMK0swfkbJq5q4e83xBc56 ysXxTl2kdfWTrnIptvT7LovVw1gLNKu4mWxK7GcZBgMLlt/Ay71Rv053nebpBYQGnyJR Cr5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=auXUv95D; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp23-20020a1709071b1700b0073d8e26be26si13851483ejc.646.2022.09.07.09.45.22; Wed, 07 Sep 2022 09:45:48 -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=@kernel.org header.s=k20201202 header.b=auXUv95D; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbiIGQaD (ORCPT + 99 others); Wed, 7 Sep 2022 12:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiIGQaA (ORCPT ); Wed, 7 Sep 2022 12:30:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B576B2A732 for ; Wed, 7 Sep 2022 09:29:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D9696194C for ; Wed, 7 Sep 2022 16:29:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 992B2C433D6; Wed, 7 Sep 2022 16:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662568198; bh=SyUuqxI7aO6x27tKuLX1Jvc84+ethL9Y8ImhuZD72ic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=auXUv95Dz+XmRyZv0gH7xXUZMUC5dFxAfKSbn2MrZeUjZTAZWREFVpE9x9DjWE19f jIx+0VPR4QR9t1Z4ec8j9SMHtrDwD+4UFTw54M+Y4z0Hp+W7haOdbBZ64RjNpdmH7x 10tJgw/DU5WqK6Rvn620RNhoBnwSZxMndP/tzcVwPxDnPQ4d9MYx+YLWEfD+DrTsw3 sELqOvem6CILw35y8gpw/7507lfTTowCGO7RPZYiWzAxWhEx+weeNvpcZ3PWyQqY4a WJ3In5P+GF0b+oMPy+7Y/uhHftwps/TfkEQiW6aRTkVi97zslovShUeS8q4fAvU4B5 t/m6rkA3CNGZg== Date: Wed, 7 Sep 2022 17:29:53 +0100 From: Will Deacon To: Catalin Marinas Cc: Liu Song , james.morse@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: spectre: increase parameters that can be used to turn off bhb mitigation individually Message-ID: <20220907162952.GC30558@willie-the-truck> References: <1661514050-22263-1-git-send-email-liusong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Sep 07, 2022 at 03:29:05PM +0100, Catalin Marinas wrote: > On Fri, Aug 26, 2022 at 07:40:50PM +0800, Liu Song wrote: > > From: Liu Song > > > > In our environment, it was found that the mitigation BHB has a great > > impact on the benchmark performance. For example, in the lmbench test, > > the "process fork && exit" test performance drops by 20%. > > So it is necessary to have the ability to turn off the mitigation > > individually through cmdline, thus avoiding having to compile the > > kernel by adjusting the config. > > > > Signed-off-by: Liu Song > > If people want to disable this mitigation and know what they are doing, > I have no objection: > > Acked-by: Catalin Marinas Thanks! > (I guess that's more like 6.1 material) Yup, agreed. I take it you'll pick it up, then? Will