Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21973555ybl; Mon, 6 Jan 2020 15:18:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxIAcFWvCTTpUbqPvN3AGvHo/8PiLBpeSigyTWyG3/xmkq0yevYJVSeTszFvCH9WtTHK3lX X-Received: by 2002:a9d:69ce:: with SMTP id v14mr122023709oto.248.1578352722685; Mon, 06 Jan 2020 15:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578352722; cv=none; d=google.com; s=arc-20160816; b=rkEPWRH/+Rf8iUHxblKw8lwEQ9rLdu7pBaEIcVA4CJCVpLZKIaUm4MZCGvpEF20hzE 5RjA/33jF58JQDGn/e4Z9ob4vMnRb3nIFF1Ezq9G3GZt66a8NutJw7QkeR1uNPOzGpcT WbPNnQb6RTa+3LhYAQJI1xq5O6Lv5zJc1GnBfy0iuL9ZaMpQkdeZTW6O7v4VgDCTtSgl achgGsTgEePcH2hfQcHkgAZJB3koyh9T6bwKGUpF7pv4nmy9REnFtTrIQEHcInhnQMVb 6yoi7H4spJqTLzSwVxeFxBPG5ZkEOTWypHh+5Cf8R4ZywyFmasPW11LQWlXZnvkL1ttV XTow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TrkNrlsI6gf+UgcIdoDUEX3iqa/Oz0F6ZIOtZxRpg7U=; b=c0KRCECyXKkM5gB9+iHtIkOxXkeCIEBLRyFW7ya23SMo9aBxwTfELpXzLS/otq+B3k NThMtGnonJV6bgsH8CyDeVgTl38+E0vy9bsA9daNXzxxm9YqDr7y894J9Zqbk3+EzDzV nvK5fH11mMenqEUbryOUqXqhwd7St+ughww44Vv1Uj7M0CKbGxD1O3zpXyVmouWAz/IU OCbHs82X1LpJbMPaEDcKzKjOAV/LuAGgpiisohun4YwJsdkq0KfI+r+97gzm9JKV0WvD QfC6q+wmz1HTY3FCrn1oug3xjHt2AQRy/NpkvEJcYE+9qHJZwwWra5bB0x6oAb7hJwvM qzOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=h5aYFg1L; 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 l16si32560593otj.59.2020.01.06.15.18.30; Mon, 06 Jan 2020 15:18:42 -0800 (PST) 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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=h5aYFg1L; 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 S1727308AbgAFXQU (ORCPT + 99 others); Mon, 6 Jan 2020 18:16:20 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41764 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbgAFXQU (ORCPT ); Mon, 6 Jan 2020 18:16:20 -0500 Received: by mail-pg1-f194.google.com with SMTP id x8so27545526pgk.8 for ; Mon, 06 Jan 2020 15:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TrkNrlsI6gf+UgcIdoDUEX3iqa/Oz0F6ZIOtZxRpg7U=; b=h5aYFg1LHy7RecocWz2pJ8zPdAcz/Zlxf0A90TagTHHfzfgiLT7dDpHo3qzZKG5T7h x6bJ+8DtVgwqQG8oyrM0gdwnUJLKdJybBqYaDsW7IsaXO6CsqpcneYkkRi011gVD/Zsz 9t98bw6eht+s2PTB+3QTmsmDwt8fnshoyGsbUiAghLSWmK0QERKfo7CkKuU6f4XN8JtR qN5hg/lchx9eiPOk924DnTRLTxXolWcdAnCmvRJVRpJQCtctjshI1OIAiZukYPFvHeVX 8r7YjAUrMbKcFgIX4is99Zkb3FsrbRVEKe0fdyj3WsJ5BnfoEy7Dtb+atpT1zhk6ERzt 0lQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TrkNrlsI6gf+UgcIdoDUEX3iqa/Oz0F6ZIOtZxRpg7U=; b=PxhpFgqOXud7hzlMacL0fPoIuTPrycC97SlM+tJWrDyWgprWFvWKoA6UDzcI/cfG0p MbI/RzOAis/xJHSCa7sN2x6pWjL/rtffFx+wK+76YQZfFFuUcWoO43zZizJhtgC8FYQA vfHqUxUvTfYsv02H7okCKViAX/Zp/HJqYetCr8lIw5/CCih+5hCuaV6sLvRHEcXikJVg n7DiaVcRiseyp1WSTHD87fCmrLFocD6VVMS7s7Z+SHt336gV3ZdANIK/3V8/TENKy/Nl O9Dk+W39sAb6wyHDucucHoBPBpAQZgIjtL4+6t+eghgI14teWlyG+wQj76vJGWF106mH NVUA== X-Gm-Message-State: APjAAAUTz1WIVDhxNAilJWBjtuZwpYmiTXksrEcdYZLIedzOViLD4kVi ENE9m0M+MD1dJkM7t4FRfbcP4g== X-Received: by 2002:a63:4c4f:: with SMTP id m15mr112630946pgl.346.1578352579414; Mon, 06 Jan 2020 15:16:19 -0800 (PST) Received: from rip.lixom.net (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id s131sm65052995pfs.135.2020.01.06.15.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 15:16:18 -0800 (PST) From: Olof Johansson To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH] riscv: keep 32-bit kernel to 32-bit phys_addr_t Date: Mon, 6 Jan 2020 15:16:11 -0800 Message-Id: <20200106231611.10169-1-olof@lixom.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While rv32 technically has 34-bit physical addresses, no current platforms use it and it's likely to shake out driver bugs. Let's keep 64-bit phys_addr_t off on 32-bit builds until one shows up, since other work will be needed to make such a system useful anyway. Signed-off-by: Olof Johansson --- arch/riscv/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a31169b02ec06..33a20fa046e0a 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -12,8 +12,9 @@ config 32BIT config RISCV def_bool y - # even on 32-bit, physical (and DMA) addresses are > 32-bits - select PHYS_ADDR_T_64BIT + # While RV32 has 34-bit physical addresses, no known platform + # uses it, so keep it to 32-bit until one shows up to test with. + select PHYS_ADDR_T_64BIT if 64BIT select OF select OF_EARLY_FLATTREE select OF_IRQ -- 2.20.1