From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A18E5C54EE9 for ; Wed, 7 Sep 2022 16:30:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbiIGQaD (ORCPT ); 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) 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