From patchwork Tue May 19 05:25:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11556933 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 78030912 for ; Tue, 19 May 2020 05:26:56 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 734A7207D8; Tue, 19 May 2020 05:26:56 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 51C33207D4 for ; Tue, 19 May 2020 05:26:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="D6YnJdEJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51C33207D4 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bjorn.andersson@linaro.org Received: by mail-pl1-f195.google.com with SMTP id f15so5152271plr.3 for ; Mon, 18 May 2020 22:26:56 -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=6eAh0MZrhKEHVvxG4fmUgYQWHWJzvYUt4HqT+AfIqVs=; b=D6YnJdEJp8F9inv82USlVRtngZkf7VaGE5C01pYHqfqUBXuU2LTuo47c6I0chxmbB8 pKp36b2LD8ykEAdyfMbo9qFxqTjUEzKYHTbXd2WH0BNMKIuI+ifTIdzMel4j+OCyCGld R9Czo6ysxE/Me10Zom+GUusNuSDLmpIy6JH+WRq+++uliIAAHcxCYUw2Tdvq/+e0meTy FRWBsmM19qBWSZDAm/D+Nxz+5EM6uMv7mKZswlfkGGw/1Pa4RPBVALJc3WZBGhpV36KE Q/aFFknbiDXSHK513YHH0BlFFyicy2Mfsv8l+2cj9lqSv/Df6HeEgkKZBD0VE9tE8wNx M0mQ== 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=6eAh0MZrhKEHVvxG4fmUgYQWHWJzvYUt4HqT+AfIqVs=; b=pcu/huXe/+95ITD4tjTK/hjBpy80aNWCMUNvU5qGLZnQIrDz3e7Sr2lDwsDIDSfTFj f8tPUVquysfGdDPybmDvG0tUmuzx6eedsW58o1fI1qqPgaMsVUusmO9cR5lf6sgyNfou 8gSQchtMiSUwitn2e8nDAD+mS0DD+dCZwXPodCoEYcsMaE5fjda/beG3wAxTjbilNcbs MZRi3hjW6vzUB+JpnuTuRUQJ3p4Yur41hjFG1cer96yS8UtTtcxKuTWjM+mHXuToVWdR L8Yd/PBmqJmN8x/br3zPQjetbTgyqvFvdPDlcpN4jyu+O2EREpGT34yswxCwWzWT5Alg fkHg== X-Gm-Message-State: AOAM533tA0L7nRox4XkV6x0JX4Tvsg7Hgj3QmMkCe528G8L18uC63ntE JIHJe6Gmy/l+4JWA1d30bcporA== X-Google-Smtp-Source: ABdhPJyv2c7g+7HoLW7GykwxyUGKo1gpeCC14aYJWuOGDGVRerqm7TeMRxE6aO/HkRbhemC/+hugyA== X-Received: by 2002:a17:90a:8509:: with SMTP id l9mr3091267pjn.113.1589866015849; Mon, 18 May 2020 22:26:55 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s199sm10256743pfs.124.2020.05.18.22.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 22:26:55 -0700 (PDT) From: Bjorn Andersson List-Id: 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 , Douglas Anderson , Maulik Shah , Stephen Boyd , John Stultz , Sibi Sankar , Christoph Hellwig , "Gustavo A . R . Silva" , Jason Yan , Markus Elfring , "Raju P . L . S . S . S . N" , Srinivas Kandagatla , Stephan Gerhold , Vincent Knecht Subject: [GIT PULL] Qualcomm driver updates for v5.8 Date: Mon, 18 May 2020 22:25:33 -0700 Message-Id: <20200519052533.1250024-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -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.8 for you to fetch changes up to 1f7a3eb785e4a4e196729cd3d5ec97bd5f9f2940: Revert "soc: qcom: rpmh: Allow RPMH driver to be loaded as a module" (2020-05-17 23:13:00 -0700) ---------------------------------------------------------------- Qualcomm driver updates for v5.8 This contains a large set of cleanups, bug fixes, general improvements and documentation fixes for the RPMH driver. It adds a debugfs mechanism for inspecting Command DB. Socinfo got the "soc_id" attribute defines and definitions for a various variants of MSM8939. RPMH, RPMPD and RPMHPD where made possible to build as modules, but RPMH had to be reverted due to a compilation issue when tracing is enabled. RPMHPD gained power-domains for the SM8250 voltage corners. The SCM driver gained fixes for two build warnings and the SMP2P had an unnecessary error print removed. ---------------------------------------------------------------- Bjorn Andersson (3): soc: qcom: rpmhpd: Add SM8250 power domains soc: qcom: aoss: Add SM8250 compatible Revert "soc: qcom: rpmh: Allow RPMH driver to be loaded as a module" Christoph Hellwig (1): firmware: qcom_scm: fix bogous abuse of dma-direct internals Douglas Anderson (18): soc: qcom: rpmh-rsc: Clean code reading/writing TCS regs/cmds soc: qcom: rpmh-rsc: Document the register layout better soc: qcom: rpmh-rsc: Fold tcs_ctrl_write() into its single caller soc: qcom: rpmh-rsc: Remove get_tcs_of_type() abstraction soc: qcom: rpmh-rsc: Kill cmd_cache and find_match() with fire soc: qcom: rpmh-rsc: A lot of comments soc: qcom: rpmh-rsc: tcs_is_free() can just check tcs_in_use soc: qcom: rpmh-rsc: Don't double-check rpmh payload soc: qcom: rpmh-rsc: Caller handles tcs_invalidate() exclusivity soc: qcom: rpmh-rsc: read_tcs_reg()/write_tcs_reg() are not for IRQ soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner soc: qcom: rpmh-rsc: Factor "tcs_reg_addr" and "tcs_cmd_addr" calculation soc: qcom: rpmh-rsc: Timeout after 1 second in write_tcs_reg_sync() soc: qcom: rpmh-rsc: Correctly ignore CPU_CLUSTER_PM notifications soc: qcom: rpmh-rsc: We aren't notified of our own failure w/ NOTIFY_BAD kernel/cpu_pm: Fix uninitted local in cpu_pm soc: qcom: rpmh-rsc: Simplify locking by eliminating the per-TCS lock soc: qcom: rpmh-rsc: Remove the pm_lock Gustavo A. R. Silva (1): firmware: qcom_scm-legacy: Replace zero-length array with flexible-array Jason Yan (1): firmware: qcom_scm: Remove unneeded conversion to bool John Stultz (3): soc: qcom: rpmh: Allow RPMH driver to be loaded as a module soc: qcom: rpmhpd: Allow RPMHPD driver to be loaded as a module soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module Markus Elfring (1): soc: qcom: smp2p: Delete an error message in qcom_smp2p_probe() Maulik Shah (4): soc: qcom: rpmh: Update dirty flag only when data changes soc: qcom: rpmh: Invalidate SLEEP and WAKE TCSes before flushing new data soc: qcom: rpmh: Invoke rpmh_flush() for dirty caches soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request Raju P.L.S.S.S.N (1): soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS Sibi Sankar (2): soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled soc: qcom: pdr: Remove impossible error condition Srinivas Kandagatla (1): soc: qcom: socinfo: add missing soc_id sysfs entry Stephan Gerhold (1): dt-bindings: soc: qcom: apr: Use generic node names for APR services Stephen Boyd (4): soc: qcom: cmd-db: Add debugfs dumping file soc: qcom: cmd-db: Cast sizeof() to int to silence field width warning soc: qcom: cmd-db: Use 5 digits for printing address soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs Vincent Knecht (1): soc: qcom: socinfo: add msm8936/39 and apq8036/39 soc ids .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + .../devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt | 1 + .../devicetree/bindings/soc/qcom/qcom,apr.txt | 20 +- drivers/firmware/qcom_scm-legacy.c | 2 +- drivers/firmware/qcom_scm.c | 11 +- drivers/soc/qcom/Kconfig | 6 +- drivers/soc/qcom/cmd-db.c | 78 ++- drivers/soc/qcom/pdr_interface.c | 4 - drivers/soc/qcom/qcom_aoss.c | 1 + drivers/soc/qcom/rpmh-internal.h | 59 +- drivers/soc/qcom/rpmh-rsc.c | 746 +++++++++++++++------ drivers/soc/qcom/rpmh.c | 97 ++- drivers/soc/qcom/rpmhpd.c | 24 + drivers/soc/qcom/rpmpd.c | 5 + drivers/soc/qcom/smp2p.c | 4 +- drivers/soc/qcom/socinfo.c | 6 + include/dt-bindings/power/qcom-rpmpd.h | 12 + include/soc/qcom/cmd-db.h | 1 + kernel/cpu_pm.c | 4 +- 19 files changed, 775 insertions(+), 307 deletions(-)