Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1845030rbb; Tue, 27 Feb 2024 03:08:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX52sxMior+e998LSAnq5MwPGztxc8ONCAafkZ3Pwc1oFWUqnC4PEfUd+3JonU5tj9yVtOX0zQ00llvF8hN8P+I1YYGt0BvGRoyx28AXw== X-Google-Smtp-Source: AGHT+IFY42aPJfceR+1o/Xad2yxw/RLBdhRyHdYRcemzzjKGcwlh5rhcUT6lAMzM5hZBpb/W1QfB X-Received: by 2002:a05:6808:1404:b0:3c1:9ca5:8e1 with SMTP id w4-20020a056808140400b003c19ca508e1mr2043108oiv.11.1709032089381; Tue, 27 Feb 2024 03:08:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709032089; cv=pass; d=google.com; s=arc-20160816; b=T6ijie/SXXSZE6itA94QyFop0Ois3QKUovtU5XxH9QgpNH+TT0u0n0x4zIEupErAfK 3WhACN0e6PRFjiyjpFGFcdb858PYbfx0S3y4yZWwgTT176OVqbfj9tFz5t2YFuJWRsDb B4R8/rUdWvdBV/YBtG2oe5Ta1gh3EqfOedwR+7FJKHtu4kUlH6Wiha/8uMd8MAW2KgNI v1St3ilyrGLGmo0joNRO2YxPkUH3iJ8eF24ea9bdZ4j/CtHIL57YOYTDAqVKLNoIHOIw S7Oovtop32ydyC/Je4/tRM1ASA6g6ui0eWLXGkPkP8rEL3LjZE3tkGTFLXA2qb/fWIYI efKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=91zHcn3MJxhMJjDwzdIUiuB3M2CKCuchs9SG2CkeaW8=; fh=wMVUT9XOuUrJf3s53uSePUZtrDyADGV3h1GUuWQu7+0=; b=yyE23AMBPP/g7ssLr9EmuayxGIt//aLk1KgaTKjNLNhg0oRX6SmjMHmhe0X3AE4F0m Of/hXj6Z7HOYpoftYVUU537UtQduMGdludAuDqDB197txJj29e/Tfmo8d7SEth2SGhGs Obf+4mHw39rDhMTt13rtN+VaFkE1iD6CamYf5tdfYs/ABp9W8nSsaG0QGT+TmD76J0rP DNLlsymBGBxpjpeI9Ss7f8MIXDGZkTN+KqJ65Tbn2AOg9ACu8THLc1887M3ct3HqS05B mdkcx87L8cT2viTFabBSPlHRWSH3V0WKBMkstFp3vKHKrXY7bway+oCLqxkYOKO3eEIj f2TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="aSOu/gAU"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-83096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x9-20020ac87309000000b0042e6d473929si7263596qto.376.2024.02.27.03.08.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 03:08:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="aSOu/gAU"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-83096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2218B1C21495 for ; Tue, 27 Feb 2024 11:08:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C22313956D; Tue, 27 Feb 2024 11:08:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="aSOu/gAU" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 D0BCC1386B9; Tue, 27 Feb 2024 11:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709032083; cv=none; b=s8Pb6eQOssUad9OqwZBYl0h+9HPY+1VYvVIHrzRCydBBZo1yKOZZ+eS+8oqd60xMnxZMcC30hqx0hWu68gVez4rIsLwEhksQ68bDanRBaXlNnwyqb62/4rs/gfM8fL+h127kJyTIE5lBDA6bo0T+J9AcgeFAvboaS7A7ND69/14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709032083; c=relaxed/simple; bh=91zHcn3MJxhMJjDwzdIUiuB3M2CKCuchs9SG2CkeaW8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mzso4UM252QBjrPuoK9rzd4gSW+iJBYNhTwnyrnUPdwrOOEAzzKknHmmyTaBFWdcl20xOAMzXoHY1banCgeW8E/UpdlgsjRzuUPHvHyfOO53sFOqMazPigO6H0NZOzw3zT+W4cumKAtMu2jF3poXdNQoun4xZU0CPoFz7L5+4t0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=aSOu/gAU; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1709032081; x=1740568081; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=91zHcn3MJxhMJjDwzdIUiuB3M2CKCuchs9SG2CkeaW8=; b=aSOu/gAU5Ra83maQjMsOhJ7PqR3PgFutLGdKf2J7bUrWCh0j4PkDOLaH /wUz2la/dKPxCj520aXmrIZVX6mfY1NQP5VgmtUrqZ/RrqnOjNzSzMFBK V07Z1xH3JEwFQs8plnVTI+jjmNgzo755jb3krej79SRPzv/qyWF53tfwb xz9dLPumiR/iz0haPx0RTVFVvA5+US4SrguKok/oRYu/5Npl0oLgzfwyb sDfO7q4LvGr6mT+r1CU8wCW5XOMb8hsW5keFluGEUeN7GspUCz9bTwZY3 Gu42bX1OXG9ffkEsdRDiHhsUfAJy24BHQCtfBmU2ZASgRYsFtEqKyRtvH g==; X-CSE-ConnectionGUID: ISOzzPUQSGWIbJkVIBtfBA== X-CSE-MsgGUID: eG+1hg29Rg+lI88KmeakeQ== X-IronPort-AV: E=Sophos;i="6.06,187,1705388400"; d="asc'?scan'208";a="184154380" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 27 Feb 2024 04:08:00 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 27 Feb 2024 04:08:00 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 27 Feb 2024 04:07:58 -0700 Date: Tue, 27 Feb 2024 11:07:15 +0000 From: Conor Dooley To: Yangyu Chen CC: , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , , Masahiro Yamada , Alexandre Ghiti , Rob Herring , Subject: Re: [PATCH v2] riscv: dts: Move BUILTIN_DTB_SOURCE to common Kconfig Message-ID: <20240227-lifting-durable-484a2f1ddedc@wendy> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k8Kp3dpRM3Rjn4tM" Content-Disposition: inline In-Reply-To: --k8Kp3dpRM3Rjn4tM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 24, 2024 at 04:05:07AM +0800, Yangyu Chen wrote: > The BUILTIN_DTB_SOURCE is only configured for K210 before. Since > SOC_BUILTIN_DTB_DECLARE is removed at commit d5805af9fe9f ("riscv: Fix > builtin DTB handling") from patch [1], the kernel cannot choose one of the > dtbs from then on and always take the first one dtb to use. Then, another > commit 0ddd7eaffa64 ("riscv: Fix BUILTIN_DTB for sifive and microchip soc= ") > from patch [2] supports BUILTIN_DTB_SOURCE for other SoCs. However, this > feature will only work if the Kconfig we use links the dtb we expected in > the first place as mentioned in the thread [3]. Thus, a config > BUILTIN_DTB_SOURCE is needed for all SoCs to choose one dtb to use. >=20 > For some considerations, this patch also removes default y if XIP_KERNEL > for BUILTIN_DTB, as this requires setting a proper dtb to use on the > BUILTIN_DTB_SOURCE, else the kernel with XIP but does not set > BUILTIN_DTB_SOURCE or unselect BUILTIN_DTB will not boot. >=20 > Also, this patch removes the default dtb string for k210 from Kconfig to > nommu_k210_defconfig and nommu_k210_sdcard_defconfig to avoid complex > Kconfig settings for other SoCs in the future. >=20 > Changes since v1: > - remove default y for BULTIN_DTB in any cases > - remove default DTB_SOURCE for k210 and moved to its defconfig file > - remove building dtb object file for other SoCs > - reword help message to say N if unsure for BUILTIN_DTB_SOURCE > - reword commit message > - v1: https://lore.kernel.org/linux-riscv/tencent_AB625442CC1BCFF86E04D7B= 5891C43719109@qq.com/ This section here (the changelog) should be below the --- line so that it does not get into the commit history. Otherwise Reviewed-by: Conor Dooley Cheers, Conor. --k8Kp3dpRM3Rjn4tM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZd3CYwAKCRB4tDGHoIJi 0nqDAP9ZSWhGK0NbSy2naaZGv5BXsi+RLfI7+rTaQogrTDN45QD9F4Dn8U8zNXOG 7jz12a3xzz+19gUbN2sU+O8G2vwdoQ8= =7IVR -----END PGP SIGNATURE----- --k8Kp3dpRM3Rjn4tM--