Received: by 10.223.185.116 with SMTP id b49csp870689wrg; Fri, 16 Feb 2018 08:29:50 -0800 (PST) X-Google-Smtp-Source: AH8x2277s5FVChh8ct8XPdswezhfwe8R/SQ7qxh90WdUXUmb25i4wCgGHpKgwCTrg/UKxvNEwDFu X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr6384378plx.208.1518798590683; Fri, 16 Feb 2018 08:29:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518798590; cv=none; d=google.com; s=arc-20160816; b=B3BIv4MMtiQHW45LQJMn+K9nfSjytsmLG1wVmv7Xxgq00aBlM00TQAsb/BzOW5kBoW iggwQIweV+VXgvlgLOZSPrrw5IIFQSZNnxDPC3NrqV1+RQ6KXpWZsg8y8iBUEJKpxaPG e9z/5vmxoK3QUn/x50BfrrszFFW82NgaTH/4UEXiphGOgGijK2FK9/Lm0SbGaCinAozW QqpyWORI5f1P3W1gmik98Zl4UN/JkwUOZgNshNkVyGkYLqOzWTNWWjDxSAdtDsWd3c5g LocZ/FKlYysr/l0CpKh6U8w0XFq/oQhadEU/8VRKlYu7d3p4uqUUQgNGhdSc3m1eouUG WFNQ== 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=0TaOI8b/7Ba6ffJQBvGy3mkVUuXkVelqZFN+ZFmCpCs=; b=xVGxITWwJ4LIJS5a9Cbt5ATP+0E95z7+I8XD/UmITVaB609clH3dV2gq/fRfzkFbb3 81u8+tC4u4gH/7iTANnm1BNln2yBqzWkOb9FNG9A1bgZrNs7vCj7VzqkHotI98hEViQz BRhTMvr9cLaIhfB4/BUwgpkCXAf34aVhEKHorFFOwxJDRB7Dy0WahX3lDC6MqaNB9l8F yUtY886VB0cvikZ0dIvNbhSx2l1d+ei/MWAUPEBF30hYnk44gJ9RBYysvdVIqV6+88kU jFRzMscD1PqOotdhcC1qg9+AMajrnQpr9Urssarfj+T6a+qiWQE174H5GWyqt+ViHlXc C2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eFh4ymUb; 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 87si3440598pfm.10.2018.02.16.08.29.36; Fri, 16 Feb 2018 08:29:50 -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=eFh4ymUb; 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 S1033691AbeBOTsq (ORCPT + 99 others); Thu, 15 Feb 2018 14:48:46 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42222 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033540AbeBOTsl (ORCPT ); Thu, 15 Feb 2018 14:48:41 -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=0TaOI8b/7Ba6ffJQBvGy3mkVUuXkVelqZFN+ZFmCpCs=; b=eFh4ymUboh2RR27sOy7w36Wq7 fM81Z4lQaEBY1/UQYc5+mUcXU7W69nWeJSWmF4XRxKNt8v8U25Vrg7BXC1pD8ZcnosVALGnYEl05b BGe9fFpH4g8OnCebyHSDiKFiuxrjXJZseqSKrBm0f5hf5+/EZTdJpLV/4ZNWjd/+UAQiEcDlQBeuB 5r7zyd+pVsmpxNxyh+IFC2nZgBIXuuVPsY9StoRHmj9c44Wut/l4LELu6uxAXWzdWqPhLSR9+X1/Z BubH3gVIhRu4/zQdddoj63O8/2AJu9TmWuiOlxD21FZ9Qcg9AT+Ky++npjK6nlmGDZKN07yI7FEhp hhXbwryqA==; 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 1emPWB-0003TY-9F; Thu, 15 Feb 2018 19:48:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5E36220587C42; Thu, 15 Feb 2018 20:48:28 +0100 (CET) Date: Thu, 15 Feb 2018 20:48:28 +0100 From: Peter Zijlstra To: Jerry Hoemann Cc: Ingo Molnar , Borislav Petkov , 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, Arjan van de Ven , linux-watchdog@vger.kernel.org Subject: Re: [PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context Message-ID: <20180215194828.GX25201@hirez.programming.kicks-ass.net> References: <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> <20180214094404.GA18349@pd.tnic> <20180214181342.GA27600@anatevka.americas.hpqcorp.net> <20180214231704.xv2iwqsfvljoybul@gmail.com> <20180215174444.GA25970@anatevka.americas.hpqcorp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180215174444.GA25970@anatevka.americas.hpqcorp.net> 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 Thu, Feb 15, 2018 at 10:44:44AM -0700, Jerry Hoemann wrote: > Is your desire to remove of the firmware callback/spinlock in hpwdt_pretimeout > related to David Woodhouse patch set: That's the work that made us find this code, but no, even without that, code like that is entirely dodgy. NMI code needs to be very careful and firmware just isn't something I trust to get things right. Worse, its not something we can fix. And using spnilock from NMI context is just wrong, if anything it needs be raw_spnilock but even then, yuck.