Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp12436pxh; Thu, 7 Apr 2022 12:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt/k339h0d7FUrhFvCwZgLMWtzcFEy33MYqg0neDxv1h7qLla5pkDmrLBMhVqvyeO84MiV X-Received: by 2002:a05:6a00:15d2:b0:4fe:ff2:1a4d with SMTP id o18-20020a056a0015d200b004fe0ff21a4dmr15736157pfu.23.1649359473881; Thu, 07 Apr 2022 12:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649359473; cv=none; d=google.com; s=arc-20160816; b=MtfoKC5DIkeuCiQaOiwBoX4ni0zkbsl/uD4K2fea9BJxUDeja1KdfxWl6UkBDb2fQ6 ex7jVVEe4lZWDIu5bbLksIGXY2b+rJqQ6DxkSvfjVBYMNk8CCQxkwVosoYZSKIBSxbg6 v+HgFayHXZeWEaUKCEH8kKHD7nV8kiP/zpLMBIWqZyomdQ/FTrbGergIWFhoInGt7Lfh LaxARrdjiHe2PXNdtUYKrVGm1p65mJ4CzDWfl7DwR/aBRIJo7Z/KIha7/rpvD2M9jT4/ bA/v5pXO8yIW+Mv8rrTthr2RNsQZgQbIh9tcw1SEUCGRR0jXWxCPTQ4jsMKkRPc/6geU PiFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=0EUgoUyJOV+ytrCOJgy5gzgNTd08GKnxKCRhqyMu0nE=; b=C8kd7eBZQ+utahBWsG9Y4tQCYcJ0Dx6vpzNmQrJx3t6rY8BsXpK/V8hIQ/s31mjt1G 2jB0a9yiO5HWGK+JgUkaHlkKcsWs6St8DLQ0kJ3j/iEJKk6BYK94JuBuSqV0ZJz5ABab TpnDeRH5TCjqs11JVNBqr4vy0Gqqcn4px1e7D05R1vHx7ZIplFZdyvu3mr7Qy6gCkK8d XJ7Ra/+Xqi3Rl2j6SUVA+B2ey6o5npELAn5NCA7D6ElrljdR7A4huyV8SSJfmvRHyiTN kxQ84voF0B+bgp/ysHAFWxnZc5SKWDH8NHW4xIuGdJx3HF8iFrb/rTm96oTaKZCh/zb3 bWVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zdIl3g8U; dkim=neutral (no key) header.i=@linutronix.de header.b=KJ6NEmiM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id me11-20020a17090b17cb00b001c7c83e5730si2853485pjb.51.2022.04.07.12.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:24:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zdIl3g8U; dkim=neutral (no key) header.i=@linutronix.de header.b=KJ6NEmiM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8FC5B22EBD0; Thu, 7 Apr 2022 12:02:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243827AbiDGPue (ORCPT + 99 others); Thu, 7 Apr 2022 11:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbiDGPud (ORCPT ); Thu, 7 Apr 2022 11:50:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F24A37017; Thu, 7 Apr 2022 08:48:32 -0700 (PDT) Date: Thu, 07 Apr 2022 15:48:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649346511; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0EUgoUyJOV+ytrCOJgy5gzgNTd08GKnxKCRhqyMu0nE=; b=zdIl3g8UNSYqpd+vpQ9Qr829tlSM089AP1JhJEl080Mu66qQwKz0B3spXulKz8ovdGIVlt NP2PDcKpDnNtyyE5Zo+oALPEjEl3ewOq3yjxC7aRdw/XjkenNopyDGs7Ykxk8iGZOunIX/ IeF3JFcyn+dCPTKCEUjXBTjne3j0oQEnLMg0UVvgnBl4954tBdvytTjM3/18Usnhzm7Gmm x0pU9Dxn88faNGUTKahRveEmpVq+vYo4oQZAMA4YCDNB16z/gUzQOMQtBdOI2/aQGKMG3D HfOKtTm3HT5+nMXXsuLfmMDcW3IVD+KzX0u1RwRn0hxyoc6gWHULoK0D5lGENA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649346511; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0EUgoUyJOV+ytrCOJgy5gzgNTd08GKnxKCRhqyMu0nE=; b=KJ6NEmiMsfpundaRbK/3vT0U/er+WnvU4x5mWUeOO/OG3DZXN3qd5OMCYTnM8Ui9SD2SxM AhHi9MyQ8RUBFZAw== From: "tip-bot2 for Mike Travis" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/platform] x86/platform/uv: Log gap hole end size Cc: Mike Travis , Steve Wahl , Borislav Petkov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220406195149.228164-4-steve.wahl@hpe.com> References: <20220406195149.228164-4-steve.wahl@hpe.com> MIME-Version: 1.0 Message-ID: <164934650980.389.11541360930801701487.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 The following commit has been merged into the x86/platform branch of tip: Commit-ID: 327c348988c6f0bacd7abd29c151f37bdf1e2a02 Gitweb: https://git.kernel.org/tip/327c348988c6f0bacd7abd29c151f37bdf1e2a02 Author: Mike Travis AuthorDate: Wed, 06 Apr 2022 14:51:49 -05:00 Committer: Borislav Petkov CommitterDate: Thu, 07 Apr 2022 17:25:15 +02:00 x86/platform/uv: Log gap hole end size Show value of gap end in the kernel log which equates to number of physical address bits used by system. Signed-off-by: Mike Travis Signed-off-by: Steve Wahl Signed-off-by: Borislav Petkov Acked-by: Thomas Gleixner Link: https://lore.kernel.org/r/20220406195149.228164-4-steve.wahl@hpe.com --- arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index a6e9c27..4828552 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -1346,7 +1346,7 @@ static void __init decode_gam_params(unsigned long ptr) static void __init decode_gam_rng_tbl(unsigned long ptr) { struct uv_gam_range_entry *gre = (struct uv_gam_range_entry *)ptr; - unsigned long lgre = 0; + unsigned long lgre = 0, gend = 0; int index = 0; int sock_min = 999999, pnode_min = 99999; int sock_max = -1, pnode_max = -1; @@ -1380,6 +1380,9 @@ static void __init decode_gam_rng_tbl(unsigned long ptr) flag, size, suffix[order], gre->type, gre->nasid, gre->sockid, gre->pnode); + if (gre->type == UV_GAM_RANGE_TYPE_HOLE) + gend = (unsigned long)gre->limit << UV_GAM_RANGE_SHFT; + /* update to next range start */ lgre = gre->limit; if (sock_min > gre->sockid) @@ -1397,7 +1400,8 @@ static void __init decode_gam_rng_tbl(unsigned long ptr) _max_pnode = pnode_max; _gr_table_len = index; - pr_info("UV: GRT: %d entries, sockets(min:%x,max:%x) pnodes(min:%x,max:%x)\n", index, _min_socket, _max_socket, _min_pnode, _max_pnode); + pr_info("UV: GRT: %d entries, sockets(min:%x,max:%x), pnodes(min:%x,max:%x), gap_end(%d)\n", + index, _min_socket, _max_socket, _min_pnode, _max_pnode, fls64(gend)); } /* Walk through UVsystab decoding the fields */