Message ID | 20230726-topic-icc_coeff-v3-7-dee684d6cdd2@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2331105vqr; Tue, 8 Aug 2023 12:00:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfivMxC6YAhHXxnrv+Vi03fN5T2L1IufPEw6LxXNbV8trjPT3SwmKDVYXfx2iCt9cxQfDK X-Received: by 2002:a17:906:311a:b0:994:673:8af6 with SMTP id 26-20020a170906311a00b0099406738af6mr419801ejx.29.1691521219787; Tue, 08 Aug 2023 12:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521219; cv=none; d=google.com; s=arc-20160816; b=HHIVPv6gPfencZZ7+5A0xV6SkdcOitUPTN4SHpK+HqTDWudH99l1ZY/DNZtsdtE5lP yRVEhkXJFlFOAUsT5wJ3bzx0WZsE7eSGfoH6N0WGYWaat6mg4eMqCYZdtTO7IOvSrnIC GK1TVkULXjoEmobsbiNwjKD4T2bM5Ql03xcf10v1BLDsU9183Fqz1FfwLq+512bKKJLK saTLZquqLFmHm2m32vJwmUhFOgM+Pk5XyzMDN9BwCrLIpol5UHPshaAr9qdNuFYHUT3u XrdycRjRkFVm9zNoHsTrnFzX3uFnx6c8rnFlFnZiXA8v/GY29MtYlKqC99pMUYODrHOW 06CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=4FqN2Sq9j6IVseScqHZxUGnTrukPTjl33EKA90GBaFU=; fh=eQYZoDkT5yiXC4FOuYG6Kem76e5j3IG0APJeW7cmDrc=; b=T6ap3YiI681TkcHRiROGi/vTjKOQRh02kxg4n4fpa5+vKa5gcDAo5LAMRncuznGOmt 2GUGS2k/Vs5olI2mNMR2asuh3jUCgpCcdKRauXdK9mY3vupBqnWv8tGNupUmjv/U/5Uu KEUqmY/iWWMqh9BBjgnFeJOyOwa/ahR7t2yPwoHBnN00XK9qDoif0AocCawz6Jl1bM5x h4ZXrencoaawHBpT6J1E6zb2Ihk09YCFPIfKVS0uOm8fdqnHsJw0tdD10ZaZ4TEoMFRq R8IfERTGZUr4i3dplzcxO1x5SlqChK4kntnZ/7BcJHs29ToE0tM7RDhKfmYoGyYEsfFk 3ZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fjea7EtZ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj3-20020a170906f9c300b009930740da67si226226ejb.380.2023.08.08.11.59.54; Tue, 08 Aug 2023 12:00:19 -0700 (PDT) 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=Fjea7EtZ; 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 S231221AbjHHP6K (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 11:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjHHP4k (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 11:56:40 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBA95BA7 for <linux-kernel@vger.kernel.org>; Tue, 8 Aug 2023 08:43:52 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fe2d218eedso49954985e9.0 for <linux-kernel@vger.kernel.org>; Tue, 08 Aug 2023 08:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691509422; x=1692114222; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4FqN2Sq9j6IVseScqHZxUGnTrukPTjl33EKA90GBaFU=; b=Fjea7EtZ9j6mwiBEJIh8dIzRayTrHDSDSkYIP4tWikM+frpABlM+s1OYyAbI+FpXde CEeyGaGNio7xt+D48BUvVgbkwO5kwCblj8rRpuWQh+xo2wPgHbQ6Epan2AEVRGn5vYR0 +A3/YiKMrb6l9PHiRLPdN047iggzEOB/WRu1sO7urXgiAT5OfwprAAYr3fxDqSmGZZvw c3vt42xl6kxtUfE7xFR+1kp/nHZu9ugyxAGtRWAqEkyakoakfaVC2WUEEO6xkCu8qNRl 9t4pRwjWS+kCVkD0ghSSROhM98btzEu/tENlldPI3LnPNGdxakadlLgCGIWEDj+zdgyE e9fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691509422; x=1692114222; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4FqN2Sq9j6IVseScqHZxUGnTrukPTjl33EKA90GBaFU=; b=aV1NN/kBOKrYSCXsT75c8toBiCKLTciorykQVuJ4zshIMJqnZCO8DQ1y2o1ncuZZF/ y5tZyFeUELHTMQfk3QPMNcfIDvV9Oql41ktrqp7V1p8H/Wd+rIGH+vkKoXQEH4map2C1 sa5NKXuOey7GThDpAouTfMd0rHPB9050iY+LrGCVNxn2ZAYE8luKOA30tRbMx1eIMHPp jw128QTV5Vyi1IxIIhnN9G8J1lUnkSSibWqAXNQV8EK9uv4EQ3iT4gaM3MT9WJD9zcHD 7IJwGmgI8MmgOKYUGvkyXTJTYzzzzC35XnuzrCLmv+V4CMNMG0xDH5oH4WZ7My/My1KG nToA== X-Gm-Message-State: AOJu0Yzy5fn+0ne23gnoGk9+txG/EuMIpylkLXGDZEmDXkPDTmFsRsNm DyzBxueUMd6MQkYuTJRjZBxwlKo4vNz8UFjMocM= X-Received: by 2002:a05:6512:1598:b0:4fb:8bea:f5f6 with SMTP id bp24-20020a056512159800b004fb8beaf5f6mr10188044lfb.34.1691495024243; Tue, 08 Aug 2023 04:43:44 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id j20-20020ac253b4000000b004fbdba4b075sm1861679lfh.57.2023.08.08.04.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 04:43:43 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 08 Aug 2023 13:43:38 +0200 Subject: [PATCH v3 07/10] interconnect: qcom: qcm2290: Update EBI channel configuration MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230726-topic-icc_coeff-v3-7-dee684d6cdd2@linaro.org> References: <20230726-topic-icc_coeff-v3-0-dee684d6cdd2@linaro.org> In-Reply-To: <20230726-topic-icc_coeff-v3-0-dee684d6cdd2@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Georgi Djakov <djakov@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691495013; l=1320; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=+JCeGo0Q7sjfDzWjkGg+7ykqgtb42uWuVVMLb5STXRI=; b=kP/Ep84xH1Hu5VyTi/X5EdDQntTJIZBSHWF06vlxwCDpZi0bIpkqQ5Da38SWKULLxX6Ar2wu5 ZB0IYGCkYwDBC4GBGBIEMmpmnalm/DCz4COpfhANKRfGNaIkAba4j/2 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773688554490325935 X-GMAIL-MSGID: 1773688554490325935 |
Series |
Fix up icc clock rate calculation on some platforms
|
|
Commit Message
Konrad Dybcio
Aug. 8, 2023, 11:43 a.m. UTC
QCM2290 can support two memory configurations: single-channel, 32-bit
wide LPDDR3 @ up to 933MHz (bus clock) or dual-channel, 16-bit wide
LPDDR4X @ up to 1804 MHz. The interconnect driver in its current form
seems to gravitate towards the first one, however there are no LPDDR3-
equipped boards upstream and we still don't have a great way to discern
the DDR generations on the kernel side.
To make DDR scaling possible on the only currently-supported 2290
board, stick with the LPDDR4X config by default. The side effect on any
potential LPDDR3 board would be that the requested bus clock rate is
too high (but still capped to the firmware-configured FMAX).
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/interconnect/qcom/qcm2290.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/interconnect/qcom/qcm2290.c b/drivers/interconnect/qcom/qcm2290.c index 42fa01c66e73..3bd7ad67c569 100644 --- a/drivers/interconnect/qcom/qcm2290.c +++ b/drivers/interconnect/qcom/qcm2290.c @@ -678,7 +678,8 @@ static struct qcom_icc_node mas_gfx3d = { static struct qcom_icc_node slv_ebi1 = { .name = "slv_ebi1", .id = QCM2290_SLAVE_EBI1, - .buswidth = 8, + .buswidth = 4, + .channels = 2, .mas_rpm_id = -1, .slv_rpm_id = 0, };