Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1309165pxb; Wed, 6 Apr 2022 14:33:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcUDj3cRBKckWKq4cSGgi40eZjA5E+46ZRCstGDQiQ9ydfEZnlYHlBOFoef673YcO6r0eS X-Received: by 2002:a17:90b:17c3:b0:1c6:b0ff:abf with SMTP id me3-20020a17090b17c300b001c6b0ff0abfmr12107930pjb.24.1649280800367; Wed, 06 Apr 2022 14:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649280800; cv=none; d=google.com; s=arc-20160816; b=gDNCAjTQTk6wupEN1tZSsi/PeJx5sDGvYa6lW9pB+yTsmhKW4tqV/bjId0ZnA/TCrw NWxfMQ9Tmdk+jkqtwE0auzdG5F+nbqSwsi/AjyJNlETewytYFmax5k/hVemC3TR1NqOM nNG1OvcnUJGd8tlxCWpSdqC83A0eAxbpPpjL+FLsP5XhCgdFS/n7Mos8uBYGU+uSbJG3 3A7XFSSCeZb5pOj+WHWFLB1zp9hM7Dq8/Gru8cLWTN6vpSsuaLDQE72jZTlOPIQCFohf puEaemzsj9FfohS3tGc59llFeaJ2EQzoMKsCogI+XJ+w9OT2NmLIAwbAE33IMHt/+bV+ Lj5A== 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=LeJpnDEr3epWjZgzgmr38Yn+CW3qOfLR6wVlG8e/Gbg=; b=zDorPOq2XzK5aCbEqd5fw8c5mU2bS8E16CnB87uCm81ejFKJ18H1e+H3Cl3u/dqi5b 8TGZsxFUhqTosvCBPIE8EBl2zjoxYs5kKTJTIuYvK9D/bnLzCOLubB0S1g4/ystosNnM DAcoOpEtFaWln04/K83DLk2LBYjDs7zEpAtt/MzXPTzxCeCtp9cAshUoWBS0DzaHMaUk 1uU4aTzUde1zyNNg2sYRJ3jwie88EsM9dnR7EuT4a59uiw78bg23SO+5623Osv8boEvI jvt0kx93ieqDR883cuYfHiUARYCPTLz3R0+Qx5La9YWEyrGV1tLEslaMwDGtYQyxHS6K X5iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=jGIeIAzx; 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=hpe.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a63f844000000b003816043f02asi16282521pgj.543.2022.04.06.14.33.06; Wed, 06 Apr 2022 14:33:20 -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=@hpe.com header.s=pps0720 header.b=jGIeIAzx; 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=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235278AbiDFVK6 (ORCPT + 99 others); Wed, 6 Apr 2022 17:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235082AbiDFVKs (ORCPT ); Wed, 6 Apr 2022 17:10:48 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB9FB4F9EA; Wed, 6 Apr 2022 12:52:30 -0700 (PDT) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 236HOm2e032349; Wed, 6 Apr 2022 19:51:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=LeJpnDEr3epWjZgzgmr38Yn+CW3qOfLR6wVlG8e/Gbg=; b=jGIeIAzxVmdBs9MoPZAn8LUq2K94fAC7VMtP1Arp3MlbhOtJ1H/RPgT6nV/JFAqlvWt+ MJoTnT61Oc6vFgm3pBrVzSKw9ou1vdg7h5ybt7Y09raJfOtaWLrxYAkoDQQfGltn3O4B EefFpDSUIUi7JEZjN19ayRhVVUgSh80aVBiVQBjwppKbPruz9IIz+6CTUkmRHFIKOS0D OFE2C8tGCd7JTRbTymw2dn0cZYKYu3n0q5Ke2oxDVg5fRJO1Ix9znGmRGyash6mvNfIh ur5BKzfsQSpYOviFxcZXNtNgOERv71xZ1TG/t6ny6REMSu4e5Y9niM5TMT3pIZvinMX2 Uw== Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3f93m4q5eg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Apr 2022 19:51:51 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id E78A766; Wed, 6 Apr 2022 19:51:50 +0000 (UTC) Received: from dog.eag.rdlabs.hpecorp.net (dog.eag.rdlabs.hpecorp.net [128.162.243.181]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 4C0814A; Wed, 6 Apr 2022 19:51:50 +0000 (UTC) Received: by dog.eag.rdlabs.hpecorp.net (Postfix, from userid 200934) id CC39730090F7A; Wed, 6 Apr 2022 14:51:49 -0500 (CDT) From: Steve Wahl To: Borislav Petkov , Ingo Molnar , Thomas Gleixner , x86@kernel.org Cc: Mike Travis , Steve Wahl , Andy Shevchenko , Darren Hart , Dimitri Sivanich , "H . Peter Anvin" , Russ Anderson , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v4 3/3] x86/platform/uv: Log gap hole end size Date: Wed, 6 Apr 2022 14:51:49 -0500 Message-Id: <20220406195149.228164-4-steve.wahl@hpe.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20220406195149.228164-1-steve.wahl@hpe.com> References: <20220406195149.228164-1-steve.wahl@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: Htzs53Ie2KlJ7nFWu_3bcKDZLQlU8M-s X-Proofpoint-GUID: Htzs53Ie2KlJ7nFWu_3bcKDZLQlU8M-s X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-06_11,2022-04-06_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 mlxlogscore=962 bulkscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 spamscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204060098 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 From: Mike Travis 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 --- v2: Update patch description to be more explanatory. v4: Clarify commit message --- 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 a6e9c2794ef5..482855227964 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 */ -- 2.26.2