Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2469475ybd; Mon, 24 Jun 2019 07:01:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLrwfvEB4IhOBil98LgZ5QGlSa7ctPWwaKPv2bTeR1dxi5m44SEKwk9FjLuy1NgJfL2YVM X-Received: by 2002:a17:902:e30d:: with SMTP id cg13mr35181905plb.173.1561384876277; Mon, 24 Jun 2019 07:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561384876; cv=none; d=google.com; s=arc-20160816; b=TMmLSK9rpzrUa3xp96VrDoTqLyIasZH/dO/8+Y2ARk6z2kB3FXGP6KETNF7GMPZ4Ng hPIhh/i8izW/h0IPIEO21jpUXn3IXn6uZT+a3lE3EnmoOKtdqcJdMuJh8Kq20s5Rhgrr 1ZDu9Iu2bwLZ/OflejtO+/mno/Q1ytX6NyaBsEA4NAA48mF+94tMvaeDFq+aleb/xRFt UjBhBFw8XUJmdQXCxD1IypLerFH5flB3NmobLTRdtCl0T4u1Psq8PZPC2781oR6MKuYg k5zt0FAcmuqbmP7mOxh9Gw8oetiOH18QR42rgViWBNF0XKAsvhWFecIa/Zb3iVeUxPls gdYw== 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; bh=1aGT1T5nbQpmPAM03lWMCmYdwSD2s2w2P4atC5NfPRE=; b=SHGlqyZOumj3RT8YpFX/sw92xQ8h07eICJj8Z6su4Qr0rM0ntX3PmjTmPMUGOTQm5y +G2yMrk30TjHPwifoeUb3GF4Qdu/Rjvtpr6dnks3AbrnsHOhYuanu8Io7YMhFsnA4Nht j6hLxA1eP3ToYgsOD7avgDq2sh3KLx5+lT5ZV46XTGkbQvWqMMRUBaOyf+vhThy45Ntq 0MRldHtNu12Ah9OnbSJw72sLAu5/dVxfzMIqvdo619uN7XBPGwL3TU0QiDFMFP/qHhbl ZbWORvrWZGiyW5dsfkzn0cLPeyOI5nLqMYGbs2C07wTpbxScaHGnev+yuhryxpyb3s5/ D41A== 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 f96si10723163plb.339.2019.06.24.07.00.59; Mon, 24 Jun 2019 07:01: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; 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 S1729592AbfFXLzB (ORCPT + 99 others); Mon, 24 Jun 2019 07:55:01 -0400 Received: from verein.lst.de ([213.95.11.211]:54634 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfFXLzB (ORCPT ); Mon, 24 Jun 2019 07:55:01 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 647BB68B02; Mon, 24 Jun 2019 13:54:29 +0200 (CEST) Date: Mon, 24 Jun 2019 13:54:28 +0200 From: Christoph Hellwig To: Vladimir Murzin Cc: Christoph Hellwig , Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: RISC-V nommu support v2 Message-ID: <20190624115428.GA9538@lst.de> References: <20190624054311.30256-1-hch@lst.de> <28e3d823-7b78-fa2b-5ca7-79f0c62f9ecb@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28e3d823-7b78-fa2b-5ca7-79f0c62f9ecb@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 12:47:07PM +0100, Vladimir Murzin wrote: > Since you are using binfmt_flat which is kind of 32-bit only I was expecting to see > CONFIG_COMPAT (or something similar to that, like ILP32) enabled, yet I could not > find it. There is no such thing in RISC-V. I don't know of any 64-bit RISC-V cpu that can actually run 32-bit RISC-V code, although in theory that is possible. There also is nothing like the x86 x32 or mips n32 mode available either for now. But it turns out that with a few fixes to binfmt_flat it can run 64-bit binaries just fine. I sent that series out a while ago, and IIRC you actually commented on it.