From patchwork Sun Feb 24 07:13:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Xuerui X-Patchwork-Id: 10827737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCEFF922 for ; Sun, 24 Feb 2019 07:15:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B52172BC62 for ; Sun, 24 Feb 2019 07:15:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A28F12BC70; Sun, 24 Feb 2019 07:15:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 698722BC62 for ; Sun, 24 Feb 2019 07:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbfBXHPA (ORCPT ); Sun, 24 Feb 2019 02:15:00 -0500 Received: from smtpbgau1.qq.com ([54.206.16.166]:36322 "EHLO smtpbgau1.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbfBXHO7 (ORCPT ); Sun, 24 Feb 2019 02:14:59 -0500 X-QQ-mid: bizesmtp3t1550992487t89g48b0i Received: from localhost.localdomain (unknown [116.236.177.50]) by esmtp4.qq.com (ESMTP) with id ; Sun, 24 Feb 2019 15:14:43 +0800 (CST) X-QQ-SSF: 01400000002000C0EF92B00A0000000 X-QQ-FEAT: R3tZgSt770MAtl3QlDCoa4HBzFgRnDeEnB8SALHnMoDwpqcMZ4+rzP6TYvNYo u69H9usKHJX2O6Ev1LJY6bg27Y2Bh1KLq1I6MCR+h671q4xw0GaGlp/FSblbfsCUu8YxeFi IsJIZgO92QyIHOz91O7BXCvRp5STxGP61OJOLSisjIZ6SlUS8wjS65LIffDk+ms3CcMG2em gYhXOLknsW/nRbqWRkzuu99a5QUyqTCOArXOMsirBLm0l608SirbQVPjQ49BAR1i1QgFMIw PsV7Oi7WOH/Gxn X-QQ-GoodBg: 2 From: Wang Xuerui To: linux-mips@vger.kernel.org Cc: Wang Xuerui , Huacai Chen , Jiaxun Yang , Alex Belits , James Hogan , Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH 0/4] MIPS: support 47-bit userland VM space Date: Sun, 24 Feb 2019 15:13:51 +0800 Message-Id: <20190224071355.14488-1-wangxuerui@qiniu.com> X-Mailer: git-send-email 2.16.1 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:qiniu.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This is my patchset to support 47-bit userland virtual memory space on MIPS, for better application compatibility with x86_64. The implementation is entirely shared with the previous 48-bit virtual memory space work. The existing mechanism is first refactored to accommodate extensions, then 47-bit support is added as an additional case of the now-generalized large VA support. I have been running an earlier uncleaned version of this code for over 2 years, on Loongson 3A2000 and 3A3000, without any problem so far. This is my first patchset to Linux/MIPS, so any review or comment is greatly appreciated! Wang Xuerui (4): MIPS: simplify definition of TASK_SIZE64 MIPS: refactor virtual address size selection MIPS: define virtual address size in Kconfig MIPS: support 47-bit userland VM space arch/mips/Kconfig | 59 +++++++++++++++++++++++++++++++++++--- arch/mips/include/asm/pgtable-64.h | 10 +++---- arch/mips/include/asm/processor.h | 5 ++-- 3 files changed, 63 insertions(+), 11 deletions(-)