Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1197200ybl; Tue, 13 Aug 2019 08:50:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqycXPeopsqwsSc+i4fhKPGJmnr19LUANwKXfwVmj0b7MpjrF5f3r6XENAZYQgapWmV6UMeN X-Received: by 2002:a17:90a:b312:: with SMTP id d18mr2765288pjr.35.1565711404004; Tue, 13 Aug 2019 08:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565711403; cv=none; d=google.com; s=arc-20160816; b=L8pivZ3TkJGw5qoT3qC74/xsv6AzKSt6EIOzRJNIYsKxmgMhHtCA8lfiOKG+pO5YAh v5EYYPuIMmDkL4zz39h2QA64IHfYbvy7hVsrGAGKaXUq746FSLpAnSuJ9vRbddVTkeXR ajHclcLUPqNFA6zEaGJ96WMWlKKLpQ4S++LWtiH7X8hOegiAI4VGsnwN2m1B6lyx/wpG O46B460rqUdQKQMlXYpOzfk5FY7UJy69q33g+sGwMUKKB0E0DCXA3JzdkrK383aFAETp QOAbNsRLP3X/GSE86KBB4cYtTGQG/JhdbPia0JJzP8H134WP4ANBFNuIeFqMdgpwK2tg CzwQ== 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=ckOuIy1ZaNf+wRY3GrPXdDHjbkqdtSLWeZLMyJVN8FQ=; b=lIJlNteRawTlJ+hIb2F3hP2JI/7h1EXmG/cDkk7YZswiN1WhgkMp5bDiX43pVEvt2O yw+JBALyL9VUjF5QPRYsjkeB0RgWNpr0ajvomlCkGUmSR/9dFB+wiDcxwkIiMxnqHr8t SJpy1hez0Kyuqp0K9141ygJDPHUKJ2qSIxvJRFcJOuMz33Wo+Adqvf/J1MQ+BnVHgIrr xxxpgNdqfAEK14rdr7vnrGHb86G25pNDYCYJi+kp6YcjJlq5N4BypbJXVIf2lYy7W/Ku /ymJdUSdFeTuRKpW9y3N67fNWisIcaWnh8IHXTPU7S73Pnbq615kKFlZlzyDzKqjw+5X 4JTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=s0WyrBjt; 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 z17si63895397pgj.147.2019.08.13.08.49.47; Tue, 13 Aug 2019 08:50:03 -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=s0WyrBjt; 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 S1730052AbfHMPrw (ORCPT + 99 others); Tue, 13 Aug 2019 11:47:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42976 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbfHMPrv (ORCPT ); Tue, 13 Aug 2019 11:47:51 -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=ckOuIy1ZaNf+wRY3GrPXdDHjbkqdtSLWeZLMyJVN8FQ=; b=s0WyrBjtDASPRwJOuoBy/JIbT z+EGQsNkqhniSiOj/wln3YVwzEkUqqJkJu+uug/w/FblIEKYkz3gcWe6cNfc/h8dXir+2hCzeQvXa mI/YlyBoEO8ZK9i2jxaCmctp7O7Xn8TCCTe//4D+Re+nj/YgFC8NDpnCB3nscrUxCPXhqyfJ3xCve 8wkQiPRq4V1B5XIwPkfkr2kw3EZxz2Iy/IAF7+ZAFNKSCwtLG1f6PWcF57yZDUXtPQTPwQnW/gt0T UORxnKoRbh7cLN2R3sdjNr6owKLrijo8tmhBF2Gfi9I+OypLyaIGb9Gr01rokXD04ZVfA2c39ORZh oMpb7I4EA==; Received: from [2001:4bb8:180:1ec3:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxZ1Z-0004hr-Fi; Tue, 13 Aug 2019 15:47:49 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: RISC-V nommu support v3 Date: Tue, 13 Aug 2019 17:47:32 +0200 Message-Id: <20190813154747.24256-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. A git tree is available here: git://git.infradead.org/users/hch/riscv.git riscv-nommu.3 Gitweb: http://git.infradead.org/users/hch/riscv.git/shortlog/refs/heads/riscv-nommu.3 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 v2: - rebased to 5.3-rc - remove the EFI image header for nommu builds - set ARCH_SLAB_MINALIGN to ensure stack alignment in the flat binary loader - minor comment improvement - use #defines for more CSRs 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