Received: by 10.223.148.5 with SMTP id 5csp6700431wrq; Wed, 17 Jan 2018 17:48:16 -0800 (PST) X-Google-Smtp-Source: ACJfBotSpkunEDBMNniGUL26m7lSNhxlbF1uqn1OEf1cIGYnodFwpK5EEpjNpaq4fLWtTP03YkY9 X-Received: by 10.84.132.10 with SMTP id 10mr12850302ple.88.1516240095997; Wed, 17 Jan 2018 17:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516240095; cv=none; d=google.com; s=arc-20160816; b=pgwP0yTTx+35bo5gve/3wKsTFEGX82lkd9yfawNGycgSgbJj4zxpR5mSt2hoeAOfoG 62e6uOHbFOJCPcK+xKA4zDCnKNwIhKmN6MGjbUqlCsTHf2nUOtDT6oGUNfA7K0XwtXjo vB0dL7K58EX/9ilhccKjvV5VH1tEjUAd4+kQ0QnpMZ8+DQc7Jx1wG8+P5N9L31NT/YDO hwMH/MAOS9m2Bi27PJE9QfDr7HvojRbc0xPU4tvUyY88wWEiwoL78074b93e39gE5Nvp IhezTibJrFjV6hOHX5pvwiAfsTLPn+rivtIsqQq0/eGsZnUkIGUmQqbbfkd65vil+/m0 Jilw== 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:arc-authentication-results; bh=tu7gDIBVDArd8VJPLG8wkj43N0SoMoYXFsbkqyJrLrM=; b=ozDO0HF39WZD56Qwn5EbevcC0KKy6XcC1cIsRVQZwXIw1sNcbHMk/SC7kyZGNkZ81w 1WobcknT+8fTGkWdAyE0X5q28Ft6m/UczD9Euabay73lKHO3LhAT8Sx+SxiwCSlm2bz8 WjCxN26ANAoD8NaBciIFYxpZudDDMhKph6yOu8KxqJOypFJPa+eLuaT8vT3ixktZBTsL nQb35PYiF/4OuMdDdu/8Yb+1VJyH3CafYRMUgXEujrHbLhRWVJeyb0q+5N8QBnyokwWu Ca3IPNsvuuW2Ww50ar+i7C6WUNbv5IcoGsXeo/WxYCssRcBWwb1EDRIw1V9/UACyVXfa 9vag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15si4969087pgn.770.2018.01.17.17.48.02; Wed, 17 Jan 2018 17:48:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753300AbeARBrS (ORCPT + 99 others); Wed, 17 Jan 2018 20:47:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778AbeARBrR (ORCPT ); Wed, 17 Jan 2018 20:47:17 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31C907E446; Thu, 18 Jan 2018 01:47:17 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-17.pek2.redhat.com [10.72.12.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7DE861812C; Thu, 18 Jan 2018 01:47:09 +0000 (UTC) Date: Thu, 18 Jan 2018 09:47:05 +0800 From: Dave Young To: Linus Torvalds Cc: Yu Chen , Thomas Gleixner , Juergen Gross , Tony Luck , Boris Ostrovsky , Borislav Petkov , Rui Zhang , Arjan van de Ven , Dan Williams , Ingo Molnar , Kexec Mailing List , Linux Kernel Mailing List , ebiederm@redhat.com, Tom Lendacky , Baoquan He Subject: Re: kexec reboot fails with extra wbinvd introduced for AME SME Message-ID: <20180118014705.GA1812@dhcp-128-65.nay.redhat.com> References: <20171213025256.GA1913@dhcp-128-65.nay.redhat.com> <20171213155746.GA29572@yu-chen.sh.intel.com> <20171214092429.GA2004@dhcp-128-65.nay.redhat.com> <20180104031537.GA1819@dhcp-128-65.nay.redhat.com> <20180117072123.GA1866@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 18 Jan 2018 01:47:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/17/18 at 11:42am, Linus Torvalds wrote: > On Tue, Jan 16, 2018 at 11:22 PM, Dave Young wrote: > > > > For the kexec reboot hang, if I remove the wbinvd in stop_this_cpu() > > then kexec works fine. like this: > > Honestly, I think we should apply that patch regardless. > > Using 'wbinvd' should not be some "just because of random reasons". > There are CPU's with errata on wbinvd, and the thing in general is > slow and nasty. > > Doing the wbinvd in a loop sounds even stranger. > > If we're only doing it because of some SME issue, why isn't it > dependent on SME? And why is it inside that loop at all? > > Anyway, does it work for you if you just do the wbinvd() once, outside > the loop? Admittedly the loop shouldn't actually loop (hlt with > interrupts disabled), but who the hell knows.. Some of the errata > around SME have been about machine check exceptions or something. It does not work with just once wbinvd(), and it only works with removing the wbinvd() for me. Tom's new post works for me as well since my cpu is an Intel i5-4200U. > > See commit a68e5c94f7d3 ("x86, hotplug: Move WBINVD back outside the > play_dead loop") for another example where wbinvd was inside a loop > and apparently caused some odd issues. > > Linus Thanks for the help! Finally I get my laptop kexec & kdump works again after solving these issues. Thanks Dave