From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9846DCA9EC0 for ; Mon, 28 Oct 2019 12:10:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6C7962086D for ; Mon, 28 Oct 2019 12:10:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="L0DWV2lJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C7962086D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tRgBjhM2qu8Wcn00tu9kY+os8RDDfRsWn6KSlnafDUE=; b=L0DWV2lJKEN8hy zhkY8KKL3Wl+nzNnLuYd3zYtpP//drbnMtNADZV46DeuTDh6p+crindugeI0vHVe31k8q9sklCG1d dunQN46mSAauw8fYu7QXMUE5Gir6ssFZ4UwvMMCLHVAsAvh7AMbsNxGf0Dju5jFRYSJefwAtRXmmj 6ko9+ZoGuo4+Z+MbqVjx4kXmxHPZXqFmj3FFrhWS5d+ikkYVQiqEQOdIwhqbifp12miNWWfRTXx7Z oBwCjV70dtxGtNz91M7OHZwUe29bBXPyw9yfRNf1iqDHZvg88wXSAHIYHwzX1yjCD0uDJUup/s8tv hZGghe5zbh5KJI4yGOkg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iP3rD-0006Wz-1v; Mon, 28 Oct 2019 12:10:47 +0000 Received: from [2001:4bb8:18c:c7d:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iP3rB-0006Wo-FH; Mon, 28 Oct 2019 12:10:45 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Subject: RISC-V nommu support v6 Date: Mon, 28 Oct 2019 13:10:31 +0100 Message-Id: <20191028121043.22934-1-hch@lst.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.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.6 Gitweb: http://git.infradead.org/users/hch/riscv.git/shortlog/refs/heads/riscv-nommu.6 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 v5: - rebased to Linux 5.4-rc5 - fix up a newly sneaked in use of ->sepc in the perf callchain code - fix out of tree builds with the generated loader.lds - replace the plic context hack with a cleaner solution Changes since v4: - rebased to 5.4-rc + latest riscv fixes - clean up do_trap_break - fix an SR_XPIE issue (Paul Walmsley) - use the symbolic PAGE_OFFSET value in the flat loader (Aurabindo Jayamohanan) Changes since v3: - improve a few commit message - cleanup riscv_cpuid_to_hartid_mask - cleanup the timer handling - cleanup the IPI handling a little more - renamed CONFIG_M_MODE to CONFIG_RISCV_M_MODE - split out CONFIG_RISCV_SBI to make some of the ifdefs more obbious - use IS_ENABLED wherever possible instead of if ifdefs to make the code more readable 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv