Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3737698rwb; Sun, 20 Nov 2022 21:12:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf68NUueFHoqPwlZE5DqB86Gr+luUgEI6U6L+Tk4CZgOugw3xWSHQHIJNreRaGqo5QRDUe/1 X-Received: by 2002:a63:ea17:0:b0:46e:d2ea:1417 with SMTP id c23-20020a63ea17000000b0046ed2ea1417mr5520800pgi.0.1669007547664; Sun, 20 Nov 2022 21:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669007547; cv=none; d=google.com; s=arc-20160816; b=W1asb4CzIh7fzvJxQ4nL141BzUIS0TSF8DebKDhIzrkBpA2qxvVIle58qTjAjRKhz9 rqGRU0BtwDcMDclzmxDMNADceqRlHJ6FTQAqQ+uoeX6oNXhVWK6am5QPCXq+q4elJIic p9qTyqlEJC0PQ7n3S4IW8HOFjKLoOJbCqPYVcX7I/0YGIvvspSlFhZU2HQScTuQN7mdy hajlrcLhJDnPJTHyUoItEyNHfSHg2to8viKssFpCSpHDvHIrn+VK7M69/5dH4yZFDscW 9SWJEt4lAGUdNW2yG06Z/h6QnXN9yx4lgY/9DRWRbk7R8lmsPpfFiKy9A/xnKwEYaOKF /9/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qrMqh8nIzBj0rcQAnGuTQVL6D8xs7vnCoBc93q4h/+Q=; b=PKenVDs11lAohDhg1yxL/jZj6CgvxCzaMj6Nw26GqWWLNDWin5cihZLniJy50OOU2l tSpr7jvaBTZ4t0CzKL9ntP/nQhWMM3tH5qvi7zIXroTt954hmzxoRds0/MO4FTdnMxY6 BqhBlSwYo8oE0f65/DCDHacU1HqfGMZYtZU+35JV86ugpzXHxbm6Ozi2LNi30jyuWMiI 0Ly74beN7cLorWG5XL2bcZkzqYBGj8iIH7b58AtfGYnlXjVnF1y53yC23wPlG1gl7USD ZvNP4Uz1ZdtseEqxUil3i4kufF0F9sIq4PfCEPfvUDKNsNg08xGmzPlVCc9EL556BUnP cJJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2rBkk0q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0046fe64444fcsi9889199pgi.839.2022.11.20.21.12.16; Sun, 20 Nov 2022 21:12:27 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=G2rBkk0q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbiKUFEp (ORCPT + 91 others); Mon, 21 Nov 2022 00:04:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiKUFEn (ORCPT ); Mon, 21 Nov 2022 00:04:43 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085B71CB19 for ; Sun, 20 Nov 2022 21:04:40 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id b62so10195693pgc.0 for ; Sun, 20 Nov 2022 21:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qrMqh8nIzBj0rcQAnGuTQVL6D8xs7vnCoBc93q4h/+Q=; b=G2rBkk0qVJF3gkH+xd86yQYplumpJ4CWmeia7/qm7d/KfvA7PdsJ6ovCRo+XIC3zPI 1A5ecQL1IBKcu7KNXCFsz0jFVTrS00cnoUmKEoG7Ehwq9g9b+4RbaSnDTZX0i7vJVNut +uKAch8R9y4hl06kAzL7iTL9FacKYxAG04VBEp90gNCay0oEC2W/IWrzERCBC/HRzfmR agM9tDUICiuxJlFeybHhUvyxo4wt8zVCTGrWWd25e4CDP3d4IpiUq/fgpyElUXiihB6R 3h4a7mW4EPjQdoTBRKOanM73rtkLwxC31yV7RiBRMw2O/bn1XWG8bcZVDWX1PS9ZCpl1 Rc6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qrMqh8nIzBj0rcQAnGuTQVL6D8xs7vnCoBc93q4h/+Q=; b=6aWSJS389uv3PsYzVyar3/yCX5YJ2zYkYl7M5ts+fC99WmOv+zCeV+4Ecq1q7nbsXV VyszlNIf1YZIM16VzhZkqg7T3O/krLNWVbY4VyB7C02i2dJ/pWWepJ48TqSu6rRCfeW1 md/DsbF/HzovCx+/9jb60Jo8DM3dKxtEco8wQmhg6qSqDJZRUv8nlEJfxY5ntSjZjBht ETkCYPIYUG/mP5jTeECAfgyiQO9MisVJGbXZuNPlS2OSmqI1n6FuFg3PWnNExXzOyIOv ZDJXK+3nhdcS7vOs75pmDH9dfUGDxT4Wo7B+wO+17M24/jopdyT2EqWaKXIhpFDIy/aU A8wg== X-Gm-Message-State: ANoB5plC44hdyaYKVtWCxGf9r6wNHYJaq6uwMtFHvD8J+uGAHg2ML6Zj pyeHBvaunx+3vSYrjNacfwQA7Q== X-Received: by 2002:aa7:942f:0:b0:56b:a149:1d89 with SMTP id y15-20020aa7942f000000b0056ba1491d89mr735135pfo.83.1669007079516; Sun, 20 Nov 2022 21:04:39 -0800 (PST) Received: from localhost ([122.172.85.60]) by smtp.gmail.com with ESMTPSA id d4-20020a170902cec400b0017f64ab80e5sm8574461plg.179.2022.11.20.21.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 21:04:36 -0800 (PST) Date: Mon, 21 Nov 2022 10:34:34 +0530 From: Viresh Kumar To: Manivannan Sadhasivam Cc: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, robh+dt@kernel.org, johan@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, stable@vger.kernel.org, Sudeep Holla Subject: Re: [PATCH v7 4/4] cpufreq: qcom-hw: Fix the frequency returned by cpufreq_driver->get() Message-ID: <20221121050434.5qyp46vkc5aj6nxe@vireshk-i7> References: <20221117053145.10409-1-manivannan.sadhasivam@linaro.org> <20221117053145.10409-5-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117053145.10409-5-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 17-11-22, 11:01, Manivannan Sadhasivam wrote: > The cpufreq_driver->get() callback is supposed to return the current > frequency of the CPU and not the one requested by the CPUFreq core. > Fix it by returning the frequency that gets supplied to the CPU after > the DCVS operation of EPSS/OSM. > > Cc: stable@vger.kernel.org # v5.15 > Fixes: 2849dd8bc72b ("cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver") > Reported-by: Sudeep Holla > Signed-off-by: Manivannan Sadhasivam > --- > drivers/cpufreq/qcom-cpufreq-hw.c | 42 +++++++++++++++++++++---------- > 1 file changed, 29 insertions(+), 13 deletions(-) A fix should always be the first patch in the series as it needs to be backported. I can reorder this if it won't break anything for this time. -- viresh