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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 45865CD98DA for ; Mon, 15 Jun 2026 16:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bD0XkR1hoTJp7T1W0AF4mwa+FWbEMzsjQaGjbrCT+/Q=; b=Es0GmN8LPRnlae iVmKytwk/Mbq1XnTFMP4kncCUr2WhXuSswG8jMi7781tO4srZFVX4x54+D0trYgM7rstAuSt2xFhm c1jpQoNBR/X5LVlG9Zj8MdA5BWJk2hUs7V5h9KiWwrMMIzTEjcLklJMyF3GwPrJ1r6wV2RpzVJDN0 sRGt0zhMiCH+BDW0uaZ0yvgp/z0dtj3OoUnZ61DVuI6OiITODzmOxZT9SMiBbzvxhX7tczhoXOhlm uz3XUPAtllHKCYUR7333wTnm5JWtVkjUDpOb7+PsSf00MAkolemyvUG2UnZ2oIxVZkG/ygYvR/4P4 ntBsZDq/guVN27cLdNyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZ9te-0000000EY9n-1tqf; Mon, 15 Jun 2026 16:10:46 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZ9te-0000000EY9E-06wm for linux-riscv@lists.infradead.org; Mon, 15 Jun 2026 16:10:46 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 78A02601E9; Mon, 15 Jun 2026 16:10:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 097B31F00A3A; Mon, 15 Jun 2026 16:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781539845; bh=xUrauuBapLOJYjxbxmUd3tzFxeamy0yQVyo2zDWxkcU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=F7G+I+PAjJXK5S6q4WuWyXDK2ImeSYfY+SDkyC73I1GjSE2K9DO9DjvZxSQE9GKjV emiNrHMb+72bowkBmTW+iU3cGBzzCnDU2bClqmv8Dne9cvKXi0i1RXOoRRBuduQXE8 le9hJW20xxM1sCuMWQiKw1NxkUJQE64+ABZIoK+kBiaQVFimLUvRmtgzXC6ex9AqlY 2fC+dDE8+HQhML754k2km7oQaT1cwkdKIKwSABYAOAtMBYUCFi2ianimpp59uLcWuP LWS3I0zGmZuckxCWLDB0kLerr8+LX+6wpaTwoh4165egoOUniXtnj6JU8a6u1h0tVg pfPcR+ZBDo7Kg== From: Vincent Mailhol Date: Mon, 15 Jun 2026 18:09:06 +0200 Subject: [PATCH 10/19] riscv: define DPS root partition type UUIDs MIME-Version: 1.0 Message-Id: <20260615-discoverable-root_partitions-v1-10-39c78fac42e2@kernel.org> References: <20260615-discoverable-root_partitions-v1-0-39c78fac42e2@kernel.org> In-Reply-To: <20260615-discoverable-root_partitions-v1-0-39c78fac42e2@kernel.org> To: Jens Axboe , Davidlohr Bueso , Alexander Viro , Christian Brauner , Jan Kara Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-efi@vger.kernel.org, linux-fsdevel@vger.kernel.org, Vincent Mailhol , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1933; i=mailhol@kernel.org; h=from:subject:message-id; bh=FmlPIWGCIvIlUIPHOexioNcZhv322lLYPDrGA5VKPpY=; b=owGbwMvMwCV2McXO4Xp97WbG02pJDFkGylc/LlGQvnfx2FpJTt1Gxl3/o5ep39NbX115wl8m8 J7jZTenjoksDGJcDJZiiizLyjm5FToKvcMO/bWEmcPKBDJEWqSBAQhYGPhyE/NKjXSM9Ey1DfUM gQwdIwYuTgGY6p+hDP+05a+XbMmw4vZ9/kv59o1XuyrELlufWdyR4XHz6A6uVSWHGf7Z70p5aCK 9Z9aKqsZD50v9Ip4+4VpwVns+R8qf+VJZ/r/ZAQ== X-Developer-Key: i=mailhol@kernel.org; a=openpgp; fpr=ED8F700574E67F20E574E8E2AB5FEB886DBB99C2 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DPS [1] assigns GPT partition type UUIDs to operating system partitions. Root partitions use architecture-specific type UUIDs so the OS can discover the intended root filesystem without relying on a root= cmdline option. Define DPS_ROOT_PARTITION_TYPE_UUID in asm/dps_root.h for the RISC-V 32/64-bit variants described by the specification and select ARCH_HAS_DPS_ROOT_PARTITION_TYPE_UUID. [1] The Discoverable Partitions Specification (DPS) Link: https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-riscv@lists.infradead.org Signed-off-by: Vincent Mailhol --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/dps_root.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 1a2fadccd4c4..526be67e858a 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -28,6 +28,7 @@ config RISCV select ARCH_HAS_DEBUG_VIRTUAL if MMU select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DEBUG_WX + select ARCH_HAS_DPS_ROOT_PARTITION_TYPE_UUID select ARCH_HAS_ELF_CORE_EFLAGS if BINFMT_ELF && ELF_CORE select ARCH_HAS_FAST_MULTIPLIER select ARCH_HAS_FORTIFY_SOURCE diff --git a/arch/riscv/include/asm/dps_root.h b/arch/riscv/include/asm/dps_root.h new file mode 100644 index 000000000000..86f8e1dbd6ad --- /dev/null +++ b/arch/riscv/include/asm/dps_root.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _ASM_RISCV_DPS_ROOT_H +#define _ASM_RISCV_DPS_ROOT_H + +#ifdef CONFIG_64BIT +#define DPS_ROOT_PARTITION_TYPE_UUID "72ec70a6-cf74-40e6-bd49-4bda08e8f224" +#else +#define DPS_ROOT_PARTITION_TYPE_UUID "60d5a7fe-8e7d-435c-b714-3dd8162144e1" +#endif + +#endif /* _ASM_RISCV_DPS_ROOT_H */ -- 2.53.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv