Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1285031ybh; Mon, 13 Jul 2020 14:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9rxJVgAOfNoF2Rnr6uE/jjKEgXKuv1RKVHVomKfDd0XeS2bVmcCBwHt9Er9YX1rlyqMX/ X-Received: by 2002:aa7:c909:: with SMTP id b9mr1323075edt.111.1594675996807; Mon, 13 Jul 2020 14:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594675996; cv=none; d=google.com; s=arc-20160816; b=xT0oVETmmFnHiWgUWe9VDTj4My8459kdZ2CwjrO5naMcr8CycyuIWWDcE9qWY+C3l+ FmJoSpPOCQNE344LfHEpXTpGzuSTLpX/b3UTGx5MwQHXsT9SsVF6+jukLY63Nfcse3Ik 6RGqsukQKkp1iFq4xFMEX5iqI6rj8uwg+XAPx4ghmFt4njVtV+5C0PyuJ12G+pgAxnyd brZ/FKeicIXhZ2Syun8RICpjWfJoO9Z/LCyq7KEmJ3b8SlgbiGKgnMhEZS6SMlE970bb yW013XcaJxGJg8ljCHQutguE38VZcjLjX2x9jUwmtvUugiuevOOH50DAt421pS+fN/vi HG+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=D4Z5bv/PBfvpiNog8m3OampZASrdmpirAS0JdIWR0d0=; b=tffWaiLGzdxtB4Cs3VWXdPAGs+rmCMFVscWmOULPR7SUYgmPZjL0Cc7pRrGK/Rn6G2 KFujtmeXMOmBnp+6SZJDXph6JyCFFqNJHteivTHrh38ngjSLxZEMGjruu8jShRb2jeF0 JCljp0iUR3whcZkZc1H9V5nH90+n7anlUTFhkAonRgLorPPLgUpCtTma/hiMTyTrknvu aWvrjMjGvsUmT3A0AjsW0g2AdCcGVFZVSk8pjIhjV63kJP/N/N4wCvdC6AIYjPaWPIfI Ro+Ip7TsTQQExTpDVWYAO7pgpJmrWqi5Y00CfPWd7oqYxB4HGEi658tfIzOGDz8uGUTJ +RvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bh13si9690315ejb.48.2020.07.13.14.32.54; Mon, 13 Jul 2020 14:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727105AbgGMVbb (ORCPT + 99 others); Mon, 13 Jul 2020 17:31:31 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:7878 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727096AbgGMVb3 (ORCPT ); Mon, 13 Jul 2020 17:31:29 -0400 Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06DLJP15027910; Mon, 13 Jul 2020 21:29:59 GMT Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 327qhuaht3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 21:29:58 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 2B3244F; Mon, 13 Jul 2020 21:29:56 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 200934) id AF8E820090A45; Mon, 13 Jul 2020 16:29:54 -0500 (CDT) Message-ID: <20200713212954.610885520@hpe.com> User-Agent: quilt/0.66 Date: Mon, 13 Jul 2020 16:29:55 -0500 From: steve.wahl@hpe.com To: Steve Wahl , Jonathan Corbet , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Darren Hart , Andy Shevchenko , Mauro Carvalho Chehab , Andrew Morton , Greg Kroah-Hartman , "Paul E. McKenney" , Pawan Gupta , Juergen Gross , Mike Kravetz , Oliver Neukum , Mike Travis , Dimitri Sivanich , Benjamin Thiel , Andy Lutomirski , Arnd Bergmann , James Morris , David Howells , Kees Cook , Dave Young , Dan Williams , Logan Gunthorpe , Alexandre Chartre , "Peter Zijlstra (Intel)" , Austin Kim , Alexey Dobriyan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Cc: Russ Anderson Subject: [patch v3 01/13] x86: Remove support for UV1 platform from uv_time.c References: <20200713212954.444086564@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-13_17:2020-07-13,2020-07-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 phishscore=0 adultscore=0 mlxscore=0 spamscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007130153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/x86/platform/uv/uv_time.c: remove UV1 support Signed-off-by: Steve Wahl --- arch/x86/platform/uv/uv_time.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) --- linux.orig/arch/x86/platform/uv/uv_time.c 2020-07-07 10:49:50.565510013 -0500 +++ linux/arch/x86/platform/uv/uv_time.c 2020-07-07 10:56:13.473047822 -0500 @@ -74,7 +74,6 @@ static void uv_rtc_send_IPI(int cpu) apicid = cpu_physical_id(cpu); pnode = uv_apicid_to_pnode(apicid); - apicid |= uv_apicid_hibits; val = (1UL << UVH_IPI_INT_SEND_SHFT) | (apicid << UVH_IPI_INT_APIC_ID_SHFT) | (X86_PLATFORM_IPI_VECTOR << UVH_IPI_INT_VECTOR_SHFT); @@ -85,10 +84,7 @@ static void uv_rtc_send_IPI(int cpu) /* Check for an RTC interrupt pending */ static int uv_intr_pending(int pnode) { - if (is_uv1_hub()) - return uv_read_global_mmr64(pnode, UVH_EVENT_OCCURRED0) & - UV1H_EVENT_OCCURRED0_RTC1_MASK; - else if (is_uvx_hub()) + if (is_uvx_hub()) return uv_read_global_mmr64(pnode, UVXH_EVENT_OCCURRED2) & UVXH_EVENT_OCCURRED2_RTC_1_MASK; return 0; @@ -98,19 +94,15 @@ static int uv_intr_pending(int pnode) static int uv_setup_intr(int cpu, u64 expires) { u64 val; - unsigned long apicid = cpu_physical_id(cpu) | uv_apicid_hibits; + unsigned long apicid = cpu_physical_id(cpu); int pnode = uv_cpu_to_pnode(cpu); uv_write_global_mmr64(pnode, UVH_RTC1_INT_CONFIG, UVH_RTC1_INT_CONFIG_M_MASK); uv_write_global_mmr64(pnode, UVH_INT_CMPB, -1L); - if (is_uv1_hub()) - uv_write_global_mmr64(pnode, UVH_EVENT_OCCURRED0_ALIAS, - UV1H_EVENT_OCCURRED0_RTC1_MASK); - else - uv_write_global_mmr64(pnode, UVXH_EVENT_OCCURRED2_ALIAS, - UVXH_EVENT_OCCURRED2_RTC_1_MASK); + uv_write_global_mmr64(pnode, UVXH_EVENT_OCCURRED2_ALIAS, + UVXH_EVENT_OCCURRED2_RTC_1_MASK); val = (X86_PLATFORM_IPI_VECTOR << UVH_RTC1_INT_CONFIG_VECTOR_SHFT) | ((u64)apicid << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT);