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: 8681821 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@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 014BD9F54E for ; Tue, 29 Mar 2016 03:37:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 328FE2017D for ; Tue, 29 Mar 2016 03:37:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50502201E4 for ; Tue, 29 Mar 2016 03:37:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755800AbcC2DhS (ORCPT ); Mon, 28 Mar 2016 23:37:18 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:36763 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755679AbcC2DhP (ORCPT ); Mon, 28 Mar 2016 23:37:15 -0400 Received: by mail-pf0-f169.google.com with SMTP id u190so3730585pfb.3 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=B7A+af05w0ylHTb/WXe5HVRfsFClqkIw/tI8Q5vqZ+K962db++Yif7cqrVCacn4IWq ZLNZ1vXI/foHeTvBrcGcfi9RrzhwNJR++a5Suoymjaeutzkns+GzdEfb5IkbybMavmVM 9qamapODQRBGnLYyB0Sam2nlPWeyLMnCxh8ovklI2Q/wKARYRpoanuzzmtOsTx9U7BRE J02lTFwy0zfTYtwBsTC3sGFPwNSNsl4d56G9Mlpmg+kggA6EIJSWV8Sj3ZSjRLRGRuF2 2Ves4NSVG4c+wUOHWBwS15Trcv/j6lHSAhwssQ9xScv6CIGUvaNeXA9v0VEHx0DuAoaf mmLw== X-Gm-Message-State: AD7BkJKAOWcbc1AXTAwCU6pAtQsqraucJLUhP8crxndBxOYiTr/tbQw75QEUKP+Hz4KMzRIV 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 Cc: Rob Herring , Suman Anna , John Stultz , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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, }; /**