Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp589188pxk; Thu, 3 Sep 2020 07:42:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUkMZ62Hd5zOS7fO27+54gZmmMcJlv1OaGGCIun5gDIG6in/rcktJxeP1MaujZlhOOsJGk X-Received: by 2002:a05:6402:b32:: with SMTP id bo18mr3472045edb.201.1599144165802; Thu, 03 Sep 2020 07:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599144165; cv=none; d=google.com; s=arc-20160816; b=ESJG1heqHaZRUVbeq9gumSts6ILgQKCAuI+KoXNFE95qN/9cIUXsK18jqc66CD6hVH KJ2gB5QrMAgVvp910eMrs096RqxNU7b0RBD9IO1Zo+gG7QnDFYGDPVbQKZZHGULzu2Sf is2yOACp7dvt1Rdmg9jRumUbGZ+Km4lYmmAaRk5HZCv069Vn9R/YZfFjjcQRgnf4xML3 FgawwSQONo6+YPbzsf3xDGNzeuVOxkdfqbgeBbXfsGPae7bxXaJxRZen62Mr2QKZAGr0 HRIV8wEzL5kdxUPYIXKlc2oCodbRQquADU/1csQ/CMLvUatjPTmyeZnP5+UDK1/kz2Sh 5GyQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1ZdEfEgmL9xMVW+zYcpKfDQO7HkBHnE+KMZRuI8Lf9k=; b=WWORNKL+EJ2QbWIA7aJzmMStgEaphI+Kum7p9EQbscskP90pgAATXGIbE27iedYnmq M9AUAaCxfi9IJYc+ch+vKK16joFhQ1/CdQIYNn6AAVl4HASyw8VpDs1iFYfJI4BdaCLT vVy1pgY1njwhr3pNi1XRU3HD3mLA3WT8VRa1lxJTJVKHu8kvY9g3vIsPgoYY9IGNxl0w e9au8AUB7QHzzHZSs0/nZMGSaD2DgQfcOUNFIgWftPPJ/MfMjLePToGS+HD9gvpOrGxZ GOBH1JI5E/V82YTK0HWrtI83GCYAs8ISFozGREwx5RGQam7gG3Rwz1+gLk2PwuCNh0/6 XV6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d72daTpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv24si2019216ejb.258.2020.09.03.07.42.22; Thu, 03 Sep 2020 07:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=d72daTpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729413AbgICOlL (ORCPT + 99 others); Thu, 3 Sep 2020 10:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbgICOiW (ORCPT ); Thu, 3 Sep 2020 10:38:22 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D83FCC0619E6 for ; Thu, 3 Sep 2020 06:31:38 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id j2so3242161wrx.7 for ; Thu, 03 Sep 2020 06:31: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=1ZdEfEgmL9xMVW+zYcpKfDQO7HkBHnE+KMZRuI8Lf9k=; b=d72daTpVXoFFKFMcoZerr4SN73VKG7KBahyo81SxAWwlnUIXnP4Hiu0wEqMahwIn2o LGa/L5PaDhSKkW6A2aKmCvXUc1Y7CQlo1vIRokt4mjGZ/E8C0NkC8DFHdRcyR6zzGStq jD2svGqpzvApSdfm4Yd9u3HDuCaTuayg11hPq4rk7boRhViVFGOwYD1DCSGWHHEQPuyv Umy4g1qdPh5N+ALxnFjOayg/Yw5EsjlS2OOxZcPUTLLLIom3LVSgdN+akv4yZOHb/LFw B4/tzmmeCZek/9PDbgTIoQnidxfXI7T4MJGG1/VXEKZXqpOHHbbuMB+oiIF9CfadmXbU KNRw== 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=1ZdEfEgmL9xMVW+zYcpKfDQO7HkBHnE+KMZRuI8Lf9k=; b=HhMnjPqPZC1VEEFANlKAjQ8S3hUjNsLeUSG35lUPoM9Z13vq4UYwjAShCkAcProbvF JDE00OileeoruzB8KBfCjtskg/0VZ+lJ/BXqWS9x3/wbXA5HV7gepg0AMJtiZTA9KB/R +DsAB6f/W6IvGIifW+4oZg7vK/GAQvIZ3jey1fVo+JEcGvPeIOkifueWIBfLNSI4hqoU Qlu0cQw8tI6PhPsq42+yYJH6UN8CkuGWEZH3gkHBSvOXqUopRPxAh1CFABy/kEGgzLXa WAbQzugAO6c7Mg8nrc8zof1W0ux5t+91P5Wf2kKWeNVm1jd45apzRcNVdKzipkv9elot RVJA== X-Gm-Message-State: AOAM531KHVSNhw4esPOaJOZFAe2HaNBsXNrj/yOgSpxa3/DqVjMlJqft WkrSpY+DSCRvG1c9be5sx6w44A== X-Received: by 2002:a5d:5602:: with SMTP id l2mr2677121wrv.410.1599139896777; Thu, 03 Sep 2020 06:31:36 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id b2sm4310768wmh.47.2020.09.03.06.31.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2020 06:31:36 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org, bjorn.andersson@linaro.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, sibis@codeaurora.org, mka@chromium.org, dianders@chromium.org, georgi.djakov@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/7] interconnect: Introduce xlate_extended() Date: Thu, 3 Sep 2020 16:31:27 +0300 Message-Id: <20200903133134.17201-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the interconnect framework provides the xlate() callback for mapping the endpoints from phandle arguments in DT. This is implemented by the provider drivers. But the endpoints (or the path between the endpoints) might have an additional attributes, which should be parsed and populated. During previous discussions [1], it was suggested that adding more and more DT properties will not scale very well. So instead of adding DT properties, such data should be put into the 'interconnects' arguments. This patchset is introducing a new xlate_extended() callback, which would allow the interconnect provider drivers to parse additional data (such as path tags) and allow the framework to make use of them. Thanks to Sibi for the preliminary feedback and testing this patchset on the sc7180 platform. The patchset is based on linux-next (next-20200903). Changelog: v3: * Rebase and update both dts patches as Doug reported that i missed to update the cells for the GPU and also other stuff changed in DT recently. * Pick Rob's Reviewed-by v2: http://lore.kernel.org/r/20200806163126.22667-1-georgi.djakov@linaro.org * Add a patch to update the DT documentation, which i missed initially. * Minor changes in commit text of patch 1/7. (Sibi) * Remove a useless null check in patch 4/7. (Sibi) * Print a warning if the number of DT args is higher than what we expect in patch 3/7. (Matthias) * Pick Reviewed-by/Tested-by tags. * TODO: Replace tag IDs with macros in patches 5/7 and 7/7 when [2] lands. v1: http://lore.kernel.org/r/20200723130942.28491-1-georgi.djakov@linaro.org [1] https://lore.kernel.org/linux-devicetree/20200519185836.GA469006@bogus/ [2] https://lore.kernel.org/r/20200801033215.1440-2-mdtipton@codeaurora.org Georgi Djakov (5): interconnect: Introduce xlate_extended() callback dt-bindings: interconnect: Document the support of optional path tag interconnect: qcom: Implement xlate_extended() to parse tags interconnect: qcom: sdm845: Replace xlate with xlate_extended arm64: dts: qcom: sdm845: Increase the number of interconnect cells Sibi Sankar (2): interconnect: qcom: sc7180: Replace xlate with xlate_extended arm64: dts: qcom: sc7180: Increase the number of interconnect cells .../bindings/interconnect/interconnect.txt | 24 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 218 +++++++++--------- arch/arm64/boot/dts/qcom/sdm845.dtsi | 48 ++-- drivers/interconnect/core.c | 73 ++++-- drivers/interconnect/qcom/icc-rpmh.c | 27 +++ drivers/interconnect/qcom/icc-rpmh.h | 1 + drivers/interconnect/qcom/sc7180.c | 2 +- drivers/interconnect/qcom/sdm845.c | 2 +- include/linux/interconnect-provider.h | 17 +- 9 files changed, 251 insertions(+), 161 deletions(-)