From patchwork Fri Jul 8 07:18:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 12910666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D526EC433EF for ; Fri, 8 Jul 2022 07:20:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C96D56B0074; Fri, 8 Jul 2022 03:20:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C55DA900002; Fri, 8 Jul 2022 03:20:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A88776B0074; Fri, 8 Jul 2022 03:20:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8AFD3900003 for ; Fri, 8 Jul 2022 03:20:03 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4DED634C1B for ; Fri, 8 Jul 2022 07:20:03 +0000 (UTC) X-FDA: 79663083486.17.79937E4 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf28.hostedemail.com (Postfix) with ESMTP id EAED6C0030 for ; Fri, 8 Jul 2022 07:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=1nMVtjbiz/Yr0AEPB448TuEkWvIWnr9bl4+XJj3PWUA=; b=XbPaMQfEK7hyBIb2ys5XBSSvis GrANZnvChoPdcGug7ovsXTWFQjDUP1LfWfTkQ6IJzOo64nT2gCVxaj/dza/3PDBxt1DKBohWixoaO rXGztRuYtoJH6KtF1EQvcjnChvWeFpst+dv2AjlxEDGMaLOaM22DCf7hWWHF+5FAgde8ijpwMvMZ6 9ixlRQdej4IfvSszvy2AIag+yAZXJ0G5WBkOXAQbHa5BT5JsLg/T5+bdYduoxbuFdhynZdY0Jaw+q pAOUrrnixReggIuSaaYi4sEoRhZcsLPPBIG649nKVpSRBU+63Z5kYCyw+QNYMaTAuZ/qdyazhzRNm I2YC2IHQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9iHK-003Igs-12; Fri, 08 Jul 2022 07:19:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B6FDA300E7E; Fri, 8 Jul 2022 09:19:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 4FE48203C0435; Fri, 8 Jul 2022 09:19:51 +0200 (CEST) Message-ID: <20220708071834.019084831@infradead.org> User-Agent: quilt/0.66 Date: Fri, 08 Jul 2022 09:18:04 +0200 From: Peter Zijlstra To: Jann Horn , Linus Torvalds , Will Deacon Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, peterz@infradead.org, Dave Airlie , Daniel Vetter , Andrew Morton , Guo Ren , David Miller Subject: [PATCH 2/4] csky/tlb: Remove tlb_flush() define References: <20220708071802.751003711@infradead.org> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=XbPaMQfE; spf=none (imf28.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657264803; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:references:dkim-signature; bh=1nMVtjbiz/Yr0AEPB448TuEkWvIWnr9bl4+XJj3PWUA=; b=q56kADN431yrUngAuEZOzWUnNrpNpBM+BU2Z0RCorwIBWejUVDmhmJeJ0rytfmsCxyq73R L3Ph6Pzz5Xz01XA3cfWQOHfuCCmTZYN44fF+MQjSibLHtbzejJzZ+tHnpEM40BOpnVahmI KpyaWDbLb1S/j9R3ste4FCFwK3c3ePw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657264803; a=rsa-sha256; cv=none; b=t7ONma7IVRQCkzdSSeZDFaHQimRVzYTdnep/0ioTZTXvGhcTJ8VZbMgpFf92d/xq1Xvw1M xjbPlcPRxj1B+fDOLIdxCrmAhQhbcL7ZhXRzLgC25jUIupMP0J+GZE3+Ekv54YB4/7t9hX x2yskVjritnQLWfW6DAQf8Lzsbfsles= X-Rspam-User: X-Stat-Signature: wdd1n3nwxbnpkbj6ustn1d4iinx5a6bw X-Rspamd-Queue-Id: EAED6C0030 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=XbPaMQfE; spf=none (imf28.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none X-Rspamd-Server: rspam11 X-HE-Tag: 1657264802-312486 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The previous patch removed the tlb_flush_end() implementation which used tlb_flush_range(). This means: - csky did double invalidates, a range invalidate per vma and a full invalidate at the end - csky actually has range invalidates and as such the generic tlb_flush implementation is more efficient for it. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Will Deacon --- arch/csky/include/asm/tlb.h | 2 -- 1 file changed, 2 deletions(-) --- a/arch/csky/include/asm/tlb.h +++ b/arch/csky/include/asm/tlb.h @@ -4,8 +4,6 @@ #define __ASM_CSKY_TLB_H #include -#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) - #include #endif /* __ASM_CSKY_TLB_H */