Received: by 10.223.148.5 with SMTP id 5csp6726387wrq; Wed, 17 Jan 2018 18:15:41 -0800 (PST) X-Google-Smtp-Source: ACJfBosBN8IxbXXewto9daYD8nyTwAMp0bX3A/wjUAOkESg+BWAU5scm/wbNkEJxAoTUVR7RjpZZ X-Received: by 10.84.197.3 with SMTP id m3mr9140260pld.107.1516241741285; Wed, 17 Jan 2018 18:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516241741; cv=none; d=google.com; s=arc-20160816; b=Xki53Pw9mntJFnHNKuc4CksG7wJLmKpLNrYtmW8yLtqmikx5pXYR3GQOYUjdZ113Tk 5knsKDqfeylIQYEABWYdaYjN6kmeCzh+n7zuCABcTkwpQlN5aC39zkycHAHo62d8hB8H jXonbvwOR57azT2xqAn8Zie7V98sfnMf/iRkQHgTYTyzjQK+WwdSVcswCplEg8lLOSsu 6q/1DjFcmKJG1IJlrJ4Qu14RCFyryrt27A2WmyMg8vpZPB+Y32JxsECUbX8bMn23oIVv CaLZNeCUxReJctwK6alrHbsjvhlqwdrZaQq9f8uk/9nTbFI3yhuvx4vp7Zdscz0qCd4k Itdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=He563Vk22qk6wp0Ut2ccJ2yH8JiS5DXvN1/RVhDooeU=; b=a4fUT5wBcbQM4pLyVHwZpuqIN1t6szsOyP+SfVHaOs/zxG1VG20HmdwDOkleEHtGOF UcZxTkwQiR8Q+7L1s1afjnR2l1LPhM058aX0q/o/hB/PJu7jzrXK+DRIPrPiXCzUN2cy a2uYX4Ef2qtMHO6skoYq4yHUMzjIssbAADo9PxJjRZAz2Q1pxhrg6AiKWLow9QfAMr/I gXKjcCFzW9jlQ+ynCwBLYEEUYUbxQTuKk3Q7Xr+2GRVB+D0B6Sdtgk7cEqNb/8yuXsOT l6O1usjj6Eznzs3Gprlkh3k8d5+25feU+awYwW+wduzr9JTQjt5BEUM4K014W4OVr8nN kuWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=O+r+FEJm; 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 bc10si5634885plb.190.2018.01.17.18.15.16; Wed, 17 Jan 2018 18:15:41 -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=O+r+FEJm; 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 S1752541AbeARCOn (ORCPT + 99 others); Wed, 17 Jan 2018 21:14:43 -0500 Received: from mail-it0-f53.google.com ([209.85.214.53]:33314 "EHLO mail-it0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbeARCOm (ORCPT ); Wed, 17 Jan 2018 21:14:42 -0500 Received: by mail-it0-f53.google.com with SMTP id c102so440793itd.0 for ; Wed, 17 Jan 2018 18:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=He563Vk22qk6wp0Ut2ccJ2yH8JiS5DXvN1/RVhDooeU=; b=O+r+FEJmYdkBgEEz0vC0EzQsQOdPhbFOhdbXUn2FSEfNKYNYNEteMGotgq+GuE2Fdq ve/yl1BspLgHs294FvzNGFJvnZC1PtKAAww97/l15bi42WMeIY8/S1TEwFz6biaH0SsZ Ij253P6HiD5HTl0WY3as38JTZSSeXBnhmKnbPReG5WHSde/3ig27Gt1sHK9W9SurgtFv WFILofUsIaGg5tI5tqJh3d+/Cs1HU6rRVIIU+P+vqbQwhp5I6k+GXRGEVLkSzG+D09SA hi3wIZPTHY7IfJgNR/4Di/sb3L089SzIarueGzRDwBW+yIHDY6BLe9b0U0pv/12+JCpn n0Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=He563Vk22qk6wp0Ut2ccJ2yH8JiS5DXvN1/RVhDooeU=; b=Lu/Jff1hOeS/c03gR6GMRP/yfwHfOxj3PQ8/trMqO7k/NQE0lkctjuoFTNuSzi/hk0 oKcG39cAi9/x4EnrQKURyiDTUreST1VIHNWAhmOvNOKs9GIJgVu5v4iswExT2etDfs1D Hqgg7DnlYFU0eMhPuvcfH9TeVkXDBLDg2BPH+UYulzIbNXw6itncN/BsCt6Ey66Zrms9 bu79hZ6U7nrjGF8lSOWWecqr1WcNgMKCXHXS+2Esp97iDhhBP8TApaCSFrzRPK52QY7Q gWJZGAPXIoO02iraEOMQQRkm0JDhSKldlyt7bikp4/stj7Wj5nZZyYmrKMIKMrjQFufU 2OWg== X-Gm-Message-State: AKwxytfXNcjQGTCgU80vz/tXf7Hg1asXkJ38ojOgKZkrdeCk9X0IgCre 6hYseYVx10LcXDetfH1xY4D9/SovATcEUOpMYrE= X-Received: by 10.36.47.5 with SMTP id j5mr17675587itj.123.1516241681224; Wed, 17 Jan 2018 18:14:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.6.147 with HTTP; Wed, 17 Jan 2018 18:14:40 -0800 (PST) In-Reply-To: <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> <20180118014705.GA1812@dhcp-128-65.nay.redhat.com> From: Linus Torvalds Date: Wed, 17 Jan 2018 18:14:40 -0800 X-Google-Sender-Auth: tMTS4GCymAiWyxixxGSq36m-4h0 Message-ID: Subject: Re: kexec reboot fails with extra wbinvd introduced for AME SME To: Dave Young 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 5:47 PM, Dave Young wrote: > > 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. Intriguing. It's not like the wbinvd really should be that much of a deal. I think Tom's patch is fine and should be applied, but it does worry me a bit that even a single wbinvd makes that much of a difference for you. There is very little logical reason I can think of that a wbinvd should make any difference what-so-ever on an i5-4200U. I wonder if you have some system issues, and wbinvd just happens to trigger them. But I think we do wbinvd before a suspend-to-RAM too (it's "ACPI_FLUSH_CPU_CACHE()" in the ACPI code). And the dmr code dioes "wbinvd_on_all_cpus()" which does a cross-call etc. Would you mind experimenting a bit with that wbinvd? In particular, what happens if you enable it (so it's not hidden by the SME check), but you move it up to before interrupts are disabled? I'm wondering if there is some issue with MCE generation and wbinvd and whatever, and doing it when the CPU is down and interrupts are disabled causes some system issue.. Does anybody have any other ideas? Linus