Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp411865pxj; Wed, 16 Jun 2021 05:27:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXE4rCdWCAFZfqy7DAAhhWrjV1Ast/5ySwqXCeItVR7DZNgQV8bmftxeo7BMftdGhGMRLx X-Received: by 2002:a6b:4419:: with SMTP id r25mr3390852ioa.205.1623846456436; Wed, 16 Jun 2021 05:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623846456; cv=none; d=google.com; s=arc-20160816; b=emRx5Wu9D7EZKdcYxbVXD/Cf92C1ICRBpMFRi32167rWHJAdpf+TDQ6lVgy7AVXdSg fRXxgc84zIIVezc9IP10AB8AMJ/UwVBytAJnwDNoteLKmAKiI7ZogBpP/a1zFCbE+y7L JF9ZHEAbTlmy78qlHZZDgrmKnWl5YlHAbcic85SjlvfHoZM/Fo4V1wisjUbAhFK58C0c VX1TKBF5eGCZ8ZJwFhzF+mAhJYe8zRDNY4VZMhw4+ql8MK9w/k7a1sifcjgfO5yohtQH vPyNo184WUmjwFGAUc7dd15fWCNxYDPb3yp/2PkjcVvEZsR9p1FKjA7X2ngupNsAhyVt CG5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=LO5EJonCZ/d5EwONfrhTxGMVZOU8PfqKuC1jlKIm6KY=; b=EOSkmphM90GjV+tpeVYBYemdruO3vh5S+rgmqfl6SYYmQCBkGJvC7MDk97AuxfkUoS GeMiDlCqzV6vPioyeeHfRyN8WuLxSh817t9vRwCUYilxNEgKeyeArnlzR0X8ODFws0/z o510YhJW8FhcbxNCPHrUQxiB6O9zq8TfG8GXirzNAVyIMx7fY/DrIUFusi2yJ+Cr1Kt7 EWqlAg8A6GHD9+H4Be0K0D+keuw/ZDIbT/p7hgl2P+iX8hJhR8F3pYj/uq5op/ov1x7r FqfFe9BuwBOVfapo9WzoEbbZCivXefIQp5DvwqGg4cBIJnC7K3/0mmQBLrgkadckdEAO 3UGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VB0iWCJf; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si2353419ioq.36.2021.06.16.05.27.23; Wed, 16 Jun 2021 05:27:36 -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=@linaro.org header.s=google header.b=VB0iWCJf; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbhFPL4q (ORCPT + 99 others); Wed, 16 Jun 2021 07:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbhFPL4p (ORCPT ); Wed, 16 Jun 2021 07:56:45 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A91C061760 for ; Wed, 16 Jun 2021 04:54:39 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id v13so983886ple.9 for ; Wed, 16 Jun 2021 04:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LO5EJonCZ/d5EwONfrhTxGMVZOU8PfqKuC1jlKIm6KY=; b=VB0iWCJfLn2XcQfTxTRN/CEHfkX0u3u7T9uUKaOKeUl2KexASUw/FNEg/owhnh7jcn XLfyljKXu3Tp61NHNzQtHuuPiWtdICkoxV6qceNWWsqJbvaxlUv2rmDvy+I86SICSEPC OhkzIelxRmSMHueQ4EyK1JssvE+n5ymmByD3kP9IWDMGMbuV5xrDmgnSiostd2OoFtfK 7JOcmEzIU8jlKDqU02dMq1/i5OVGJFG+aBurXRrYz6EjV3S3RBop5J3NxGsRA47lbbmT HJwe5S9aqQ7EWztiDalPGuUXYv0yzYlBm344RVcyx0YTsxsLf1RIpv8+NAD1l9nBFi8P zvQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LO5EJonCZ/d5EwONfrhTxGMVZOU8PfqKuC1jlKIm6KY=; b=qZOzA152I4kTa6NVvrhnBGEuqQJNrLnauCuVHt4DS1wIscn+4scjaP5sBzIoejmIdD EnRn/S3cN9ipFnZ8OseNBzJqdXn66xDOhd7pMimkrCQ2m2O4bIS/zVBGrBduDPmKWO1c m4zbh9kT5QpFpkoitLL/t/kmMeRh5hCZ1HFGHfxQhaottdX2i5ICOQb5s7MoITee3I1C hnZEUV5wPzP7VlUwRPyvaJVSsSLjEc5JXkUFwzc7xMAzPAQaQlHYOsD7yMaaKspCDXBL D9tlKYAnHphPkQgX5u1NZLdD0JliTDwyQ3BmqLnuAEyR8xdi3B1PbSE5rsO37Ay+95Mf OUEg== X-Gm-Message-State: AOAM5337LYO3C6yESkIUc4IkhY1PuYBogPpSXYFVIu5Uq9/hElnq1QY0 bw5UkuyvHSA4x2BX6tkiJde8PA== X-Received: by 2002:a17:902:f704:b029:11a:cdee:490 with SMTP id h4-20020a170902f704b029011acdee0490mr8551076plo.37.1623844479074; Wed, 16 Jun 2021 04:54:39 -0700 (PDT) Received: from localhost ([136.185.134.182]) by smtp.gmail.com with ESMTPSA id w7sm2019453pjy.11.2021.06.16.04.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 04:54:38 -0700 (PDT) Date: Wed, 16 Jun 2021 17:24:36 +0530 From: Viresh Kumar To: Vincent Guittot Cc: Rafael Wysocki , Ionela Voinescu , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Greg Kroah-Hartman , Ingo Molnar , Jonathan Corbet , Juri Lelli , Mel Gorman , Peter Zijlstra , "Rafael J. Wysocki" , Steven Rostedt , Sudeep Holla , "open list:THERMAL" , Qian Cai , ACPI Devel Maling List , Linux Doc Mailing List , linux-kernel , "Paul E. McKenney" Subject: Re: [PATCH V2 0/3] cpufreq: cppc: Add support for frequency invariance Message-ID: <20210616115436.5mm64htpbyxrnpzg@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-06-21, 12:02, Vincent Guittot wrote: > I tested your branch and got the following while booting: > > [ 24.454543] zswap: loaded using pool lzo/zbud > [ 24.454753] pstore: Using crash dump compression: deflate > [ 24.454776] AppArmor: AppArmor sha1 policy hashing enabled > [ 24.454784] ima: No TPM chip found, activating TPM-bypass! > [ 24.454789] ima: Allocated hash algorithm: sha256 > [ 24.454801] ima: No architecture policies found > [ 24.455750] pcieport 0000:0f:00.0: Adding to iommu group 0 > [ 24.893888] ------------[ cut here ]------------ > [ 24.893891] WARNING: CPU: 95 PID: 1442 at > drivers/cpufreq/cppc_cpufreq.c:123 cppc_scale_freq_workfn+0xc8/0xf8 > [ 24.893901] Modules linked in: > [ 24.893906] CPU: 95 PID: 1442 Comm: cppc_fie Not tainted 5.13.0-rc6+ #359 > [ 24.893910] Hardware name: To be filled by O.E.M. Saber/Saber, BIOS > 0ACKL026 03/19/2019 > [ 24.893912] pstate: 20400009 (nzCv daif +PAN -UAO -TCO BTYPE=--) > [ 24.893915] pc : cppc_scale_freq_workfn+0xc8/0xf8 > [ 24.893918] lr : cppc_scale_freq_workfn+0x5c/0xf8 > [ 24.893921] sp : ffff80003727bd90 > [ 24.893922] x29: ffff80003727bd90 x28: 0000000000000000 x27: ffff800010ec2000 > [ 24.893928] x26: ffff800010ec2000 x25: ffff8000107c3d90 x24: 0000000000000001 > [ 24.893932] x23: ffff000816244880 x22: ffff8000113f9000 x21: ffff009f825a0a80 > [ 24.893935] x20: ffff009efc394220 x19: ffff800011199000 x18: 000000000000001b > [ 24.893939] x17: 0000000000000007 x16: 0000000000000001 x15: 00000000000000bf > [ 24.893943] x14: 0000000000000016 x13: 000000000000029b x12: 0000000000000016 > [ 24.893946] x11: 0000000000000000 x10: 0000000000000000 x9 : ffff009efc6958c0 > [ 24.893950] x8 : ffff009efc394248 x7 : 0000000002bde780 x6 : 00000000ffffffff > [ 24.893954] x5 : 00000000916e502a x4 : 00000000d9730e80 x3 : ffffffffffffffff > [ 24.893958] x2 : 00000000001e8480 x1 : 00000000002625a0 x0 : 0000000000000401 > [ 24.893962] Call trace: > [ 24.893964] cppc_scale_freq_workfn+0xc8/0xf8 > [ 24.893967] kthread_worker_fn+0x110/0x318 > [ 24.893971] kthread+0xf4/0x120 > [ 24.893973] ret_from_fork+0x10/0x18 > [ 24.893977] ---[ end trace ea6dbaf832bce3e4 ]--- Thanks Vincent. This is triggering from cppc_scale_freq_workfn(): if (WARN_ON(local_freq_scale > 1024)) Looks like there is something fishy about the perf calculations here after reading the counters, we tried to scale that in the range 0-1024 and it came larger than that. Will keep you posted. -- viresh