From patchwork Wed Jan 20 08:06:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 368185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB29FC433E6 for ; Wed, 20 Jan 2021 08:09:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B9782313A for ; Wed, 20 Jan 2021 08:09:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730372AbhATIJp (ORCPT ); Wed, 20 Jan 2021 03:09:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730330AbhATIJM (ORCPT ); Wed, 20 Jan 2021 03:09:12 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A11C0613C1 for ; Wed, 20 Jan 2021 00:06:42 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id n10so14667772pgl.10 for ; Wed, 20 Jan 2021 00:06:42 -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=AOs3HzRR3mAFpw46cKXmvSbeM84R4INByCK26V8xTI8=; b=b2oNX+bT43fFEBKDnEG9zQ6OcyDDVc4GNtq5N7Rm7SnbaJU2dx/BT9GiMBtvtSXQIX ADvaEIEU+4RhYOjFDWQwcqJvxTo491/vjLjeq7mRelmHk/+dZQLxPGPuDG7VJllfNN8k Zgtyuo9iM4i2gjcdev3qU+e4E8rCkp7krxKkt1ETLQL7wR7jD5PTBv0x629eMnzccMOr KwokXh2cQ7ATdxZkZop7U1duPsO0zb2vplGCwbAa1n2IOi9mVChQ7vB9vL75BhBb7P6j 0JpSf6cQqQq5FXOjXVYAoU8yHofdZzz9+4siO6xXLnQq0aURjUPpEWDKQ9oAcu4aASCi O0pA== 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=AOs3HzRR3mAFpw46cKXmvSbeM84R4INByCK26V8xTI8=; b=d3YXvr9cxpr9dfNdswoHYhJLIhNiAJVLJD77YdVwleVOGk6qBljiv0UtmMuwa3B+NH UEyusvGHsi7yicNxkf0nTqgi+56A3uJtkh80t8FiN5sv/fXCcfBiwuDCuZBw29jogLJ4 N9AjxLRRsMeZdp+1VfHdqS5FbrR6ai3NeooWGyG4u1s4zNhVN9LNNeX2oQdnFMaGa1Xf Kgh8GeuEB42Sxj7cS5+T5hgrsi398O3H7QVMGyBj6i0A7/IfoW93LPC7MpWFpsuT/eMI TOR9X+gd/L2hPnaBbDXLxhQ1p2XiIt/Z2kMKJnbFFDPizHcdo0HLgKnwx2cSZyzE/3Ou JteQ== X-Gm-Message-State: AOAM531gLOZYQevON1a7HxtUZbccvIhoMYEcZz/iy2/o84QYeOZAVJrf 1vACM+UEbs6yiRP3gbxuveS4 X-Google-Smtp-Source: ABdhPJxoiq5/2zDrA3lE7ESI22QLiB2iZq8nx7yhoZ4gEunSxznOx0Cxw/w1cx3JBu+HXtydjfrgFg== X-Received: by 2002:aa7:9625:0:b029:1a4:3b48:a19c with SMTP id r5-20020aa796250000b02901a43b48a19cmr8150583pfg.13.1611130001378; Wed, 20 Jan 2021 00:06:41 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6d85:48cc:b166:aab7:ff85:2769]) by smtp.gmail.com with ESMTPSA id y1sm1324040pff.17.2021.01.20.00.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 00:06:40 -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 0/2] Add interconnect driver for SDX55 Date: Wed, 20 Jan 2021 13:36:25 +0530 Message-Id: <20210120080627.20784-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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 | 10 + 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, 518 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