Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1481472rwb; Wed, 26 Jul 2023 13:14:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXf5lJ+Z1JYna7yIKYU3R/cfd1XKdEhSUUi+Rpa361JTTmdJGSIfO2SsffO/2pxLSEAm// X-Received: by 2002:a05:6a21:7741:b0:133:2a73:fdd5 with SMTP id bc1-20020a056a21774100b001332a73fdd5mr2738669pzc.32.1690402442191; Wed, 26 Jul 2023 13:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690402442; cv=none; d=google.com; s=arc-20160816; b=ZnjCqCoA447fobOA0sbpJB9a74Lwl/4eveYTJ4E8OLe82IoA7e6DwvS9MPMvdep49h e+aO8hOcdeiCDqfbwFGRP+Oed7+4LL9iIdLVVwNGAVeIvtZIOwOyW2FPcirBx7uK4zNh kzbd6ucA/0qsy+UWud20IPg/AaqP0llgm2sokg341mVzhCNVhf071nBUGGzdkrAdYJ95 mGPc4ityO1tvmzhcR6JQKdUDag9LcOAk1WS7H869Xe/jGoS+igg1aV1Zu+GcyG/0bMiu hkWpliFsAcE2acEzJJtMM65rgU5MH5vYwBtwF8MvVJpk/ZEnZ+VrVEPYzIyFsfLOXblX oKIA== 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:dkim-signature; bh=XyTW0Ej/ctvX5mhAYSsUtLai+EJ8srqN7zialJMkLmE=; fh=mJo0Y+mzijZ6xDzqlRhkMkwBhxPTegSc0oKFBaJ4MfM=; b=uomlmQ+XsBkNUujsBheuIpgp353SSngBMJ/m+6bYMQy7XzDcLHppRL/fLl/H3kbwvd qAD+syLt7ClleyeP/+ncLEwaHp7PMBpr2209DkYcvKc2NDvDCqzP4ALOcLt6j23cVzKb A/QQvWkISPsyJGwlZ4CnmxSZtZRAZv/0MzaqsjzfArjHPwDtrXiEgExJ2XWCAUUHGJai 2wgJ4a+M+ai/5d3wJaMMh/VW25AQnqnxaAlhL6fTfFkmx4UJGHG/+dKpjKApcg5Wvx3k bik8Ajbe6CN5G9PtupOkQzcDKZp21DPIl6xwi8TubrkknzRVWEjPN6b5RPC0HaSH8MME rJHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hM1wJiCX; 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 24-20020a631258000000b0055c993c2acbsi8562257pgs.601.2023.07.26.13.13.42; Wed, 26 Jul 2023 13:14:02 -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=@infradead.org header.s=desiato.20200630 header.b=hM1wJiCX; 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 S232166AbjGZTze (ORCPT + 99 others); Wed, 26 Jul 2023 15:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232421AbjGZTzX (ORCPT ); Wed, 26 Jul 2023 15:55:23 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F502691; Wed, 26 Jul 2023 12:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=XyTW0Ej/ctvX5mhAYSsUtLai+EJ8srqN7zialJMkLmE=; b=hM1wJiCXTM2z10qaH70Y3td19Q RcNkzv2osxtg8g5vj9sDJvWhn20I2tyHdnfNRVCieOfO++Y9Q3cl6+xO7wjUeov18fOZuZlG+hbPi HUDwSYX/Nlfs1QoXzUQehGHWijgiU7cp3U79zFxvgoVlpDsyGPAVt9iOYENQ8E8R5m7zRPHoMFiF4 2ZCQVJm86wwBgM+/ZGkpklArFaA1/clBOci/PfKeaZ+ldYZjK2AbJ+Nk0Xdxb+TDkrL1/+XoWsVXa ujTRXxt/hpfEFtfai3OXujo2NVSNvmdOm/34N4u2U50WMJAYFE8mlQjPbUeqxEX36eEWrTdxEevL9 xAj7AhOg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qOkan-005ynS-0H; Wed, 26 Jul 2023 19:54:41 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 465A730056F; Wed, 26 Jul 2023 21:54:39 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0952E201BD673; Wed, 26 Jul 2023 12:25:12 +0200 (CEST) Date: Wed, 26 Jul 2023 12:25:12 +0200 From: Peter Zijlstra To: Waiman Long Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Josh Poimboeuf , Pawan Gupta , Jacob Pan , Len Brown , Jonathan Corbet , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, Robin Jarry , Joe Mario , Randy Dunlap Subject: Re: [PATCH v5 4/4] intel_idle: Add ibrs_off module parameter to force disable IBRS Message-ID: <20230726102512.GD3802077@hirez.programming.kicks-ass.net> References: <20230710194857.2898284-1-longman@redhat.com> <20230710194857.2898284-5-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jul 25, 2023 at 04:45:49PM -0400, Waiman Long wrote: > On 7/10/23 15:48, Waiman Long wrote: > > Commit bf5835bcdb96 ("intel_idle: Disable IBRS during long idle") > > disables IBRS when the cstate is 6 or lower. However, there are > > some use cases where a customer may want to use max_cstate=1 to > > lower latency. Such use cases will suffer from the performance > > degradation caused by the enabling of IBRS in the sibling idle thread. > > Add a "ibrs_off" module parameter to force disable IBRS and the > > CPUIDLE_FLAG_IRQ_ENABLE flag if set. > > > > In the case of a Skylake server with max_cstate=1, this new ibrs_off > > option will likely increase the IRQ response latency as IRQ will now > > be disabled. > > > > When running SPECjbb2015 with cstates set to C1 on a Skylake system. > > > > First test when the kernel is booted with: "intel_idle.ibrs_off" > > max-jOPS = 117828, critical-jOPS = 66047 > > > > Then retest when the kernel is booted without the "intel_idle.ibrs_off" > > added. > > max-jOPS = 116408, critical-jOPS = 58958 > > > > That means booting with "intel_idle.ibrs_off" improves performance by: > > max-jOPS: 1.2%, which could be considered noise range. > > critical-jOPS: 12%, which is definitely a solid improvement. > > > > The admin-guide/pm/intel_idle.rst file is updated to add a description > > about the new "ibrs_off" module parameter. > > > > Signed-off-by: Waiman Long > > Acked-by: Rafael J. Wysocki > > --- > > Documentation/admin-guide/pm/intel_idle.rst | 17 ++++++++++++++++- > > drivers/idle/intel_idle.c | 11 ++++++++++- > > 2 files changed, 26 insertions(+), 2 deletions(-) > > Ping! Is there further suggested changes for this patch series or is it good > enough to be merged? I suppose I'll go stick it in x86/core unless someone objects.