From patchwork Mon Jun 22 19:19:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191384 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1315507ile; Mon, 22 Jun 2020 12:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv3zdSRRlsT0o8hEIM/W5GFOvLNhd6ZndR4KOIrLVhCP+zg2V2hK5qg/mqctsr+ZJiFlC3 X-Received: by 2002:a50:f1d9:: with SMTP id y25mr17829839edl.292.1592853576497; Mon, 22 Jun 2020 12:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592853576; cv=none; d=google.com; s=arc-20160816; b=VQ72ZUSJ37zwHhUy+UZEPlouZEmltgIA3WKRVJ69oCJG5ZotbBfR7bzJ9qsAJJZDn3 wEz5/cljf2wEENueNbndHrdzL+8W4HUXCYqHcFHxIXBtDVZIv7OiWg8BBhxfp3m2UTKt r7Q2oZaWtBABp9u5cxgnJbnRDgPQLebOyNZB8Sc+3uNbtk7dpZNblrxYFQoMfv6ePlc1 7FNpSXU3MuapohuEuSVwBeMkx0O5d3bdB6UQNfUI4voy6lFhm+QRdNcLBbggG5zvuL+D i7Bf3cA6wwmN/oHStiR2LtPbI8OC63+ILkGeknzW3AB9iXJZjDu5ympY6wNkSjNNRf/T BrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Jus7DNDunfIMFweSDWGPXAjkcv1IrAfG0u9GMpZ5ilM=; b=Ve4zwzYR1EJ29s39Gep0QQRcpQA1S+jVzP78/7dTtePQUMfH1Jl701OoU928FdYclQ yNFnkB/4I/DRvWcjBLCDxTU21ClQTbSgqdr0HkE849mYiOgCE9W86nYPrbb1zcDS3Y2w Lvtkgy0dJlaiAAy0syt3anO1o+Ouhc/3ZfCxPxzAo+FshEr742LnX67PRYObRE6BjtlP D9lBLQRhj54CWlKmbsh6e4JIeNhIp5PFo4ohAScjmVsZ1jP6lH34r1Y9VA1nVkek4KH7 C3hYnDKyEpLaXQeGW/lEuUcJNflrZ03kI0K8rKb5djbmQO37OuFL1nNq8hmrGyOGCHn/ /atA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sK9YTPQH; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 k12si9867261edi.198.2020.06.22.12.19.36; Mon, 22 Jun 2020 12:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=sK9YTPQH; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728324AbgFVTTf (ORCPT + 6 others); Mon, 22 Jun 2020 15:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728178AbgFVTTe (ORCPT ); Mon, 22 Jun 2020 15:19:34 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AD0C061795 for ; Mon, 22 Jun 2020 12:19:34 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id d67so16634584oig.6 for ; Mon, 22 Jun 2020 12:19:34 -0700 (PDT) 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=Jus7DNDunfIMFweSDWGPXAjkcv1IrAfG0u9GMpZ5ilM=; b=sK9YTPQH86hVUZWWh2ZdcBb/PzqD9yI/NEShdhMoHRASS6z2MQFuV6zJtyVmEmyShb coR9ZTY2FwG+evLcoI8Xy/beUUMV7wx4p7cx+UhqlCK35HpYDK1SyF92VVmLiRfAXp8B 2j9XssWJSfYZgGjNy1U2ueJoZrxdEaxhLypxJksE2wmHI06gQ0zbTpvj2lMCI2eI9cDj 4MzmooZ1MTZ4due3PgoKScdqrTgVxMjuPS2sNa5ZgyO5Hl1206ARWa9Thadj3mEXHe5G 9R6sGw7oWmxfrvh7aFq0SGY8TlufZwdrpYZVJrmXb7BFnxF9xRLL8c8bL17qYI0/hsts WwSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Jus7DNDunfIMFweSDWGPXAjkcv1IrAfG0u9GMpZ5ilM=; b=IJLSO/rOX5ANM0ykJN+KI0Pyigg/o+bgnaYlj+9+WPAM9DbkFLPT9a4Smc2AqUfuGv bC0PzTaDYuK5xtkhZ4Wn86SsUs8s5p6fut/T7mn+E4T9N4gPg3iW1hRsOGCsc6D2Bea7 vk311Lv8AdxqZcOV/Y3yG7YQKkZfKGfOSYaQq/4CXWIy8jSEHhX4q0jYYv8aWsqPu8V8 Kp9+K8Mg+nJlP3CqmF5mTT53KHyoWZ8rO6/NCSpmafrgj3xxHr4arFqMSgoezQbcCTRB 3z0Wzn0HA2iQU8ExlB/lYy/rjpoTF8cnZHyQxouppRm74tsD5B+aARhfTxtbaHFl3zzi xgxw== X-Gm-Message-State: AOAM530xk4LQCrU4g62DW3TIyC37svemOchmKLric5/0dHm37Tku3MYQ m0NjACZcn7dylHBacoOP3IHhvw== X-Received: by 2002:a05:6808:487:: with SMTP id z7mr14223890oid.166.1592853572847; Mon, 22 Jun 2020 12:19:32 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m84sm3348294oif.32.2020.06.22.12.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 12:19:32 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen 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 v7 0/5] remoteproc: qcom: PIL info support Date: Mon, 22 Jun 2020 12:19:37 -0700 Message-Id: <20200622191942.255460-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Introduce support for filling out the relocation information in IMEM, to aid post mortem debug tools to locate the various remoteprocs. Bjorn Andersson (5): dt-bindings: remoteproc: Add Qualcomm PIL info binding remoteproc: qcom: Introduce helper to store pil info in IMEM remoteproc: qcom: Update PIL relocation info on load arm64: dts: qcom: qcs404: Add IMEM and PIL info region arm64: dts: qcom: sdm845: Add IMEM and PIL info region .../bindings/remoteproc/qcom,pil-info.yaml | 44 ++++++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 15 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 15 ++ drivers/remoteproc/Kconfig | 8 ++ drivers/remoteproc/Makefile | 1 + drivers/remoteproc/qcom_pil_info.c | 129 ++++++++++++++++++ drivers/remoteproc/qcom_pil_info.h | 9 ++ drivers/remoteproc/qcom_q6v5_adsp.c | 16 ++- drivers/remoteproc/qcom_q6v5_mss.c | 3 + drivers/remoteproc/qcom_q6v5_pas.c | 15 +- drivers/remoteproc/qcom_q6v5_wcss.c | 14 +- drivers/remoteproc/qcom_wcnss.c | 14 +- 12 files changed, 271 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml create mode 100644 drivers/remoteproc/qcom_pil_info.c create mode 100644 drivers/remoteproc/qcom_pil_info.h -- 2.26.2 Reviewed-by: Rishabh Bhatnagar