From patchwork Sat Apr 1 17:35:17 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: 7585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1351015vqo; Sat, 1 Apr 2023 10:36:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YsU9Nuw+H6edKFZpidbI3n3H56J+EIZdstJY4QugSFiA1jioG0WcPkNOD7jrWv4C3jLvAm X-Received: by 2002:a17:907:c087:b0:8b1:779c:a8b1 with SMTP id st7-20020a170907c08700b008b1779ca8b1mr32035450ejc.5.1680370611059; Sat, 01 Apr 2023 10:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680370611; cv=none; d=google.com; s=arc-20160816; b=xR3uDEskGPl1zAGExAIkxrlvX0TsXA9738qQEF/7ZMa+yTCI76Nib6yaZUuoTuae/U lnbAiaG0IBxQs3uxYA/4b5tKiAvh5jPhzmBA15P0Yp4dY4uQzGuX1cMUMCFDX4rOVx51 wmcLH7aLskpV6lAGxdxx4yoc7cH4H0f21dt5iEvGW2SWfTLW8hr2ADGhDzzn0Kiof58d KwFAMOMSfYRlnB7N9IqKlfZR2ls5+9m8YQ5DwoENC2Z5bvas8meqgyKWD1ITT7UD+K+O QzetMPMlkvVpL4qkN2sUpKuBfSWtUwp12T52OZgTsef9tY/EoikjwQrEdryOxDYdeHAi SE9A== 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=QlwqryxjwFEcRsCwNYC3KAfNY5tSCiH5bPCN24vQW8k=; b=csWuTEhH14lbfDOPA+IljgoF454a1nZQhgm2gyhbpIpMsB/0ZX8M64Kuw/QO2AsSQV gHhMFMHmr2KxIrG4GkyHm7kJ8cSTjOidFEdmH2eb9wOxMXiY93xa0/GJMF9m8d24W+xO +YL7u1x4xOq5EP5bcmyPPZmUrSrkyDFGvl2hN4PctqBhiKQwGiPV7oOKQLmNtDftSB1C 2pfqL9QdEgCudSTnlW6oro3vBNILLBsY0h1SM+ejqKbcjB+FL+kEk/pIsh2EjZ+eMXkK ipWeoYJoZrjTaGEnW4sZ2WvjcrHQXqxQ45a0mIjDknqONXzBAr+ukwEQiy5dRV1sNsDZ W7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=Y8Ggx7+z; 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 h1-20020a170906260100b009407d24471fsi5067071ejc.593.2023.04.01.10.36.27; Sat, 01 Apr 2023 10:36:51 -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=Y8Ggx7+z; 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 S229867AbjDARfn (ORCPT + 99 others); Sat, 1 Apr 2023 13:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjDARfl (ORCPT ); Sat, 1 Apr 2023 13:35:41 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0583B443; Sat, 1 Apr 2023 10:35:38 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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-202.mailbox.org (Postfix) with ESMTPS id 4Ppknx5RwKz9sTM; Sat, 1 Apr 2023 19:35:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680370533; 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=QlwqryxjwFEcRsCwNYC3KAfNY5tSCiH5bPCN24vQW8k=; b=Y8Ggx7+z0JfhkBKAMSKQwsd3Efzv/edr2wsa1hx7Dk9YaqXtDJE66DNTLbh5UTcGn0UZvH fncXnnA847hrNt1TSPE5xNOo1uWVEIexnbtX7s+lT1McTSM6kqG6BPgIyZTyu8vnED5HyJ XaPG76fYyL6BfuL9MuomWOnJyhU+2Y4/Bkic+A0zbFC84uTW4INTlnAnErAoC77+boCive N5CQfIUFUFd965Zcyx9Rrg1m6rAovuzbPGXGHLAng0J//Z8Cckr/FgGZzGX+6jdZ3x8R6A 66fsQI+cRLmTAAnfxIAvj53mePFJV81/e07xYV3od9qQSky22o47JlkjwtQTWA== 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 v4 0/6] dts: qcom: arm64: sdm845: SLPI DSP enablement Date: Sat, 1 Apr 2023 19:35:17 +0200 Message-Id: <20230401173523.15244-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?1761996293872659305?= X-GMAIL-MSGID: =?utf-8?q?1761996293872659305?= * 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. Kind regards, Dylan Van Assche Dylan Van Assche (6): dts: arm64: qcom: sdm845: add SLPI remoteproc dts: arm64: qcom: sdm845: add SLPI FastRPC support dt-bindings: firmware: qcom: scm: add SSC_Q6 and ADSP_Q6 VMIDs dts: qcom: arm64: qcom: sdm845: use defines for VMIDs dts: arm64: qcom: sdm845-oneplus: enable SLPI dts: arm64: 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(+)