Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2876099pxb; Tue, 19 Jan 2021 08:10:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFnAXjCP48SQ2U8WDFdXuuV98q/qh2DuKZf4isMCjJLqoJGhKtZXbmBtqa16PT3/2JIrgk X-Received: by 2002:a05:6402:1714:: with SMTP id y20mr3840857edu.360.1611072611514; Tue, 19 Jan 2021 08:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611072611; cv=none; d=google.com; s=arc-20160816; b=0jPzem40KquOo7NDKlR9mHwHp/a6IRrYqlVn8GRn64q8dknxyu2wyyxG+HWWg/hx6r 5HoZokNl2jzUVJbNDnhucOpbygFqpTEAAf3DHq9KzVGJ4+B0JbN3efiLxy40Sha+8s28 qYu4f7djAqYlnm6h2px2aOXNtY/GetQETDmqR6ZLh++KhlD/LRvSpL37hh4PQaxPE4Xu Kn54ZnycRo5ZqQCN0se0Sn/pr572JzmXAGw6hUOa+zGCgT4Li4JNauhgAyPGOnKcaxic j5Ee6KXGXatzm9zB5N5HdAB8Wc4yRejQsEtq5jaONc0P+ZMncood1w2z00BW+yKQxrw+ DYPw== 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=EhVNN5w31+BoStuV5p83fjIjrTbho1tnvewJve+/h9Q=; b=NVabvxgVzpzrVzRO6x8UEVKAkAdv2UeBDlc/AgwSWvcQntFWHb35ZQukdtfh/pZNQm 1KgLTR4o4MFtmxavuey0qtqKELBn/VtnPWfqKGQwhO2Td9YmHKY7OczxDyhFKqlbHdJZ fhjSBdST9MZWhKgwcWgA8J/beTkV1lKlXVdSJp6jThQfFDXoRWyGFKK3BkM7WMvjlgjb TSOCu2S4O2ezWerGMHcx5BD7jTdqBxaKSozucX968hH6xQZFQ6+5GqZ5SXDyDjtjitu/ gcBpFgmG2QJmeijDLR8/NHXlHlmet/h4hAIkM08XXYfugkZC9z05usb4Gq9M4NjJHJS+ G3Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=UWCs2Gba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si8888785eji.645.2021.01.19.08.09.48; Tue, 19 Jan 2021 08:10:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=UWCs2Gba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389462AbhASQHb (ORCPT + 99 others); Tue, 19 Jan 2021 11:07:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391385AbhASQD4 (ORCPT ); Tue, 19 Jan 2021 11:03:56 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A50DC061575; Tue, 19 Jan 2021 08:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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=EhVNN5w31+BoStuV5p83fjIjrTbho1tnvewJve+/h9Q=; b=UWCs2GbaEiVNzA19wKWlr9c/PQ UMAZuyoJbhGdlV8lgXLhfgFbaPPe7Lpsa68jxwobKbaLIK+P95bRELv5UA3iWDav8I5VDBfvkedFS L655rampQgJNMFtqTyNpv4zhDBCk/jYsuzhSepx26gdFHNwfX1Uc1s17Q8QY/zMfurFb/78c8Y0we MDdUdDeZ+qlSShuLda/IkktpDC0tDiIidFBkainB86N45fT63FFku/gyzrJFqNzf7dmi9FK1xiQOb CPyBMTYfs8OAwFR4XgeYhEW+k1h+t85peDC+ohOBO0BCTXoWjFUiCPrp3agxiORyWrL6fKJt+QkvY IKD6dfBg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1tTE-0007Eu-LV; Tue, 19 Jan 2021 16:03:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 104D53059DD; Tue, 19 Jan 2021 17:03:03 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 02B0A202638D9; Tue, 19 Jan 2021 17:03:02 +0100 (CET) Date: Tue, 19 Jan 2021 17:03:02 +0100 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux PM , LKML , x86 Maintainers , Srinivas Pandruvada , Giovanni Gherdovich , Giovanni Gherdovich Subject: Re: [PATCH] x86: PM: Register syscore_ops for scale invariance Message-ID: References: <1803209.Mvru99baaF@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 04:12:20PM +0100, Rafael J. Wysocki wrote: > On Tue, Jan 12, 2021 at 4:10 PM Rafael J. Wysocki wrote: > > > > On Tue, Jan 12, 2021 at 4:02 PM Peter Zijlstra wrote: > > > > > > On Fri, Jan 08, 2021 at 07:05:59PM +0100, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > > > On x86 scale invariace tends to be disabled during resume from > > > > suspend-to-RAM, because the MPERF or APERF MSR values are not as > > > > expected then due to updates taking place after the platform > > > > firmware has been invoked to complete the suspend transition. > > > > > > > > That, of course, is not desirable, especially if the schedutil > > > > scaling governor is in use, because the lack of scale invariance > > > > causes it to be less reliable. > > > > > > > > To counter that effect, modify init_freq_invariance() to register > > > > a syscore_ops object for scale invariance with the ->resume callback > > > > pointing to init_counter_refs() which will run on the CPU starting > > > > the resume transition (the other CPUs will be taken care of the > > > > "online" operations taking place later). > > > > > > > > Fixes: e2b0d619b400 ("x86, sched: check for counters overflow in frequency invariant accounting") > > > > Signed-off-by: Rafael J. Wysocki > > > > > > Thanks!, I'll take it through the sched/urgent tree? > > > > That works, thanks! > > Any news on this front? It's been a few days ... My bad, it's been held up behind me trying to fix another sched regression. Lemme push out just this one so it doesn't go walk-about.