Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7487246ybp; Wed, 16 Oct 2019 09:21:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1D4CvlWQc+PSE0ckVU1eqdXET1OFP7sMNQOa0ZPpZ+DLSD/ALUGHGN1/QNHkjcoitA8rO X-Received: by 2002:a17:906:3582:: with SMTP id o2mr18596664ejb.54.1571242888425; Wed, 16 Oct 2019 09:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571242888; cv=none; d=google.com; s=arc-20160816; b=k8b3Q9DvG0keiASU8i9iR7fjqdylpmZzs05wNq5c8+Tjm7UrdxMRKUe3jHjJaWpes/ xoP9iUD0sJSTg8nptMcrc3nd1czGSabxgN/InBV/Zn83aeOGX1oILRkLD1Z/qNIWCZFY kRpPvtKx7tTzPPNFi87CdPCa3n5oFkjfqcncJ5x53AN86tD/ClozJk0P3btRraHVochb j9KS29TLXqVg030SYjEssHHIaTKQPW52EyhJmd741RnDVFN+/0V6dpp7lEN4gfwR4Tcv mmCr+x/6GRQkRzMH4JGboGNVYt2Gk5YPRLTSyDaTphmgolkYWEn7wifH9Wrw/Ywbgw7/ ky9Q== 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; bh=ixj9L3kkD/7fKMNyITlXEr1FRceijEUXGDswSto1Llg=; b=qrXhPHKSopXIADGqS4oxbxnf0w+oe0aI2rVAOLaqyimST8WCXfZiKAJLjPAHHP4nlx anf9JSFNsKdDAtCPR+lAefkcDCdvUnmmz0Cq488ehrA4Sr8catM8x4V9sYUcC+2ic58i gtwxKOsFHNJ+3cxgH7lcaWMbAi0qErr0rvajqEz3bCi65RzwBV13pJKj7JXcYwthg/d1 vGi1kaXkMZ9CRspDbwzHOSyy6qqsKqkl4QuZPbkfkbh/Ns0N4RYBDHEkxC7uZBEVQ69k n/jnItwxdWpGDOjM8Fo3L+UC9RpsujeTwBCLXbVSFWgqyFYTrYeFoW5K0qO/KxZex/lg PBlA== 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 f2si15774773ejq.395.2019.10.16.09.21.05; Wed, 16 Oct 2019 09:21:28 -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 S2392346AbfJPOXr (ORCPT + 99 others); Wed, 16 Oct 2019 10:23:47 -0400 Received: from foss.arm.com ([217.140.110.172]:41208 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbfJPOXr (ORCPT ); Wed, 16 Oct 2019 10:23:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8C76A142F; Wed, 16 Oct 2019 07:23:46 -0700 (PDT) Received: from bogus (unknown [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6EBCC3F68E; Wed, 16 Oct 2019 07:23:45 -0700 (PDT) Date: Wed, 16 Oct 2019 15:23:43 +0100 From: Sudeep Holla To: "Rafael J. Wysocki" Cc: Linux PM , Linux ACPI , LKML , Viresh Kumar , Sudeep Holla , Dmitry Osipenko Subject: Re: [RFT][PATCH 0/3] cpufreq / PM: QoS: Introduce frequency QoS and use it in cpufreq Message-ID: <20191016142343.GB5330@bogus> References: <2811202.iOFZ6YHztY@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2811202.iOFZ6YHztY@kreacher> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 12:37:58PM +0200, Rafael J. Wysocki wrote: > Hi All, > > The motivation for this series is to address the problem discussed here: > > https://lore.kernel.org/linux-pm/5ad2624194baa2f53acc1f1e627eb7684c577a19.1562210705.git.viresh.kumar@linaro.org/T/#md2d89e95906b8c91c15f582146173dce2e86e99f > > and also reported here: > > https://lore.kernel.org/linux-pm/20191015155735.GA29105@bogus/ > > Plus, generally speaking, using the policy CPU as a proxy for the policy > with respect to PM QoS does not feel particularly straightforward to me > and adds extra complexity. > > Anyway, the first patch adds frequency QoS that is based on "raw" PM QoS (kind > of in analogy with device PM QoS) and is just about min and max frequency > requests (no direct relationship to devices). > > The second patch switches over cpufreq and its users to the new frequency QoS. > [The Fixes: tag has been tentatively added to it.] > > The third one removes frequency request types from device PM QoS. > > Unfortunately, the patches are rather big, but also they are quite > straightforward. > > I didn't have the time to test this series, so giving it a go would be much > appreciated. Thanks for the spinning these patches so quickly. I did give it a spin, but unfortunately it doesn't fix the bug I reported. So I looked at my bug report in detail and looks like the cpufreq_driver variable is set to NULL at that point and it fails to dereference it while trying to execute: ret = cpufreq_driver->verify(new_policy); (Hint verify is at offset 0x1c/28) So I suspect some race as this platform with bL switcher tries to unregister and re-register the cpufreq driver during the boot. I need to spend more time on this as reverting the initial PM QoS patch to cpufreq.c makes the issue disappear. -- Regards, Sudeep