Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp2472093ooa; Thu, 16 Aug 2018 12:18:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz2MLfn7O9MZrIQ3P9XQLOttFM1o31JfCiKgBKgwAxiVy/0mLta+dielGLJ1T/KYIg5nPAE X-Received: by 2002:a17:902:b28b:: with SMTP id u11-v6mr30118173plr.2.1534447138868; Thu, 16 Aug 2018 12:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534447138; cv=none; d=google.com; s=arc-20160816; b=HlVJwS1zC+SieDQD7/qnyHwHGxEpjCzXFonJ6xT2lGE/8kQYtOhPJbbAP4GP1PwHm8 iTDKcUogfl4QwVvBzccj/pRjQBjoBdx95z8GYR2ncFYVBO/7byxjWB76+SNeuf1rN8py zGCmI0tYzarsxVGjVThj47IJi10DaxGnKfplEuaPwRTMzirIFAfv2A18Hahc2mqQv+zx LgZ5ohklokwuYKqIpIMK/+hk2QYZqjiKzggDlPVJUE88nMHP3S8CzzXys/1gqjw2aggJ uNFDGrQ6u+Vyidp2N0DFRUAY5jlJFtgjttukiz5ZrwZRL6hK1vRbv4M8Tp35Intmz15W 0VDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=DESMuVpwY8qNP2TkLtKDcx0WWwtMl+2ExQGgjF+1fZA=; b=w3FOZdJxajY6ZYmKZc0vRLN0grg8CT/WNezUztTyOOXsbYrGz92/GNzbfGagPPHyij HGn/7gqjToB1ZlFR8Adg2gZXe171ERN2WTaKzg9mibX3sBoO6zr9fs42VraHe++CPd8Z /EAhvPPlu3qWnssLz7mVVg1q+aUxyKyqnbwtbjqISSTwwJL8r4PVaEFQ67291Mwu4kAM B+kBr+4uG9tr1oBYoeX+P/94mYLN+NPFsWhzV8An4qTTmuELeBB4akwm6ObH0z5QEEWi gR87PBVH+45RGTP9ZkE+9X/3rA4J1n+uK86Wya5lL9iGWzxjpIlUPmU8EAxTtdKokgyJ rsQQ== 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 j125-v6si108432pfc.243.2018.08.16.12.18.43; Thu, 16 Aug 2018 12:18:58 -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 S2388290AbeHPQoe (ORCPT + 99 others); Thu, 16 Aug 2018 12:44:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36940 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729292AbeHPQoe (ORCPT ); Thu, 16 Aug 2018 12:44:34 -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 6775780D; Thu, 16 Aug 2018 06:45:51 -0700 (PDT) Received: from [192.168.0.102] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 405EB3F5BC; Thu, 16 Aug 2018 06:45:48 -0700 (PDT) Subject: Re: [PATCH v3 03/14] sched/core: uclamp: add CPU's clamp groups accounting To: Quentin Perret , Patrick Bellasi Cc: 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 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> From: Dietmar Eggemann Message-ID: Date: Thu, 16 Aug 2018 15:45:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180816133737.xfwfoenbhb5wnndi@queper01-lin> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 ... Warning or bug, at least a stack trace is necessary.