Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp876901pxb; Thu, 5 Nov 2020 15:48:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+WEHTUvYHsCmTn98S+v8m7wd8U/1kqcapocoUoexh8+5yKkGRbDdDj6qqVqPD5HmQ5/ml X-Received: by 2002:a17:906:b143:: with SMTP id bt3mr5003930ejb.495.1604620120886; Thu, 05 Nov 2020 15:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604620120; cv=none; d=google.com; s=arc-20160816; b=PrM0HsVNz16zLSmiRTKlKo+3BrAHROs1cDBlGJyA84xovmn1lojMCKwRXP2bUpgjST ZeSGr1ZroPEG50/J28BzXbYAkqvB2l4Bw5OH5GBPjdJ9sJVTTZgqhL+N9lvMxa3c8zq+ bRYO4H5Ik4K3lEUotjuleygNTNM41otz/nygyq4OAjuxFrOHxVWPS1u35bUTVdcB+zPb MXUhMRziG5dBOXo+ozu//LshxR5Om9I5G0JaFznOJdsNB/Xzl5xqPT+4fMD7OZn0IKy9 vuUUR8uLkoPYIImzg0tVOFLmHJD92UjYWLof2lhFnuKKhLhMRbe70YRRTZaIQnOkNX0n gd7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sVuBclz6RbxFeixVrFDk7hds/nyx+Jqtd3Wi799FOXk=; b=nI+0+CxvilR6VMt7l1R4qA91tKOloHPO9MVFaaNjuw6nwymH3n9KvOic2kVRmGMpoE Psh42J7V2MyTP2Bd5huPUn6X/+Oc24RXjIuKU0+HGFpFx0zUO4HuJL3NHmEYO09wOcrv 5W88LZxMbwOeaTDDWJYbDFJkWXtLrMa1LVNm1Fry8OZVlEQWJkcmdt+gTSVZ4CAQRV5o A04UNjdrn/eNB6Nuev4FTVSxfzrZfo2bxPnXbfLDoYMRh5MqOgNGZXPAIiAw96A4TBmp 30Wrr18facsUlOLQPR9wuxfcejfWU+La8eLX3fXHTDvN2DHjUoQZO64yYNECsEn4VFUS jBeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=cDRnrACB; 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 y8si2287071ejk.39.2020.11.05.15.48.13; Thu, 05 Nov 2020 15:48:40 -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=@jms.id.au header.s=google header.b=cDRnrACB; 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 S1732046AbgKEXoY (ORCPT + 99 others); Thu, 5 Nov 2020 18:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbgKEXoY (ORCPT ); Thu, 5 Nov 2020 18:44:24 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D37C0613CF; Thu, 5 Nov 2020 15:44:23 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id n63so2478677qte.4; Thu, 05 Nov 2020 15:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sVuBclz6RbxFeixVrFDk7hds/nyx+Jqtd3Wi799FOXk=; b=cDRnrACB6qhyOyott6SFEmFabDoLiuFl1tpaN50TvPHswUHt3+MPuJohwfZ41EFnrw LsucrypTMbdc4g1ars45fh1+/jqITRsgaDt5QqVzlBHIAT+wL4Je5jnmf2R5ETn5E8H9 vruyY4XQ/S8SkVqOsjVyqhA30aDVXcXV0SNl0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sVuBclz6RbxFeixVrFDk7hds/nyx+Jqtd3Wi799FOXk=; b=kzqbSD/rTBoXALnjdfTtMmJDMk8CBJpXlpSuIg1cMpCQqiHZnPJaccrDGo90c9nxaW k+x2QYLNYuuM5/W2AWHIJ5LGOJs32lVbJ5uF3wt2+jdVYPf2qXQLXASsIpuIWZisZHvN Ud7LoK16MXL4d6SpsVzFcn8U1E16uGRYV7Vez/A2hpBVwdVhK60SP50+md1EGd+Q9Dal hBtqnDGHY9pSz05qBr7ISaCUN+89DeYZpSJk65GlspLDS2hmsZgpuXKaln24HYRjDqSs Jps6Q2gRU6wj6ndvP0rLKhVA2eXp4siFOUdM1QRMCEpk791i3UO3t23D2gKTP8+bKK/p 8f9Q== X-Gm-Message-State: AOAM533bwNY/0FBVOsek4J8Zb6XUb9MEXhWcPd1DXHKWzyNE+rDsNUIH fkW8PKHxbF91VkBFvdUczAlMzEdxygkXl7xDxgc= X-Received: by 2002:ac8:75c9:: with SMTP id z9mr4663191qtq.363.1604619862999; Thu, 05 Nov 2020 15:44:22 -0800 (PST) MIME-Version: 1.0 References: <20201103203232.656475008@linuxfoundation.org> <20201103203247.174991659@linuxfoundation.org> <20201105192305.GA18462@duo.ucw.cz> In-Reply-To: <20201105192305.GA18462@duo.ucw.cz> From: Joel Stanley Date: Thu, 5 Nov 2020 23:44:11 +0000 Message-ID: Subject: Re: [PATCH 4.19 156/191] powerpc: Warn about use of smt_snooze_delay To: Pavel Machek Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , stable@vger.kernel.org, "Gautham R. Shenoy" , Michael Ellerman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 at 19:24, Pavel Machek wrote: > > Hi! > > > From: Joel Stanley > > > > commit a02f6d42357acf6e5de6ffc728e6e77faf3ad217 upstream. > > > > It's not done anything for a long time. Save the percpu variable, and > > emit a warning to remind users to not expect it to do anything. > > > > This uses pr_warn_once instead of pr_warn_ratelimit as testing > > 'ppc64_cpu --smt=off' on a 24 core / 4 SMT system showed the warning > > to be noisy, as the online/offline loop is slow. > > I don't believe this is good idea for stable. It is in 5.9-rc2, and > likely mainline users will get userspace fixed, but that warning is > less useful for -stable users. The warning is about the existing behaviour of the kernel. It does let the user know that they won't see any difference in behaviour when tweaking the smt_snooze_delay variable, which was a real issue that Anton hit. I agree that the future commit that removes smt_snooze_delay from the kernel should not be backported. Cheers, Joel > > (And besides, it does not fix any serious bug). > > Best regards, > Pavel > > -- > http://www.livejournal.com/~pavelmachek