Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp569396iog; Wed, 15 Jun 2022 07:56:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uAfCWdQUUCXCPApVcZN2Qfh9mLWaYeTK+kMm5SuMjbmll7uqwwR8E+l9PS5AbwJspawrDs X-Received: by 2002:a17:906:64d1:b0:712:c0a:5671 with SMTP id p17-20020a17090664d100b007120c0a5671mr208933ejn.494.1655304960232; Wed, 15 Jun 2022 07:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655304960; cv=none; d=google.com; s=arc-20160816; b=qm6A84Eyf5bd7lf2BR6hujGP4ofiPWdY4meg1KhY6ES+EUqsFB6mcfMylw/mVvWCAS Lzkp1kqkimH9N2ExbPiH4nhui7DK8ff5JopGoyEb6h7DqsLACf2cP7ySnqT/CzLcarwD sg3gc8jm4AwmFFOiOkmi4msxyeh4D7rdyXTNw0aF9Di3ifyEnxIqL1JkUtc3q5anjx8i 1pTGimFRtDhbHi5yg7ri5XMayJSztjVFTbaBGQQ22PVMOHUXUm/yVnJhjuLlIfUgPa91 mV9DYeA6S8VAZXANUVNfvIUY1lsdUVPgCv7zZPm+zPIhmKEtPrr9LO+t2vIbxhXVnij7 HiiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Dg6vNCjaBr+parJ1ijutRLUdyN/1vocd71UZKyN3uMM=; b=R7XEy0ro73KP1uCDQ4qyDleW2nzp7aZLnAguVqMnVJM7vllGdTpptZVz63ujatD8gp RNo60aBwJB1ucn9pTQpfab7TZZHrqYlLJy3doQ5t/Y7SElv+9Gv+HBL47Ppkb2oqKQqU 5uh2luDWiT/x+/B6LZVlaG0l8VDneHWBd/hoV2U46y8S9GdjtBDNqr/TqUqE2oWmBdzt 8C5R4u7OC+KnajJj+c3zQ9PvNEK7hoCp/7W0mDyGlczPOnpeOaKBgZe9rE0MkTjavt7T Xd72e/dgiC7k5NBDB2cfubhtaNENLMpmfkLu1PEl4YEjbacLRtr/+2b5v8MpggIJ7p5n ei6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090658cb00b00706fe017e89si15926307ejs.880.2022.06.15.07.55.34; Wed, 15 Jun 2022 07:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352897AbiFOOou (ORCPT + 99 others); Wed, 15 Jun 2022 10:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344443AbiFOOos (ORCPT ); Wed, 15 Jun 2022 10:44:48 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E5F035A97; Wed, 15 Jun 2022 07:44:47 -0700 (PDT) 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 EC056153B; Wed, 15 Jun 2022 07:44:46 -0700 (PDT) Received: from pierre123.arm.com (unknown [10.57.5.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C21203F73B; Wed, 15 Jun 2022 07:44:43 -0700 (PDT) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Ionela.Voinescu@arm.com, Lukasz.Luba@arm.com, Dietmar.Eggemann@arm.com, Pierre Gondois , "Rafael J. Wysocki" , Viresh Kumar , Andy Gross , Bjorn Andersson , Dmitry Baryshkov , Vladimir Zapolskiy , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/4] cpufreq: qcom-hw: LMH irq/hotplug interractions Date: Wed, 15 Jun 2022 16:43:17 +0200 Message-Id: <20220615144321.262773-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set provides fixes for the qcom-cpufreq-hw driver regarding LMH irqs configurations and (un)plugging CPUs. commit ffd6cc92ab9c ("arm64: dts: qcom: sm8250: add description of dcvsh interrupts") enables DCVS (Dynamic Clock and Voltage Scaling) for sm8250 chips (so rb5 included). As no LMH (Limits Management Hardware) interrupts were seen, the firmware used for testing should not be able support them. The patch-set was tested on a rb5 with an old firmware version: UEFI Ver : 5.0.210817.BOOT.XF.3.2-00354-SM8250-1 Build Info : 64b Aug 17 2021 23:35:39 This patch-set should still contain relevant modifications regarding LMH interrupts and CPU hotplug. Still, it would be good to test it on a platform which actually uses LMH interrupts. LMH irqs can be identified with: cat /proc/interrupts | grep "dcvsh\-irq" and their configuration can be seen at: /proc/irqs/XXX/* Pierre Gondois (4): cpufreq: qcom-hw: Reset cancel_throttle when policy is re-enabled cpufreq: qcom-hw: Disable LMH irq when disabling policy cpufreq: qcom-hw: Remove deprecated irq_set_affinity_hint() call cpufreq: Change order of online() CB and policy->cpus modification drivers/cpufreq/cpufreq.c | 6 +++--- drivers/cpufreq/qcom-cpufreq-hw.c | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) -- 2.25.1