From patchwork Sat Mar 26 15:51:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 554419 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DFC8C43217 for ; Sat, 26 Mar 2022 15:52:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233679AbiCZPxh (ORCPT ); Sat, 26 Mar 2022 11:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233683AbiCZPxf (ORCPT ); Sat, 26 Mar 2022 11:53:35 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15DE2DFCF for ; Sat, 26 Mar 2022 08:51:57 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id w7so18011851lfd.6 for ; Sat, 26 Mar 2022 08:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PlDvWRoCj+ArlJrMoBlk51sIHiTX55gBU9keu3DzJMY=; b=dGejKyQEns9HFI3MBZ3gFfYLe0ttAoQPtYK+4tOAylvZ9z3AKk+Iy3Jf4w+Exf0oM7 mc3JwMsGX5NLSCj2I/YuxRLGlqDNi98dUQ9SQx5wnVm74R+GsvqeTO4JX/Z4KqJX2cg3 T3j/5l6GKY4asCndtM/a51s3bmg+bE7PJT1spCf0kbAzUKovKW5CZHozbPsW10YbfUgk LLjODXo+nzk1oNeTuPSRUxer4+42wx8uBSclsBmhI9+OMN4+sAYeJRZTVQzeohu/EYeS b2lbCASlaivEcPWu2s4A1SjGzuJgyjwtAoLMiLIN/+sXC8CFBz0Ynu6uPNFjcXADg5I9 4ZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PlDvWRoCj+ArlJrMoBlk51sIHiTX55gBU9keu3DzJMY=; b=jguUrUEhYbqwr5kfpPrDTPIaSrnHQXEN/IzbVQfFHwSSgjw5sfseS72s5IWLRYMq0F fiqc7Qff/6zpwbyC0CMTg1jygoDVzpMJhD7NEod6HXa4zRIQ3A1YvVLGrkxgtpM8D4Pc 4rdqIrzPuwKeAhBDCDQwBK9IwpMFw+G8/NLOJSAIeqd86UxQ6PMXAlFEIQMgnnVuGKuT fnjYnvOLi3+VKJEcoQZYKYm2V7+OpCywmaHW0xcN3PuEmblTEsznvUVPgA7VLSES6Cjy XnJOaTeAJ7Mn7K3Sl5YJP86B+keoqw75zPJdf/F8XxgsH4e6cWojj6TKf9iqMTXSsjgq wSFw== X-Gm-Message-State: AOAM532h0lz4VEXf8PKpjDljE9YJr8mN4a45GmsucVXD5Wbaj9a2DiMP ABlNOJ/4tNA04WILNFBrEh3PyA== X-Google-Smtp-Source: ABdhPJzR/845rjNc5q6ikAGYm/pAOIS9N58+i7qHnCKYeyXJZS6c2HvxjtXpn2edHWfrNPIIL0EiDQ== X-Received: by 2002:a05:6512:3d13:b0:449:fd85:f61d with SMTP id d19-20020a0565123d1300b00449fd85f61dmr12772775lfv.368.1648309915000; Sat, 26 Mar 2022 08:51:55 -0700 (PDT) Received: from eriador.lumag.spb.ru ([185.24.52.156]) by smtp.gmail.com with ESMTPSA id o17-20020a05651238b100b00443c898b598sm1097992lft.112.2022.03.26.08.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 08:51:54 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, Thara Gopinath Subject: [PATCH v4 0/4] cpufreq: qcom-hw: Fixes for cpu hotplug support Date: Sat, 26 Mar 2022 18:51:49 +0300 Message-Id: <20220326155153.7377-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patchseries aims at fixing and improving CPU hotplug support on Qualcomm platforms. First three patches are the fixes for the LMH support in the cpufreq driver. The last patch adds support for lightweight offline() and online() callbacks which are used instead of exit() and init() each time the CPU is put offline or back online. Patches 1-3 being pure simple fixes can be applied during the -rc stage, while patch 4 is targeting next development cycle Changes since v3: - Readd throttled_freq calculation disappearing from the third patch. Changes since v2: - Point Fixes tag from the first patch to the correct commit - Replace huge patch 2 with one-liner thanks to being able to use policy->related_cpus instead of policy->cpus Changes since v1: - Update commit message for the first patch to describe why dropping affinity hint is required (before calling free_irq()), - Fixed commit message for the second patch to include messages generated using the mainline kernel w/o additional patches, - Changed third patch to use dev_warn_ratelimited(), - Reworked last patch to move request_irq/free_irq to online()/offline() to make sure that the IRQ isn't left enabled after the CPU has been put offline. Dmitry Baryshkov (4): cpufreq: qcom-hw: drop affinity hint before freeing the IRQ cpufreq: qcom-hw: fix the race between LMH worker and cpuhp cpufreq: qcom-hw: fix the opp entries refcounting cpufreq: qcom-hw: provide online/offline operations drivers/cpufreq/qcom-cpufreq-hw.c | 45 ++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 7 deletions(-)