From patchwork Fri Dec 27 05:32:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 182471 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2565320ild; Thu, 26 Dec 2019 21:32:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxFfRtSIV55wyKukAfcEmN0tB7r11G435XQvObnRo71Kz5V3Ck/n0l0EkNUnpLoVF9v6jZD X-Received: by 2002:a9d:4805:: with SMTP id c5mr18817968otf.292.1577424773509; Thu, 26 Dec 2019 21:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577424773; cv=none; d=google.com; s=arc-20160816; b=C9eIt4ZH7jz3L6ls3jDeU6/VAYaEPUaE0qECNcChk8B4MlXYYmIVzp1MJ+NsWtK7Cy 0q86DCh8VsRLCvxPDByMH3Pdx9CvJNEq3NuRyP1uYQXANx13OLESepaX6ys8v2N962P+ k+ftH0nQbR86R2y1pmNvQW4PXUStgdiR/WvN8cmvRoomP1DtPPXNSf98190wTarschEO ITBoX/vuOV2UHd7n1zkcfRDN56iBk/V/xG4tefDNsWKDP2LzjUO7LgvzgBcj46AKr7R4 MrQtFlNnItrWXT7nXgrZB13ovU2b3e3VxushPmgeU5e179W0zdvRuXphFaU34jSSRJe8 xzOw== 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=DNsQCo6LXJC8qwpw5lLZyTWBH87Wonp/iNPumYIBIeA=; b=pn1eg2FyU04Xvd77twl1BxQtpPbUEQ5pzb+VSoTg0je4Dj4X8dbCCCrn6P7S2YeL5j T6CQ80jp12DzjARpuiLeGiLj/44RTrdzpfD18xJ7iXs7CUtzoXEZLDQvNFf/XlBxrtur 3Wxmaixya3YKa2aiuvOVs8CIfxMQEOcDZrF9IfVxF2qYuO5sEh6zyzM4jZCKPs0IP951 +hqFOa57Fm517P4m7cO6BXpax5crsxKxGth2zIOkF8JY4oNC6lTeUgaRm4/hIVOUEA+x YDoX+JZAnOmQxGnBgPWFUIFj41I1TBi2L3G5yEPLPg2EvEKrBYwgoLKddcVfF1EigWLX ySag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uHM3rh/x"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g1si14043153otj.115.2019.12.26.21.32.52; Thu, 26 Dec 2019 21:32:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uHM3rh/x"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S1726297AbfL0Fcw (ORCPT + 8 others); Fri, 27 Dec 2019 00:32:52 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41140 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbfL0Fcv (ORCPT ); Fri, 27 Dec 2019 00:32:51 -0500 Received: by mail-pf1-f195.google.com with SMTP id w62so14224546pfw.8 for ; Thu, 26 Dec 2019 21:32:51 -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=DNsQCo6LXJC8qwpw5lLZyTWBH87Wonp/iNPumYIBIeA=; b=uHM3rh/xMixeEdGho0V1/5lGpU6VG1/HH/T6XemIFGYsnmrcrteFrw0IqAZHxYaJ0s uNH8CHUWtdchxN+9CaSvyP4gXsrwdWe5QWtZNR3X8fWzCS5363hiy/T7wGE1m5YhV7hh bdVN3ByBeY5QKvpS0R+p7Ide7Z+12wWKvfXDZogvdyH0CbVBSWFMATsbGFSVU72Kd6iX e15T15UJuA5cfgx8ukGCXiiJ23SCniTp/ZhcZRjBy3ceBSLc2xlxrBfDwuASiTVF8bBu F9qAHVK2fMH8EJY77plt5xiTpdRMF6kdWJ/uZffL1tnkM+Uw8nhwi73WfNGTRPQipUwT eOGQ== 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=DNsQCo6LXJC8qwpw5lLZyTWBH87Wonp/iNPumYIBIeA=; b=rDXb6znXbm1W9erj36wxx8EKqBjLwv6lnzfPPpwSe13bjjkqcKeojF9TxlcqazAHf2 rb+q5j5nPtv5DaLG4ifr0fchan5n9bfkVH2lv2I5HJuY0ItezyjSKJ8BU0HoHDutunoV zDgplASbMUuVmjZ+a5ntGWEkDDsxb34m2bZ5bWEbGCoVhkKQkT3c6qY/fYUMYw5WtbeB ydHCyDl/aIjDkxpoLWNUDfHwapMPJBaRcUVrpApSBcWv8mKgBC5V1bOSftZvXOqV6lfa 0oTsocOqNdV4im/kMuXsy+k6GPo8kRz440mBsZSeTtNUDla9/q5uNGPG7ee6u07yPg3C zuyA== X-Gm-Message-State: APjAAAVTd+GZd7a9h5ABLlf2clX20rQkT6XmHsbiY6y1l2Keha8zOBAp hFmTjlUqe2RJLuSxghMEeq4eMbt0wnc= X-Received: by 2002:a63:d54f:: with SMTP id v15mr54357940pgi.64.1577424770892; Thu, 26 Dec 2019 21:32:50 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id c22sm16789196pfo.50.2019.12.26.21.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 21:32:50 -0800 (PST) From: Bjorn Andersson To: Rob Herring , Mark Rutland , Ohad Ben-Cohen Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Sibi Sankar , Rishabh Bhatnagar Subject: [PATCH v2 0/8] remoteproc: qcom: post mortem debug support Date: Thu, 26 Dec 2019 21:32:07 -0800 Message-Id: <20191227053215.423811-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The following series introduces two components that aids in post mortem debugging of Qualcomm systems. The first part is used to store information about loaded images in IMEM, for post mortem tools to know where the kernel loaded the remoteproc firmware. The second part invokes a stop operation on the remoteprocs during a kernel panic, in order to trigger them to flush caches etc. Bjorn Andersson (8): dt-bindings: remoteproc: Add Qualcomm PIL info binding remoteproc: qcom: Introduce driver to store pil info in IMEM remoteproc: qcom: Update IMEM PIL info on load arm64: dts: qcom: qcs404: Add IMEM and PIL info region arm64: dts: qcom: sdm845: Add IMEM and PIL info region remoteproc: Introduce "panic" callback in ops remoteproc: qcom: q6v5: Add common panic handler remoteproc: qcom: Introduce panic handler for PAS and ADSP .../bindings/remoteproc/qcom,pil-info.yaml | 35 ++++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 10 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 ++ drivers/remoteproc/Kconfig | 6 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/qcom_pil_info.c | 150 ++++++++++++++++++ drivers/remoteproc/qcom_pil_info.h | 8 + drivers/remoteproc/qcom_q6v5.c | 19 +++ drivers/remoteproc/qcom_q6v5.h | 1 + drivers/remoteproc/qcom_q6v5_adsp.c | 27 +++- drivers/remoteproc/qcom_q6v5_mss.c | 6 + drivers/remoteproc/qcom_q6v5_pas.c | 26 ++- drivers/remoteproc/qcom_wcnss.c | 17 +- drivers/remoteproc/remoteproc_core.c | 17 ++ include/linux/remoteproc.h | 4 + 15 files changed, 328 insertions(+), 9 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.24.0