From patchwork Thu Jan 21 05:32:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 367804 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp247936jam; Wed, 20 Jan 2021 21:36:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUdqhjk119d7Nv9KHN3iQXk1BpRhyG6WhgVFBJPnPwT1cmnTwMmCUvlTeRrUUdkiNBlAdR X-Received: by 2002:a17:906:48f:: with SMTP id f15mr8211925eja.392.1611207367993; Wed, 20 Jan 2021 21:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611207367; cv=none; d=google.com; s=arc-20160816; b=iNuqBzl/JoxuQfJAXpAf4Vzm5DoNMJmpRfNdsW+rBzPLi1908J2u3cZ1iRSBneyIJw ohyKnwGL+VUaPvr/hWPDPZ53I3eTCibHZfyX/JJePppvqwmzPrxfYIXlL+iiDAOv4MU+ 7ojHdazrUvt+OEYpP2KJkjwmovSRQ15emBqm4l1YklEAMdzasrQZrNn1Goh/Ml81boA1 flicpulKV3UAe6Inq5aDsfkq7gc4JREpSfj9IoTElx7gHczY8bfYMTKrzT0m5qucvf/V VZIESCJtOoRCgGcXftn1YkjaDxowMXgLbWMyTRtSpulsqaD/7YLsTvO/cdIDx+n2XzTd 7hOA== 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=PHlzH0Ourl1mu7oe7NxeEbG4XHfC6NVL5g1u9VF/oMA=; b=eJlKOOx+njkAPvvOrhVkHKzS2dxHCCGZy5mE91mMzY8ZUkRItFSNv35tD7vojXgrG/ klTj0Uss6dHR/4VUlKw4tZ00KHSHt4g8KSG2nk/qa/s36aI3BUdnc8zIz1Psv59OcRtP Oz6ay5kBRjnVIF+oS9+VHXo/fMJsyy3J+BZ9ZCmz64VClPl/7j11PS91W0ai8WApymw5 Vk9i+f8rTdVKr4JbBxR0bMBWvtucVgoKQHb0AY4V3DRdL0du9dNm2OsiayQlwMVj3vgd 3krg20FBxV7Mm50YYI6JO3e0A0hVzqjEQ1R1kNwOAcRYiulnQLtNGNbYgyLomJ6t69V2 u2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uZuc/rNv"; 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 jp25si1368601ejb.519.2021.01.20.21.36.07; Wed, 20 Jan 2021 21:36:07 -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="uZuc/rNv"; 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 S1726204AbhAUFe4 (ORCPT + 7 others); Thu, 21 Jan 2021 00:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbhAUFdx (ORCPT ); Thu, 21 Jan 2021 00:33:53 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13BFEC0613CF for ; Wed, 20 Jan 2021 21:33:12 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id cq1so863465pjb.4 for ; Wed, 20 Jan 2021 21:33:12 -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=PHlzH0Ourl1mu7oe7NxeEbG4XHfC6NVL5g1u9VF/oMA=; b=uZuc/rNvyqGSYV8PEbuyrvYpt1fd4IwmupPpl6az7+KBxHPx0bRKkBNejfZPA7TwQm pZu3lQ/SpNpE+oJcJl+nvNjW7aj+WY7j6iiBmjNYYB7c8k/ykrHwyR7JQrn2KiXoelxb GUdkydoQLBDkfNO5gFyC0UDOlTJbupc0ReshgbxrtW4WrkcnWCXozcdBW2t2Ilz8Px8E EO024M0CPeBx7hebVYzJiZ+njciNpZsfIrdsm7FCDpFls2QbQb0/KYCjm9A+IztIgbml XtkdQaxoqIpvEx7dlzILt+QHbvcLILb14yKzKNWMo3EcrPwPKK8ltUgT0WjSxneX8SU6 EohA== 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=PHlzH0Ourl1mu7oe7NxeEbG4XHfC6NVL5g1u9VF/oMA=; b=jSHeJcj3oFw49N8O3tpkjK8DP9M7Ce2e4zDZCL3f8HKbIs1jiJq3OwKQkSTgavapxJ 0f6xEq/cmEejbOBsZmxfWQTIwyv0OcyiYlbuz/M8du6q/TSP+s8VkOfVniyqc6enOXpr rQY2Gm4Huvl7xME8+657LyC9bBo+OoXkvhQNMJ251LkaQRCjvGcD7XoVd3pCOFL1uOcH hadf4kBAKSCPEhjAAO2CI8uao97X0qMo225rdMJkzCPSxe9FN3Qn42DCn1vm01hzqv9v 6RtYy7BeAKafipVMwfIJGhJW6mE+HIEDZbnoCjbFzXL+mmoJOc+n9jMACP7/gBl/gn/E kJaA== X-Gm-Message-State: AOAM533Y2xljBuKEzNnhzvASQ6Ov9Ph/AR5YJ9hXVX0WDoBICo4YjqJv ArEF7v8wqfd+hvlWgwC+MbiO X-Received: by 2002:a17:90a:5501:: with SMTP id b1mr9450580pji.7.1611207191416; Wed, 20 Jan 2021 21:33:11 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6182:23c4:4d5:e6d9:fc7e:c8e2]) by smtp.gmail.com with ESMTPSA id o14sm4332850pgr.44.2021.01.20.21.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 21:33:10 -0800 (PST) From: Manivannan Sadhasivam To: georgi.djakov@linaro.org, robh+dt@kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, okukatla@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v2 0/2] Add interconnect driver for SDX55 Date: Thu, 21 Jan 2021 11:02:52 +0530 Message-Id: <20210121053254.8355-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hello Georgi, This small series adds interconnect driver support for SDX55 platform for scaling the bandwidth requirements over RPMh. The driver has been tested on SDX55-MTP and gives below DDR metrics using mbw [1] tool: Src port: SDX55_MASTER_AMPSS_M0 Dest port: SDX55_SLAVE_EBI_CH0 Command: mbw 100 With bandwidth 500000: AVG Method: MEMCPY Elapsed: 0.59058 MiB: 100.00000 Copy: 169.324 MiB/s With bandwidth 700000: AVG Method: MEMCPY Elapsed: 0.29267 MiB: 100.00000 Copy: 341.678 MiB/s With bandwidth 900000: AVG Method: MEMCPY Elapsed: 0.19608 MiB: 100.00000 Copy: 510.005 MiB/s The copy speed seems to be the same for all bandwidth less than 500000 and greater than 900000. Note: The CPUFreq governer needs to be set to something other than schedutil to see the difference. Otherwise the speed seems to be the same for all bandwidth. Thanks, Mani [1] https://github.com/raas/mbw Changes in v2: * Changed the copyright year to 2021, fixed Kconfig dependency and constified provider struct definitions. Manivannan Sadhasivam (2): dt-bindings: interconnect: Add Qualcomm SDX55 DT bindings interconnect: qcom: Add SDX55 interconnect provider driver .../bindings/interconnect/qcom,rpmh.yaml | 4 + drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/sdx55.c | 356 ++++++++++++++++++ drivers/interconnect/qcom/sdx55.h | 70 ++++ include/dt-bindings/interconnect/qcom,sdx55.h | 76 ++++ 6 files changed, 517 insertions(+) create mode 100644 drivers/interconnect/qcom/sdx55.c create mode 100644 drivers/interconnect/qcom/sdx55.h create mode 100644 include/dt-bindings/interconnect/qcom,sdx55.h -- 2.25.1