Received: by 10.223.185.116 with SMTP id b49csp461662wrg; Wed, 14 Feb 2018 01:39:39 -0800 (PST) X-Google-Smtp-Source: AH8x225uFZ+FuZuiB+gO61B+1he84dNz+JHI0oVDbUos7OMQy3FoxgXEmmq3/pQKwNh/lJwMkpr7 X-Received: by 2002:a17:902:2cc3:: with SMTP id n61-v6mr3881660plb.440.1518601179726; Wed, 14 Feb 2018 01:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518601179; cv=none; d=google.com; s=arc-20160816; b=AGdCvwF/bbbq9P9wfXoI0WDH6iN6q56kV4ElbgsG+BkaCFz2b0PNmV+ZqqPt8d46Fq SbNlx1AEn7vyKkjDW99ULZEx1x4xxh3kXTxv/TZRInyWKIozFjkLCTbfpxdvwpRNJi9/ eVI/QfI+L8jC3VU1dUU8WPoVHMEDXpnLyRaDjtUemCtnABDP0uvWgha8jk7yeasRT8nX JirjSZaaaMT9kzJQhlDL3z8xfnL4N8SKzBfMOKUIZYjH6tJLEO4Hmx0aqiEdk6Hh6lzR WNSdyzg7UpepRgRYXEiLZFJrXdEiXo34T1CjqHEarZ3XEGCXpOlmo3lWuE+HQTtr5FTH Bhcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UNTmoEostVqNzWNVX1u5H0uxVHGSgp4HhVi9KuxENOI=; b=Chba/vs19J1eMUvOfWFrV098yZB9mK8nbGNag5bZTNfTfli+zw9HHy6s68hueDG0uH 4vf+k/6y3r7BPAvOrCkYatGZ3Y5p16E+kaMuakmc0o4xiySsgHLU99aNkclm3Mb/tB4Q z9jFf/4JO+QU8A28F78s8Cd+B7by5PwkMPC6m3vRk/WLb7T4Q9y9FRRsVEjKvnjX3La8 97ux7D5Lz4Y2kvVGaceLqhS+yZh09MRxHkObIgny/uVFPee6JvA1NUgkjm2ot+ukQ9us VR5HSLqKmYFv4b67cYQ8/inYhkfStI32x1H6ZD2ffdZXxWohjyGoE4/igSaIqNERGe+b +b8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=o6NPNaAw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si1237297pld.589.2018.02.14.01.39.24; Wed, 14 Feb 2018 01:39:39 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=o6NPNaAw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966847AbeBNJip (ORCPT + 99 others); Wed, 14 Feb 2018 04:38:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58222 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966693AbeBNJin (ORCPT ); Wed, 14 Feb 2018 04:38:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UNTmoEostVqNzWNVX1u5H0uxVHGSgp4HhVi9KuxENOI=; b=o6NPNaAw+yPbEIvx2DLxy3r6n B3Q8NwneZKliX03Bfu6oEi7BYLzt6YnV8XSio4A4Mx2IwxXXmee4fkdch9+7GKbJRH0yz8Wr5Wul6 V1Nk8BCqczDsQWmq1O+GXWHcINVlDXZ1F93btdMLbjnkIwXxplmq6TkYFx/qVjadV+NxQyYWu5nJN 0FsABpB6PH6h2J/CP8nGQF4TypFR6JcWHAEbC+e4RMEBOTLqQVGw/CwN1n+tn0EKYnwT5MRCsW6SQ cCENhs6M4ixAko3oitS53tedRyIMagVdZmMO2hWMHzHciWlN66NKlfM1V3AGi7d8G0wT0GY4FHYSP mqKHZCfbw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eltWP-0001Kb-Cz; Wed, 14 Feb 2018 09:38:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C3D49201FB4F6; Wed, 14 Feb 2018 10:38:35 +0100 (CET) Date: Wed, 14 Feb 2018 10:38:35 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: Tim Chen , Dave Hansen , hpa@zytor.com, tglx@linutronix.de, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, dwmw@amazon.co.uk, linux-tip-commits@vger.kernel.org, Borislav Petkov , Arjan van de Ven Subject: Re: [PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context Message-ID: <20180214093835.GW25181@hirez.programming.kicks-ass.net> References: <1518362359-1005-1-git-send-email-dwmw@amazon.co.uk> <20180212102211.cdrrqqd4hdw7xu5y@gmail.com> <20180212165835.GO25181@hirez.programming.kicks-ass.net> <20180213075540.3lkikkpgjoe6ocjk@gmail.com> <5c3ba123-abbe-f153-7b75-a89d31d25c72@linux.intel.com> <20180214093159.mdzfupne547bi5qx@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180214093159.mdzfupne547bi5qx@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 14, 2018 at 10:31:59AM +0100, Ingo Molnar wrote: > Because in this particular case it does not appear to be so: the reason for the > BIOS/firmware call appears to be to determine how we nmi_panic() after receiving > an NMI that no other NMI handler handled: with a passive-aggressive "I don't know" > panic message or with a slightly more informative panic message. However much I like just ripping all that out, I think the ROM call actually does that logging, or that is how I read things. If you look at the original Changelog for that driver: Hp is providing a Hardware WatchDog Timer driver that will only work with the specific HW Timer located in the HP ProLiant iLO 2 ASIC. The iLO 2 HW Timer will generate a Non-maskable Interrupt (NMI) 9 seconds before physically resetting the server, by removing power, so that the event can be logged to the HP Integrated Management Log (IML), a Non-Volatile Random Access Memory (NVRAM). The logging of the event is performed using the HP ProLiant ROM via an Industry Standard access known as a BIOS Service Directory Entry.