Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp512971ybi; Wed, 3 Jul 2019 00:15:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw2AcRZWYi67/1sKkwk0GkeliLr64t1h1dV4xSKhxUdoXxpR0aJ/r9Vq1KUTJa66gq9hEE X-Received: by 2002:a17:902:704a:: with SMTP id h10mr39647298plt.337.1562138110543; Wed, 03 Jul 2019 00:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562138110; cv=none; d=google.com; s=arc-20160816; b=EFS20grHOLCjD/vfjJACrxcSai08uHgYj2plBbjlgl67WXiCTYFfDPK20PzPbxmsSr MXmxHuiuKtCJdW6wnlUSgbCN1VGednxaUQZrwH9CV1fVfpvM6M2OYHj/E+MVYSmPJ6J5 5BYvieUVg4DLf1NHj2MwweBzTWSwQPfP+urddP5ibNk09pv8/hfKl4invS4mGvnRCelZ qcgcEVjHOsCs0szl/wTICHFgTA459L+lgZQpuHklJf/gVImiwbMPURHv1hp6drJOaiRu ufwtZk1PBidd/NKljyhlZd2Xgm+wzIRMRu4zNINNOIVcBu9E8jSKO9jIoWCrSFYTSa+B NIgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=NXoq/g9SNXesQbIqYah0Z5HeiVpSvum5leZGJ+NoGTU=; b=oitC9+HskelG9+6FTIXgsRRM9hWxKbWd/GIqhUKBm/6iUZXdi6ky1o1jGHFHBXJn8f dQp4Kyd9IYkddY4wpEwinq3LsngCN2JOb8WV1PMs2h8cFX6R6tC3tZPls9jrDmOXHywe 1n8EoMM97M33vGeMWQVWaD0UWnCY+wSfh8QmchoEASX34CVtgOWL084mNsO/QT9x3zSX hO+a/Xh0qjpJcTGEoHLDVQnl1MrUhrOG5X34uKWpXu1nc+uCEPly6zeK7kTi6i0Yo7vW vHf5mAxLwokJGWqqSmHi6a+r/Ep81VT441oND+YDMxkV/uTVgto3+VPQUdXwheyuAp5V U6ZQ== 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si1557762pfi.289.2019.07.03.00.14.55; Wed, 03 Jul 2019 00:15:10 -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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbfGCHOU (ORCPT + 99 others); Wed, 3 Jul 2019 03:14:20 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36203 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfGCHOO (ORCPT ); Wed, 3 Jul 2019 03:14:14 -0400 Received: by mail-pg1-f196.google.com with SMTP id c13so734578pgg.3 for ; Wed, 03 Jul 2019 00:14:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NXoq/g9SNXesQbIqYah0Z5HeiVpSvum5leZGJ+NoGTU=; b=ayDsHCadQRDFJ+Xwoqr3oDIx5TB9gGM3LmWjqvwcjHpVo0Dp4AhAwsVQ1zQhZtvvk2 VkxJAJBZ2+0T5N8GAIbp2fcYSMarh+r97Y9uP0lOx3LtSejkuPle0syGIq1vqoH/3qPq XoGrEcYwINUxb6vnW9+ARPgb1UQNtXUr6X3LR8gTaHaCbtcBvPXPRLn9PyLjPg7hMn30 BHFgAMbpvsQdRDpvn83OswfaTnzpufJFO9DAJUBhlsaoDQ8UV81K/zHXCEQA8lSyesnF bNCucuhwh4O9mDluGWWyl1t3rgE149t6UR8X75yBkUbLR4yB1DYtyzno6SPAdtpsNagx 4jnQ== X-Gm-Message-State: APjAAAXeLS+b9AaDMz3Eg2BPDk/0KOJB0sdR2pGgQezJWRl5fugzSKKm rQRbP33hxnuuAFfNunpTY18= X-Received: by 2002:a63:d4c:: with SMTP id 12mr36330199pgn.30.1562138053471; Wed, 03 Jul 2019 00:14:13 -0700 (PDT) Received: from sc2-haas01-esx0118.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id j21sm1256593pfh.86.2019.07.03.00.14.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 00:14:12 -0700 (PDT) From: Nadav Amit To: Andy Lutomirski , Dave Hansen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Nadav Amit , Dave Hansen Subject: [PATCH v2 8/9] x86/mm/tlb: Remove UV special case Date: Tue, 2 Jul 2019 16:51:50 -0700 Message-Id: <20190702235151.4377-9-namit@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190702235151.4377-1-namit@vmware.com> References: <20190702235151.4377-1-namit@vmware.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGI UV support is outdated and not maintained, and it is not clear how it performs relatively to non-UV. Remove the code to simplify the code. Cc: Peter Zijlstra Cc: Dave Hansen Suggested-by: Andy Lutomirski Signed-off-by: Nadav Amit --- arch/x86/mm/tlb.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index b47a71820f35..64afe1215495 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -689,31 +689,6 @@ void native_flush_tlb_multi(const struct cpumask *cpumask, trace_tlb_flush(TLB_REMOTE_SEND_IPI, (info->end - info->start) >> PAGE_SHIFT); - if (is_uv_system()) { - /* - * This whole special case is confused. UV has a "Broadcast - * Assist Unit", which seems to be a fancy way to send IPIs. - * Back when x86 used an explicit TLB flush IPI, UV was - * optimized to use its own mechanism. These days, x86 uses - * smp_call_function_many(), but UV still uses a manual IPI, - * and that IPI's action is out of date -- it does a manual - * flush instead of calling flush_tlb_func_remote(). This - * means that the percpu tlb_gen variables won't be updated - * and we'll do pointless flushes on future context switches. - * - * Rather than hooking native_flush_tlb_multi() here, I think - * that UV should be updated so that smp_call_function_many(), - * etc, are optimal on UV. - */ - flush_tlb_func_local(info); - - cpumask = uv_flush_tlb_others(cpumask, info); - if (cpumask) - smp_call_function_many(cpumask, flush_tlb_func_remote, - (void *)info, 1); - return; - } - /* * If no page tables were freed, we can skip sending IPIs to * CPUs in lazy TLB mode. They will flush the CPU themselves -- 2.17.1