Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp33044rwb; Wed, 10 Aug 2022 14:16:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5altFXJlPWw30fuiUSiXvv6dCgksoqVA5HbPiTrAuAJQdILuPnb2sj2kdG/hlS7R7klTm9 X-Received: by 2002:a05:6402:43c5:b0:43d:f9ca:4061 with SMTP id p5-20020a05640243c500b0043df9ca4061mr28018366edc.352.1660166170800; Wed, 10 Aug 2022 14:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660166170; cv=none; d=google.com; s=arc-20160816; b=N1vfZipnVgyIJAd5akermN4DizYCc0geV5LcFHdiETdkZGPayV0dK1KuciI4rm8EeS HOH5OVu84Xk4l7Ir9591PnBuvRnvM9LUcUoN1ArljgQOLn5Sv2NyToLL0bnKnId7XcFM QwH8TgKMyG4UrpZDrSXSzLT1VqbJLzXAuAv+Gv7fTB8NXBV32vT8dWAdFzHBYlbSdPlo oI7/EP0kSxyNLe12LdNA/10LFqV6S0wqQUv6/P3IsdCMgSvrw/VlDDpchKcooGsKUdRS zqGs0zfKCiV3pvSp0KhoNMdWmUv/TtrM4EGJVlTOFunH/ZjHUrl0XlqS763nXcS2Myom sQqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=KVPPxZ7STH9R5JBVfTjKjMgd89gt+Xu+Am8aHWjc4b0=; b=Pm7CNSfYz3GAPj/J5zDi2oB5ZZQ31YhixJaTB4aNGmTSWAjbo2Aa7a+eJh55wE483e a8fGHaNXYRe5ItmxER5nw2vtXGgb6SCiojemok4a5RzStyC7teE20Qa6YZzmI3Z6WERn ZNQUN+hp1Kx1VOgpIIG49QK7y0XeOy9AB5d29RP8ITOWYdHEGYyPAaDyEi4VrnvRbJt1 qPR39MP4Q4ahvUdK6724zSnZWocMPzJvgwxHzTjSa8n0viGWwQc+lGc3D1+2UXavOwax ffnc5Z2wc8X7oM+Rh3BjKepLpsx4ydf2ixEckmWuXM9ioxxh4GCN0UAY3MNCe1xqgT77 ie/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gfLoOLtG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd12-20020a170907628c00b00730a4e61c65si5883797ejc.722.2022.08.10.14.15.45; Wed, 10 Aug 2022 14:16:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gfLoOLtG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232918AbiHJUGy (ORCPT + 99 others); Wed, 10 Aug 2022 16:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbiHJUGw (ORCPT ); Wed, 10 Aug 2022 16:06:52 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1908A72865 for ; Wed, 10 Aug 2022 13:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660162012; x=1691698012; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=m77Ga0zACyhhhvX7qrvZch4i5z1Aec8NBTIcASU+Fm4=; b=gfLoOLtGffOWTTK8Qd2L7yJVBbDBs5keGV8I4AFha41piCRlR0Cd28np fm2Nhi5iyLHttD476XarsejMEb/nmm7EcADmVVYu44MeSqzpXtWY5+JGe bbAkWsR9P+U1VunY27NdRKEqiQwXCqOKExqgnX+cUNagnOxwZe6DaNN7s /6mg//FJoJKDqvXhW4pOzod7RaTIgz5N7FiqJ3wCA75OassNnLriDu96i fQYYvlsVo9D1VxiBbAe7fe7Ky/FqMtK+NM6da4HQ1i0IEj/HJef+7E5Ji 8Z1+Q1/Lo5h7i7y69kQ3JC1ynJQDD41yJuW0NrOXP4euSvCfTxnv1MtJO g==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="352916953" X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="352916953" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 13:06:51 -0700 X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="605278828" Received: from sarava2x-mobl1.gar.corp.intel.com (HELO [10.254.67.234]) ([10.254.67.234]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 13:06:50 -0700 Message-ID: <2446fb33-9c5c-642a-797e-4e93345adb82@linux.intel.com> Date: Wed, 10 Aug 2022 13:06:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "Shutemov, Kirill" Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, "Gomez Iglesias, Antonio" , Pawan Gupta References: <20220809234000.783284-1-daniel.sneddon@linux.intel.com> <238ea612-5a25-9323-b31f-0a14493db2f7@linux.intel.com> <341ea6e9-d8f3-ee7a-6794-67408abbf047@linux.intel.com> From: Daniel Sneddon Subject: Re: [PATCH] x86/apic: Don't disable x2APIC if locked In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/10/22 12:59, Dave Hansen wrote: > On 8/10/22 12:40, Daniel Sneddon wrote: >>> It it going to be *forced* on those SPR system? In other words, is it a >>> little BIOS switch that users can flip? Is there any non-kernel >>> workaround if a user hits this, or is the entire burden of this going to >>> be foisted on the kernel? >> It won't be forced, BUT, certain features won't be available if the APIC isn't >> locked. According to the documentation SGX and TDX won't be available if you >> don't lock the APIC. So, yes, you don't have to fix it in the kernel, but you >> may lose access to features if you don't. > > Let's get some of this in the changelog and _possibly_ Documentation/ so > that users know we're depending on the BIOS to play nice. Let's put > ourselves in the place of our users for a moment at least and try to > figure out how we play our part to help get them from seeing "can't > disable x2apic mode" or whatever to them flipping knobs in the BIOS. I will certainly add this to the changelog. I could add a blurb to the documentation where nox2apic is defined as a parameter as well. If there is a better place to document that please let me know. > > I also dearly hope that Intel has told BIOS writers that the onus is on > them *and* those nice BIOS folks listen to Intel. :) You and me both! I know this has gone out to our BIOS partners and they are aware of it. Beyond that, well, I guess we'll find out when SPR is released! > > In any case, I don't think backports are warranted here at the moment. > We can always do it in the future if the need arises.