Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753347AbeADVNq (ORCPT + 1 other); Thu, 4 Jan 2018 16:13:46 -0500 Received: from mga11.intel.com ([192.55.52.93]:19751 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbeADVNp (ORCPT ); Thu, 4 Jan 2018 16:13:45 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,315,1511856000"; d="scan'208";a="18284193" Subject: Re: [PATCH 5/7] x86: Use IBRS for firmware update path To: Yves-Alexis Perez , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH Cc: Dave Hansen , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org, David Woodhouse References: <8d3710432534b27d224283557c4629cd1aa5b0ea.1515086770.git.tim.c.chen@linux.intel.com> <1515099096.30693.19.camel@debian.org> From: Tim Chen Message-ID: Date: Thu, 4 Jan 2018 13:13:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <1515099096.30693.19.camel@debian.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/04/2018 12:51 PM, Yves-Alexis Perez wrote: > On Thu, 2018-01-04 at 09:56 -0800, Tim Chen wrote: >> @@ -44,6 +47,7 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, >> u32 ecx_in, >> "=S" (*esi) >> : "a" (func), "b" (ebx_in), "c" (ecx_in) >> : "memory", "cc"); >> + unprotected_formware_end(); > > Just an obvious typo (form/firm) but I thought I'd report it. >> } >> >> static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in, >> @@ -52,6 +56,7 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 >> ebx_in, >> int cx, dx, si; >> bool error; >> >> + unprotected_firmware_begin(); >> /* >> * N.B. We do NOT need a cld after the BIOS call >> * because we always save and restore the flags. >> @@ -68,6 +73,7 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 >> ebx_in, >> "=S" (si) >> : "a" (func), "b" (ebx_in), "c" (ecx_in) >> : "memory", "cc"); >> + unprotected_formware_end(); >> return error; >> } > > Same here. > Thanks. Noted. Tim