From patchwork Thu Apr 6 17:31:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 7838 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1193838vqo; Thu, 6 Apr 2023 10:36:12 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqCtKG0zs164LeRmjg8VLOZRB9B1LNzOfyj1jnlhCIqr6AsPNiifL5DbtTOQxwCz86tTvv X-Received: by 2002:a17:903:1246:b0:1a3:d5af:9b73 with SMTP id u6-20020a170903124600b001a3d5af9b73mr11775379plh.58.1680802572118; Thu, 06 Apr 2023 10:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680802572; cv=none; d=google.com; s=arc-20160816; b=XGP9uJPXMXqboYWk2FzEKcwQ7Mhu/MMGRSmW4orFDxYv8Vtzs4hsKRH8FhUPyw3iFO 7QNsu9+FmAy/ei6RUmxiYxWAiEOc+8z+3auxu861hDRZkMwL0zIz9EWA4CqmwnDUPBAp 9gAOqFDgIRue3UUARiOb0fcNxqaGoB6u57PO/aQ0xjDzFHsCxbbEWA2CmDk860KWSnM5 +jCnEnOBsZuehVpZZPtOVLwgBGwpcc5Wg2bhAAcAv5q3YshrocIqjgiyBODF6J/4xDTr 96Wu71wLpdlbQVYZto71UA6fCQVHy8i3I8CthXP+B0aaHyhqIiybHFD93JKZm1SEE/+X O0Mg== 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=n+QKer/py7TYF0+btZiVdHF6Qql5Af4f0rRDFyBjvgQ=; b=dmNeE6WFo0cOKAgdNQbrdk0A4hcBBnF3/z/hh5SsCyewftPQpchWXzOUQx+x394UWd EGFFeOPz7bUsT9lq9zcwQoTDAvntsJ0OA9lCFA9uGKI07nfKvAZzYeOTMUbucMkaTJLa 5vz30aYVw3wNmC/9k5O7pqQz8QjNHYydWJv9JZ/Ib9PiHCgU6PUFEseDhwS8ulsHF0zd zseihdRWsVpZNkJTKnyiBaO2YfbOOILuBIb7Y5LqV5LGLB0chAcHpXTqi7gDmvTF15g2 HsUDdI0lRWA1TJYyd2kO0X2uAmW52q8G06cO4o/JbMu5NrMFBL7SyH/tqyjETG02LgIH lDgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=0px1b44F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a170902c24400b001a17d7faa05si2084601plg.353.2023.04.06.10.35.58; Thu, 06 Apr 2023 10:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=0px1b44F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240067AbjDFRdn (ORCPT + 99 others); Thu, 6 Apr 2023 13:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239980AbjDFRdk (ORCPT ); Thu, 6 Apr 2023 13:33:40 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050:0:465::102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB428A7A; Thu, 6 Apr 2023 10:33:19 -0700 (PDT) Received: from smtp2.mailbox.org (unknown [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PspVz3fYyz9sW5; Thu, 6 Apr 2023 19:33:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680802395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=n+QKer/py7TYF0+btZiVdHF6Qql5Af4f0rRDFyBjvgQ=; b=0px1b44FXUtpEGPBbZvIv/ua7v0eB3wWbTazLPw5Vvfkc6rYUy6p8UhAf0k55Mi8GEx3Lh 8XStSOj9DFdsk3/sfc3krFf5h2QlRw1SNXuggRlySY2m+ElAIN89EIPyAyB8tlueBrcjze FvUhUg/ETbgM24lM3/pyYgliv3PElfrTXZXNQF94/3EQeCF0f6tJHEIx4zdO/axmu+jr3j 6EEkKVqdksa+hREgMSwI572PLY5+4bZOVGGhI7nJ/9seRa9lpe7yac45ViQJf0jqhsPV3Y kiBkxIRoCO8giYsAX4gVlgHSmC3UhxP7Y+KBXm5FA83911SY6lvqEFc7vdPzOQ== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH v5 0/5] arm64: dts: qcom: sdm845: add SLPI remoteproc Date: Thu, 6 Apr 2023 19:31:43 +0200 Message-Id: <20230406173148.28309-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762449237644410892?= X-GMAIL-MSGID: =?utf-8?q?1762449237644410892?= * About * The Qualcomm SDM845 SoC has a separate SLPI (Sensor Low Power Island) DSP for sensors connected to the SoC which is responsible for exposing sensors to userspace, power saving, and other features. While sensors are connected to GPIOs of the SoC, they cannot be used because the hypervisor blocks direct access to the sensors, thus the DSP must be used to access any sensor on this SoC. The SLPI DSP uses a GLink edge (dsps) to communicate with the host and has a FastRPC interface to load files from the host filesystem such as sensor configuration files. The FastRPC interface does not use regular FastRPC Compute Banks but instead uses an allocated CMA region through which communication happens. * Changes * This patchseries completes support for the SLPI in the Qualcomm SDM845 SoC by adding the SLPI to the SDM845 DTS and enable it for 2 hardware devices: - Oneplus 6 - SHIFTPHONES SHIFT6mq * Related patches * 1. Remoteproc changes (v3) to support the SLPI DSP in SDM845: https://lore.kernel.org/linux-remoteproc/20230330164633.117335-1-me@dylanvanassche.be 2. FastRPC changes (v2) to support the SLPI DSP in SDM845: https://lore.kernel.org/linux-arm-msm/20230327184204.498032-1-me@dylanvanassche.be/ This serie does not depend on any serie, but all of them are necessary to enable the feature in the end. * Changelog * Changes in v2: - Removed double blank lines - Enforce alphabetically order for 'slpi_pas' - Reordered 'slpi_pas' properties - Fixed FastRPC syntax - Dropped qcom,assign-all-mem property as this is not necessary anymore Changes in v3: - Dropped FastRPC dt-bindings change, unnecessary to relax the bindings - Add reg property to compute-cb for the SLPI on SDM845 Changes in v4: - Moved SLPI node in sdm845.dtsi to honor sorting by unit address - Reordered FastRPC memory nodes to have a reverse-Christmas-tree layout - Use 0x0 instead of 0 for memory addresses - Add SSC_Q6 (0x5) and ADSP_Q6 (0x6) VMIDs to qcom,scm.h - Replace magic VMID values by the qcom,scm.h in sdm845.dtsi - Added Reviewed-by tags for patches: - 'dts: arm64: qcom: sdm845-oneplus: enable SLPI' - 'dts: arm64: qcom: sdm845-shift-axolotl: enable SLPI' as these are unchanged in v4. Changes in v5: - Squashed patch 'dts: qcom: arm64: qcom: sdm845: use defines for VMIDs' into 'dts: arm64: qcom: sdm845: add SLPI FastRPC support'. - Reordered patches do make sure we first define the additional VMIDs in dt-bindings before using them. - Added Acked-by for 'dt-bindings: firmware: qcom: scm: add SSC_Q6 and ADSP_Q6 VMIDs'. - Fix order of 'arm64' and 'dts' in patch subjects to match tree. Kind regards, Dylan Van Assche Dylan Van Assche (5): arm64: dts: qcom: sdm845: add SLPI remoteproc dt-bindings: firmware: qcom: scm: add SSC_Q6 and ADSP_Q6 VMIDs arm64: dts: qcom: sdm845: add SLPI FastRPC support arm64: dts: qcom: sdm845-oneplus: enable SLPI arm64: dts: qcom: sdm845-shift-axolotl: enable SLPI .../boot/dts/qcom/sdm845-oneplus-common.dtsi | 5 ++ .../boot/dts/qcom/sdm845-shift-axolotl.dts | 5 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 62 +++++++++++++++++++ include/dt-bindings/firmware/qcom,scm.h | 2 + 4 files changed, 74 insertions(+)