Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2103532pxj; Sat, 19 Jun 2021 03:03:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUn06m7DZ8l1cgG6EAjT6quKYm0eotdjewI2pnl7J6+wpwqvrMrt74ruZD3sBNa+hlcA5K X-Received: by 2002:a05:6e02:ea9:: with SMTP id u9mr10267573ilj.96.1624097028920; Sat, 19 Jun 2021 03:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624097028; cv=none; d=google.com; s=arc-20160816; b=tDJN/DFMRW6/ny18YnWZAvGM2CYrSdxoAAQbwhscq6w4T7NShax41jgsJ14q8WHXgw 60VFJfTxI+cO4ZqqO65ca0wvT5+D0f1E8CfFgfgml6Fp+xsmTAxbgPslukGQsuVN8mkg 6ssUTpK6hxC9DAfys0mhx/LdkHxtCAAg3+Z7/O0O9mW0aSNm7z//jM/bie0eWe6+huNU gqlKOn/5K8tlH0l3e9oNZLAhG75Mj6PtQ1tTP29EnSpaU4IAK8pstgBgsFMceKUbCPbi F4EBv/pgGQzrlWVCcRTcm26tL9MlIpcoT6kjEaV4VgsT+AD/zqKq+TnELQEi/kzSEZN/ UwHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=ZWvtqV3TeC0Tm9I9yeacEOChKZjCO9EBxWKvJ6avhNw=; b=THJTfvt5StKt9m8D9uey2rgLEYo44IB5yXAp46xZhGIh3lXQeHId75qUzP0eahjzTS zyyTC8P4NrldrBln/U6nTiBdGhJ3w7oD0Y4GLmzMzcAV4N04e0Bw4McmjPV6PBBt9fyC 7zlx5s0IltcocZhCYhHOvzjFGUV0KlnXgriNVhe5MIjMErCxd1fP805M58crRStQ4/8T mXN3rzTyKy7zJWEW+WUxzefgdJ48yselvM6lI4QBmzffXmmYFE1i8e/ZXd0Cg9mOZYON BmWhT3lMuzrjeSRSZRzViOgo5NVuVlEkPr49noMIzbu1+j2nDMsIUMhOFgpl40GcKyTg iyVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WN+yU7SZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WiVq9cJx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si11665326jaj.67.2021.06.19.03.03.36; Sat, 19 Jun 2021 03:03:48 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=WN+yU7SZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WiVq9cJx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233035AbhFSIEp (ORCPT + 99 others); Sat, 19 Jun 2021 04:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhFSIEo (ORCPT ); Sat, 19 Jun 2021 04:04:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9041C061574 for ; Sat, 19 Jun 2021 01:02:33 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624089751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZWvtqV3TeC0Tm9I9yeacEOChKZjCO9EBxWKvJ6avhNw=; b=WN+yU7SZfehMCpp5CyrAKTgEbZFRLGsjXfQxUkoAWyInqm8DsQeQC3MJN4gp55taVfAGfD /ligzhR/EAcTO/c2XIPhOBptyhO2BuP7vciH8pZi+c3rITz3VqLWJ5+Up3l/+qmX1+kmMt 7KZ5kJqmOeVOlMFl0Dm9KteOkfiSkbYPlJbklD29gq5JBr5Z66t06WP763Lyw53kTfG7eZ TW6lhAY2Ww8p5g6I+u460VQjXpUyImf88ZQAKkXnH+28P+DoRE4U8ruDWCI7qjbx67+CuN Pw1/NKIG7PaiqdE7+eaQbmt258y/rHM2IJ9aHFpmSy/4XoLFt+oIQYM+LWSF/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624089751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZWvtqV3TeC0Tm9I9yeacEOChKZjCO9EBxWKvJ6avhNw=; b=WiVq9cJx5k1pZtlSGE6et5TvC+8fnv6Midr36zeiiKVwvhBDR1JF1LMHA209djPQ6B6m+2 gbaiYj3m29HHyEBg== To: Ani Sinha , linux-kernel@vger.kernel.org Cc: anirban.sinha@nokia.com, Ani Sinha , Frederic Weisbecker , Ingo Molnar Subject: Re: [PATCH] Add missing kernel log when enabling NO_HZ_FULL is not possible In-Reply-To: <20210611103937.827565-1-ani@anisinha.ca> References: <20210611103937.827565-1-ani@anisinha.ca> Date: Sat, 19 Jun 2021 10:02:30 +0200 Message-ID: <878s36e0yx.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ani, On Fri, Jun 11 2021 at 16:09, Ani Sinha wrote: > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > index 828b091501ca..a82480c036e2 100644 > --- a/kernel/time/tick-sched.c > +++ b/kernel/time/tick-sched.c > @@ -937,10 +937,18 @@ static void tick_nohz_full_update_tick(struct tick_sched *ts) > if (!ts->tick_stopped && ts->nohz_mode == NOHZ_MODE_INACTIVE) > return; > > - if (can_stop_full_tick(cpu, ts)) > + if (can_stop_full_tick(cpu, ts)) { > tick_nohz_stop_sched_tick(ts, cpu); > - else if (ts->tick_stopped) > - tick_nohz_restart_sched_tick(ts, ktime_get()); > + } else { > + /* > + * Don't allow the user to think they can get > + * full NO_HZ with this machine. > + */ > + WARN_ONCE(tick_nohz_full_running, > + "NO_HZ_FULL will not work with current sched clock"); How is that warning useful and even remotely correct? can_stop_full_tick() has 4 x 5 == 20 ways to return false and the smaller portion of them is related to sched clock. Thanks, tglx