Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp790622ybh; Wed, 22 Jul 2020 13:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK0qRiBDMw4cA8GDzR+IS9BDK7h2g3gYK0s6QZKuL994kFsXeVDOllAS8fHf70W9fREf4f X-Received: by 2002:a17:906:a44:: with SMTP id x4mr1281858ejf.193.1595449426018; Wed, 22 Jul 2020 13:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595449426; cv=none; d=google.com; s=arc-20160816; b=jSiwNFFv262RfQlCTgXyL2pQEhOefILCaerfQvnvmH5r1aDR+S/CkOt+p1u7bJ7prg PKJ8+DROx/Tc5x4Xv82sDj4yHJklF61GndVvVEUP6RjebiX/Kug76Mb0tRqNo6oxP/Uy EewapI8bt4Uilk3slH7m+vDl3M0WQLTWmB+7VjTdX1OatVqyMr0/lPq4/1uSZt67rNKu jehSxecnd4VcRJPRGTteIzjsRNJIsJU0s7zbnV/g2ohXLWAdMdEG9OC0ld547azCWNTh LJ1Z/irTlQ5slrUkvgk8QQn0m/fbZKjK/MaOYZEEcazYVuOJipsWld2G1j1R7GH8p6sX jYow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cdUhZg/3bDxXyf8T9Nc6qTLAa8Pdj0kIHrfYgn4DLU0=; b=wqht7rgg92c0N6bybAbDU3C5MYytScFYlY//Q/jmrsFnWrtJRD/skPxdUzs7kRiHyS QDmVS7VQVW4rOer6Cw/65yN8Tyok8Ekx2XG84GsfdRedNRr1gH4LAfwoKqc7+lowjV8u Jgk7QTP9mo9IKJQfsD2TsAnX8U6iXVsJc0zPxhbvATHrnuS10wffd26HPAljlDoQsZEZ MLzo22VZ8FGpTRrvjkwsFEUA/aY2DsND2ChRDnScLCgi9Nt5ULNM+3b+/WDfq2n5ZB8B usjrVmqfg7hsG3k9VmHnnyLFIbNgg8HFNfg1EKwNGGG5dP/N1NIusZ8KMWXMibSIV7V/ XD7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si701477ejr.25.2020.07.22.13.23.23; Wed, 22 Jul 2020 13:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730702AbgGVUWp (ORCPT + 99 others); Wed, 22 Jul 2020 16:22:45 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:42915 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbgGVUWo (ORCPT ); Wed, 22 Jul 2020 16:22:44 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1N7zNt-1kuHVR43Kl-0155Dj for ; Wed, 22 Jul 2020 22:22:43 +0200 Received: by mail-qt1-f181.google.com with SMTP id 6so2863990qtt.0 for ; Wed, 22 Jul 2020 13:22:42 -0700 (PDT) X-Gm-Message-State: AOAM530fNPwjI9AXsKOAxR+2uVFb/GvVoTmCYJXVEyxb4ebysTSew3Lp ejnmMiMCvQt9Cnc8dL6vDGjqXZgafUTH3F9aqYo= X-Received: by 2002:ac8:6743:: with SMTP id n3mr1132159qtp.7.1595449361849; Wed, 22 Jul 2020 13:22:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 22 Jul 2020 22:22:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone To: Palmer Dabbelt Cc: Alexandre Ghiti , Albert Ou , Benjamin Herrenschmidt , Linux-MM , Michael Ellerman , Anup Patel , "linux-kernel@vger.kernel.org" , Atish Patra , Paul Mackerras , Zong Li , Paul Walmsley , linux-riscv , linuxppc-dev Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:9vkYCDJmvYwb5URpXaDM+la+4kepzavYjlt9hqPnJqKRPI6eKW4 6sOsFIFn47uxY38ztrWUjk+xfOcR6ptqSoEXhVkEUQ95MTZSyMYjog/VrxLAss+sy+xZAJu OKVnQnjmtC2vXaYoPglA5FmuqqaxXSM0ZG1gD/DWvFpv4sAcMnEPhR/6dfk6ZNqTACYr754 kubdmpCEKhXU1sID7DJHw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BeYHuheCQD0=:GD9dn33K3tWuL2rvUuTamS DPkvmv3u8jAJtJPpBDP+bjHIJVmx3B6N4Kx2Iy9paj9y82diPWi4pKEVCofWY4oT/OMq22sf3 Qq0BmjyRe6SdpDwH2oBDGoK/XlwN6hoKuZNihDYjUwFz0Tkz5q9eW124hjEVcifytBL4wOgWh Y0ui8xsROECASvu0nlaJq47SqC3w3/ZcwAV5jV44m1OPK2u2UO3lksgYM/U7mTdSlyZ/76Kua rsjtrZ3292bW5ZR8cwIzblbwZzHFT0BFx6/ymiDkdNCQr7OEqG+CHUwd4OeJEGKMRymBhnS2x qz1RtRIHDHXWRwBwJGkN/eefVo3mZp2L2Jz66anFFP/lXy/OCV5B/1OUGwY5qBNry23dM3/eI RvOEMgjmEjpYtDM0dVhIQ/U8uIc/OD1MZdto6TtrSQuOeGcVKU+yEJ4JdX/xmobCUii8t45ys NIkFaMhbnk5rKv/ERiuHszJfvGvKiBlBqSppadT1kmAxE+20SUY8S+mUwodcVFsYhata31Eg1 1pTD3JNXXMO4cxyqSdxk5BDndXbsbWqiKt8tek6CSJIViO05fJsnkZVIkOAwoIloT1h3F4FdS Z5Lee1BNuWnFkAwLoDLn91fggX8olfJHRK4gkBUQydR4BjBrfzxmh7u9Ov2a8R1v/EjYYxakJ piv5LrybbJi8odnVryKx3MA8tByKE1FCd6eZfRyzsr22EAglXSGQmIg4FQKbz/d+UhlQDUj5z ukwmSK2NrcYeJFnfu/4SnL2LP4Ar9EIfNFQsrdewCr1GnrtiU21JS2PeWP2h9PXdunZQnKe6i ob4gJ6G8w4V4mqFV/ljF0rXzcgQdujBVGsirFEcer2WeuSwTI/SFC9KW+psS/vYfJlRkImj Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 9:52 PM Palmer Dabbelt wrote: > On Wed, 22 Jul 2020 02:43:50 PDT (-0700), Arnd Bergmann wrote: > > On Tue, Jul 21, 2020 at 9:06 PM Palmer Dabbelt wrote: > > The eventual goal is to have a split of 3840MB for either user or linear map > > plus and 256MB for vmalloc, including the kernel. Switching between linear > > and user has a noticeable runtime overhead, but it relaxes both the limits > > for user memory and lowmem, and it provides a somewhat stronger > > address space isolation. > > Ya, I think we decided not to do that, at least for now. I guess the right > answer there will depend on what 32-bit systems look like, and since we don't > have any I'm inclined to just stick to the fast option. Makes sense. Actually on 32-bit Arm we see fewer large-memory configurations in new machines than we had in the past before 64-bit machines were widely available at low cost, so I expect not to see a lot new hardware with more than 1GB of DDR3 (two 256Mbit x16 chips) for cost reasons, and rv32 is likely going to be similar, so you may never really see a need for highmem or the above hack to increase the size of the linear mapping. I just noticed that rv32 allows 2GB of lowmem rather than just the usual 768MB or 1GB, at the expense of addressable user memory. This seems like an unusual choice, but I also don't see any reason to change this or make it more flexible unless actual users appear. Arnd