Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3191741img; Mon, 25 Mar 2019 05:44:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyduGnxR34puSBRFUJQs4LGQ5yxDKK0PLQbQizEa9KHuuSN9jbN1OivgoaLMgJrwuUWTmRI X-Received: by 2002:a17:902:1102:: with SMTP id d2mr23827718pla.329.1553517856815; Mon, 25 Mar 2019 05:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553517856; cv=none; d=google.com; s=arc-20160816; b=K1eDdyq482WEbXsGg//ued8iq3n/+j4V1b+wejTpBUlclxVtOAh2b+WaFhMVjdv49/ W27OwHNtCnxxN6xIUCuw+cQeq8Q6YcBShzLFzvAs7qJ34AOBfQH91KD9ulk6blhqHIdG Ptg4B8BWMdJ5Jt18T1IDtPk5RNvRcJb/WWxuL7lpoc6MYHAjr9f4aWSuQynJL0cIWOX8 O0iAC9HnMizQ4sbKZK9NtwOYrBqhwNOBbw5uS2TGzwtHwLRxB4FHh8l2a1nUKgO9+AUp v52NqIavntP3HO/mmMLKc+Nc3vBRxtvHL4/zwlQNGlis+kQI5mKXV3ADCWoAHsDYmeqA C3bA== 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:dkim-signature; bh=mFzQ7GNWaVAumVgyG+cSi21Ho8TZd42FGY9Arz6Y4yY=; b=Q8D2y3KoYyxbNN5jhWQqJocZqTjLkkSO4M+cgUS4eGtvqNclSbhKngv4DKdAYXAyO/ cZ7if7R9WERskbwksH3FDTYJCwiRU4f/mL/+0ptF3VrZ0AkAz877IF315gqDtMJ+xRvW zOJmD7bjnMF7dBq45u+Bfl5okpfiM31Qm9pchERf6YUN1Mm5ZOUdEBI0WGu8GxRozqG2 9yZ1dW3VNXr8KIq/wGmqIAQhLfZDY9R6OfAVzYnrn9cEEEpwYgeAYOusFjXDTiO5B6Iu LoLDI5tkfmTG1IG0vZzf0iZOYcLIF6w+B7TYXOfwNe9qrPhAb6K0j+hHuu/c+1Qsy/Ls Ku/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=G2NeGcEm; 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 g5si13305926pfi.60.2019.03.25.05.44.02; Mon, 25 Mar 2019 05:44:16 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=G2NeGcEm; 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 S1731322AbfCYMmm (ORCPT + 99 others); Mon, 25 Mar 2019 08:42:42 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38160 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731077AbfCYMmm (ORCPT ); Mon, 25 Mar 2019 08:42:42 -0400 Received: by mail-wm1-f67.google.com with SMTP id a188so8877562wmf.3 for ; Mon, 25 Mar 2019 05:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mFzQ7GNWaVAumVgyG+cSi21Ho8TZd42FGY9Arz6Y4yY=; b=G2NeGcEmWHclffPMp8dUCG/6loXXv/rvUbFk/uX22GzsqP403bHLIUxlXsgedWXZNa 6Uke4A3u5L6eGGQxsJ17AhBLXkINWZAqMsZDzT79MdtXk44EAgO/vtt1HmxWqXbHMNkA vXI3MMf2cKs3EU/4a19bvD9vmAAaCZJdCp8hh8yf6EW1NupQOnAz/4HskGu29O/OFPRh 4PiR4lQ8MMejiCsz8PplG8dDnoL+FlDAnpIeziQP70bZ6C6ddF29s2xQlQj4HS1Qf1KR PjBICPXdJE4KjzD0QWrrqaPqPFMdLi17WRUNIPnq1CEgduHHAKsfBuk09F9taifS4w0A KkfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mFzQ7GNWaVAumVgyG+cSi21Ho8TZd42FGY9Arz6Y4yY=; b=TW7jDp04gXfIeoAD4QMKkHVqNx6rhYe144ujwCJn7P33ILMXTBPobrApXsi4/iSgnc bI1fgALowbVBSyq5/S5YCcUZO/UqMsaxtQyfZTMn9OR/BeFUDW6qPek6fQS4wo7SdDkV B2lMo3mxTYv6nMxMEer1jae02UTiD/ijkVXM69hXWoV29jassPz0Fmtve/HNw8I8lnTk Z8gPMLObo0dgU47CWQGxX3RGC1Jx6bYdxEc6RNOjvgARLeHP8w1wj9YReUyjaYYr8vPW 6cPMEruUJWkriUskKy3lPwsHOAzrCpy71rffLhQs/L6KtGtMlPQfppujXofxBYBIyBEJ 8DnA== X-Gm-Message-State: APjAAAX4kWALCz+UYaBhR5Jxudb6goKDc5OOJ5i8QHzQ41E0p/2kmR46 zXaV0VKwFe+rTtwzB8GqkoAZsVMgmUpfdThkN5gARA== X-Received: by 2002:a1c:b455:: with SMTP id d82mr5854534wmf.153.1553517760087; Mon, 25 Mar 2019 05:42:40 -0700 (PDT) MIME-Version: 1.0 References: <20190325092234.5451-1-anup.patel@wdc.com> <20190325092234.5451-5-anup.patel@wdc.com> <20190325113935.GD27843@infradead.org> In-Reply-To: <20190325113935.GD27843@infradead.org> From: Anup Patel Date: Mon, 25 Mar 2019 18:12:28 +0530 Message-ID: Subject: Re: [PATCH v3 4/4] RISC-V: Allow booting kernel from any 4KB aligned address To: Christoph Hellwig Cc: Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 5:09 PM Christoph Hellwig wrote: > > I'm still not sold on this at all. It is a lot more code, a lot harder > to read code and all for a very narrow corner case that isn't even > going to be enabled in default configs. The old page table setup code does not exist anymore. It uses new code for 2M mappings as well. In fact, it will also try to create 1G mappings if possible. The code is lot better, readable and flexible. Regards, Anup