Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5755934rwb; Wed, 7 Sep 2022 07:34:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bUbDIw1dj/JzBZFy1Ot8AzIkdMXy2Wxmxz9GMMbpNGfuKCZ3NlMkSxcK6I3JpJKhtPQWA X-Received: by 2002:a17:90b:1bc2:b0:200:a97b:4ae5 with SMTP id oa2-20020a17090b1bc200b00200a97b4ae5mr4540770pjb.147.1662561291596; Wed, 07 Sep 2022 07:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662561291; cv=none; d=google.com; s=arc-20160816; b=UPvEF4SMvuJNNc9RfmWIDpwlEYsjpnrDcZKqpume3EkzIYMOUFVGryQwLsc4LFsJyo hTn3y07kvAW7Ni2kIGX3Vwjas5vfEMsQSEJYN9ZezfS5Dxx8diC9CXOy0NfitMnj0buQ u5ZHhyJbRpkV2t4NrQgyC/nYjL9cbh3Al3gMP7uS2vM78dnCISnEb5fd8sC3InTo9r+J cQ283pj7FDts36jRoarEkaRfm/vvd00+qY8NiNWujoEVfjMZRYNT5mscep8ycILVvKYl gdyYzVOox4ckPxgAuD1aqlqU4WeEQL43VxrfeinStCgWEXXLumY7f0S5EtxXSH0EdcBp fgbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=afyqFZI8SmEO6Jzobnkcalm4PkYJahmBc2qsGQY7UDc=; b=xpEkzggpGsj9tPVnPum+ZDfIFM2kDPdD503GZzuGp9k0GJhDsOHYfV8OeeGRRPrHon mGc6FeClhyfvJemDgkPns/yg0hvB7sLnBGeyp3XzRrmHNeo8Mayub3L2mt7NvhyqhNMw kCiqah5cJXnqvZKGS8UXV0ALXeEsWuTAUwBRZy0vQBD3iKaGUCQz+F5PKXy6qeofJWYL K+D1+UFqkFJxT+MVEy/OblF96oWLHLOMJBq9VSaFmQKa3GUeLeq4o0qSnjLKykXKbchg uyKaNPJRy0OPCP/w8kFRz1O+jIdtoFRasow5vh+rWAFAacwsfqw5HnQkBTecJofdIDwL bsyQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a170902c40100b0016d2959cf40si19387009plk.617.2022.09.07.07.34.40; Wed, 07 Sep 2022 07:34:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbiIGO3R (ORCPT + 99 others); Wed, 7 Sep 2022 10:29:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiIGO3P (ORCPT ); Wed, 7 Sep 2022 10:29:15 -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 9444A7C509 for ; Wed, 7 Sep 2022 07:29:10 -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 320FB617D2 for ; Wed, 7 Sep 2022 14:29:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96623C433D6; Wed, 7 Sep 2022 14:29:08 +0000 (UTC) Date: Wed, 7 Sep 2022 15:29:05 +0100 From: Catalin Marinas To: Liu Song Cc: will@kernel.org, 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: 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: <1661514050-22263-1-git-send-email-liusong@linux.alibaba.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 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 (I guess that's more like 6.1 material) -- Catalin