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=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,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 82346C10DCE for ; Mon, 16 Mar 2020 02:39:16 +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 36A4A205C9 for ; Mon, 16 Mar 2020 02:39:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nKtfmZgT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="zKj1YwkX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36A4A205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=98GRVwXABUGfZCn1yMZ6/PWwY6ybQRQbDxjsLHaqZds=; b=nKtfmZgTHKKjJU ZepFnmUQtV8BMAdgI5WwhBWC1mHLm7+Cnz0XXktuh4FnByADe9XRE6xjzvZlo6GqTgDlOQoxzjKp7 5AbUbtdIKZabFnsJJukjTmdE7DXxB1QFJACE4myBuld2/+4eWQhlHJDAQDJX6V0pTVyp3xDaUsg68 +fEXtJ2NGB20x6yj93mibhRRXtd3NRxcaPFFUr8vgkhPcSDSrDs2qifB5U65K7Sm0bUf9u/OFDLnr qlCaNgQNe2Irv6rWp4hJBcgtTZfvJ/ezERyU2tTv1Q2i/Eio3AK0MwYCKv7jzSp0c79y85KQV91v4 dGfckr/gQFUjyNg2qEOg==; 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 1jDfem-0008L3-LA; Mon, 16 Mar 2020 02:39:08 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jDfZl-0002X5-Vl for linux-riscv@lists.infradead.org; Mon, 16 Mar 2020 02:33:59 +0000 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31F3620724; Mon, 16 Mar 2020 02:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584326036; bh=bsVMTFks6CJCc2U67i947WHYTc+3oSIbcH7Igvdr4us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zKj1YwkXUQU1tVfMLZs14qppngKtSxaaOwz56K7esXKGWlKffo+njCJlqHJ4mCqUm +b2jnbuyB5ynzfMWRPJFBknOH4RHYnc5+9V6b3Amu+EC7X5GhjKBsHz0PQstNMXenY dit02wInk5vMLwtU/GSxTUG0r3zP8H7ryf8TV5KU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 31/41] riscv: Force flat memory model with no-mmu Date: Sun, 15 Mar 2020 22:33:09 -0400 Message-Id: <20200316023319.749-31-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200316023319.749-1-sashal@kernel.org> References: <20200316023319.749-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200315_193358_123850_E25AED30 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. 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: Sasha Levin , Anup Patel , Damien Le Moal , Palmer Dabbelt , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org From: Damien Le Moal [ Upstream commit aa2734202acc506d09c8e641db4da161f902df27 ] Compilation errors trigger if ARCH_SPARSEMEM_ENABLE is enabled for a nommu kernel. Since the sparsemem model does not make sense anyway for the nommu case, do not allow selecting this option to always use the flatmem model. Signed-off-by: Damien Le Moal Reviewed-by: Anup Patel Reviewed-by: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index fa7dc03459e7f..1be11c23fa335 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -121,6 +121,7 @@ config ARCH_FLATMEM_ENABLE config ARCH_SPARSEMEM_ENABLE def_bool y + depends on MMU select SPARSEMEM_VMEMMAP_ENABLE config ARCH_SELECT_MEMORY_MODEL -- 2.20.1 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 CF202C18E5B for ; Mon, 16 Mar 2020 02:40:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B72C206E9 for ; Mon, 16 Mar 2020 02:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584326435; bh=bsVMTFks6CJCc2U67i947WHYTc+3oSIbcH7Igvdr4us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Xm4o40rCa6U5OLbxEEUvpmCfeSPjZVVUJsFhZ3NNoIgWeL0EnDtWaTOXG7zl95oIc gmZLVJT1sYj29Q9G2dZM0BpEIlmvyybIYp0PaeAB025gn2so8Sq2t5VsXxcytthKx1 pGk6zNJ5ABDJa0mvvQX54Z4Bq/ZgVdesdD7me3MU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729707AbgCPCeB (ORCPT ); Sun, 15 Mar 2020 22:34:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:36992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729648AbgCPCd5 (ORCPT ); Sun, 15 Mar 2020 22:33:57 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31F3620724; Mon, 16 Mar 2020 02:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584326036; bh=bsVMTFks6CJCc2U67i947WHYTc+3oSIbcH7Igvdr4us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zKj1YwkXUQU1tVfMLZs14qppngKtSxaaOwz56K7esXKGWlKffo+njCJlqHJ4mCqUm +b2jnbuyB5ynzfMWRPJFBknOH4RHYnc5+9V6b3Amu+EC7X5GhjKBsHz0PQstNMXenY dit02wInk5vMLwtU/GSxTUG0r3zP8H7ryf8TV5KU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Damien Le Moal , Anup Patel , Palmer Dabbelt , Sasha Levin , linux-riscv@lists.infradead.org Subject: [PATCH AUTOSEL 5.5 31/41] riscv: Force flat memory model with no-mmu Date: Sun, 15 Mar 2020 22:33:09 -0400 Message-Id: <20200316023319.749-31-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200316023319.749-1-sashal@kernel.org> References: <20200316023319.749-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Damien Le Moal [ Upstream commit aa2734202acc506d09c8e641db4da161f902df27 ] Compilation errors trigger if ARCH_SPARSEMEM_ENABLE is enabled for a nommu kernel. Since the sparsemem model does not make sense anyway for the nommu case, do not allow selecting this option to always use the flatmem model. Signed-off-by: Damien Le Moal Reviewed-by: Anup Patel Reviewed-by: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index fa7dc03459e7f..1be11c23fa335 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -121,6 +121,7 @@ config ARCH_FLATMEM_ENABLE config ARCH_SPARSEMEM_ENABLE def_bool y + depends on MMU select SPARSEMEM_VMEMMAP_ENABLE config ARCH_SELECT_MEMORY_MODEL -- 2.20.1