Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3100455imu; Sun, 13 Jan 2019 18:38:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN72H/KvQSaud2J5H87BPxO1gvW9UJ1yT8zQX2jpz9u9tNvTPG6mMcBFmyKxPKBbTCWuWz8i X-Received: by 2002:a63:8c0d:: with SMTP id m13mr21464622pgd.422.1547433490869; Sun, 13 Jan 2019 18:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547433490; cv=none; d=google.com; s=arc-20160816; b=PR6G1dnr5CoLbljlRugJRi0WSBC0Equ2oN03dNHmqlF5jpJF29Gsm/NlYakLmm9TdT ReT64h1ObLnzOPFi0bscFbJjG3/Tw10H+0KCNJIy3U6cGfYfG/kdT3YZQXDfMcrDslcn 8fWNpauXAVIkBPxLHKkxXJikvf0BXr+MQtCrlODjJJmv0k7I3O2a+Pa4HPtrD8oSR2F0 ZJejgsqkj2maNQ7HrQAv+K0FdbR8dQA5UEu9b0jH9eD2uFtghXT8J/Baiz7niX4crGiQ lSplSPI8NvGsRZFATXCgBLv3eJ1Iy3ixHhF15k2g3xOvlzhKMiPirUyJNMobrc44YlOZ SNRQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n9HbW6BA0ESYfJXYk+hs76hK+0F/mQba/nCWS8F5gOk=; b=LvDxVPg3MrptwkGvcn8ey5nNMZ8ifDYXXJ3s2nGAEsGXPpyHQsUuUPTynFWOSGLL7R 4O8vsRtLUog1phRzG3v5HdEySaPxy1v5uqtY5wSfbXGSUkCEjtBd+MGTnAL6SMsaPfkI q9aCvVJQ0hCWooRJ+kcLuy1R9KAgx4slCv1dvEpbu8b02X+fWSvgUqH/2Zdy8ASpY8e6 t+66mDnOL/AuY7zekUnhrWMWLH9xd8HYopy4PskiLkH/0LAY5EsQkbSX5K5spglwDf2t 1qSmAdxoLY4Dt7HzuBKkv2wQZxf5VGK9bLUQEpEkL0tztmOYkrxyDr1jXtPtVLQsC8wP HzWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F97nyTRV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si18959490pgm.167.2019.01.13.18.37.55; Sun, 13 Jan 2019 18:38:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=F97nyTRV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726757AbfANCgk (ORCPT + 99 others); Sun, 13 Jan 2019 21:36:40 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43777 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbfANCgi (ORCPT ); Sun, 13 Jan 2019 21:36:38 -0500 Received: by mail-lj1-f196.google.com with SMTP id q2-v6so17623762lji.10; Sun, 13 Jan 2019 18:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n9HbW6BA0ESYfJXYk+hs76hK+0F/mQba/nCWS8F5gOk=; b=F97nyTRV96AXjZJgYAi6rnYQRWZTs7Ly0reFfrhHuf82502Az13vlpM8e7ckptfTbX ALneGcKJguc92kr2cvS8tPBB478EPd4ToSKEyFShoyx9TuVZf0hWAdAVteDKCTolV1Zc 3zPrvjcOeV0dcskN6AoiDeGMC16u72eKUsz+vvBoRLp8IwD3eCLqmayReXCoNK2HUgTU 9ckKc4n+JUoU+nBIGZQZXTZXDzVvv+XspQ/NFf8MJyFbYIK8dNCMH1GV47ZYvFMAAeHi Qs0QnhPIvuuPBMu8KZysj26FwD3kga6cU2GuKmbbfJeJWwSLTsOlxFI8GYogbpaYGV3f CMyA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=n9HbW6BA0ESYfJXYk+hs76hK+0F/mQba/nCWS8F5gOk=; b=VjR5Pi85tkS2mR3TZt3y8MJEFk+CoNX9YD4sWW01aO+l6MPaEZZeH+EYTHVG/LA5Mh zT8X5gQyIyb2ulGgOG/ElW7npc+Dl9PVsdSELxkc9YUeixWSkIW+rNo83jgUFr58y5HK FtPF0BPQ+zpwgnCSKUrRoMSNKxhELoAMWMOYMPYiVgbkXcNVEL1gxxoPQAZ4eODkAK7U ykt3xr35q+yY/7w8vnepw1Gk9DUwJzEtmmGX5kQwH1y8Eq8anKGTLKW6QOZz24TKW5S6 qRERaw9aPJETQi/QjrbPHDSI6Oi/9ugJYR1rkJe0xDiRq9j0+9ckQdTuRzPMIkFa9fBO mCjA== X-Gm-Message-State: AJcUukfcda1yhTq606SNVDFeb03gvOz3D14031pbWqBrNOMDhr0XoY52 yOEUv0x41xaQgKDs9k0VRApdZABS6WDBMg== X-Received: by 2002:a2e:561d:: with SMTP id k29-v6mr9021370ljb.91.1547433396119; Sun, 13 Jan 2019 18:36:36 -0800 (PST) Received: from localhost.localdomain (pool-109-191-228-208.is74.ru. [109.191.228.208]) by smtp.gmail.com with ESMTPSA id m4-v6sm16876897ljb.58.2019.01.13.18.36.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 18:36:35 -0800 (PST) From: Ivan Mironov To: linux-watchdog@vger.kernel.org, mironov.ivan@gmail.com Cc: linux-kernel@vger.kernel.org, Jerry Hoemann , Wim Van Sebroeck , Guenter Roeck Subject: [RFC PATCH 3/4] watchdog: hpwdt: Add more information into message Date: Mon, 14 Jan 2019 07:36:16 +0500 Message-Id: <20190114023617.10656-4-mironov.ivan@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114023617.10656-1-mironov.ivan@gmail.com> References: <20190114023617.10656-1-mironov.ivan@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Default NMI handling code prints the same into the kernel log. Signed-off-by: Ivan Mironov --- drivers/watchdog/hpwdt.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index e2958df46c69..95d002b5b120 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -155,19 +155,20 @@ static int hpwdt_my_nmi(void) static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) { unsigned int mynmi = hpwdt_my_nmi(); - static char panic_msg[] = - "00: An NMI occurred. Depending on your system the reason " - "for the NMI is logged in any one of the following resources:\n" - "1. Integrated Management Log (IML)\n" - "2. OA Syslog\n" - "3. OA Forward Progress Log\n" - "4. iLO Event Log"; if (!mynmi) return NMI_DONE; - hex_byte_pack(panic_msg, mynmi); - nmi_panic(regs, panic_msg); + pr_emerg("%02x: An NMI occurred (reason %02x, CPU %d). Depending on " + "your system the reason for the NMI is logged in any one of " + "the following resources:\n" + "1. Integrated Management Log (IML)\n" + "2. OA Syslog\n" + "3. OA Forward Progress Log\n" + "4. iLO Event Log\n", + mynmi, ulReason, smp_processor_id()); + + nmi_panic(regs, "hpwdt: NMI: Not continuing"); return NMI_HANDLED; } -- 2.20.1