Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2026417ybd; Sun, 23 Jun 2019 22:45:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkozl63SrWVNxCzVybVOnsTWDJvgJ46fkq2mJk7VINVBCceVTtJixiZPqJDn4mS7ZFfYhd X-Received: by 2002:a17:90a:730b:: with SMTP id m11mr22539599pjk.89.1561355123033; Sun, 23 Jun 2019 22:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561355123; cv=none; d=google.com; s=arc-20160816; b=ooXc186++mUhsXUBx1214pXsy2QPV0rkBUh2FgEEl71OZHbQlmBAwt23oSkEia5Beg xD766Qw1RLz5VINJR4nqA96AT1ySbSjxL/jNcR920FdT/q4DpkpZCxlmA6zIPeLje8Xe LnVvjotbuo90rzPp7ymrOfcOrHSLK3wWWWMJsiSDLvwfBzxCs8vQjUEONfGMxOUiX+rd HOES2fXYxi4Fs3ag5SRR5SdTOg9AscVJ+W7jTv1nTBPwzR3rFiYXdGuWL1Zna6/E6Siy fnS8vvH8cx94XPOBD4ge1sqnjbklshqD4iuZXDKj5pDGMKtX122Bz0EomTedC3Tqihga 6rwg== 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=G+0O3j+cgCRbigr/X4MIfnZa4yWmCGHY98UjePy9hlI=; b=ZRCTP4BnGI+FqxQ/PLLQbMAo/xhICXaDduG/2fhFu23y9YOkqpbs2XbETOLwu5eYdb 5zeNHaC82EU2Qsi+51ENCeS/pmVZ9ZbHsp/N3QTkdekLKucS8Yuo+UuYKYRk6c3w/gLc CUph2L39qTBi+V2qmS3PEGAP8w8MtfsmiU1GMf1xCiMuucEt5Ndrl8Uaw9EV3udFanNB FmX7P9wmy37u/Ite1As/9YYYk4G87uUfM3ApDdHSYMrbOkotSU+yFvRTR9Vj4/2XzMHD nRqDGwVHAjNaSBO3Q/bjkE4lz+YZor8I95OaX2+63iMSKmqhs4+2G3YjJWqaQK1e0fDC ISpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WnxrlYY9; 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 q2si10108924pjq.89.2019.06.23.22.45.07; Sun, 23 Jun 2019 22:45:23 -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=WnxrlYY9; 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 S1727100AbfFXFnX (ORCPT + 99 others); Mon, 24 Jun 2019 01:43:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34612 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfFXFnW (ORCPT ); Mon, 24 Jun 2019 01:43:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G+0O3j+cgCRbigr/X4MIfnZa4yWmCGHY98UjePy9hlI=; b=WnxrlYY91HMHTqus7NTc7TkvF mDPWku21XSxCKeAPWG/rATrzM+mOEukkUC/aepN9oWr4+USpYvA6rpAheJljOmRzQv4Fosq0IXzQ5 /lR09sihl/AgaGkaKRV8KZ8qt+O/HskRSKeBwYzk/8zosnQmWPGzXDAlZlrhivb2Ac9As7JAEwRNJ azOD6kksRz/fZE0Xp3xOqBk9GkUgfdaz3LB3v81wBIAkvvg+0PxRQ7uMYCsFgPJv5SXT1g+IOC/KD cbyUJ+5yxKazc4N530ff+eGFiHIO6qnd842pID0hlRpAQzqQiX+fvlTTJg6I++Na6SvSjjsEUibBz zXKRYKCwQ==; Received: from 213-225-6-159.nat.highway.a1.net ([213.225.6.159] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hfHl5-00063u-7r; Mon, 24 Jun 2019 05:43:15 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: RISC-V nommu support v2 Date: Mon, 24 Jun 2019 07:42:54 +0200 Message-Id: <20190624054311.30256-1-hch@lst.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi all, below is a series to support nommu mode on RISC-V. For now this series just works under qemu with the qemu-virt platform, but Damien has also been able to get kernel based on this tree with additional driver hacks to work on the Kendryte KD210, but that will take a while to cleanup an upstream. To be useful this series also require the RISC-V binfmt_flat support, which I've sent out separately. A branch that includes this series and the binfmt_flat support is available here: git://git.infradead.org/users/hch/riscv.git riscv-nommu.2 Gitweb: http://git.infradead.org/users/hch/riscv.git/shortlog/refs/heads/riscv-nommu.2 I've also pushed out a builtroot branch that can build a RISC-V nommu root filesystem here: git://git.infradead.org/users/hch/buildroot.git riscv-nommu.2 Gitweb: http://git.infradead.org/users/hch/buildroot.git/shortlog/refs/heads/riscv-nommu.2 Changes since v1: - fixes so that a kernel with this series still work on builds with an IOMMU - small clint cleanups - the binfmt_flat base and buildroot now don't put arguments on the stack