From patchwork Tue Jul 12 02:18:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12914464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94978C43334 for ; Tue, 12 Jul 2022 02:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gszTb120moOcGxfXfWGJEK9mmTywsiBEJK0DxaTaCcA=; b=O8cvOfbAo9Gp+g vvjB7YPIBZsjq5oJq715NY6qeKZVRdQg2Wk8Zcm2JSOOt7OZ2+4qEscccP01H7FTjeXATs0nJo8A4 L2QpTrSDEa7soeX6ct8AN+wC0iSoafxYko7e/cqV9+ojdKK2iXc6VI/OOy4oMk5r4gF6w9p3B1T+C AH8tbpRjFSDuM6qNPZBzK9l3QbtqEG8fJf5U0DnWqgxjiG0Vui6NR7YULHJkJkrxtXBxUQ20SvFy/ x49qkTEXKLpRciYea0nwRvogtUaAxcmgMvZ1JKzguBfotEmKYfmoJFMg9sHP3CoF24TGtnIbnpqLH mBYi9aC5qddc0psoJECg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oB5UT-006h7w-Gx; Tue, 12 Jul 2022 02:19:09 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oB5Tv-006gnG-0f for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2022 02:18:36 +0000 Received: by mail-ot1-x32c.google.com with SMTP id e1-20020a05683013c100b0061c1a6b8d11so5238398otq.8 for ; Mon, 11 Jul 2022 19:18:33 -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=emByWjbQoqud23XK8P6B7AoXGAPFJzuBuFTm+2tiWB4=; b=cWl/t1aOV1TQ05HVXLQoXEGM25sY6G/zgfTfA8Y4iM/XeS8mkYsq1ZU2JKLf5MahkK eqAA/m2cNtXBbubAPhMJfeyI7oHWMGlVBeoQDGE1n8XJYYtTvG9q9gpqOeQczOUq5LBz L0Qu3PcJ30zfYUm+c07PuYLZxpEwRO2XtGTdwcG7yUrvYdoC6nUVrgAoQDOxlEuCsJk4 Yb+t39CUaXzlmJK7WuXBnc5gVxM20qlRtOpP0oeKL5gKfn0t2G1R6CvNRrAzA/Kztppa CaQMv655wbIPOhVhEk/ibaofBVsHrAteLl3GqBHfWjKEgV/yIzlrz319zSAyr5ROAcNK UmFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=emByWjbQoqud23XK8P6B7AoXGAPFJzuBuFTm+2tiWB4=; b=glXgxpvc4biFssf2Zd6bhJOpuMH11NrhUuVS0mYsZaJIQYA0QstFUINBIaiEhm9BXD b1OJEPMDRnLutd6ngMQJliHDddNG145ZanGs5auaFJ/nyYmzQ3SrKiG4nJGIT5DjASW8 jZEjItaT8ZCe3WZ+FlVHXtRpQ9TRPi3EFljEJ0FKjE8Vq4Wr+gUnqIz0mc6u1RFLU2O+ BcUCZYEDomLNZqaz77VsK61RTl21obh+G5s2c9BGK5FC9Rs1J8K8e4zRC6motX0XvOyJ h3sf1nnz4vsodV0foXrkM+jQiBGfQAtg8UBd1zla2/IX+fVH2q2a1Jr1Q5oxm9+3eXuE UnEQ== X-Gm-Message-State: AJIora+gThElpiXPS1sx8yVKE6iRtOwkC1BajpL7TuEkwlTOTuW6jtjR tibpt+9FZ6iI+zQ/sDiu4XGl2g== X-Google-Smtp-Source: AGRyM1vtKEPOJdQqpPB0C3TxwcCYMGXA+6ldK99qt54xFY7Xz5WoR1dYBM1Yh0stZUXqSP84yliR/Q== X-Received: by 2002:a05:6830:6004:b0:616:ecd9:129b with SMTP id bx4-20020a056830600400b00616ecd9129bmr8187582otb.232.1657592312452; Mon, 11 Jul 2022 19:18:32 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id s3-20020acadb03000000b0032e442f6a72sm3469573oig.40.2022.07.11.19.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 19:18:31 -0700 (PDT) From: Bjorn Andersson To: arm@kernel.org, soc@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Gross , Arnd Bergmann , Olof Johansson , Kevin Hilman , Krzysztof Kozlowski , Douglas Anderson , Miaoqian Lin , Sibi Sankar , Jiang Jian , Julia Lawall , Konrad Dybcio , Rohit Agarwal , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Xiang wangx Subject: [GIT PULL] Qualcomm driver updates for v5.20 Date: Mon, 11 Jul 2022 21:18:30 -0500 Message-Id: <20220712021830.1271398-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220711_191835_110875_4B70123B X-CRM114-Status: GOOD ( 18.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The following changes since commit f2906aa863381afb0015a9eb7fefad885d4e5a56: Linux 5.19-rc1 (2022-06-05 17:18:54 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git tags/qcom-drivers-for-5.20 for you to fetch changes up to b9c2ae6cac403dee3195fda9eb28d8ee733b225b: soc: qcom: icc-bwmon: Add bandwidth monitoring driver (2022-07-06 15:57:51 -0500) ---------------------------------------------------------------- Qualcomm driver updates for v5.20 This introduces a new driver that requests interconnect bandwidth based on throughput measurements of the bwmon hardware blocks found associated with, among other things, the CPU subsystem on many Qualcomm platforms. It introduces support for the SCM wrapper driver to vote for interconnect bandwidth for operations that needs bandwidth to the crypto engine. This ensures both performance and guards against issues caused by lacking votes for this path. The socinfo driver gains knowledge about the SC7180P SoC. It contains a range of fixes for spelling mistakes, refcount leaks in various drivers and removes some redundant code from the apr remove path. The SCM DT bindings are updated to declare support for QCS404, SM6125 and SDX65. The command db driver has a strncpy() converted to strscpy_pad() and then back again with proper documentation to why this was the right API. ---------------------------------------------------------------- Douglas Anderson (2): soc: qcom: socinfo: Add an ID for sc7180P soc: qcom: cmd-db: replace strscpy_pad() with strncpy() Jiang Jian (1): firmware: qcom_scm: drop unexpected word "the" Julia Lawall (1): soc: qcom: rpmhpd: fix typos in comment Konrad Dybcio (1): soc/qcom: Make QCOM_RPMPD select PM_GENERIC_DOMAINS/_OF Krzysztof Kozlowski (8): dt-bindings: firmware: document Qualcomm QCS404 and SM6125 SCM firmware: qcom_scm-legacy: correct kerneldoc soc: qcom: cmd-db: replace strncpy() with strscpy_pad() soc: qcom: correct kerneldoc dt-bindings: arm: qcom: switch maintainer to Bjorn dt-bindings: soc: qcom,wcnss: remove unneeded ref for names dt-bindings: interconnect: qcom,msm8998-cpu-bwmon: add BWMON device soc: qcom: icc-bwmon: Add bandwidth monitoring driver Miaoqian Lin (2): soc: qcom: ocmem: Fix refcount leak in of_get_ocmem soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register Rohit Agarwal (1): dt-bindings: firmware: scm: Add compatible for SDX65 Sibi Sankar (2): dt-bindings: firmware: qcom-scm: Add interconnects property firmware: qcom_scm: Add bw voting support to the SCM interface Uwe Kleine-König (1): soc: qcom: apr: Drop redundant check in .remove() Xiang wangx (1): soc: qcom: llcc: Fix syntax errors in comments Documentation/devicetree/bindings/arm/qcom.yaml | 2 +- .../devicetree/bindings/firmware/qcom,scm.txt | 4 + .../bindings/interconnect/qcom,msm8998-bwmon.yaml | 86 +++++ .../devicetree/bindings/soc/qcom/qcom,wcnss.yaml | 1 - MAINTAINERS | 7 + drivers/firmware/qcom_scm-legacy.c | 4 + drivers/firmware/qcom_scm.c | 71 +++- drivers/soc/qcom/Kconfig | 17 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/apr.c | 15 +- drivers/soc/qcom/cmd-db.c | 8 +- drivers/soc/qcom/icc-bwmon.c | 421 +++++++++++++++++++++ drivers/soc/qcom/llcc-qcom.c | 2 +- drivers/soc/qcom/mdt_loader.c | 4 +- drivers/soc/qcom/ocmem.c | 3 + drivers/soc/qcom/qcom_aoss.c | 4 +- drivers/soc/qcom/rpmhpd.c | 4 +- drivers/soc/qcom/smp2p.c | 3 + drivers/soc/qcom/socinfo.c | 1 + 19 files changed, 639 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml create mode 100644 drivers/soc/qcom/icc-bwmon.c