Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5562343rwb; Mon, 5 Dec 2022 00:26:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qylzyCsko0mtnqejzzmm9zQC8PLNAUVDHedASPFNdfkvwLCxAJd7+RDZFgnezLf6yqiaS X-Received: by 2002:a17:903:3052:b0:189:63ef:ef3b with SMTP id u18-20020a170903305200b0018963efef3bmr50443140pla.112.1670228764831; Mon, 05 Dec 2022 00:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670228764; cv=none; d=google.com; s=arc-20160816; b=amLLc4NtDgJzulkN4FR4gwXEBMXOza44TvGdiVU8Elxmxw/U58d0/AOQgxXW6Sxo2+ emXHK8Ml0ZW8W6U4ccaStAHcgyaVvou6KK4x0zkBJGJaAUVvBIIqBZJ6CR+ckrYxVp1j aD2NliTxDSmyEvOro1/20gEaVYWy770AWcPO/w84h42fIsESXv3+9ONXLxXNFf35w4t/ ucqEyt08bSdsbvQ+9eF+w5oA9Qy7HxhBWP0jlhhtBCXWOFW2uiLTDxx8nFdIl9yRPrfQ nRVw5FrMqK6Nd/G2czRtS6UXLbS59w/+fpkHyH6CEHRcEvTT5EOF1em+/a7j0WZ8G7lv Mnbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yMianIWALJeEq31IWXfqs8+ymd+X0ZqlQ5HivhuglU8=; b=dXN6nl322kWeYGB0e6FGTJzaeDvzSovhgbG0qX3/KtnpoCSWrwIYkCvDu8pTBa5E2G zJStoQ6QGnMYaJhUObYfCJN28O/HGf0DwUohkff1Q4be34qSpmHX9eBImAWTGPijxR8p M/phmKzTn54gVfOiymsmPWdHYSpFusfZqjEmDgZrIMhXSqinsbQGbKDru9MyFMX3x85r NvVf7w67yBzFJykkRd3udWCJtZu4s09A3tfC80oq7XnwyEwUyU4ANxLXYPZkLtZK5PKb 98sBoW8JUR5VP1DJqJ1rSgjbRx4/ulNWRiQhNlOgP/mdkKl5YdPe4VaQ2E1xS2chRoLo TBYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=O0TiN9vK; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y63-20020a638a42000000b0046ecbfda052si14270195pgd.389.2022.12.05.00.25.54; Mon, 05 Dec 2022 00:26:04 -0800 (PST) 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=@suse.com header.s=susede1 header.b=O0TiN9vK; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231979AbiLEIFg (ORCPT + 82 others); Mon, 5 Dec 2022 03:05:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbiLEIE6 (ORCPT ); Mon, 5 Dec 2022 03:04:58 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05FE115FD1 for ; Mon, 5 Dec 2022 00:04:49 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B8E091FE3B; Mon, 5 Dec 2022 08:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1670227487; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yMianIWALJeEq31IWXfqs8+ymd+X0ZqlQ5HivhuglU8=; b=O0TiN9vK31fNPKt8r4pZQ5mbZFzXECyGM25P8HGOrmC1GzxFUTz26b283hzdUJXe6TMtL1 p9MEznH483Zd26pK9SovhTX/vXVV4jZsh/PYocav+3+FiW/5NUrsXvqO6vxXK0JE2UszWN BZMPgguXzGB16djGyLpqfVMSt1Qer5U= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 7A6751348F; Mon, 5 Dec 2022 08:04:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id px+rHB+mjWNTNAAAGKfGzw (envelope-from ); Mon, 05 Dec 2022 08:04:47 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: kirill@shutemov.name, Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 2/2] x86/mtrr: make message for disabled MTRRs more descriptive Date: Mon, 5 Dec 2022 09:04:33 +0100 Message-Id: <20221205080433.16643-3-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221205080433.16643-1-jgross@suse.com> References: <20221205080433.16643-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Instead of just saying "Disabled" when MTRRs are disabled for any reason, tell what is disabled and why. Signed-off-by: Juergen Gross --- arch/x86/kernel/cpu/mtrr/mtrr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mtrr/mtrr.c b/arch/x86/kernel/cpu/mtrr/mtrr.c index 6432abccbf56..94d5739758ba 100644 --- a/arch/x86/kernel/cpu/mtrr/mtrr.c +++ b/arch/x86/kernel/cpu/mtrr/mtrr.c @@ -630,6 +630,7 @@ int __initdata changed_by_mtrr_cleanup; void __init mtrr_bp_init(void) { u32 phys_addr; + const char *why = "(not available)"; phys_addr = 32; @@ -705,12 +706,13 @@ void __init mtrr_bp_init(void) changed_by_mtrr_cleanup = mtrr_cleanup(phys_addr); } else { mtrr_if = NULL; + why = "by BIOS"; } } } if (!mtrr_enabled()) - pr_info("Disabled\n"); + pr_info("MTRRs disabled %s\n", why); } /** -- 2.35.3