Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp912637ybi; Fri, 2 Aug 2019 06:22:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvd84Ni40xp/LUWwTUc8FcP2PzZn8GAZ+dTlfc0h65u3C4tOrPS+y+D2LACb8/x8uCMLw1 X-Received: by 2002:a62:2a4d:: with SMTP id q74mr59768247pfq.86.1564752163050; Fri, 02 Aug 2019 06:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564752163; cv=none; d=google.com; s=arc-20160816; b=lcFR+3yfSWNrUbNJOpT+XMD4U7JaByOEoD4VBgVh21xDmF2I+DmaBYR7aqmc45FNgL 6hfvl/54OXfvkomgb0EtijF9/F6lIaUXnpNReBWxTdPARe67rb74OIjHrU493qboOg0K 1whJpgIZNzGQMW0RlMX8QnUWKFY3u7dU8/bsPKYXnokqMBUx5BcTLflYiBAgUawhVed5 K3nbFjkqQlHBdiU9A1FrTGHEIBp0mzssQWo9aTLIpG1FGrFhIz2Xg0wSaHsjpjSX1lOK Hm1CDokTGmNtr4PewmY0+F665FdN5Zpl60wlgtKN6/To771pt9lTPV2+ab1fYTzbcbpx F/qw== 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=v00Ip7tFTxfOW7ci2f67H952n7pZPTilSNtqWzGu0Kc=; b=b/XhM1wuUgHT/f9U+WdYKiGRrmyzamY8QFFMerLF2FDtupVXYmqmPMr6pO9FtAr8n9 ELLa2/3r+8VLqNGTAN3sK8txtI8apXK4Rn0t+3uz3M62XiDDEHQqeYEzLHmXsGBB2wJo tF4fuow5IqUZUrEJE8rK0CfqirYAO38FpxLkSGAla3o+pPKVdLco5LKTeViBdvEl5NV9 obgGwVnFWj+f7cELOm/bZC9VJjn31u6CeF0cus1b5FOlvZwtDMfpiMKxgFuXY+TUz7OP 7dbleytbmmYFS+VCYRfspkQDkhIP8VfGo13paiS2OF3fH3IaabZv/UV/jxTwJkb+NA0j pOtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QMntMBRp; 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 g12si5161640pgs.249.2019.08.02.06.22.27; Fri, 02 Aug 2019 06:22:43 -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=QMntMBRp; 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 S2404430AbfHBIoy (ORCPT + 99 others); Fri, 2 Aug 2019 04:44:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56166 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730872AbfHBIoy (ORCPT ); Fri, 2 Aug 2019 04:44:54 -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=v00Ip7tFTxfOW7ci2f67H952n7pZPTilSNtqWzGu0Kc=; b=QMntMBRpF4JmUY3VNLhxAr9gu 9J7x8c1UZJylRbJCbHSbhFuOCugKaSW/zMuZ0MKqz3y9tQ7LCKVDIVgkb7mNgNgtBHuttyvui9yFC 10dYHUbbA2H8or9294FPrr9iobMHCelDY/LmJxnT7JH11SpB9uSMxJi7cpoOCbdHhzp1Dra+R9gfk 6BL2aH04Qh5ls+AZ1N9Xo5gxGTOBystLL95Khj4l99Qk1jH/VzMlPx1115zqRMBx5fHuDFXB6w263 T6BWWDcHTWE0XuYw6Lghmff+d9Kg6tDfMN0kHuGp/d1Uec+uQtYmgrAVOIf8FTEx+CwbvQmwEPr1C v/TQhHBfQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1htTBF-0000mV-5w; Fri, 02 Aug 2019 08:44:53 +0000 Date: Fri, 2 Aug 2019 01:44:53 -0700 From: Christoph Hellwig To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Ghiti Subject: Re: [PATCH] riscv: kbuild: add virtual memory system selection Message-ID: <20190802084453.GA1410@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) 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 Fri, Jul 26, 2019 at 01:00:49PM -0700, Paul Walmsley wrote: > > The RISC-V specifications currently define three virtual memory > translation systems: Sv32, Sv39, and Sv48. Sv32 is currently specific > to 32-bit systems; Sv39 and Sv48 are currently specific to 64-bit > systems. The current kernel only supports Sv32 and Sv39, but we'd > like to start preparing for Sv48. As an initial step, allow the > virtual memory translation system to be selected via kbuild, and stop > the build if an option is selected that the kernel doen't currently > support. > > This patch currently has no functional impact. It cause the user to be able to select a config which thus won't build. So it is not just useless, which already is a reason not to merge it, but actively harmful, which is even worse. Even if we assume we want to implement Sv48 eventually (which seems to be a bit off), we need to make this a runtime choice and not a compile time one to not balloon the number of configs that distributions (and kernel developers) need to support.