Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1494558lqb; Sun, 26 May 2024 04:01:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV32wm/AW/UpDbURQ6Brpizn4N9KgZQwaGO2wD7H4/F1HcaSRgl1yjC23wIyUHuQYDDhMfZcbzlZ78iVwttGDpvtw6grqGiHRIan+2Qeg== X-Google-Smtp-Source: AGHT+IE1ax0Sj+Ewoeg4qxnXO8HcPtMBFLfHb6BZb9qQDDm86LpkOfDAILK/jvlbMgDCgqYvPs2A X-Received: by 2002:a05:6a20:de89:b0:1ac:f796:963c with SMTP id adf61e73a8af0-1b212e656cdmr6463593637.56.1716721290677; Sun, 26 May 2024 04:01:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716721290; cv=pass; d=google.com; s=arc-20160816; b=LDc4rm0iXhzb2PSeXxvJlcyt10bAehOZvVUVC1RsAV7bDpZWb7WzZi9rXWCOyBj53A QDiKGuLyXgSXSdtd6p+T3KJpm0APZbdAwLX6+P0ggpy+eSA19Jm9x+DSmvlxfdlZZveR 7jzCrchN/kVVR8qMFk+MU4UObIPw6hSBezP4hqYQW0n37kCKgvkhWgPtqR50aWV6Whve hOqF/zk1AbhcamaY5AlWWYDb7Elq8nSRjj3L+//qcezRHuyJBQYd0T1BkR289nmwazos GvoP3bFcE0o0AtyYnbwGwGzTfR+XhZGslYApPTIfkRRyEPnqNAEbuupcJ1hp575JE8Tx z5aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :dkim-signature:dkim-signature:from; bh=t2Uz48YRsUOXeGZ9DVsANdtln0IbDr3I+aFSlZRM3WI=; fh=JmN49/Oa8v1lqPlJpKJzDC1jos3cK5zLRL0aazsmhTc=; b=IKbMB4mdQcDlAglIhdlkV5WOA/ctZFMhmD0zOMnE1oTs+QGX/l0LnlXn52P5Uk+1+1 sGMj1KvZMbc7rUccQewl39RSyozxwj9zlzBdztJqAI6Ru1KhdPqufwLL0k9eJ2C2sQ27 hSC3UJGoeDxcZ3O8trYDUEgUMkvr8xee2ZGNuw92BuNiSsulMm3nlmHxWwG9VDHTGVZE oFpjU/iyymkNEtUxuM8siWdYJCXS9HatXFt6Raflen9YoXBgj2z50rLUtNM9wWxv7DJa cgRzpVjJNQEtokKOT403YRDyVXhSa/87F/4RVkBiUeoDeopruHQF8V+k/IMn9gEAhETq azZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cJ+z3s7n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-189714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc04d835si4464860b3a.60.2024.05.26.04.01.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 04:01:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cJ+z3s7n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-189714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3848C281B72 for ; Sun, 26 May 2024 11:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F7D9BE7F; Sun, 26 May 2024 11:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cJ+z3s7n"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9E6rWNlr" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 916D479C0; Sun, 26 May 2024 11:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721283; cv=none; b=CqSGeFWf3HjTkUQOYo079J62clzJuUZT+xFUo/Dsa7BgEnlC0iV63VU0dXv51ZoOLJr/2bbZ9EV7077CE/P/J90lXx6Gy7mRCvjBNbBm2W93tYIvBfJf8b1yawFY1OCXPauMY4CenH1AKafBlclnf6cNpMYb8gZgOEIC0bdcAr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721283; c=relaxed/simple; bh=6e+h3k3AZ4xi2cYwU9pOafFSVaC00lSZkE0jcbqcV3s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IRc8xwANe7fLQA0EtQKm37x6PBe6jNsIHphSZOpaWRw9+/ZMqHae61g9s1z4xsiPk8Zt0fBMsJVgQmqTHjmkK+shQg4aw0IATXSEBItMIxZkqswqCbFx5UKUoos4OSwHgZmsKgjI+8LziFV3hWaGTsxaI+q5pa49wvZgYBXFh6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cJ+z3s7n; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9E6rWNlr; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716721274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=t2Uz48YRsUOXeGZ9DVsANdtln0IbDr3I+aFSlZRM3WI=; b=cJ+z3s7nk0Gp7f9D4DJzEQ/CuZwEJLOxzlVVbBIkA2z/NXZpKArFHcQqGF50fczr1iPJlp gT6hOT56hnY4ui78+Pwa9Sp2Dx+brf4ii0v0Evv3QFke+pvS0MaXaI/WgDiqi+WWIXclfP 7rRkWQwKuy4u7Vwrik4nrKEF4FxiGL1dRM4wuLSjUDrisUUt/gDbPia9iErLESPSK8MdPr rx0fZmY+DQxZjDwIzoTNBAnCtv31ssmh2El/j1pIqyNrVnULVGymlLgIC9uahERdM0YBZO nfvFyCQ0M0Xo7uBZsZIL89FTBg57DtwG935Uq5gzbZxLSj/QoI8dBRFAZLOMzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716721274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=t2Uz48YRsUOXeGZ9DVsANdtln0IbDr3I+aFSlZRM3WI=; b=9E6rWNlr93vWj3BRUMTK3cmikVL1VaaaPC9QIWtLSafLmmoHGrMk5F4SfqY7UVXXIfWpWY Bm8URRST7vSd3SDg== To: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nam Cao , stable@vger.kernel.org Subject: [PATCH] riscv: enable HAVE_ARCH_HUGE_VMAP for XIP kernel Date: Sun, 26 May 2024 13:01:04 +0200 Message-Id: <20240526110104.470429-1-namcao@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit HAVE_ARCH_HUGE_VMAP also works on XIP kernel, so remove its dependency on !XIP_KERNEL. This also fixes a boot problem for XIP kernel introduced by the commit in "Fixes:". This commit used huge page mapping for vmemmap, but huge page vmap was not enabled for XIP kernel. Fixes: ff172d4818ad ("riscv: Use hugepage mappings for vmemmap") Signed-off-by: Nam Cao Cc: --- This patch replaces: https://patchwork.kernel.org/project/linux-riscv/patch/20240508173116.2866192-1-namcao@linutronix.de/ arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b94176e25be1..0525ee2d63c7 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -106,7 +106,7 @@ config RISCV select HAS_IOPORT if MMU select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP - select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT && !XIP_KERNEL + select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL select HAVE_ARCH_KASAN if MMU && 64BIT -- 2.39.2