Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2406625rwl; Thu, 30 Mar 2023 09:51:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aDyhYrmmgWt0UsQ8nrKwK9XQKY131wyniX6J3snjCxCIHEh8kVztQuvR06XGUNzyGtlbNg X-Received: by 2002:a05:6a00:a15:b0:627:e180:ac04 with SMTP id p21-20020a056a000a1500b00627e180ac04mr3117196pfh.0.1680195102594; Thu, 30 Mar 2023 09:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195102; cv=none; d=google.com; s=arc-20160816; b=S114M4xBzSc4r/eXjYTUktoRoDao1SVqecLVVbTkBObvD/hJEkPaURpa6oy10IyTSc 1RxcHSYoJ1VxsmV5Ymct2QHuPOZDZSYORTm/bZOjRysXX4/vNdHs6TkNFUEeQPLeYpuy qlMrcBxFTMOvMRuih3QRft56aGZ0dbFexeFACjoCn4FSkGuSWjuFeQfF5oIKyoNwOceW TjQkcnALMmCmNWrpR2zZ4YKP/67JWJz7j7hf1CeXtlBBPLI7GIc3wK/bWbwwJz5Ppmj0 Fkr6zGIMcjCm2b+osScufJTggeHhLUbHFnjB9FeIAZ8DLr8KaffRGDtbyF30jOZmN3uF 9A/w== 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=CDic2DWXEveWIFjjsI0wf1iLoXWFLpfYPEazDmKGMLk=; b=xP0qZEwW5s7+SP+7XY92gfEgDwzRi7uQSXkSE3l18zRzoUH1wUh4IneAH2Ipl1ppbj UMNmtGx3V2b/gWMsQlaSv13H6sifcC+JlkXl81Jl+Hw7bHgfZF59tZiJiXUryOTXpOvI 3TU7Ab1osVs6lYfL+Eosv7Cu0CYQ7QL4yMyGlgs8yOz/Rq1DeFxFVALCae41UxX3tfIi u9gpXK4A53o3pMcuCMZOROPvx9veK2WdHm4dzMQ3/Vtxfcv8cstQKxW3den3aaE1Ope1 T+dzL9blT0N0TM4i7u8PV9Jne1K11zUnvqkCYfHGl3Br/O7A00MMZ7+5+DCfhBVIH4vK S1cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=U7hbb4un; 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 x23-20020a63fe57000000b0051372ec9317si42052pgj.767.2023.03.30.09.51.06; Thu, 30 Mar 2023 09:51:42 -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=U7hbb4un; 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 S232265AbjC3QrT (ORCPT + 99 others); Thu, 30 Mar 2023 12:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232260AbjC3Qqs (ORCPT ); Thu, 30 Mar 2023 12:46:48 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2686BD301; Thu, 30 Mar 2023 09:46:47 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::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-102.mailbox.org (Postfix) with ESMTPS id 4PnTpW25vZz9sbr; Thu, 30 Mar 2023 18:46:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680194803; 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=CDic2DWXEveWIFjjsI0wf1iLoXWFLpfYPEazDmKGMLk=; b=U7hbb4uncwtp1OMCbUfcHEkTGSkv6T8s7nj/ipu0KT8SLj8yfIzl40zGJb3Fwy7y/zWtnS OrB4Qq9aEQqm//AaVviS7CXOKORwy63aQ9f3Lgl/+/B+tR4VpD6oA6dzu5XM4mczPH+0WT mRnMAjoxlWNO2c1nqe+sFOgQF7wTZSqk7iLlFRZsb3ogGLEwbJ+StPFyCAT/XneLXX4QXi aPPOwVffnXyFfmhIuT9csbiM1+JJYyNUNq6vtabaLqsZARyzCNDks8enBV3PmWzLb40q9S v+72EBvpkTWiqo0iVaQOhryDQDpaOg3MCL8y+4dpj6B6smtHPp7Mi5NcOUz8Fw== 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 v3 0/3] remoteproc: qcom: pas: Support SDM845 SLPI Date: Thu, 30 Mar 2023 18:46:30 +0200 Message-Id: <20230330164633.117335-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PnTpW25vZz9sbr 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 * 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 v2 of the series: 1. FastRPC changes: https://lore.kernel.org/linux-arm-msm/20230327184204.498032-1-me@dylanvanassche.be/ 2. DTS changes: https://lore.kernel.org/linux-devicetree/20230327184811.499553-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 Changes in v3: - First refactor SLPI resources of SM8150/SM8250/SM8350/SM8450/MSM8996/MSM8998, then add support for SDM845 SLPI. - Add Reviewed-by for patch 'dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible' since it was not changed in v3. Kind regards, Dylan Van Assche Dylan Van Assche (3): dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible remoteproc: qcom: pas: refactor SLPI remoteproc init remoteproc: qcom: pas: add SDM845 SLPI compatible .../bindings/remoteproc/qcom,adsp.yaml | 19 +++++++ drivers/remoteproc/qcom_q6v5_pas.c | 49 ++++--------------- 2 files changed, 28 insertions(+), 40 deletions(-) -- 2.39.2