Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1263591ybl; Wed, 14 Aug 2019 13:39:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ8aPGyivxFXddcc/uDqpmN4tUxnTBkl5mi7u3WrSMWWW5XJxtZkTtn2zQY1DM4Lrv4fC6 X-Received: by 2002:a17:902:e4:: with SMTP id a91mr1171472pla.150.1565815162432; Wed, 14 Aug 2019 13:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565815162; cv=none; d=google.com; s=arc-20160816; b=UYmjg7vbpywcdsSieRjDM+unoblacUckFkbqrhNqKcD8BQ82aoIYgWFtzbQrrBnVrZ Du4VQxMxLWqLbyEbbJK3cZf3GK7eUwB/NworDrB5+l45ixig5eCXPh+RKn7vTPg2IKj7 vA73emQeS52cx4xJq34jeT5KKxr9tw3Kc98lcwzRBcViI4fON6fKIpXud8mBBgqKggxz DW+196vlGXrIDuTuvIGlkeLhtnd2KgWbrHzO3wakN8JR5Yma1gkdblQNZGTPLnStoII5 ia0K97wuD4T3XIllgXEOJfBSkNzoCJkDH5GUwf7PpsWyRAEompM3Jbx3aIuqD++x+I7A z/tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=paXj73KYL+NWP5ZXUWHWrPw2G6gc8123BvsposI90Bo=; b=C/iVsWxdtpCtvTd7HdwngA+BJ4eurqwfb/sxkPXRqzs/V/ALB15g5mTnwwR47N/6tw 59CZ8l/IGqY5PPjYCSKc5vonmzRqZkaFiQfrmDB124I3sBhR6ciUU2NHAYDglfGyPYcZ KmTcr76/55gthoI9udpXXWTy0QTCs3pxiBqbFUbdFINimEA4WjKeJE1FV7In3Aw15ZEu ww5ILRV183G+vVXHihtC3PnBsD5pi+Xz3H+GKBEGCjpPe5z9ngMC5vz41bwi2Ae9Huv/ PXi+NrPvEeTqnZtoubNOt7IobMlmAu2ebKemF8o1w23FrHkASBo2DPAFE2By2QL4X/oS VTrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=b7YT4qyJ; 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 e18si472729pjr.107.2019.08.14.13.39.05; Wed, 14 Aug 2019 13:39:22 -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; dkim=pass header.i=@sifive.com header.s=google header.b=b7YT4qyJ; 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 S1728618AbfHNUJv (ORCPT + 99 others); Wed, 14 Aug 2019 16:09:51 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:42632 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbfHNUJv (ORCPT ); Wed, 14 Aug 2019 16:09:51 -0400 Received: by mail-oi1-f193.google.com with SMTP id o6so5559866oic.9 for ; Wed, 14 Aug 2019 13:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=paXj73KYL+NWP5ZXUWHWrPw2G6gc8123BvsposI90Bo=; b=b7YT4qyJQvfxELhlzPTrHH9UpVblpaV25D445MXc6bb+UY+fVx/aeZtzluWXnKPiWx jLuBLH/LeBWfVk2g1vd1tse0uAz3PZeuueEbpkgm6PbLhYKVaj+yAg2k81C1vkNNicdw qvYHxRhCDaRSKMdkm+fPpYQQC3GWt3tbevb4ZbBZhQrkKrw4H+lGfyI8INn0MokKpYHm WdkXWh1lOe6hWeYivy4SNAuUIUZ9QlUQniBqy5T/EvAVpq3cqyzEvWIiAtRB0j+6QvEc 3B7eaIFT5XRK23QpfIU+qyWCWEa8Ee3GOwZuianuwIzkJZagOL7JoKMKqcDXbYeKqqmS J/cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=paXj73KYL+NWP5ZXUWHWrPw2G6gc8123BvsposI90Bo=; b=ojuGTysIgu9VVkeGNFamSZqI7KoaAwJfLRPvfQhrHnqT+/QnyQswWq6PWjOL8BxGEb VDmMo+x+SdxvdFVw4n4R4D9SZIx4HjG5SO3R47VI4n6DzHeQyCCPrpTqDqYHrVR1g/cw eqRiBqt6S9PCmRZN9gr8dQX29B/olp8K5QiIxffvIv7WHwj4xTFUKzIcZMmFfFOByQ8/ M4YX9YuFEB0SkGZhHF6NRy8gY2XxI0ZRri7CkC+tPYmYgIf7z2eCVXV9L2RMl3hI2lBW ZiuLDuJn5QBAloPCv/a4HROdnggbdHJ0m64sOTTnfze41MzQIhoVAzs9x84nxmCrimRE qUaA== X-Gm-Message-State: APjAAAVv6Do1PCidxukqFnT7CZJ5uE/2XnH/s4C0eVC3wb6eYRmmhOeB SA+cNVwo0yHlyko5/T71egcJOA== X-Received: by 2002:a02:a503:: with SMTP id e3mr1164929jam.134.1565813389877; Wed, 14 Aug 2019 13:09:49 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id y25sm1071822iol.59.2019.08.14.13.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 13:09:49 -0700 (PDT) Date: Wed, 14 Aug 2019 13:09:48 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Logan Gunthorpe cc: Greentime Hu , Rob Herring , Albert Ou , Andrew Waterman , Palmer Dabbelt , Linux Kernel Mailing List , Stephen Bates , linux-mm@vger.kernel.org, Olof Johansson , greentime.hu@sifive.com, linux-riscv@lists.infradead.org, Michael Clark , Christoph Hellwig Subject: Re: [PATCH v4 2/2] RISC-V: Implement sparsemem In-Reply-To: <26594413-227b-2cc8-0f61-232a6a3907d0@deltatee.com> Message-ID: References: <20190109203911.7887-1-logang@deltatee.com> <0926a261-520e-4c40-f926-ddd40bb8ce44@deltatee.com> <96156909-1453-d487-ff66-a041d67c74d6@deltatee.com> <5506c875-9387-acc9-a7fe-5b7c10036c40@deltatee.com> <0d81412d-73fc-fa56-6f84-dedda72b9cc6@deltatee.com> <26594413-227b-2cc8-0f61-232a6a3907d0@deltatee.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > On 2019-08-14 11:40 a.m., Paul Walmsley wrote: > > On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > > > >> On 2019-08-14 7:35 a.m., Greentime Hu wrote: > >> > >>> Maybe this commit explains why it used HAVE_ARCH_PFN_VALID instead of SPARSEMEM. > >>> https://github.com/torvalds/linux/commit/7b7bf499f79de3f6c85a340c8453a78789523f85 > >>> > >>> BTW, I found another issue here. > >>> #define FIXADDR_TOP (VMALLOC_START) > >>> #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) > >>> #define VMEMMAP_END (VMALLOC_START - 1) > >>> #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE) > >>> These 2 regions are overlapped. > >>> > >>> How about this fix? Not sure if it is good for everyone. > >> > >> Yes, this looks good to me. I can fold these changes into my patch and > >> send a v5 to the list. > > > > The change to FIXADDR_TOP should be separated out into its own patch - it > > probably needs to go up as a fix. > > I don't think so... VMEMMAP_START doesn't exist until the sparsemem > patch so it can't be changed until after the sparsemem patch and no > sense adding a bug in the sparsemem patch... OK, that's fine then. - Paul