From patchwork Sat Mar 25 13:21:15 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: 7198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp408307vqo; Sat, 25 Mar 2023 06:26:57 -0700 (PDT) X-Google-Smtp-Source: AK7set/N6cSA0G2DgtZRk2nadGnOmL3nOjMHE5GO5xaoYqHChX31EcSKZbJNTojgOEg16j6ckRt8 X-Received: by 2002:a05:6a20:2d99:b0:d5:b3d1:bff9 with SMTP id bf25-20020a056a202d9900b000d5b3d1bff9mr5180926pzb.52.1679750816882; Sat, 25 Mar 2023 06:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679750816; cv=none; d=google.com; s=arc-20160816; b=fM7IAbZgbaWcXGDH/lToBzFVymjF2c/y+zSu0Mr61cmCpMjHbEfF2w50TWQhJb5aB9 RR8P32Ob82aDW2hcXwYLTxPTOiBln3L1Fe9Tmsm2FIWjub7Ipyw4rjOhdC5QEwfpB3PC S78rPBgu9CdYCepuTs1rM3pQmxdcbtmsjlZq6Or2G5DRTIiF9kaBjZ5yPgiw1ZmA5YMQ HkmPR6eLsY+v2BCjr6IO6n07A/F5tJS8XHInFoAHNRn+Wcfnlj+K7ik/Q/k35I0OZTEG ejI13My4yW9UrgFJDKwT96Un7F8qZ2GusxxTRaGB2VDOntbbF6NNf6x6DUudvKvB+yCO QJ6Q== 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 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.26.44; Sat, 25 Mar 2023 06:26:56 -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 S231327AbjCYNVt (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 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?1761346392970350206?= X-GMAIL-MSGID: =?utf-8?q?1761346392970350206?= 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(+)