From patchwork Mon Mar 27 18:37:33 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: 7284 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1716948vqo; Mon, 27 Mar 2023 11:44:11 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKjSIbdiF5mp4Zz3r3cHxn0XmvnRk19Ne+2QDtuYR3M9IhopGtDJFjljnKnndBgH/4kfKF X-Received: by 2002:a05:6402:708:b0:502:4182:963e with SMTP id w8-20020a056402070800b005024182963emr5937512edx.26.1679942651210; Mon, 27 Mar 2023 11:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679942651; cv=none; d=google.com; s=arc-20160816; b=aFz/yWYGHT1zwPP3m8UEN+YeMPP/Ij1y37dZ4slGrvtLEbL/QtX8w3BxYz43G0t5Fn 2a1/vbFMJwjhkktZI7PwWip6AKMdqsKb+uDmmen1kas+txrRn8OM2i7haoJRgNA5SGhH vg4ZZOvFKDTeEKuYWaJZCJW+qIzggTCPThhjgJ2CwbjUBfCGPzOL63HNRw0OkVA8sCrZ c3pRrOZks15DkWNiZ8VJDXFh/ADaVKW5gZCPAWSZ2ZPSBa8oWxB11ps3YGyB9SvBxqyA IU8ygxmATArxQYj3Hzw9vJMj/bvYntqrdkFUGYMP1WhVCyDp4jCOfLP/OrOuyjdchVEo y4bA== 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=C8kkdUguiMjdIapGBB4Pr2z2atFYN6EF4wazx5kklCs=; b=FZj+w0IXEhZ9rf9/CfvHirCeJ9qowgncS8IqMuY/+jPLgHo2Iv9Mgjd7eK6Z4WdSYa mPcU01jp6RNKBYxQoWh1kTsQ6Sq7RaivfHSfgV7+MZtx7VncwyfOiZ8AEH8vEEd+oXs/ RsVx2LGGON4WdQSVNVdR90ieXoY/SwOjJnxGLxa6qE4KtoVlpgHj1V6pqvOKfujC4JX7 KySXEy0z89RYM7QSbSVSyDkKW2Q2IcKQG3XrpYhw+crF8yYWqWuej9mhq/sYNro0yxSH zOIyGq7o7v3EeUD4F5Z5OETvhlCu2od/NJkfoVZ6dz7SBWO0/zuoMMikE2hc2rN8TLNU HUbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=gAbXfp4d; 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 d10-20020aa7ce0a000000b004fd3ad97e48si27477228edv.55.2023.03.27.11.43.46; Mon, 27 Mar 2023 11:44:11 -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=gAbXfp4d; 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 S232071AbjC0Sh6 (ORCPT + 99 others); Mon, 27 Mar 2023 14:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjC0Sh4 (ORCPT ); Mon, 27 Mar 2023 14:37:56 -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 61D2D3AAF; Mon, 27 Mar 2023 11:37:53 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4PlhQ54Lpsz9sbP; Mon, 27 Mar 2023 20:37:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679942269; 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=C8kkdUguiMjdIapGBB4Pr2z2atFYN6EF4wazx5kklCs=; b=gAbXfp4dquLJjFqWTC1MnWG1++pJ2iXoRNrydg8SYK6C0hBryDC5DEOY/wwTUvi/NqfjFO dOaXw8FcxVf6X/OAZ2L3gDKOXQUTTCpDQuT/zICvZkoNJcr7bN1PeQdsBe4hGTBlxAFVIR xWeIiTgfXGexixR+ukJjnGkacoKO5uM7Os9Pm3ywVdRAR8PiK3nSP7QsNsOu84rhAetTPg 4JT874O0GDR/Rys88iYr4uUSxouq/Cy858IPpZXkSVr7Yi+NCh9lJLJkCAhyOVZcY9fUEF fEFAb7FK+asYwHaKzGCaxlMXU4vmtwnFZ12bJlFLWS+jbCSRaenhcsSFQ0WhrQ== 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, Dylan Van Assche Subject: [PATCH v2 0/3] remoteproc: qcom: pas: Support SDM845 SLPI Date: Mon, 27 Mar 2023 20:37:33 +0200 Message-Id: <20230327183736.496170-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?1761547545294924623?= X-GMAIL-MSGID: =?utf-8?q?1761547545294924623?= * 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 adds support for this remoteproc in the q6v5_pas driver to allow booting the SLPI on the SDM845 and expose its service 400 over QRTR. * Related patches * Support for the FastRPC side of the SLPI and DTS changes are submitted in separate series. These are the links to v1 of the series: 1. FastRPC changes: https://lore.kernel.org/linux-arm-msm/20230325134410.21092-1-me@dylanvanassche.be/ 2. DTS changes: https://lore.kernel.org/linux-devicetree/20230325135114.21688-1-me@dylanvanassche.be/ * Changelog * Changes in v2: - Removed double blank lines - Added power-domain if:then: for SDM845 SLPI - After adding SDM845 SLPI, refactor SLPI resource init Kind regards, Dylan Van Assche Dylan Van Assche (3): dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible remoteproc: qcom: pas: add SDM845 SLPI resource remoteproc: qcom: pas: refactor SLPI remoteproc init .../bindings/remoteproc/qcom,adsp.yaml | 19 +++++++ drivers/remoteproc/qcom_q6v5_pas.c | 49 ++++--------------- 2 files changed, 28 insertions(+), 40 deletions(-)