Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5988107ybe; Tue, 10 Sep 2019 11:47:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrLIckuRfjLBw4WtuWidUDq5F3U8igxMwRZNYIXoarVRcLCArngXB9oPW0A+xcdB8qZ0vi X-Received: by 2002:aa7:db05:: with SMTP id t5mr32956579eds.242.1568141278191; Tue, 10 Sep 2019 11:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141278; cv=none; d=google.com; s=arc-20160816; b=wDZDxNOc9H5xGS/j6ZBB0+8SgNH1DlbKG+vJM435doUpNRTMb9YSdw74LGmjDsDgEY 6AHWyEeMHMj2gs188gI4Gu5F0B0BkXYZ3/+3iE2xvdjjBZILCL0HZdkMDzH6rrztZHU2 6UDnE/jfoz/jsyl8eNpJNZFSuZYPlw2Ox8HgLTB4fTX3YHYWhOwF2Es+GbvJ0CN7lxNZ yDdkCEdohG3aSL26SJmvP2wf27rVum2buk5r4JoQRzZcysLD8wuomCjqs8OcFiymARFu 73VdlIUalIIHndn0AJN2cqImn9tazjZcXbkAFQXEFQv+L4YHjIFDQX6c0FKda+bLdWNs bSBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:subject:to:from:date :user-agent:references:message-id; bh=dEUavDkKQyXGRpDVrOgyDh0KX3QirdcVKKVdNG+6zvU=; b=myLrP+J8L9pn6/Q14XNJxvrIfRpVD8ODE//5FOnus/NhD9NNSkhqmPe22xWyLUP+CH xLoQdOpuhAoA1jBwBMcPWsg9+OhMz+/19YtfVLQ6waxMajZOklajidr/0M4CrJLPbDu2 zrWtmKJrdEq6ArsZSc94TXn2YGbJ22m9Z08MuwmSPXXjwskaNQLDlQr/KqdumbsVUn9z Q2vQxh38ohcKvA98M6TkdmppKeEFdqcEY09hC23E3LuBV/mnnI498pkFPUMeEAOdutPE lchau2k1ShbmdOszNopxFEt7s346g2b3ScpEc/QZ480M/u7JwGBOMwJAup3ZCg+8iyvv d3bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i55si12942526eda.88.2019.09.10.11.47.34; Tue, 10 Sep 2019 11:47:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390187AbfIJEfp (ORCPT + 99 others); Tue, 10 Sep 2019 00:35:45 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:38722 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbfIJEfp (ORCPT ); Tue, 10 Sep 2019 00:35:45 -0400 Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8A4UqSn012945; Tue, 10 Sep 2019 04:35:26 GMT Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 2uwnbxpue7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Sep 2019 04:35:26 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 095338D; Tue, 10 Sep 2019 04:35:26 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 5508) id B5116201FCE7A; Mon, 9 Sep 2019 23:35:25 -0500 (CDT) Message-Id: <20190910043437.394608987@stormcage.eag.rdlabs.hpecorp.net> References: <20190910043437.021955474@stormcage.eag.rdlabs.hpecorp.net> User-Agent: quilt/0.46-1 Date: Mon, 09 Sep 2019 23:34:41 -0500 From: Mike Travis To: Mike Travis Subject: [PATCH 4/8] x86/platform/uv: Setup UV functions for Hubless UV Systems Content-Disposition: inline; filename=setup-hubless-init X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-10_04:2019-09-09,2019-09-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 spamscore=0 mlxlogscore=944 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1909100041 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add more support for UV systems that do not contain a UV Hub (AKA "hubless"). This update adds support for additional functions required: Use PCH NMI handler instead of a UV Hub NMI handler. Initialize the UV BIOS callback interface used to support specific UV functions. Signed-off-by: Mike Travis Reviewed-by: Steve Wahl Reviewed-by: Dimitri Sivanich To: Thomas Gleixner To: Ingo Molnar To: H. Peter Anvin To: Andrew Morton To: Borislav Petkov To: Christoph Hellwig To: Sasha Levin Cc: Dimitri Sivanich Cc: Russ Anderson Cc: Hedi Berriche Cc: Steve Wahl Cc: Justin Ernst Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org --- arch/x86/kernel/apic/x2apic_uv_x.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) --- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c +++ linux/arch/x86/kernel/apic/x2apic_uv_x.c @@ -1457,6 +1457,20 @@ static void __init build_socket_tables(v } } +/* Initialize UV hubless systems */ +static __init int uv_system_init_hubless(void) +{ + int rc; + + /* Setup PCH NMI handler */ + uv_nmi_setup_hubless(); + + /* Init kernel/BIOS interface */ + rc = uv_bios_init(); + + return rc; +} + static void __init uv_system_init_hub(void) { struct uv_hub_info_s hub_info = {0}; @@ -1596,8 +1610,8 @@ static void __init uv_system_init_hub(vo } /* - * There is a small amount of UV specific code needed to initialize a - * UV system that does not have a "UV HUB" (referred to as "hubless"). + * There is a different code path needed to initialize a UV system that does + * not have a "UV HUB" (referred to as "hubless"). */ void __init uv_system_init(void) { @@ -1607,7 +1621,7 @@ void __init uv_system_init(void) if (is_uv_system()) uv_system_init_hub(); else - uv_nmi_setup_hubless(); + uv_system_init_hubless(); } apic_driver(apic_x2apic_uv_x); --