Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp147640rbe; Wed, 28 Feb 2024 15:26:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlGydumuZWNX5RFUZDuWanjvUrpZbtZEEOFrVjeDT3y2AzNsRkLdnzJ9XnO1qE2nUf4ChuyZ1I+Sw7nhWX/CNNzJ0Gp+kEhXcSdtgP3g== X-Google-Smtp-Source: AGHT+IFsDSxhV6QUi0G18NYxv+3k9RVsgIGvQ7L1ENDKEMS+TG9BzgEJDPs0FrvW/vepjvpQ+jnI X-Received: by 2002:a5b:1cf:0:b0:dc6:b121:d00c with SMTP id f15-20020a5b01cf000000b00dc6b121d00cmr795914ybp.16.1709162796798; Wed, 28 Feb 2024 15:26:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709162796; cv=pass; d=google.com; s=arc-20160816; b=TI6QqlWqWZTefS5yKKBTSD/KNS5IjoZgfcVTageePcsp9Ox0GEbhoE5ZMyktU9d34G xpoxSV+K+T3t8Z7P/APGsjBHC8RxiZ6N5LTg/34F7kUMdrcHlTYs/lsi/mdViEnhCbQX Bc/P/Qk3yT+GyQo6eKWY6kgY1EcZXUOPIc6y8Azi3Sh8YdW8PckAeIaIJ7B86uFVxX/s 0jrt9dTERIgTgVGiGLCnsO3ig8u8CwR7aeq48M2Nw/TPgXdgaYVY0QyXIjMwzavJOzle px5i6MJe3qJMxkKuR9cfH0P5/Oo/DBZfwWqoUeCQkoUhWgLxleRo0VPfvwDrayskACoz KN5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=WILh8BPSHXfAxjCpDXq5cvSk7cP9m3kjlHYnbAdrmBE=; fh=7S8DjgRMw/cj2F/ESDY+kIM1zAcGTOfl68AAodnhrJE=; b=XJeINO4m+P9lGEibJTtQuze0JQr0ykRK7Sio94aP5paPrhZGulr6C2msLJH49rLvKq iujdc1xiSXuf79HnQ0LGNwNqqH/Bf0cqk3GQqo1xjangO46CRUuBue3mGcM9gpl9MR9T uKHtNxbAwkOsTxZ3L2T1iY9M0/CBlnkRHadGf6dDPVoyMOZhvv9rN29xyI4kk8KFafLk ejLjZE65/OclkGFjwz+fp3MzENfgkcjVXJHMFe9UbxDsdD5PpjFb+k2bFz8rh+oUfFMp S8dgIxlbwc1Ej0tT1rcvLKdw21BEE2O5om0MjHu708ej4TWgWx5SdiHMI7myeGhvjE/S wXng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nFzLWLde; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XrrtfC3L; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-85845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c14-20020ac8518e000000b0042e5a818adasi219579qtn.189.2024.02.28.15.26.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 15:26:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nFzLWLde; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XrrtfC3L; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-85845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 77A601C22BDC for ; Wed, 28 Feb 2024 23:26:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1872D13D308; Wed, 28 Feb 2024 23:26:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nFzLWLde"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XrrtfC3L" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF36913D2EE for ; Wed, 28 Feb 2024 23:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709162790; cv=none; b=GwzVHCS5sZQ8NilDcQi5H2OgltNLdV8JlEOHK1tN06sYLJw/4t+ufG9jFx0CLTvypjbp6vsUNoGureotTe6gDwEWuQ7EmpVZybuoNtMJRoDRwo7F5zt1Vy85KnVnD0F46CLU51AAl1uKxq+ur6MjNJ3fqHCQxdeve0yQP4ORp9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709162790; c=relaxed/simple; bh=lvzNbHMux8kYW4Qr2USEaO+QnqLQjOklCQuREhqmM60=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Nx2Rk5iKDTuGQesqyC7BQGcfcuqJriUmSdScmyUxeRBLf8q2tsIdZwrnOYSYMedsx2Fn+8tzD7ZNkJi9b7QwwHz8577Z1eUn41SgPkhDlVJlK38oGbtfvAfKzhVmugS+N+USi+T753l5Yj2Jxy9+xG+k1i20P2QZZUVpQd6WcLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nFzLWLde; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XrrtfC3L; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709162786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WILh8BPSHXfAxjCpDXq5cvSk7cP9m3kjlHYnbAdrmBE=; b=nFzLWLdeXnmVm8fFmKbb5AqRMicnpkEPdoVf2uMyYPB+SYZy/VhRR861ogn82CvurxjqH6 OrSKtaDw+fM3h0LIhdTMHSdS67crIt1aQKN3KH4iWZvGyZIl1XDvXsswYJrjvgjEhOuB8D Q54x980kCytM/zP9ASuxEQK7UOt6W2HLLKEuMQfkcIvz7W7ipuNsQKLqWv0fgOsS2QtsKN YrGy9rvtioFMZb5Q9pXPdFk7xScAr+LfXaLdhsTgCDOzbbTlKpno/JEKFbGIMkZVxDzP0g f3PF0Ni32DGWOJam3hRjOBfj/KJ2pEFNyle7wHXLKydU0YydhKhK9ReJ2y0vsw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709162786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WILh8BPSHXfAxjCpDXq5cvSk7cP9m3kjlHYnbAdrmBE=; b=XrrtfC3LY01+rmQkcm2RC7k8TS85BLvffCJ1MMjXvVqGdy+5efHbEeDXyHmFDOZaGfXwk5 u39N4rpv8Cc7B5Aw== To: Andi Kleen , x86@kernel.org Cc: linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH v2] x86/mtrr: Check if fixed MTRRs exist before saving them In-Reply-To: <20240110150806.22531-1-ak@linux.intel.com> References: <20240110150806.22531-1-ak@linux.intel.com> Date: Thu, 29 Feb 2024 00:26:26 +0100 Message-ID: <87edcw8925.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Wed, Jan 10 2024 at 07:08, Andi Kleen wrote: > This one place forgot to check the fixed capability. This one place forgot? And what the heck is a fixed capability? > Otherwise there will a harmless but ugly WARN_ON for the failed WRMSR > when the MSR doesn't exist. This is not a sentence as it lacks a verb, Also it does not matter whether you think that the WARN_ON() is ugly or not. Can you please write a changelog in technical terms? > Noticed when testing X86S support. Who cares? > Fixes: 2b1f6278d77c ("[PATCH] x86: Save the MTRRs of the BSP before") This fixes tag is pointlessly truncated. The correct one is: Fixes: 2b1f6278d77c ("[PATCH] x86: Save the MTRRs of the BSP before booting an AP") It's not rocket science to copy & pasta correctly. Thanks, tglx