From patchwork Wed Mar 9 22:39:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12775679 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 24932C433F5 for ; Wed, 9 Mar 2022 22:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236645AbiCIWkw (ORCPT ); Wed, 9 Mar 2022 17:40:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233941AbiCIWkv (ORCPT ); Wed, 9 Mar 2022 17:40:51 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35EE8120F62 for ; Wed, 9 Mar 2022 14:39:52 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id r4so6368730lfr.1 for ; Wed, 09 Mar 2022 14:39:52 -0800 (PST) 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=DQZKBK074A8TFSyYxr2OkPnyn2MB2fIT3PRZzlPro58=; b=TWYq/B8i0x1RGd4xJ7dZNnNlKRw6Qs5ACTLfrIMG/k62l74ASgF7HenXPTdt/SdE0a uw0CdD0B4ZNN5/skVdtab8lhKgu06KbrfEsmf2PlrbzzdjHCa0qk/hSn5CkiNZRMiSXR +FtLS8K/Xo8klcuUQDynwVmNGc6DXvUTzRxv3PmU+I3EFZ5C0Rx9fHwM4azKbwaT5KSq gFy1f8KRD9qIOSOeQyWqGlovbp7s1qQ1QCZBWiJ4rXv8zXbT95IUjyQxCHOn6a2ul/yL /GjiMpz/s3fRjerYCbgawpFUejIWu+/wEMibKHKdDJhOVXqST+byXaBuP/+4bA0lvi+S Diig== 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=DQZKBK074A8TFSyYxr2OkPnyn2MB2fIT3PRZzlPro58=; b=7rkpE5Td8Eeqq7iofGvORojb3lghSeEQcn6xC39Z8I1ANY+9u/5BoQh6MSqgZJBbsx S8qEWNwjOnsYlnT+EMrfbeG+oBC8TJ0eLYuAi/wQ/6a1YOrGQQpMS9L3jAnfFYjhc3N6 gsoYt+4oXifMwTM8YWSwtR/Ip+xO5cMCMpf/UgtRXG+gs5IX+lNI0jFHmC7rh3a1oEAB xAMM6YMQVaakaM9UWAmmmpNGhPmw/gVC+l8b0oVqMPs/+wscoTXI0NZlsM0944Xq6qCm 0qsOkTXJaHOlz+Aaeva0itSBt/oKJanLB7gUtbR4sB9o1s9VRKFtZBsV0ZjoYWUr4wNg 5Exg== X-Gm-Message-State: AOAM533IBPXoeoxaajnXltSPF0fvuRKJpNmd9Y238VSqRrpRA9mhZY/L ygbFMEtDTAeILEHSalxVBBbhKw== X-Google-Smtp-Source: ABdhPJxgEsqe8Ds7AHWdsjR1GGA/1opBZlNnxsNz2vvyHcizxkfTgrlgiGeDywplly4A/vkQMeyszw== X-Received: by 2002:a05:6512:ba6:b0:42a:84ee:d9d9 with SMTP id b38-20020a0565120ba600b0042a84eed9d9mr1177557lfv.353.1646865590554; Wed, 09 Mar 2022 14:39:50 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id b24-20020a196458000000b004483734e0afsm621036lfj.12.2022.03.09.14.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 14:39:49 -0800 (PST) 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 v2 0/4] cpufreq: qcom-hw: Fixes for cpu hotplug support Date: Thu, 10 Mar 2022 01:39:34 +0300 Message-Id: <20220309223938.3819715-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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. 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 | 78 +++++++++++++++++++++++++------ 1 file changed, 64 insertions(+), 14 deletions(-)