Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3315823img; Mon, 25 Mar 2019 07:57:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9Yct2EJOenZ4/6Upuh8162dwXrK9TLRqMFkP9Y1mq+aYQFuY8uKzaOlf5viJPgrU34NXD X-Received: by 2002:a63:5a20:: with SMTP id o32mr22683162pgb.225.1553525835564; Mon, 25 Mar 2019 07:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553525835; cv=none; d=google.com; s=arc-20160816; b=br8QuVxGsk4XZjQ2SE8JtB0vvXrP4GiGZij8gGgZm7vWqlbRQe5NY2wfqrMq9/hkTJ qqZfZDD/N7gCpQXNBaRgyRyzXp53zyyTmCjlyOXZT4qMXiw7EEP1BBUwxSRh/fjgCTxV 9xaLcVAPKX9yshira7A1O09xqjNkreEELJmHaRmOiEQoWVSc/emO4hZfdDbGf1W7mQ3I TuzalBrO6wbVrwwTASMHtvmPJziqKKcM1mlcNn1I/enL/+aXGO/hLO+jTsOQjxEySDTN 5Y090YPtLwLkoN6SY6C2Gyb1eQN3k1XNWQ0jI4YrxjJrOzgMx+9rNdxpTXqjCoDsNmtF pFJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7boLzv7OU15Y19S5FvbZQWmwpOQOYrnoODQNpdHMVgI=; b=i8OcsSDeARaF8CZHE4gNdE3x+2jB4IJtAnME4RIcU4yqH7/TLCD8MYwLlEg40YIYYq DhgXVRR+l9Ls3+fZmIM58sdLLrtT203APFvC/6YU1fUroB0q3uyqu9kR/+JmjujYsoKW dMrmySZ6hWKsaVKA4c0Ixo1wuK9IzREW1Isy82BQXNd+gGqMPByKQP6K3OiwWRt01rmk ggjbMMbeejdGHvkVGyvlvVLkUtrgQvzXW8YTbYcuz72TdciiYw9pRh8uM98HjU4PHaIc D/bBlEgKmD93gKXz94lVM+uG0/+Q7BDPYj8hUQqfkTEcMAckSAMG/iOwcewKhxPYqCYi REZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GD4ekwVz; 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 cc9si15167068plb.59.2019.03.25.07.57.00; Mon, 25 Mar 2019 07:57: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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GD4ekwVz; 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 S1729354AbfCYOzw (ORCPT + 99 others); Mon, 25 Mar 2019 10:55:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44478 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCYOzw (ORCPT ); Mon, 25 Mar 2019 10:55:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7boLzv7OU15Y19S5FvbZQWmwpOQOYrnoODQNpdHMVgI=; b=GD4ekwVzqNCOzaOhuFM2SWuli yHytAUlgLfSKawG2OgIl/YGWahFGnQMb+Rm6wFGxCLeXzKmgQ6e04g+cyVKgf3hNwpex7psRwBsIH pSEj/H+WI8ibooNp2hCPpGmc+ZSRc9sFiipMNPYWAtHHVhIoq8lbypqzMVlkrqdEnTiO0C8g60hW1 QFN+GBLdOSbtsza0WxRSy8zloi5NMZTYwpt70AvPcbQ9gnjJkkP+W6Y8U7aQL0TBBmzwmRf3UJv3h /aD61iYHrjslVSnABB3QGY6hQwKJLzybwvWwzPLJ21i+hF8TStmDitpXUsRtZoc/ouTZJSrOqI6vO x4VMOiKhQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8R0q-0005Da-1o; Mon, 25 Mar 2019 14:55:44 +0000 Date: Mon, 25 Mar 2019 07:55:43 -0700 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v3 4/4] RISC-V: Allow booting kernel from any 4KB aligned address Message-ID: <20190325145543.GA14826@infradead.org> References: <20190325092234.5451-1-anup.patel@wdc.com> <20190325092234.5451-5-anup.patel@wdc.com> <20190325113935.GD27843@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 06:12:28PM +0530, Anup Patel wrote: > It uses new code for 2M mappings as well. That seems to be an odd view - yes some code is shared, but we still have two different ways using ifdefs. > The code is lot better, readable and flexible. better is in the eye of the beholder. It very much is not easier readable with the spurious indirect calls at least. And it is a lot bigger.