From patchwork Tue Mar 10 06:38:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11428561 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D31D1731 for ; Tue, 10 Mar 2020 06:39:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C34C2467C for ; Tue, 10 Mar 2020 06:39:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Lbd+jRiV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726224AbgCJGju (ORCPT ); Tue, 10 Mar 2020 02:39:50 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37569 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbgCJGju (ORCPT ); Tue, 10 Mar 2020 02:39:50 -0400 Received: by mail-pf1-f195.google.com with SMTP id p14so6025848pfn.4 for ; Mon, 09 Mar 2020 23:39:49 -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=ra3lKpyRwpXEMv7HLjwjk2xlSk4Do59iXflfneeNh40=; b=Lbd+jRiVgFM/GOA25/zgQIwcVdRtjO336AYWMv936Bf0BBNwu/atrxnDP92hlNItad S+zcWWIOstOuzuwvc1BTHx/E/Ko37whEBJUybmpnhY+sODvoXsH0G9C4uo9NF2ZYKAiu z+lfQIxjGSU0jIkyDJbP9rpxS7ayJVvxy56VvCkc04qU+You79QuaWbNs518z/IMBsP5 NMWt6sqK4E73ZFH6k2qwMbVGsfLZYmQNLiSxItRXmrdc+F05AtUEhSytIlgPG0W7tI0W O7+uPihlXtizOmHR3VGO8O85AffsPjfh+0TMppMXcHGnS+x2IFNXJVzdM1fnWP0hF94t LA2g== 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=ra3lKpyRwpXEMv7HLjwjk2xlSk4Do59iXflfneeNh40=; b=HY5VtybOvWjqX8SQXy7iX+/xz9zf8ACjHiCK6cTPLCcA22hZCOKW7qvuWsvw/hsZlK rTxstXhVUoyy+vn7nR45GSzN/e0XYyzkMe48+nSuDJ1cklg/kq0+oPhy0UtsRU54uP3T AIK5AmUnwtU9Xr2XhDKZzRJKjKTTl+kAXUNqmRZeCTCJ8gR7dI91qy/ePJRdyq5glAhW GXYddp305xdSJgD2MrJk33RWfCcSde6bI4zSBIe9r6aag0RZH/wI2n8bClnDxxelGl/E ru32SCIqmiWJhIa9pNFI50Tw/05mXoRiQNKQOidkRdbmMZ+qXDbv1Q57hEXAMm42yLzS R8xA== X-Gm-Message-State: ANhLgQ1mUYPPdIgTK7jf4ybIA+Q6ngpcdqSbVbe2XTsr0IUKMEY2fHm1 F0kwWNaBoznTQFeYXkYvOctp8Q== X-Google-Smtp-Source: ADFU+vvg6ldWvoYAmaIYZ5vD5tZJbZSSd9XMNxXMPf8i/qa/tRM6EyvNYj9Og3zbvkL3fncx9Vg2VA== X-Received: by 2002:aa7:9538:: with SMTP id c24mr14561624pfp.14.1583822389416; Mon, 09 Mar 2020 23:39:49 -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 j38sm42398468pgi.51.2020.03.09.23.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 23:39:48 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Poirier Subject: [PATCH v4 0/4] remoteproc: Panic handling Date: Mon, 9 Mar 2020 23:38:13 -0700 Message-Id: <20200310063817.3344712-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add support for invoking a panic handler in remoteproc drivers, to allow them to invoke e.g. cache flushing on the remote processors in response to a kernel panic - to aid in post mortem debugging of system issues. Bjorn Andersson (4): remoteproc: Traverse rproc_list under RCU read lock remoteproc: Introduce "panic" callback in ops remoteproc: qcom: q6v5: Add common panic handler remoteproc: qcom: Introduce panic handler for PAS and ADSP drivers/remoteproc/qcom_q6v5.c | 20 ++++++++++ drivers/remoteproc/qcom_q6v5.h | 1 + drivers/remoteproc/qcom_q6v5_adsp.c | 8 ++++ drivers/remoteproc/qcom_q6v5_pas.c | 8 ++++ drivers/remoteproc/remoteproc_core.c | 57 +++++++++++++++++++++++++--- include/linux/remoteproc.h | 3 ++ 6 files changed, 92 insertions(+), 5 deletions(-)