Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1357621ybl; Wed, 14 Aug 2019 15:37:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiR4NwMBB5zzk4g3MuwGa9blh0ZKoeXcotFH9pgHLMRFHqWrRx7pnK2b/SQz77Y+0CYjAh X-Received: by 2002:a17:90a:feb:: with SMTP id 98mr155803pjz.55.1565822245226; Wed, 14 Aug 2019 15:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565822245; cv=none; d=google.com; s=arc-20160816; b=mCHrosrac+M2QCzAe0a5VCiaqxxuYkfQe5yioFSMxqQtqRWYKYKAbrajytYtalf0Vz adOvWtU78+0M47z7RLzJNUuA7aCdl4+rhuDX/ytz7m9g78UULKRoImg9DEouoP6mcGvG /VhJBgdJqK1Y09SB4fuLPe3oBBxNO7mTwHnRXY4hpmDzuJ7JA67rgHX4Usu5QsWMfymI T3cutd1RghPY4lPQ2SlXORlVuxukLrdgzAI2jXv0iMfNnTNTKeBoDn1Ui49nR2Gketst JQa+/IWMCgN9/XkVo6bGTD19ykAaK19xKjlHyWpEbkmhV94gYqtDO8gckfwEY/hIrrWN waYw== 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=kXJGVOREPsvdyC9I02rRRJ9QNpY2RsIiIWuUF+yDP6E=; b=Hma9tu4qKt2MuKS5TvADXwseKt8xH1KGtrAInMjlqQatDhRpUUNzDymQ3942k5Xgoj QAbvJqYzXjlYpc00V/qcSkqLE/HfBpqy8QDtCh9xYlH6DeSqHjYcdqbYNX12C1Qib2Do jj8gOrK/ZJWpA3VjU3vf9adSxcdh+wxiVK0Niz6Z0YOmNeEoL1vI+JjHbRV92oBYtBGL 4ahdmvkxKbQS4L5ZRabYb9NLtJIy/+OdmLF/B0qaCc/hT5HQmjkfFW0LkjXLeQd/b/7M am48N/7BSEsgJwIPvYB+JXmJBoRqZIzswHH8K2GQ1p6ymj4BW8ve9/e7MnDkRgC9mz02 WK2w== 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 y20si683963plp.335.2019.08.14.15.37.09; Wed, 14 Aug 2019 15:37:25 -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 S1729155AbfHNWVZ (ORCPT + 99 others); Wed, 14 Aug 2019 18:21:25 -0400 Received: from ale.deltatee.com ([207.54.116.67]:42768 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728461AbfHNWVZ (ORCPT ); Wed, 14 Aug 2019 18:21:25 -0400 Received: from s0106ac1f6bb1ecac.cg.shawcable.net ([70.73.163.230] helo=[192.168.11.155]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hy1dp-0005eZ-Iw; Wed, 14 Aug 2019 16:21:14 -0600 To: Greentime Hu Cc: Paul Walmsley , Rob Herring , Albert Ou , Andrew Waterman , Palmer Dabbelt , Linux Kernel Mailing List , Stephen Bates , Olof Johansson , greentime.hu@sifive.com, linux-riscv@lists.infradead.org, Michael Clark , Christoph Hellwig , linux-mm@vger.kernel.org References: <20190109203911.7887-1-logang@deltatee.com> <20190109203911.7887-3-logang@deltatee.com> <0926a261-520e-4c40-f926-ddd40bb8ce44@deltatee.com> <96156909-1453-d487-ff66-a041d67c74d6@deltatee.com> <5506c875-9387-acc9-a7fe-5b7c10036c40@deltatee.com> From: Logan Gunthorpe Message-ID: <8b7b6285-dd85-5895-8653-be1f6f08cca8@deltatee.com> Date: Wed, 14 Aug 2019 16:21:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.73.163.230 X-SA-Exim-Rcpt-To: linux-mm@vger.kernel.org, hch@lst.de, michaeljclark@mac.com, linux-riscv@lists.infradead.org, greentime.hu@sifive.com, olof@lixom.net, sbates@raithlin.com, linux-kernel@vger.kernel.org, palmer@sifive.com, andrew@sifive.com, aou@eecs.berkeley.edu, robh@kernel.org, paul.walmsley@sifive.com, green.hu@gmail.com 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 v4 2/2] RISC-V: Implement sparsemem 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 Hey, On 2019-08-14 7:35 a.m., Greentime Hu wrote: > How about this fix? Not sure if it is good for everyone. I applied your fix to the patch and it seems ok. But it doesn't seem to work on a recent version of the kernel. Have you got it working on v5.3? It seems the following patch breaks things: 671f9a3e2e24 ("RISC-V: Setup initial page tables in two stages") I don't really have time right now to debug this any further. Logan