From patchwork Wed Jan 27 02:38:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yanteng Si X-Patchwork-Id: 12049013 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5504BC433E0 for ; Wed, 27 Jan 2021 06:15:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09A3C20715 for ; Wed, 27 Jan 2021 06:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233000AbhA0GOs (ORCPT ); Wed, 27 Jan 2021 01:14:48 -0500 Received: from mail.loongson.cn ([114.242.206.163]:57612 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235420AbhA0DQ7 (ORCPT ); Tue, 26 Jan 2021 22:16:59 -0500 Received: from localhost.localdomain (unknown [112.3.197.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxdbwB0hBgpJENAA--.18006S2; Wed, 27 Jan 2021 10:37:54 +0800 (CST) From: Yanteng Si To: Thomas Bogendoerfer Cc: Jiaxun Yang , Huacai Chen , siyanteng01@gmail.com, Arnd Bergmann , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Yanteng Si Subject: [PATCH v3 1/2] MIPS: loongson2ef: remove function __uncached_access() Date: Wed, 27 Jan 2021 10:38:05 +0800 Message-Id: <20210127023806.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I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0JUdHUDUUUUU= X-CM-SenderInfo: pvl1t0pwhqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org we no longer need the MESA workaround (which shouldn't be there in the first place, IMHO) Signed-off-by: Yanteng Si --- arch/mips/loongson2ef/common/mem.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/mips/loongson2ef/common/mem.c b/arch/mips/loongson2ef/common/mem.c index 057d58bb470e..fceb3ee47eb0 100644 --- a/arch/mips/loongson2ef/common/mem.c +++ b/arch/mips/loongson2ef/common/mem.c @@ -41,14 +41,3 @@ void __init prom_init_memory(void) memblock_add(LOONGSON_HIGHMEM_START, highmemsize << 20); #endif /* !CONFIG_64BIT */ } - -/* override of arch/mips/mm/cache.c: __uncached_access */ -int __uncached_access(struct file *file, unsigned long addr) -{ - if (file->f_flags & O_DSYNC) - return 1; - - return addr >= __pa(high_memory) || - ((addr >= LOONGSON_MMIO_MEM_START) && - (addr < LOONGSON_MMIO_MEM_END)); -}