Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp389433pxh; Tue, 9 Nov 2021 12:22:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxg5mjrGYtTdeUs6/tUP35J0kUgPm05GmFW1dXiqF5e5TT1np4FpmFzRiqCrjarUmPQD6w1 X-Received: by 2002:a5d:8619:: with SMTP id f25mr7198446iol.46.1636489338009; Tue, 09 Nov 2021 12:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636489338; cv=none; d=google.com; s=arc-20160816; b=mB9Vqqw6KdsG1Q2CcGzFQhzKsKsV08av2oT/Y5vxWSQhoXrsdKZEK/5NhTAFkILC7r 93V2GJY+AUnu9fmN3USIfFlT1gKKp6FE0aFqcTgT4j2lPTxoYDQfPG7Nzl6xVzcjlQUN aAGwqosItof0dnH/RnbcakzgZ1ODD95SYfbnjSc4buQzf9iLOtdalVB2PSkch065Y1AY Tg0BW7rYD0B5m/N3BrFbC+w4NzUW3KOTe6Hka0228t/+MmvXQ8GYHHOqak3mGVqZlBaL xlaJwn2m1CagjsSaHwsc6+Fb3PCLaxDFPWac3VLI8F7llda7XQNoeXq8byXtFrMwA8to sVDg== 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=4zYG/ehiRohGrEztDG71eIEx4dsggU7oOpBe2is+6CY=; b=PUupyJPHfgg2cr9dq8lC+HOIOC4R7hEP2FV7SmEN44NP0y0LLgC0EANlo+nOFCKudH lOoXFyq4suOFUrTg6DNOeoOth6mk5U8K4MYKS0XDZdAAYeO894daqONvj4zDOtdjxJPq yDpeuG5d7phezxi/03sSBVwM+/Kx0WLqfU58vKjMxbsgq97QtcQUpLv0Ti3qjZc0nbAM iy8tQGf5XYEiONOKeIIh5LJbOr0SQSzPVBVF3ZL6PH96DjEauecjYgsjJi9YnLqItNqM fGO3dfu2+ISME5XRKZJ8jl3B1ux8e5FLz9OYc5Brww1s0fDpBX+vS/i6cFzEGUTS5rC3 4QEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PZzpbbfl; 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 y21si3634782iow.16.2021.11.09.12.22.02; Tue, 09 Nov 2021 12:22:17 -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=desiato.20200630 header.b=PZzpbbfl; 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 S244319AbhKIKY7 (ORCPT + 99 others); Tue, 9 Nov 2021 05:24:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239354AbhKIKY6 (ORCPT ); Tue, 9 Nov 2021 05:24:58 -0500 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 3971EC061764 for ; Tue, 9 Nov 2021 02:22:13 -0800 (PST) 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=4zYG/ehiRohGrEztDG71eIEx4dsggU7oOpBe2is+6CY=; b=PZzpbbflnVta3J/VDGfZFz3qVE 5kEPm/rKE/RvCLUlBK6Q1t4+SricZMbfgbcWPuF7fM5EY+bF0wIUeHYoq5tYwefGG/G7/JEajN7Kf BXAscFFFBaSitmgAoruwvLp+oBOuJV+qRT4TKNQDrWjorHaCOarNHjAydLyJMATQsqy5aD8nH2g3c tJfH5X7i34D95nmxEcLpZFGBDeNGNs0j4MJN/qAXo5DOgJKyu+9sk5pVeqnU86HQSPQ+px1wENJnv RNBol2lt53E4selzbKsXJ49YgjVucsOetDu94sda5cBqwIjKNq648HTXsMYHAmVmCQbWwg64vm1es r01L/FPA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkOFP-00F2gB-Ar; Tue, 09 Nov 2021 10:20:59 +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 (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 877B13000A3; Tue, 9 Nov 2021 11:20:57 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4EF2B205B8B63; Tue, 9 Nov 2021 11:20:57 +0100 (CET) Date: Tue, 9 Nov 2021 11:20:57 +0100 From: Peter Zijlstra To: Josh Don Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Joel Fernandes , Vineeth Pillai , Hao Luo , Tao Zhou , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sched/core: forced idle accounting Message-ID: References: <20211018203428.2025792-1-joshdon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018203428.2025792-1-joshdon@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2021 at 01:34:28PM -0700, Josh Don wrote: > @@ -280,6 +288,8 @@ static void __sched_core_flip(bool enabled) > for_each_cpu(t, smt_mask) > cpu_rq(t)->core_enabled = enabled; > > + cpu_rq(cpu)->core->core_forceidle_start = 0; > + > sched_core_unlock(cpu, &flags); > > cpumask_andnot(&sched_core_mask, &sched_core_mask, smt_mask); Not specific to this patch, but perhaps we should do better here and explicitly initialize more state...