Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1812015lqa; Mon, 29 Apr 2024 22:55:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKkqtR/rznQClFfAwiSvBqfaChKsG8MPcOKG0m7Kik+el7PUVv0bfdjr769eEfyFraAhG0tzi4C+uDCZpitpT0CIegr7guXHDFQG+qJQ== X-Google-Smtp-Source: AGHT+IF766t8SZExxih0joNEcYH0cWG4DxRADwTwHTyaBwy2ygDRBRcWdUIErTQ9O9qAT1qRY6k1 X-Received: by 2002:a17:906:e255:b0:a58:7dab:28a2 with SMTP id gq21-20020a170906e25500b00a587dab28a2mr9500110ejb.48.1714456552078; Mon, 29 Apr 2024 22:55:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714456552; cv=pass; d=google.com; s=arc-20160816; b=YNz444csu31gbmYA6dahnyBGf4ZN/cGSWpd/FdwZNI2bJ9tc1XsMDF4OS/hgaDNIXV neQnXWNDM4+YCOFcdRRsQuuMnb9JH4HtFwyetl9zEyajDZoSrvF/jK7c3MlQYsmJWUq7 VTuzmMPxb82CiJu/t93hNrLL6p9EeRmO22h2uUsCHstq/Hfm73iyX++02kduiqooq5nG X5RcB4SQAwJCcYLcLeQ1ayQp6Z1iCBKk+orKWkXOcsQ5Y3G38OUgCfEgnqaUUmssH38a KJog7y1uM5zbJHf01Kf86fVE4vk7XAnEzrglf7Mp1YfBgY9HXN+50iQ4iCuYB9hJTHsm GPyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=EWx3qxBQpw9dNYzcnamFzEnLXb0WCdTI9Ppv9+NYhok=; fh=I7muix3wYsekBU9H3gGJMoL8sSBJeEC6sxjuSrl/hIk=; b=pi/s+LzUTJq7bKq06q0pr+D1hZqVW6dcxdMXfBwy4vrU6CXYaylhZjx4Yqt5EAQ9Bk ofb1imX3qGZG6tDvKar027+6ifxgM9ttYqgzxp6uZwx1iaXTUVZpewhaC8CJ099l82sk eQwHoJlbP+BN78q/zVmWxlJ61+pG4NQE5ZTqDR98R6SVO9tCrqQKHXBwsr0ro4RtyB9g Bxc5CEgk6Yk18bUqVE79FLoYQPak5wgMHIYYtcpKDgIRB657YmMOonW4YzIqwfgdCoc1 uZfMIDQcyLC1+76NBTD51EUp3tNh0QPVXS71NLpJKIBEg+YC6bJM3SKXXHxYkNe/Nl8U iN8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G9qUnYXB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-163376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hp28-20020a1709073e1c00b00a55aee5bba7si11918492ejc.355.2024.04.29.22.55.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:55:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G9qUnYXB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-163376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 785F61F233BB for ; Tue, 30 Apr 2024 05:55:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4853179B2; Tue, 30 Apr 2024 05:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G9qUnYXB" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EAE42F2B; Tue, 30 Apr 2024 05:55:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714456541; cv=none; b=imvYiSDAMWJbnioGvlAmoEPuH9P8f1vVdGTYMQwpDr5uaAedHo/LnGedmMP3KpOLxkltWl4b14F51MRY+w781J79S/4L9oUGSsqMnRm5kGLdB1TY/sReppM1AEMzLe7T3sbth+151/ZErCyjspJ9qGDHYcE5yI5pD9b+DdTSZes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714456541; c=relaxed/simple; bh=JlHGAp3EGmef4TCf1JVQYIOTz7AmKr5xyKwfNw2vxJ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sxY8BfTLf04EI2GuyBVBfPNNMgGYIfhksyGODp/tCoh5UaKbvuevVQItG+cWRdmhxikwGGKokWELXWMK+5E4ilIdkgt/B6ljBacZ+pJ+u6jMMWF59fBFqVSo/ARH7yQERdZd+7lTcSQy8i1nmM4H8x/WN9J4MrW9EkjTSK38a/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=G9qUnYXB; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-41adf155cffso39176065e9.2; Mon, 29 Apr 2024 22:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714456539; x=1715061339; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=EWx3qxBQpw9dNYzcnamFzEnLXb0WCdTI9Ppv9+NYhok=; b=G9qUnYXBX3mOuYcN+QLmhlXnK3dQSvODArpbl9XuNXV86DKz+zIVLFFMC2oTZZhuis uqzRA6Cc+eHHumz8p4QNM23+xBpOFJ1dnUf2/vLUiw8+3vdSxxsiKzACkHmHMDcz15pR pYChZCxibsAixc1ofpIWlDn3/SD39LyA/xfFbh9ugIpdJIRpllRJdiytA1ISD/aU1AxX HZOhNGXJSiQXr4B0viXgPzLNaIFbze1OgTQF/XP5Twt47sdptDI4s29TdUOwDZQ93DQa 9b+A0h+qQk6WQ0DMraewmcx69oaCoEdW1RXzypi0rshZhhz2GZ54P1FHglrIrklzPoz5 iCWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714456539; x=1715061339; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EWx3qxBQpw9dNYzcnamFzEnLXb0WCdTI9Ppv9+NYhok=; b=Rs8zaTyCKmD2QhlcG27XzxdTPHtPQ1LdX2cvSq+/P88dRzXGIvcjUwqqV9kc7g1c2O g6+SNKscKEQfH0DrXqKwzaN5RzvvGCONJtKNyBHimT7m0rPnwpN3BYETSH9UkShKBhvG S/qBEx/wadaVuz5pecD2FDnZTpgQAaNCcVMarznvLQ0+EQ8K+9F3njlKTFqkimsb+nX5 FDtCsekO3j8XXd5VZ52uT8wvOPU7n4B8TVHjcRNAbAZbs2Xxwh5luIhyVDMe3qIwgHvO ZjAFSmkXimcWjyAVOyr+J6n22I4dpKUYQOsnzfX99MvHfP8nVlY6t7BESOg9/0DMruQH Tmpg== X-Forwarded-Encrypted: i=1; AJvYcCXDRq/0hNNnXUwGL8a0k3boQyrOUBd8CK4IcGvfzYzwKE904lB0k6aoIqHryYKF1c9ETXN74q+1ETQ23JoRwMo29x9p/b03 X-Gm-Message-State: AOJu0YxzFSRXqavpVUi2B0rIfj/FYd3nYBhdFVidyyyvPjIsR4hsWJrR ejurnbz0mHAd2QTgRjPtqeoJhW6ZJARRAqnjfriKVpAbLYkAwxdEmXdhiibc X-Received: by 2002:a05:600c:a4d:b0:41a:c92:d323 with SMTP id c13-20020a05600c0a4d00b0041a0c92d323mr8320125wmq.10.1714456538182; Mon, 29 Apr 2024 22:55:38 -0700 (PDT) Received: from gmail.com (1F2EF046.nat.pool.telekom.hu. [31.46.240.70]) by smtp.gmail.com with ESMTPSA id h13-20020a05600c314d00b0041ac4aafd3dsm25365112wmo.12.2024.04.29.22.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:55:37 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 30 Apr 2024 07:55:35 +0200 From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Adrian Huang , Thomas Gleixner , "Borislav Petkov (AMD)" , stable@vger.kernel.org, x86@kernel.org Subject: Re: [tip: x86/urgent] x86/apic: Don't access the APIC when disabling X2APIC Message-ID: References: <875xw5t6r7.ffs@tglx> <171439414186.10875.17224463643261311678.tip-bot2@tip-bot2> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <171439414186.10875.17224463643261311678.tip-bot2@tip-bot2> * tip-bot2 for Thomas Gleixner wrote: > - apic_set_fixmap(); > + /* > + * Don't reread the APIC ID as it was already done from > + * check_x2apic() and the apic driver still is a x2APIC variant, > + * which fails to do the read after x2APIC was disabled. > + */ > + apic_set_fixmap(false); JFYI, I amended the commit with the fixlet below, to avoid the inevitable followup trivial patch: diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index b229648b7a18..803dcfb0e346 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1795,7 +1795,7 @@ static __init void x2apic_disable(void) __x2apic_disable(); /* * Don't reread the APIC ID as it was already done from - * check_x2apic() and the apic driver still is a x2APIC variant, + * check_x2apic() and the APIC driver still is a x2APIC variant, * which fails to do the read after x2APIC was disabled. */ apic_set_fixmap(false); Thanks, Ingo