From patchwork Mon Nov 9 12:45:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 320907 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1703233ilc; Mon, 9 Nov 2020 04:45:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRw27eTdgr1khyH8CXY+sdW0jx/Pn3vWrwI+uj4C6IYiWCZz47mitkbaBG/MVaC582Aod+ X-Received: by 2002:a17:906:8398:: with SMTP id p24mr15248633ejx.401.1604925919232; Mon, 09 Nov 2020 04:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604925919; cv=none; d=google.com; s=arc-20160816; b=AY2NLtgUXup5Lqtlw7iPNFCS8VfsMlRS7wMNkbRoCyz5uzB5y0MsRHz8RgLR+Ojgf6 dJeoR3lMAJTih8zSFXqIDBB7utNHaBcLcyLZC8KH2nSS5d5CFe7EFUTdanhm0nV1PPby 8HWm8PMn3zp8zA4GgCsH2+b2lTSzd4mwMaDP+ZnqAhBpposSsHKRBv4O2mcv0mJ51uDn e5JoFVBrqrM1uR2dG3DvD3A8xC1L6Shd/I+yDvdjEON0a/mymBfRcVplqrew9oJyol5T esVx7LaT3q6ncE9TT1fpB9mkS7e5Jg+cFNTjaOFLTXyIYSueJB66zxsNxo4wY7v3eXtY 4V7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=I5og6iQL2F2KU/9VCiyIO/1t7oyXeSMRtxWJsg/eg+g=; b=yY/WovdERWnilEYGk/GfH/UAdzl1rnmVS2voX+iUnvamtTVL3/2wD/XlZzy6HoaONa sw5uYV3p2edBTbMRou3lCZ8t+L/Vk5Xbb3+Ubb4lxaY1p44v0PbfuMdjpF86zdvdOnX0 K8akycZSEaX1wiN+VSaxT/nhof4n3mE0rMUgqo8ovL9oFvJVJBwKlSL3/AuMxuWjEi1b AIGgs/nQFvPrDrVZReYUzruK2O2pchFUCoObjEBUMINlZwmLlfEcF+OO2yXZPDsV7ryo wuzihu9eT3oEanzeAe7spetLzkXknFq1xGUnaHQeRFlr8bBNOl0JSBcG4Bc+cyplFy21 pgug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gk6Y3BhB; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si6879536eda.182.2020.11.09.04.45.19; Mon, 09 Nov 2020 04:45:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gk6Y3BhB; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1729658AbgKIMpM (ORCPT + 9 others); Mon, 9 Nov 2020 07:45:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729303AbgKIMpM (ORCPT ); Mon, 9 Nov 2020 07:45:12 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6999C0613D4 for ; Mon, 9 Nov 2020 04:45:11 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id j7so1283468wrp.3 for ; Mon, 09 Nov 2020 04:45:11 -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=I5og6iQL2F2KU/9VCiyIO/1t7oyXeSMRtxWJsg/eg+g=; b=gk6Y3BhBCWnU2IL1KQsAWPoRse7BEKzs3cZVZMKCdpCN2TibgOHbiInvSTtrJh0dz0 QV+ae6jXdwNLSdZl0/pVilO9Hu1wAJLED+q/pEDus6UEFLxCiMQepflmsXsgo5XRhyi4 KNcDee4/GEagpFrxVO+3pSxcRFlDdfDRy1PGyY6YRx81kz+FrNDPsBjzm/EsQCSvbEnV LfX/ObUmMf4K8gsgQ4J8y2L6/kkmxlsPWeDKtZT8MMetegulDNNS/0lBhdDjmKHmUNDO ARxYYsFvBZ/8gdyIDHH/RmX58uyQ3gX5rOkbhR4eLovvIdZBYLBc1cdbzFyuwypS15yY n/Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=I5og6iQL2F2KU/9VCiyIO/1t7oyXeSMRtxWJsg/eg+g=; b=eUxrvaG0IOXjpgl/kbWB5tD+I9EUOtlLy0ethUvreoJRJVh8w7kuLLUM5ouoHZg6bv T2Ul0+sWQ+AUqS6QkJ3YQ+QsWmKVwzRPlUseWtj4c/0DthJf9wftoQZUNB8S8DMhn8ag aItGeFQ2cTaF6s55FTo9Pald8dj7c8dUbVE2KkhaY0j+ixun7wCJJrA0SULjiDKjQWb9 tn8BS5R5qjyW7aMP/20di+p4i9y+uhrXSR5p7N8MAgBy5kZi+Sx0uzSbcw20j0lh4ZTb cA3euucGTAUBlprVrn4q4VYdEyA5EKvT/4eGLT2LRdeDtNBcj504mvmikwGHs9Q8p+CG yrgg== X-Gm-Message-State: AOAM533IvX27swmgWHaCzGYZfW9oI0q/aM600KTtYAO5dnRUXlP8UgZZ 2FHlRd5BQkFSYUm4N+CZVWP41UOzBkwvBA== X-Received: by 2002:a5d:4084:: with SMTP id o4mr309309wrp.278.1604925910194; Mon, 09 Nov 2020 04:45:10 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id d2sm13113259wrq.34.2020.11.09.04.45.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Nov 2020 04:45:09 -0800 (PST) From: Georgi Djakov To: linux-pm@vger.kernel.org, luca@z3ntu.xyz, masneyb@onstation.org Cc: bjorn.andersson@linaro.org, saravanak@google.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Georgi Djakov Subject: [PATCH] interconnect: qcom: msm8974: Don't boost the NoC rate during boot Date: Mon, 9 Nov 2020 14:45:12 +0200 Message-Id: <20201109124512.10776-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org It has been reported that on Fairphone 2 (msm8974-based), increasing the clock rate for some of the NoCs during boot may lead to hangs. Let's restore the original behavior and not touch the clock rate of any of the NoCs to fix the regression. Reported-by: Luca Weiss Fixes: b1d681d8d324 ("interconnect: Add sync state support") Signed-off-by: Georgi Djakov --- drivers/interconnect/qcom/msm8974.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/interconnect/qcom/msm8974.c b/drivers/interconnect/qcom/msm8974.c index b6b639dad691..da68ce375a89 100644 --- a/drivers/interconnect/qcom/msm8974.c +++ b/drivers/interconnect/qcom/msm8974.c @@ -637,6 +637,14 @@ static int msm8974_icc_set(struct icc_node *src, struct icc_node *dst) return 0; } +static int msm8974_get_bw(struct icc_node *node, u32 *avg, u32 *peak) +{ + *avg = 0; + *peak = 0; + + return 0; +} + static int msm8974_icc_probe(struct platform_device *pdev) { const struct msm8974_icc_desc *desc; @@ -690,6 +698,7 @@ static int msm8974_icc_probe(struct platform_device *pdev) provider->aggregate = icc_std_aggregate; provider->xlate = of_icc_xlate_onecell; provider->data = data; + provider->get_bw = msm8974_get_bw; ret = icc_provider_add(provider); if (ret) {