Received: by 10.223.185.116 with SMTP id b49csp738298wrg; Fri, 16 Feb 2018 06:28:19 -0800 (PST) X-Google-Smtp-Source: AH8x226AWWPnF9vX2LG+BoeSJP/aWqqeExQ2z7K+LbBhug8bzOo+YV3/3tLpETuh22GNq9M0Esvj X-Received: by 2002:a17:902:7290:: with SMTP id d16-v6mr6189244pll.303.1518791299297; Fri, 16 Feb 2018 06:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518791299; cv=none; d=google.com; s=arc-20160816; b=QsnQhx52gOAx8zvaHs8h1J/zNsh4HxcpPIduq3EDZNRAWpYRQjJTdwoL/lmnZ8JOWa zYgltQiLtuoNvHyy2XUU3lhQFY8KR447DxHFDdUM9dXlJPR+QWc3zQpmhkNQkI9DmoAH V5exF0CDjsdihMIDDpcDJctFX9cOtEj+JSwPhEALQYhpXH2pWPgfQr86NerPydQMvC2c 8l/4nfuHfddmfjSv2O83+SVD6+ZFlQ0fVgutINXnHvqdMZUgzIiaObhhTrRE0N/2MTep xrnqh/SUHedVtO4gNNtZDUllG+jD0BGXQKspmTINggq3SKUTwHO3pq15llo1+RAxDo4R +dsQ== 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=pv34uoSXI1Li1U5YKcIqnXBWO5IvcYYj3tTl6VcHKOc=; b=yAmPORZRTUWexJPp2lW3c7KQ/jKZhcpwNaTWoVQVSJuU4Zuc0T05h9Vurgk/e7I+gb s8TH86CfTr0zvAumhQvWP/cQBbcnF2tm3FkNr9UK5+kqtRt22Drk9KfV0Jam2xCtNlvP IMVMLYG73Q17UXJ7i4LUNpmw9gHBm1rLKpZFpy7+v/pECAP4R9Ztb7WuiLtecGHwPRlq o54jeTtbqA0mxB476wiAjdgCnfZEUe+ulUtvj7aXg+IRSfFR8mqvAeWhP5NESBAsPOrx m2oY+gtiVGXAeQVUDQSi9Ik0xLI6sHiv3NbgMJL3nHrIFfea6gWzeqHd9NWfdy9BhTQ6 Uf0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IdlKtMJ+; 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 s1si3381574pfk.26.2018.02.16.06.28.04; Fri, 16 Feb 2018 06:28:19 -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=@gmail.com header.s=20161025 header.b=IdlKtMJ+; 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 S1167137AbeBOTCe (ORCPT + 99 others); Thu, 15 Feb 2018 14:02:34 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53446 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161274AbeBOTCa (ORCPT ); Thu, 15 Feb 2018 14:02:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id t74so2751968wme.3; Thu, 15 Feb 2018 11:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pv34uoSXI1Li1U5YKcIqnXBWO5IvcYYj3tTl6VcHKOc=; b=IdlKtMJ+Ws+6zyl7mIkBDOZqRa/dJ3QyhgjvT09YCb41Fw6WAD/LoG5Z9U3tgRF6Wm f9tlJnXBoFqZ2kSE3RHLrQvE/OQkBWJm62jT3mrSEvERdWSXOnLxm6HMIrJebBGAeYtJ cmtkRnZgBzwH29RML0KbcvXXxZswtFKcTSwyKFZhmXIXdiSO8/adqSCE4X678RXkNlxR Rg0nEQEeyRkK5p81ngRbw7JrWI395wXVSOYOyalEZ3dIUoIo+rkIVtnUlntLwCvr2Bwt HVypny0tfSFP3+wMlj7fQBuj/0TY8OCyW1IotrjiwBTb0c156nmY4sFO0XTnc6TPLZzT wvHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=pv34uoSXI1Li1U5YKcIqnXBWO5IvcYYj3tTl6VcHKOc=; b=BSiq3iob8N2oHlJ4BR9gFT5Um5M49D27J2zp48Zw+yFUogA0aclNNnRBd1lpd/jwvK 2QoAZPxRyt0Ei1ba8rRiDsy8GfL/d6vx4GXHRtMQ96Ds/FnTROAuwLFrO8RuoJHl4ABv JKFlu6qKtsDBSgqR7OfePFgTgw8LqVnn3njiDH5Xpq4K0KQR3Rf894aU3/dtVy+z03iC q3cI5nwSAjEUgqVFmOle+9xF9SumZXN6QXokgLLBka0Sg8Uu+ANveijwxMy8WlWlbLnj QGsXhng+kOCwBt/JBSCJLV3KS7PZ5lBUu62wW2y1TDyd7CLK2TxqGbztSdbzP5APp8FG IrUQ== X-Gm-Message-State: APf1xPBbJucVqhTv4BaSDpfOZa0C8YfXGLPNQtUf63jOQm+mWXl6g7GH N5aAQT/2kqoGIChtA9CD5/M= X-Received: by 10.28.235.6 with SMTP id j6mr2751624wmh.22.1518721349346; Thu, 15 Feb 2018 11:02:29 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id k7sm18624096wrg.68.2018.02.15.11.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 11:02:27 -0800 (PST) Date: Thu, 15 Feb 2018 20:02:24 +0100 From: Ingo Molnar To: Jerry Hoemann Cc: Borislav Petkov , Tim Chen , Peter Zijlstra , 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: <20180215190224.h2dtjpt3fa4ivspf@gmail.com> 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: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jerry Hoemann wrote: > On Thu, Feb 15, 2018 at 12:17:04AM +0100, Ingo Molnar wrote: > > > > * Jerry Hoemann wrote: > > > > > > > > Ingo, > > > > > > I have a patch set under review that brings hpwdt into compliance > > > with the watchdog core. > > > > > > One of the changes removes the callback into firmware in hpwdt_pretimeout > > > and its associated spinlock. > > > > > > https://lkml.org/lkml/2018/2/12/30 > > > > drivers/watchdog/hpwdt.c | 490 +---------------------------------------------- > > 1 file changed, 8 insertions(+), 482 deletions(-) > > > > Very nice, and this should solve all the NMI handling complications! > > > > > I will add you to the CC list of the next version of the set. > > > > Thanks! > > > > Ingo > > > Ingo, > > Is your desire to remove of the firmware callback/spinlock in hpwdt_pretimeout > related to David Woodhouse patch set: > > https://lkml.org/lkml/2018/2/14/305 ? > > Which I think are to mitigate performance issues resulting from the > changes to address the specter/meltdown? So the motivation was that we are trying to wrap BIOS/EFI calls into Spectre-disabling sections - and while doing that we realized that hpwdt calls the firmware from an NMI callback, which would have complicated the Spectre work.. But with that call removed from NMI context it's all perfect! > Any there other changes to hpwdt needed related to this work? No other changes needed I think! Thanks, Ingo