Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp518066rwl; Sat, 25 Mar 2023 06:25:21 -0700 (PDT) X-Google-Smtp-Source: AK7set9TJLviZ8xOMnIhUarDmMwX1ST3PT0cz9LPgW9uTj12Qrn6UsGLt8Tmnt+0NY9v8xk8frQB X-Received: by 2002:a05:6a20:8009:b0:da:4be2:caff with SMTP id e9-20020a056a20800900b000da4be2caffmr5639218pza.56.1679750720992; Sat, 25 Mar 2023 06:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679750720; cv=none; d=google.com; s=arc-20160816; b=AOt7jLVRgG5mU61a7L/jsUvdiIbvaQduPMdNRHSIfL6P5EF3CTxrOYdLiouw/iuwaW G1jqTV92eLQmuA62QSZZ0Ywt/go1mV7zGNgZKqDFJUVafRfL4tA5IqLRiFNXEyWm40jC 4PMpJymCJka4uugj0W8nt6lBdMs2XIr369Uu+bK9VxrpCTYO9nevtEkIezPmYE0UM9kV 2w7NZNFFX6sfMgTIM6zrW6agHhS94TQ6sGgmFLbTVA//CHKOVpemmLzcDvBSlQOVpTrg XrXFKF3eGjVtG2Jme6PGwJTJSksmY3NZIXeMenDNCQskN+LRhZXkziN8ZakCggdXSzOw 3j6A== 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=rQ4rmDiN74N93ke3ZfdLAVNzGoB4ib6CMk1ag8Q3NV0=; b=NL9aXuIyKANbx9nhUELSGK0ThinRt26pxPPecrs4+5mWqFoquQLBw/L+vMUwWZI8Ha eXMBbI9BrTdcGEuHkWXt6kC7T92IZfWy/DNfRQDqgpVT/1tVVaN0WJYKphfyREUKGNK4 snEZ+pX2oQhJmWdT0GS5WvYsZLDHVA1Tm4gowpAGvB9EfGOdeAtelTimZ0YTXZh6+oRn q2/RHgyPAM1Rw2DB7aYWsKxaDWAkZIsVaKtH8HLcJpnFBQNnqCfPjgZ68nD8C1KGDseU grOiDgscfHYbPbBbvFs0XJda/gUclT1mKjwQIPjUbSZ639E6O7BFrtRxJlBaR7sdT41O V4Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=tMw+jM5J; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w191-20020a6382c8000000b0050fb60780e7si10559689pgd.200.2023.03.25.06.25.09; Sat, 25 Mar 2023 06:25:20 -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=tMw+jM5J; 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 S230424AbjCYNVt (ORCPT + 99 others); Sat, 25 Mar 2023 09:21:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjCYNVs (ORCPT ); Sat, 25 Mar 2023 09:21:48 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61390BDED; Sat, 25 Mar 2023 06:21:46 -0700 (PDT) Received: from smtp102.mailbox.org (unknown [10.196.197.102]) (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 4PkKVC6hKTz9sx2; Sat, 25 Mar 2023 14:21:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679750499; 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=rQ4rmDiN74N93ke3ZfdLAVNzGoB4ib6CMk1ag8Q3NV0=; b=tMw+jM5JSj9ECmfpovTCPePydYS+RsWoGnpX7iudp/qiKaZzrnqr72z2eKizb8i2lNT0OG +dY9IvoFN9ukFT9s2N+peVdsszgw/ibXwpWnaFuEpYl1DhGaXavAJiTGZDrKgShAEHY8E7 P23kJ0FvqpZxWaDdcvKALNHMgCvbVQzoDH2fGxgY02wr+tudiVjUQK54Pn9lrSXVO1N7B4 t+xcrVhMUdJVkAOW3ubSroyudyRsXqfU+l3p0CYp6APSiFIYXwdk8O1u+weR+WArQ3U4o3 m5Bs9txPxNtH05VY7dcl/+F2NiHaxdg/NSNqR2yqRQYfOslV9qzk2irGu9Qpqw== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@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 0/2] Qualcomm SDM845 SLPI DSP driver support Date: Sat, 25 Mar 2023 14:21:15 +0100 Message-Id: <20230325132117.19733-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. This set of patches adds support to drivers for the SLPI DSP: 1. Configure the permissions of assigned DSP memory through the hypervisor. 2. Allocate a remote heap when the FastRPC session ID is 0 instead of using a Compute Bank directly. 3. Add the SLPI remoteproc resource to the q6v5_pas driver to enable support for it in the driver. over QRTR. DTS changes to enable the SLPI DSP in the SDM845 DTS and hardware e.g. Oneplus 6 and SHIFTPHONES SHIFT6mq will be send once the driver changes are applied. Kind regards, Dylan Van Assche Dylan Van Assche (2): dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible remoteproc: qcom: pas: add SDM845 SLPI resource .../bindings/remoteproc/qcom,adsp.yaml | 3 +++ drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) -- 2.39.2