Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2566654imm; Thu, 16 Aug 2018 11:36:26 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyezWbjzXNmR1CEjxt1NaLBoGdFFuLVrK6S97dYgSUWT0tZAWuEa+XPtcJjrMaQpbFx21VP X-Received: by 2002:a63:77ce:: with SMTP id s197-v6mr2320285pgc.172.1534444586532; Thu, 16 Aug 2018 11:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534444586; cv=none; d=google.com; s=arc-20160816; b=yeXCDkSy8gRuSRHkGctNta9qOS9HUob0MDfiG5jCHn/e3ARhEHMXJAnxM5/QOgr/Wl CoNY1qBJDKadeVMnOoq2IBrqsdOquGYiwKbnrserSFS9JcCAq7Fi/Kx3BC7CJAuxStEa Z0oh+K0yBKc5TddpngADq5KcoeI0SEHVz1qIqjL1j5HLcy2KD6KZJSSw4t7ttzePbnDf pYmoZl7TDb6Ockd8hL0MfL/AYkB1kIHVbWEhXroKGQncLrpvCphIUdoYmsvpyucCUFZs /E8lNGN8vUNxDzS7wvaxeWgb8+oGrP7NQ0Fmjku42+W4ClZI9vsu1Qj2yFv76F5OZmGW ew1A== 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:arc-authentication-results; bh=3R4az25SHEmzMEDEGna6FiN+YRt4KqAhB0HUu5frAfg=; b=u0tNz54XchwrSaBCMKaYsydBetwO1/HDN2iubyg1XFKxwwUez6hcAZ108qw51KV2iS 1BDvTcO0KNn6/lpVk4t1sBJPlZe9q984/yqRCdHEGUlmbhnwFXyIPgLGSnMyavJ98W36 saKsqClpNgUX6Bn6JjpRYFCqgnYFsOhZtn4khCSwZhxZv8X0fW1HWaYnbh4p4i95VgUE pVsX5K56xHSG0TqVXtyxVC0HXcxQAXk3heCiCQb9NiR8zOpWrNT7Q6eDeDXMSieOE7ux Akv8dDwEOKAj9wwmZvbKfimIIY/e1GzJPDYOl3aii5GXwfKqjUcus8/1s6JL2VnkEWDB JkcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d39-v6si34694pla.41.2018.08.16.11.36.11; Thu, 16 Aug 2018 11:36:26 -0700 (PDT) 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; 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 S2391775AbeHPRUR (ORCPT + 99 others); Thu, 16 Aug 2018 13:20:17 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37254 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391764AbeHPRUQ (ORCPT ); Thu, 16 Aug 2018 13:20:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F373F80D; Thu, 16 Aug 2018 07:21:21 -0700 (PDT) Received: from queper01-lin (queper01-lin.Emea.Arm.com [10.4.13.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 30CC73F5D0; Thu, 16 Aug 2018 07:21:19 -0700 (PDT) Date: Thu, 16 Aug 2018 15:21:17 +0100 From: Quentin Perret To: Dietmar Eggemann Cc: Patrick Bellasi , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v3 03/14] sched/core: uclamp: add CPU's clamp groups accounting Message-ID: <20180816142115.v7nybc4qfazdiz6n@queper01-lin> References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-4-patrick.bellasi@arm.com> <20180814164905.GG2605@e110439-lin> <7c45c1a8-24cb-6798-5b6f-3b5dfc9b490d@arm.com> <20180815105428.GA7388@e110439-lin> <20180816133249.GA2964@e110439-lin> <20180816133737.xfwfoenbhb5wnndi@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 16 Aug 2018 at 15:45:45 (+0200), Dietmar Eggemann wrote: > On 08/16/2018 03:37 PM, Quentin Perret wrote: > > > > IMHO, if this is something which should not happen at all, a BUG_ON() is the > > > > right thing to do here. > > > > > > I don't agree on that. I agree it should not happen but since it's a > > > recoverable error it think we should not panic. > > > > FWIW, if this is a recoverable error, I think Linus will agree with > > Patrick on this one :-) > > > > https://lkml.org/lkml/2016/10/4/1 > > Yeah, not really agreeing here that this is a recoverable error. A non-recoverable scenario could be, for example, if you corrupt your stack and there is absolutely _nothing_ you can do to keep the system up and running, because it's just too broken. I don't feel like we're talking about such an extreme case here ... > Besides, we > only consider under-run here, what about over-run? > > Currently this warning doesn't hit and if the code will be changed and it > hits, I still find a BUG_ON more appealing here ... > > So this error scenario can happen over and over again and we always recover > from ? The important thing is that we find the culprit for this behaviour as > fast as possible ... Agreed, we want to debug that ASAP, but WARN should let us do that just fine, I think. Quentin