Received: by 10.223.176.5 with SMTP id f5csp2056688wra; Thu, 8 Feb 2018 07:47:51 -0800 (PST) X-Google-Smtp-Source: AH8x225C+FWSDb9qSc4vCKVt6g4rwlZgNcYS8UB9xF4emjKKB6uCUyOcod9XdNWg9MDb8u4f1Web X-Received: by 2002:a17:902:bc07:: with SMTP id n7-v6mr267715pls.52.1518104871678; Thu, 08 Feb 2018 07:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518104871; cv=none; d=google.com; s=arc-20160816; b=M9JB/5crBkfU3IxyImP8eTVkZpwZc4pbaSpzwoenlv0ZrZ2Ywgi0LcoE0WduP0Aw0H 1PZ0TFFyzPKKwpdIzExRG4O8qW/vyFzoOqOUD8dZ1bmU1fplaeF1F3nZ2la43CadtIvr lYxeI7oTX/ZKJN+qEv9sEqaWSElVlp4UamKiXEagTvzOFZIF7iwu9FI7JIvu8Czl9LOE mTJCC1B3qkuHZe3S/XdBLUrgPor4m9vvjflt/0xtdwrh/ipaKHfrfiDNhCLnYLRDfXHn OuBeh/1yoGjOUyE451iDkGPnspEpiQb2frUeeBXE3YrSrqhDIR/cXbDp8e9sthVdrjsg 0G9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7KaxkYD1pMplRi7szVlw3/QKhC7JiR11AWNFwHbirAY=; b=OdA3gY5P8JHZLudLiG45xtDAnIQ0Jg78i8LKTIfJFNNw10bZFjPaG/edFDzPuS+uUx Co0HRzgsAHDDACH7sMDFGUCe4t2rwY2roXkh2KZDLO+oF8VU1erf5cxpnUB5sXN1ui4v VjR87n/UHllYp97tijJBhD8Lt7SKxotWxcAxjfgXnInBYU1bdgD8puBG4sRBW12ET3uc rueFlyP6u5X4s1cA/W357mphytRC1KLqJpgl/j2hz10wn/KX3iAsWtYL3nR3g+W6m3pI TxIcU0hsjmG8qZeAjOTzBkXSxsbbJjLLZVDdrRiG594C7BR3Cf4nA0RZ5Nq37INh3asf N+cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QE5HwBUB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u76si137974pfa.294.2018.02.08.07.47.36; Thu, 08 Feb 2018 07:47:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QE5HwBUB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752402AbeBHPqu (ORCPT + 99 others); Thu, 8 Feb 2018 10:46:50 -0500 Received: from merlin.infradead.org ([205.233.59.134]:47712 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbeBHPqs (ORCPT ); Thu, 8 Feb 2018 10:46:48 -0500 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7KaxkYD1pMplRi7szVlw3/QKhC7JiR11AWNFwHbirAY=; b=QE5HwBUBVZBEKzerRcbUUB7LQ dzoQmbJ5hvTi66vU+lLdwgL2dadpShnwIBd0ka4e72OwY9wNzKLDKWGtufloq9olk758bh19BXMd+ 175hcldbOxWNVcXSpdiW6N464rrs7zwL5vQRwC0Cjwq2Ii0k81UnJ6VpxSr5La7eEmXG79vwrVZQ2 rVDojScEC+1a94d2D2EMCukNiRjr3EFbUXAPfgwdIydl8X/qWS09N5Y9gMzeC54ipPZ/uOvjwMrY0 I5MVGulWOHTyEBOk18wWv6drP5niIKq1y2CpwNBZO4WsArVP/WTM/oetHov0lMH8GvszHCmOfEyx3 t+ol3dtrQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ejoPM-00026f-Vn; Thu, 08 Feb 2018 15:46:45 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC72120274D63; Thu, 8 Feb 2018 16:46:43 +0100 (CET) Date: Thu, 8 Feb 2018 16:46:43 +0100 From: Peter Zijlstra To: Will Deacon Cc: Vincent Guittot , mingo@kernel.org, linux-kernel@vger.kernel.org, valentin.schneider@arm.com, morten.rasmussen@foss.arm.com, brendan.jackman@arm.com, dietmar.eggemann@arm.com Subject: Re: [PATCH v2 1/3] sched: Stop nohz stats when decayed Message-ID: <20180208154643.GB25181@hirez.programming.kicks-ass.net> References: <1517944987-343-1-git-send-email-vincent.guittot@linaro.org> <1517944987-343-2-git-send-email-vincent.guittot@linaro.org> <20180208140005.GH25201@hirez.programming.kicks-ass.net> <20180208153030.GB17775@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180208153030.GB17775@arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 03:30:31PM +0000, Will Deacon wrote: > On Thu, Feb 08, 2018 at 03:00:05PM +0100, Peter Zijlstra wrote: > > Without this ordering I think it would be possible to loose has_blocked > > and not observe the CPU either. > > I had a quick look at this, and I think you're right. This looks very much > like an 'R'-shaped test, which means it's smp_mb() all round otherwise Power > will go wrong. That also means the smp_mb__after_atomic() in > nohz_balance_enter_idle *cannot* be an smp_wmb(), so you might want a > comment stating that explicitly. Thanks Will. BTW, where does that 'R' shape nomenclature come from? This is the first I've heard of it.