Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8297113ybi; Tue, 9 Jul 2019 12:54:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIYCDc/U8dUocvPMSn2rLR0UDZ+7VY2x/di4/GiaHeowJr5ZAFcmfbaJqo8RfAzst2Zyn+ X-Received: by 2002:a17:90a:2567:: with SMTP id j94mr1968517pje.121.1562702072480; Tue, 09 Jul 2019 12:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562702072; cv=none; d=google.com; s=arc-20160816; b=mgeuknlN6kkqdeZvXMPmA68aFG6SqF1LPLWq4yGOYtt4bmbt9fb+0gXlbN8OgAX2zt nIdhSQ54F95D2nDBKm6o7vU4FdLUONk6MB/WkzHfv47kT6DEtSrzFcBMusj70AjxdamU ajjq+FA4gi6PYmDWSvNxv5wgGZz4ZMdBbofzLlNaAFgZbbHUk1uYKypkwFkzWsSugMq1 gwdv7QGdPhkrSWMOgmDHYpcmYqbIW7mTeTuExk0ITgFfw+BI1ZBpBZari35S2tOez2Gd lTsL31Clh4Yz4vLfLf4+RvD9nklDfDntz4aDHrk66FZzjfmbXszNbbb4F7Bva8uyKyxr GVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=YrbBTdgTy6mbEsOG6Wme9e3T//RHr3ngx0YXDyw7BfU=; b=pjDBygb6RWoVMORdAYR1/9TxLL9FUr0HeQs/xYTmBJF3+tstddRXG5vBi704vVExcm fIDCQk98V7TbW6R0c1Dou+Llt2i6pfkFpyoy15/hrh8sX2WmepCUado/ZGmFDEPDeIQu 8ZuGKJSRrGImRtuIs94Za3e/7GXjHtQ29WrtpPVMkv+Tm2ytodu0ee9TRGqRY+7oObqF SS7hOypxVsh+Uuj43+8/DcOpi3rgPIoRl06w/46nNEFf0+cERGCChCvny3b8YY10LRA9 E5/xV1KUmjFR5pqrh0QctgjrXK2AMLx4YzjIpb1a00Uc0dnAs+5yZtbtWiRMifjiDcSc QmXg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s189si16536990pgb.272.2019.07.09.12.54.17; Tue, 09 Jul 2019 12:54:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbfGITuk (ORCPT + 99 others); Tue, 9 Jul 2019 15:50:40 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:46223 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfGITuk (ORCPT ); Tue, 9 Jul 2019 15:50:40 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hkw8C-000583-CT; Tue, 09 Jul 2019 21:50:28 +0200 Date: Tue, 9 Jul 2019 21:50:27 +0200 (CEST) From: Thomas Gleixner To: Nadav Amit cc: Andy Lutomirski , Dave Hansen , x86@kernel.org, LKML , Peter Zijlstra , Ingo Molnar , Dave Hansen , Dimitri Sivanich , Mike Travis , Russ Anderson , Hedi Berriche Subject: Re: [PATCH v2 8/9] x86/mm/tlb: Remove UV special case In-Reply-To: <20190702235151.4377-9-namit@vmware.com> Message-ID: References: <20190702235151.4377-1-namit@vmware.com> <20190702235151.4377-9-namit@vmware.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Jul 2019, Nadav Amit wrote: > 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. You should at least Cc the SGI/HP folks on that. They are still around. Done so. > 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 > >