From patchwork Tue Mar 29 03:36:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8681991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 90F329F54E for ; Tue, 29 Mar 2016 03:39:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B56FE2020F for ; Tue, 29 Mar 2016 03:39:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D72D720121 for ; Tue, 29 Mar 2016 03:39:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1akkTh-0003Ar-Sz; Tue, 29 Mar 2016 03:38:01 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1akkTG-00032Q-DP for linux-arm-kernel@lists.infradead.org; Tue, 29 Mar 2016 03:37:36 +0000 Received: by mail-pf0-x234.google.com with SMTP id 4so3795943pfd.0 for ; Mon, 28 Mar 2016 20:37:14 -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:in-reply-to:references; bh=EIJd10Id7LP+7r5+uhKaKPmU7+qKtUSofCcUpcWr9DM=; b=Gf3FBRfuaPX1uBbhyG57+hj4cjYg/r9gAtjMUznZ1xUXX4vARHb4Cx1XWCoaXwctke nZ49rTAVsLnwD35TL4ZkLYHONCeU7A7iK+8QLvjC213V2JsboEYN0ISKqsGKyq3ZQ0tu y5B0gGT0GEjwr+CSaxTSimHLowPh9HLJCS7QU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EIJd10Id7LP+7r5+uhKaKPmU7+qKtUSofCcUpcWr9DM=; b=CguBQ0qX13VeYMypE4k4ot8jegKlexsX2t9V3YhgBD194sBK4LGBD20lCaYV9UD8VB /9uBcJMS5VbZjuyOGgF/gS6JAe6bNpeXCQRedphHpmky4zX2+P5q8e7c+x++4SrKZanK h1VOSbHgy/pSC/xVTjhpX3wUU2mSbJ0LM4hazNDqad8xFhNnj5eAJR/H/Dsvkd+IXyka 9mSdM7Ze89YygQpvwLMeN5JrIEPoIzgemrWRS+5ex4vaVwCHz+NTm3zRbhERaYt1cK37 jHXu7hNFtj6gg/UxFPgZHdgVJW83+J8BxTWorbPEe1opGcPOda4txjrX8hWCst/+e6tx 1R+g== X-Gm-Message-State: AD7BkJLle+0Rw2Z/zgnBAIu6UqqYNbT3hPuqHy1lHsU8hDpRCjIG37cp6W5qjfOFUUsl14aH X-Received: by 10.98.42.150 with SMTP id q144mr48397168pfq.73.1459222633776; Mon, 28 Mar 2016 20:37:13 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id 85sm38851600pfl.18.2016.03.28.20.37.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 20:37:13 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Subject: [PATCH v2 3/9] remoteproc: Add additional crash reasons Date: Mon, 28 Mar 2016 20:36:59 -0700 Message-Id: <1459222625-11440-4-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459222625-11440-1-git-send-email-bjorn.andersson@linaro.org> References: <1459222625-11440-1-git-send-email-bjorn.andersson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160328_203734_631522_B63033F6 X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , John Stultz , Bjorn Andersson , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bjorn Andersson The Qualcomm WCNSS can crash by watchdog or a fatal software error. Add these types to the list of remoteproc crash reasons. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/remoteproc/remoteproc_core.c | 2 ++ include/linux/remoteproc.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index c04a786dc051..19a906716abd 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -57,6 +57,8 @@ static DEFINE_IDA(rproc_dev_index); static const char * const rproc_crash_names[] = { [RPROC_MMUFAULT] = "mmufault", + [RPROC_WATCHDOG] = "watchdog", + [RPROC_FATAL_ERROR] = "fatal error", }; /* translate rproc_crash_type to string */ diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 9c4e1384f636..1c457a8dd5a6 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -365,6 +365,8 @@ enum rproc_state { /** * enum rproc_crash_type - remote processor crash types * @RPROC_MMUFAULT: iommu fault + * @RPROC_WATCHDOG: watchdog bite + * @RPROC_FATAL_ERROR fatal error * * Each element of the enum is used as an array index. So that, the value of * the elements should be always something sane. @@ -373,6 +375,8 @@ enum rproc_state { */ enum rproc_crash_type { RPROC_MMUFAULT, + RPROC_WATCHDOG, + RPROC_FATAL_ERROR, }; /**