From patchwork Wed Aug 7 05:39:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 170702 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6660360ile; Tue, 6 Aug 2019 22:39:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/CE+N7oSk49+sq34l6IwsbApwhSUwjcJH9EJNp+OqNS4PVZcmok8v82hDTc5I/Ydifekm X-Received: by 2002:a17:902:f301:: with SMTP id gb1mr6482700plb.292.1565156388433; Tue, 06 Aug 2019 22:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565156388; cv=none; d=google.com; s=arc-20160816; b=DFZsEF2Ky/98VWcG3u+dK0MibepYMzM4Onj2ElTPXM64HhFyN3PX2JtdxgBvRHedTD RmwSxty/C1xXVYphRREtjLVxZSqYLBH8xUy6GqztuJ1vY8Hwaf3bK905P2fsQdl+V/qc YQpKP20LviuJkHdqRm+jknSoBg13euSS9NsMVMjDYbQimVLbNIa9W5pphF2dznQKAZg+ lkMP2xj7sHQfwX+G+a558yFjd7uimuqBoiRiT9sZeL9+U/I0lNEAP/iD4Q1ybZvCnDbu nO65kAtyvtlbto6BcGBzfsluurovW2i+2HSuM2j3UQqgcaMxi65a2xeQUVthsnTTpnup zsOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=lX8IG8R2jbuFCwsdoK0pzaeJEZdXalK6j85VMKRjgxQ=; b=lp817TFT9kQ5mnoD1/2spI8FZFxYwWITkF0SYuNNwEhP9G7qmfJ/H+lh2/7PKfQ9kv VFmCxMiHDj454ZuNS5eA+AnSck7nJkhMVfcEmcasEwACzYi9xxGJjV6GNZ7s3t5BoZf2 XtPu87GttfCdxaw5w/zeUf631h42w/lVaD1ww6k1eW4RSD4GEGQfwMv0CgSv3fhHVRov 3x9zuCF2xBRKfBGiWsadokeLfUk0jLYlBLl4u8usYfGYfZ9N76vrUlRe4fMUBa4SyK7O f8MZbRcKs7GnT/00jrgfSsWAA31TNkaW1K4XEujRw8tdg0CKZieg69tdH0L59kBShrgG Lrvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DYMVfjHz; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 c62si53135984pga.441.2019.08.06.22.39.47; Tue, 06 Aug 2019 22:39:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=DYMVfjHz; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727011AbfHGFjr (ORCPT + 16 others); Wed, 7 Aug 2019 01:39:47 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44363 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbfHGFjr (ORCPT ); Wed, 7 Aug 2019 01:39:47 -0400 Received: by mail-pl1-f194.google.com with SMTP id t14so38912616plr.11 for ; Tue, 06 Aug 2019 22:39:46 -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; bh=lX8IG8R2jbuFCwsdoK0pzaeJEZdXalK6j85VMKRjgxQ=; b=DYMVfjHzfJ1cOe7Y/fcx9vdQcjtJc27q/Ci2eXoM+zBh9/ckVpNefswtCR2HXum19W we07s/fxc4GekXam4scFbX7zDa6Eq0pr3ZmE13K8dwBTbJD82iIKeAZWoewh/itwnwhH JYgtywKiKqZsDVjpcTLEbET7gSV7aHQN1Afv1f+gw39lhnd7LvT1TkfKBAkuz69cqqzM 4yhBIxHWhBZNnxSDH5SxO0g2DRJG/SuDBJcH3VJJDyaiht1N59ESbQNpRJN5rYd0Vzl/ ThT5MYRw1nbBmsnusuxgYPuH1BimBxKiosTtg5LHlCIn5h90YAkQWuqaHLbvHbAY1LmF 966g== 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; bh=lX8IG8R2jbuFCwsdoK0pzaeJEZdXalK6j85VMKRjgxQ=; b=hQ+rqbJdgkyRXkDL/VHyh9kJDFFKFw5xJuu2kN2iEv2ot4yjItFLkgyQH0/pC9P5oz GkPBJ0hnObsEqlAxlLpNpvc3UvXTZHyN7LgFpWNSAM8Hv9DjWrYtl5yP1q7kIZPKmfkw HBnN1wynw42ZBxVZ8+22MJeBpDWYs+9+WPcOEhpgPoRgzvN7XKRFYgVGsSh5Rb5zV2yj Kc+YrIk79iTTGbPQUaHsUgnHXzUvUj+RMcFLepDDqYfvylphaLW/SNzDdCCNgHZ/BsZY ReAPN9q4bD/KuAd06VyA0wTMitCdmw/WaP5xUQdMC1dBIk52wwC1DA5e719oeXCLssWV 3MPQ== X-Gm-Message-State: APjAAAXK2+QbR5fht+Cl/sKquyH0zTqEDQkKmVzPnZGBdXWdvmnIsKbA k5TtO8y4O2DblNKB2E3DOy6wpw== X-Received: by 2002:a62:6044:: with SMTP id u65mr7428811pfb.15.1565156386238; Tue, 06 Aug 2019 22:39:46 -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 u7sm86070777pfm.96.2019.08.06.22.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 22:39:45 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Ohad Ben-Cohen , Bjorn Andersson Cc: Sibi Sankar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH 0/9] remoteproc: qcom: post mortem debug support Date: Tue, 6 Aug 2019 22:39:33 -0700 Message-Id: <20190807053942.9836-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 (9): remoteproc: qcom: Introduce driver to store pil info in IMEM remoteproc: qcom: mss: Update IMEM PIL info on load remoteproc: qcom: pas: Update IMEM PIL info on load remoteproc: qcom: wcnss: 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 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 | 139 +++++++++++++++++++++++++++ drivers/remoteproc/qcom_pil_info.h | 6 ++ drivers/remoteproc/qcom_q6v5.c | 19 ++++ drivers/remoteproc/qcom_q6v5.h | 1 + drivers/remoteproc/qcom_q6v5_adsp.c | 8 ++ drivers/remoteproc/qcom_q6v5_mss.c | 3 + drivers/remoteproc/qcom_q6v5_pas.c | 23 ++++- drivers/remoteproc/qcom_wcnss.c | 14 ++- drivers/remoteproc/remoteproc_core.c | 16 +++ include/linux/remoteproc.h | 3 + 14 files changed, 253 insertions(+), 6 deletions(-) create mode 100644 drivers/remoteproc/qcom_pil_info.c create mode 100644 drivers/remoteproc/qcom_pil_info.h -- 2.18.0