From patchwork Thu Jul 9 11:07:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 235137 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1297990ilg; Thu, 9 Jul 2020 04:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdoYsz2odEcEV80mbu2MnDzFqmzI7gbj5B2P/hVCJmU9k8kyL0tkZKiXVX5eRLVlYq9sDn X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr72135027edx.239.1594292850863; Thu, 09 Jul 2020 04:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594292850; cv=none; d=google.com; s=arc-20160816; b=lGnCqskp0ZDbTLIKOEwoK1TSS7Mt0/WnXsTsIVsU8xjPAtkYrrh9+fdK33bAHoLSi3 Iy1z7LpXrSu11CdsJoFyvkV9ev4pyHqEESBKsiq48+mxzfJ7TGG+rI/Y5SPtEqrxfi2N W07mLzE+n7kFL+3t3uwg28dxgcmhqPQz0/Ak+9b9h0cnFi6efhHOdhJWIezbvILNAQDL scW8eEGXfC2XayUEm5efycxBbc3PXtCa2nYHTcbyglwYfQVqnHbPnOnxqdftd2wxMmm0 bQoAb/Fu7rJN9XSEWdd7xWwzusiN5P5DI4XppfkH9gCNL92XOjUVs87Zje1iJA7OH6gl cIOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5ypoS87uaYq5T1Ws5fpzwvYaFzn2rohMM1mgqyify3Q=; b=mhUrhg/cWR6ZKyVAOh7oRaLtpP4Fj0cc49uPiS2dwLyLqos5RtR8BT8azA/Ko9XQ4I N0pyJ85H9BmDYF7DVTF8CWwhFcVEyWYxgMuZF6enzlEIiaq47DCGWhhQfLLU3JG3JZTB 17ri3Zz1JaQTF+E+FnzLhCyC0a4ZAT9rV+2tz1zAcJKuEgTOh9QJeD6XGacTVGIAwHF/ 7rg5f4abM3e/0w7gML7kjL1ZQFQtofjLrp3d2xyrwsaCLdL/55pPckiWa8c1NvEUTqPI ScBpuTb9wUP+S8cKmmof+joaSJhMuSzfVa6lrmwQxHWKQir0UgfL444hE5PNVGmcTPkx Uz1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/XQOJpR"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 br6si1658518ejb.203.2020.07.09.04.07.30; Thu, 09 Jul 2020 04:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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="u/XQOJpR"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727814AbgGILH1 (ORCPT + 15 others); Thu, 9 Jul 2020 07:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727810AbgGILHP (ORCPT ); Thu, 9 Jul 2020 07:07:15 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1C6C08C5CE for ; Thu, 9 Jul 2020 04:07:15 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so1871906wrs.11 for ; Thu, 09 Jul 2020 04:07:15 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=5ypoS87uaYq5T1Ws5fpzwvYaFzn2rohMM1mgqyify3Q=; b=u/XQOJpRlPYAfkZQd67a8cfGanswI8V5QVehHkfbrFzIMDDe0G/ernaRhEM4XLh0VC 1GK4E3PfbGomGPDfaaJE/ffo/sQHtkVUj8fUdmFGFSDzodzZIke5XoA7TiKcp2kJYn2D 2p4DEap+OAMeKDUMYLuEfoX0En8TMCKA/YpyjvtsSgnn+UUahU+4zp5q35GbSeSOxAfp GZFccHLnYqs0qkaJO8Ja3hOyKS2hr6KbQzU44JNMdkjSIG3RSkwYxKBPTfhUqF7DiwB0 /T8Gd779ciLnWaVL1UbYzbqDN/dV5O/mmxeJ/QUbZC7sWQp6UTZjp+VEApofs3CSFGQB MrLA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=5ypoS87uaYq5T1Ws5fpzwvYaFzn2rohMM1mgqyify3Q=; b=DLj0l5AMURUX1Y3I+1fcN50K1nQpRp585fXHmRPIMz9O65LthdtVYzpAVk4kiXyjkl v3GRJTQI7kxeqCH2SaTXQ7i5CHJeqOsxiTGf4V5yHzcp726Z93Ip9OnpG3LsOvx+B9XA dTAAqDk5cXF2vFkem9y2Y0ws/Y0OW8u2KaqNA/lB3SM7UUHDkGNkNxn4YEh1fce5K5fr fD0qUI/ZPNZRrMTdmkQh3R2yEX6Y1G38ZqoRXRTDKZGAXHPP1g5V+yMc7cn07n6uqBGF JnfquG/2U70WeG8j2fdByhJjSpredsQ5yOfFqSwwlxQ6pkuq1KECE1aulsUimB8dJUNY eJ+A== X-Gm-Message-State: AOAM532c6+x4+DcPujbUH63tE/sS+Ut9mjHBl7vdySJ54ulyDAv1mswe 7YNnPgm1riJpi3DJmQklGJUvA/Y1A/c= X-Received: by 2002:a5d:504b:: with SMTP id h11mr61368817wrt.160.1594292833936; Thu, 09 Jul 2020 04:07:13 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id q7sm5375578wrs.27.2020.07.09.04.07.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2020 04:07:13 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org Cc: saravanak@google.com, mdtipton@codeaurora.org, okukatla@codeaurora.org, bjorn.andersson@linaro.org, vincent.guittot@linaro.org, georgi.djakov@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] interconnect: qcom: smd845: Use icc_sync_state Date: Thu, 9 Jul 2020 14:07:04 +0300 Message-Id: <20200709110705.30359-4-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200709110705.30359-1-georgi.djakov@linaro.org> References: <20200709110705.30359-1-georgi.djakov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Lowering the bandwidth on the bus might have negative consequences if it's done before all consumers had a chance to cast their vote. Let's return the maximum amount of bandwidth as initial value. This bandwidth level would be maintained until all consumers have probed. Signed-off-by: Georgi Djakov --- drivers/interconnect/qcom/sdm845.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/interconnect/qcom/sdm845.c b/drivers/interconnect/qcom/sdm845.c index f6c7b969520d..bfea6a5321b0 100644 --- a/drivers/interconnect/qcom/sdm845.c +++ b/drivers/interconnect/qcom/sdm845.c @@ -437,6 +437,13 @@ static const struct qcom_icc_desc sdm845_system_noc = { .num_bcms = ARRAY_SIZE(system_noc_bcms), }; +static int qcom_get_bw(struct icc_node *node, u32 *bw) +{ + *bw = INT_MAX; + + return 0; +} + static int qnoc_probe(struct platform_device *pdev) { const struct qcom_icc_desc *desc; @@ -469,6 +476,7 @@ static int qnoc_probe(struct platform_device *pdev) provider->set = qcom_icc_set; provider->pre_aggregate = qcom_icc_pre_aggregate; provider->aggregate = qcom_icc_aggregate; + provider->get_bw = qcom_get_bw; provider->xlate = of_icc_xlate_onecell; INIT_LIST_HEAD(&provider->nodes); provider->data = data; @@ -559,6 +567,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sdm845", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(qnoc_driver);