Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1329782pxb; Sat, 29 Jan 2022 03:02:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWta0tdneQDr2RfDNzF686k+Gy7UljGXAsFkT3Q1pmiTvUv/rD+hkklPZLKBOzswq7FAvi X-Received: by 2002:a63:338e:: with SMTP id z136mr9946219pgz.510.1643454157221; Sat, 29 Jan 2022 03:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643454157; cv=none; d=google.com; s=arc-20160816; b=t8nKit7pufxflUQtp4kx7XiwR1uumfmEyxglUTlqGILvxxKOO8xO6/pFHq8ZrGc94h 01ddCj9Rl+Wk60mH00m01fNbIuKRVV2zK0tCpXTTgHOyeeMvUW8yOUmlPJlqZ5MCRmhP zJuWiPgzkdy1laSBzQGqilunU7GzQbg3gz98bOnwhsPR0PIOPwWO7yEg3J245+3heP/+ XxbW7JMBd3h2u6wyhQ4jHSDEB9SB2RkMCfEZrTgN0yhNJLVshvAEzze5jG2I9WvqJLMK Ocx/NZeiBAJZvoPzc/K60+CfW4vkyFYJCXEfVNeE45VBG4knL0XAQvR3ZQbL+qYCLk9s nenw== 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=MZ09zZh43E7tXHG2E2Vwc7ofHsJ1Ii8TO5MAW1mVCYs=; b=pkJllDuN7pp9IXuwgc+1hM5trgyiYm2b4OfyFPqR7/sSsmxnHCJjPrGOOsOMROiXaJ 1NvBmGaSTTQ4IK8dQgCbq5Ih7C6zlFNY91aKitxLlOK2/cWcOrvxTNYzQKLNY56lvVuu v0p93UJiXzcMm7KsJ2e2at4TeaVMrL6rt4QY7UDbXw/5sLZlD1umoT9uuVntn93oOYuG C69Ori/HEsEHEwHBKk9BJT/UIQgQ7+ImJm6MYAxGkdhil5zhjkh58PrTje2SvXRtXisr 9WRlI3KuqK2Rw674B/t9Z1coaQdw/oOklRbvMIjaDoKtp6ZbdqSrhKPBHqNJ0T6ouTbJ Stkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iB9OiZ4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u187si8422525pfc.16.2022.01.29.03.02.26; Sat, 29 Jan 2022 03:02:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iB9OiZ4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345572AbiA1Cyu (ORCPT + 99 others); Thu, 27 Jan 2022 21:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345558AbiA1Cyt (ORCPT ); Thu, 27 Jan 2022 21:54:49 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E0EC061748 for ; Thu, 27 Jan 2022 18:54:48 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id y23so9720789oia.13 for ; Thu, 27 Jan 2022 18:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MZ09zZh43E7tXHG2E2Vwc7ofHsJ1Ii8TO5MAW1mVCYs=; b=iB9OiZ4cinZKQh/bcru3DdlB/I71TE1CqGYnR/p7p/v2yZ6MUXp/nyKnPB1+pPr5qi +PJPUzpysmF7dPC9BSRuaof/HUBGhQUbvQ0pihtQenwL05yStj+j4+WTaf3BeclOPMvg u36N+8puui43wjUPsZTyLHPbOEF1xHw3CTuBunE7xjZdSYNTO/ylCmiM3qE2VubF6Dzi ftDsP08UM24H7J5XGN8HUtp3Md41o8PC3CWaui8OJZniTVBIjPvfCWUiFfdOm68XXiaa GcqQn+OL9KhFOhoa/lTRpqt4ty8nETnC0SCS5eO4sKcdJJ1CzWFwu5A3FGXh+cmued+2 rbXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MZ09zZh43E7tXHG2E2Vwc7ofHsJ1Ii8TO5MAW1mVCYs=; b=l4fEi1oiBxalpNitsRipozUjkibRaHKMWOsMbhbZboBi4NgNDCR17N6tJN/Hj8j+Dy ejCtRt2nz+0qaoXEcAFq1UHT5XtyqwWv4p6CbaI0inbbB0oPT7M50XC3EFmoMi2XVlbm ijk53wKflEmNF9Qa4jiLJvDawJTpjJfp8GgjOEOPI+2qRShGp5hwDYkGoiqNYhfDfTj6 1jSEslAo83tSSRY5QxOCVQe3cNIfHTTi5jpBxvIfW4QGfCfWhyFQxMIrtULsYjaQOFKC +JD4XBY6Pp5j6z4Sz/hXkNRAKhmBOlx5PPfRSaCcdSQJ5qYGeMLMCvw8ajkroZSbMyIl gU5A== X-Gm-Message-State: AOAM532crff06I06QNfoP7oY3Mhe+SZXMl3rc+RO8XvjfxIKTUtpnTza 0TrZlL9vxp6ZjRpPooFk8ok/lA== X-Received: by 2002:a54:4785:: with SMTP id o5mr4093778oic.96.1643338487825; Thu, 27 Jan 2022 18:54:47 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id k6sm5677352oop.28.2022.01.27.18.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 18:54:47 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Mathieu Poirier Cc: Rob Herring , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/13] soc: qcom: mdt_loader: Support Qualcomm SM8450 Date: Thu, 27 Jan 2022 18:55:00 -0800 Message-Id: <20220128025513.97188-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Qualcomm SM8450 platform comes with both some smaller changes in the firmware packaging and a new requirement to hold onto the metadata buffer until PAS auth_and_reset has been completed. Extend the PAS api and rework the mdt_loader to meet these new requirements, then wire this up with the PAS remoteproc driver and finally add the SM8450 remoteproc instances. Bjorn Andersson (13): firmware: qcom: scm: Introduce pas_metadata context soc: qcom: mdt_loader: Split out split-file-loader soc: qcom: mdt_loader: Allow hash segment to be split out soc: qcom: mdt_loader: Allow hash to reside in any segment soc: qcom: mdt_loader: Extend check for split firmware soc: qcom: mdt_loader: Reorder parts of __qcom_mdt_load() soc: qcom: mdt_loader: Always invoke PAS mem_setup soc: qcom: mdt_loader: Extract PAS operations remoteproc: qcom: pas: Carry PAS metadata context dt-bindings: remoteproc: qcom: pas: Add SM8450 PAS compatibles remoteproc: qcom: pas: Add SM8450 remoteproc support arm64: dts: qcom: sm8450: Add remoteproc enablers and instances arm64: dts: qcom: sm8450-qrd: Enable remoteproc instances .../bindings/remoteproc/qcom,adsp.yaml | 16 + arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 20 ++ arch/arm64/boot/dts/qcom/sm8450.dtsi | 297 ++++++++++++++++++ drivers/firmware/qcom_scm.c | 39 ++- drivers/remoteproc/qcom_q6v5_mss.c | 7 +- drivers/remoteproc/qcom_q6v5_pas.c | 36 ++- drivers/soc/qcom/mdt_loader.c | 232 +++++++++----- include/linux/qcom_scm.h | 10 +- include/linux/soc/qcom/mdt_loader.h | 17 +- 9 files changed, 579 insertions(+), 95 deletions(-) -- 2.33.1