From patchwork Sat Apr 16 03:10:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12815663 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 B1A90C433EF for ; Sat, 16 Apr 2022 03:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbiDPDNK (ORCPT ); Fri, 15 Apr 2022 23:13:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiDPDNJ (ORCPT ); Fri, 15 Apr 2022 23:13:09 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2EF673CB for ; Fri, 15 Apr 2022 20:10:38 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id y6so8411365plg.2 for ; Fri, 15 Apr 2022 20:10:38 -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=Qw+wDSDDbxggXGgwwZWkwH3lrynkAiZe9UOImumjJsk=; b=ZBntg5kT33IkkIdLfeMCrFJ46V10rWyplYqPdTOkBQU/XYMQpe8+HCXva8iSPQmNvp zpJkDZKHI4T6F8Dfj65U5KEFiHArkyStQ2Vc781YA4r9vdU1briwZA5LQj4mUeXLwrPr /UjAA44/Q9YMtLMsE+VdFl7HvJjYT3yXDh1dIsVMVreAILb24TTcv7IHs6/5SY8Qz7DO SfhzouZUb6kl3u4orcMy8I85oc9Dm0xMBDJG1QuBOBR1RgxlJEs4QObI+QiRzt1pCpD3 EI9cs/2MGrMhj5NS/L+B94OKYJ1AaoZCWKM/2Jq/mXJx9GnSV/R2or+PqKXAUg5W1LGH bgcA== 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=Qw+wDSDDbxggXGgwwZWkwH3lrynkAiZe9UOImumjJsk=; b=St/gi20qYKJWBS5ZQR30OCz7jjcH8rshTB4hE/EbXOnzI4Z494yUlQuSOd/DuZ+E0/ hLqavjhzLgpbldZ+2gr2JW6qVLmiP9k+iRrbpA6SrkxlUX9zzhv0phADqjNV8Fe3kIh9 UMi7ND9t8obHjL8cEfuwL2uHEhkqkVu5thtpsEtb7B1816IrQOwkkjz7ntuI0GAaPsdK wfQaTb/N9ODUkUpM41QbB9WeHORXjOaap0Ix8NcmDOU+53N8V0AHgpB2OwoQE4zHWvGA F+GY6pAy0UPtuxIVNL4Nm3CVpbioa97mRfWnKDa9LH3ZhCtw+/y+9Yg5/z4Gb4jiXfUQ 0NRw== X-Gm-Message-State: AOAM533oYvLxBFASjDaPDn4F9lsfclNhpRgIK8BleHknmIk39+GCnM+j A273Hu4H26IMafiIzB6wZZzVMw== X-Google-Smtp-Source: ABdhPJw6LFV/gr3J5ry4mvD9Yt/mMPTMhNZ0jfRlWuoWoFKpl/HCMZo1MTjRe28Zqn4C8UkkUA4oJA== X-Received: by 2002:a17:90a:3d02:b0:1ca:7f92:1bf1 with SMTP id h2-20020a17090a3d0200b001ca7f921bf1mr7316233pjc.177.1650078638299; Fri, 15 Apr 2022 20:10:38 -0700 (PDT) Received: from localhost.localdomain ([134.195.101.46]) by smtp.gmail.com with ESMTPSA id f33-20020a631021000000b0039dbae3fce0sm5719120pgl.43.2022.04.15.20.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 20:10:37 -0700 (PDT) From: Leo Yan To: Andy Gross , Bjorn Andersson , Georgi Djakov , Bryan O'Donoghue , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 0/2] interconnect: qcom: icc-rpm: Fix setting clock rate Date: Sat, 16 Apr 2022 11:10:27 +0800 Message-Id: <20220416031029.693211-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch set is to address two clock rate setting issues. The first patch is to fix a potential cached clock rate mismatching issue, the issue can lead to the clock rate is missed to be set. Note, since this potential issue requires specific time window and certain condition (consumers need to request the same bandwidth) to produce, the patch is based on analysis but not a real trace log. The second patch is an extension to cache clock rates for active and sleep clocks separately, with this change it gives us possibility to set active and sleep clock with different clock rates. Another chagne for enabling active and sleep clocks for icc-rpm driver will be sent out later, which is dependent on this patch set. Leo Yan (2): interconnect: qcom: icc-rpm: Fix for cached clock rate interconnect: qcom: icc-rpm: Cache every clock rate drivers/interconnect/qcom/icc-rpm.c | 14 +++++++++----- drivers/interconnect/qcom/icc-rpm.h | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-)