From patchwork Fri Mar 25 19:47:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 554428 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 C0942C43219 for ; Fri, 25 Mar 2022 19:57:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbiCYT65 (ORCPT ); Fri, 25 Mar 2022 15:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232597AbiCYT6S (ORCPT ); Fri, 25 Mar 2022 15:58:18 -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 25F131C9B67 for ; Fri, 25 Mar 2022 12:47:37 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id d5so15068075lfj.9 for ; Fri, 25 Mar 2022 12:47:36 -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=lgpBZVT3N397yNEIE8syFhUaj9YB16F6AhosJ5tOLW8=; b=N6mHXveQOoSZhABGQi8E7MEKTtsoXwSmYElE3MIh3BF5uZa3BYVcgqX7p08SdfaJj1 vvQ+fxNfu25M+hlQG08ku6H5eTq8nShwNPKMdparpEIK+UVB4/BeB/+UCtGdrJ1NUS1p Xl1bMLPf92nO+oqq3G4iXBwfYORC23Fs3KUTaBe16bY6icyTegq6gqGDazL6VFfOex7k SyoGN9Xr+nQayHMSNpi11Zn1enUtJTwKMiFi0kf/O4CCtXGKFVFqBNMb/zHYMVR+27EQ 6+PhmcHTrUUkuzD9oIEtQYuJFiGNDXyNlFJP48t3YW7307s7WgVSde2+ADZnEEEte29B nBpg== 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=lgpBZVT3N397yNEIE8syFhUaj9YB16F6AhosJ5tOLW8=; b=5sOiCERPDzxgQ5F4ARK9dxnNcqSBg+V8nCjNUL74cCpViyvaJLwiOpWzCWNjYHApbE wCDN6BuPo4mwYh3Jsvdiqbzskf6ZVFFz1v7ZVVTC9s+0SLlGaHEmp9SaAqm/5i2Ejnlg HECOIbbZGX31YaFElCqIjOSsVTUIpYEGOeGU+uXtUVQ4pcHPFr+iJ+/vyZDW4mcgqvCm KtHz7ZMiwVaAOUmRjlcWRExuihcj+wgGjOQaH5AtbdyOgMgpesrhs6yzpOlxw4Cec8MC 8IjHK9Tq7J9UzpjrzKnCRRmTt8XjPm4+awN0MU7zES4WU0YvPU1W5plKvVvlOxG/V3Ib 2qmg== X-Gm-Message-State: AOAM532WQZKswQJ+MD+83tqBqMnRrx0gju/Ke/ItMYJIZnyxijsVDMAk Fgny40/WkArL4popCFt2DwHcBg== X-Google-Smtp-Source: ABdhPJyyhGwSHZvtiF6X9rzM53uUfZpOgpSMKroyqWiYthwPRq1lZ5oii1oKgclzonhQgtuLYK/ZSQ== X-Received: by 2002:a05:6512:4014:b0:44a:2b77:bed6 with SMTP id br20-20020a056512401400b0044a2b77bed6mr8691672lfb.381.1648237643246; Fri, 25 Mar 2022 12:47:23 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u16-20020ac25190000000b004433b80c1d3sm802014lfi.182.2022.03.25.12.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:47:22 -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 v3 0/4] cpufreq: qcom-hw: Fixes for cpu hotplug support Date: Fri, 25 Mar 2022 22:47:17 +0300 Message-Id: <20220325194721.2263571-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 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 | 43 ++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 7 deletions(-)