Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp619167ybb; Thu, 28 Mar 2019 08:55:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzU21WsHZqrOE1L86+8e+bdsU9hX48iBD5EKohF2Bb47JE1X0dtHdKTlMBuxbD4e4VzwmVp X-Received: by 2002:aa7:85d9:: with SMTP id z25mr31536056pfn.31.1553788515541; Thu, 28 Mar 2019 08:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553788515; cv=none; d=google.com; s=arc-20160816; b=zsFW6Zg1HLwj4FrxAlpVoasCeqrVsmV0Rvteghhyy88SiEgoVqPuBCQbQU1hpBO0ur hMkfispoJZr2vd7BDNsNeRKxLge6tip9+6YvjsmW5dA9HQZKZ/Xv/Ta+mLAc96QI9did TiG2npUP/z/KQUJKZtYzXwVmpRi7Llgrc9/IYiv4DdX5p+DscBRND3//gFgzmPdSs7Y4 w0WqRrqh+ZJhGnFhOTmtsTNPRO98F4cci4l8pOlEuyYWEByvzDZ+/57/NJMJkyIoAMdz evGam2d4If5NuovkpozzH/3sG58oHDfz9hSwQjrIgYaOYPYmDSKN+bqpe8J0MtDVjdi2 RbRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=26Lo6uZ8dQLwDP7bxUFoP2NmJ/VzaOtr8+eVmVTnrVA=; b=hV3G0TpVMjfRt1eBQucfUyx7r4yy4/jdfl/HqmvymeF5cCuJ/9oQLmTx/hrq0J2/yU dThsQUWFcyWzwRo/YJVV0uzQEQSzWg9yJh1uivOv2qK+15dz+aEGE2tRZpRRCRn4NVs5 8pGqTjKrJO0s9Mvhss54j5urbDKbb9l18kfFfs40mlP45oEdBNcNnQH0ybXfQakhLvJ7 brN20lqXVhZTNRk0XrFAStGMGCjv+6esyyVK4fAgYhkFg09TlUsKS8xvpUj0Bx1/f4U4 awLDRVAX4b+C86ubGA38Ont5q+cRVYZg9J8jJ2Tf46uiQCzq0b/3QKJPtGK/lkjZoeG7 fw3Q== 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 e18si20912583pfn.164.2019.03.28.08.54.58; Thu, 28 Mar 2019 08:55:15 -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 S1727102AbfC1PyH (ORCPT + 99 others); Thu, 28 Mar 2019 11:54:07 -0400 Received: from ale.deltatee.com ([207.54.116.67]:38284 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfC1PyH (ORCPT ); Thu, 28 Mar 2019 11:54:07 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1h9XLw-0004Sx-2z; Thu, 28 Mar 2019 09:54:04 -0600 To: Anup Patel , Palmer Dabbelt Cc: sorear2@gmail.com, Albert Ou , Anup Patel , "linux-kernel@vger.kernel.org List" , sbates@raithlin.com, antonynpavlov@gmail.com, linux-riscv@lists.infradead.org, Christoph Hellwig References: <20190327213643.23789-4-logang@deltatee.com> From: Logan Gunthorpe Message-ID: <2f4c13d5-6a5c-472a-4a7b-5fd184ffe7c6@deltatee.com> Date: Thu, 28 Mar 2019 09:54:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: hch@lst.de, linux-riscv@lists.infradead.org, antonynpavlov@gmail.com, sbates@raithlin.com, linux-kernel@vger.kernel.org, anup.patel@wdc.com, aou@eecs.berkeley.edu, sorear2@gmail.com, palmer@sifive.com, anup@brainfault.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH 3/7] RISC-V: Rework kernel's virtual address space mapping X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-03-28 12:28 a.m., Anup Patel wrote: >>> For the MAXPHYSMEM_2GB case, the physical memory must be in the highest >>> 2GB of address space, so we cannot cover the any of the I/O regions >>> that are higher than it but we do cover the lower I/O TileLink range. >> >> IIRC there was another patch floating around to fix an issue with overlapping >> regions in the 32-bit port, did you also fix that issue? It's somewhere in my >> email queue... > > That was a patch I submitted to fix overlapping FIXMAP and VMALLOC > regions. > > This patch does not consider FIXMAP region. Correct. > I suggest we introduce asm/memory.h where we have all critical defines > related to virtual memory layout. Also, this header should have detailed > comments about virtual memory layout. Seems like a sensible cleanup. It did seem like the defines for this stuff were all over the place. I'm not really clear on all the stuff that would belong in asm/memory.h so I think I'll leave such a cleanup to you. The second patch in this series added documentation to describe the virtual memory layout which matches how it was done in x86. Logan