[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176297731621.2151636.2516355929483523874.robh@kernel.org>
Date: Wed, 12 Nov 2025 13:58:56 -0600
From: "Rob Herring (Arm)" <robh@...nel.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Han Gao <rabenda.cn@...il.com>, linux-riscv@...ts.infradead.org,
Paul Walmsley <pjw@...nel.org>,
Saravana Kannan <saravanak@...gle.com>
Subject: Re: [PATCH] of: Skip devicetree kunit tests when RISCV+ACPI doesn't
populate root node
On Thu, 23 Oct 2025 09:04:14 -0700, Guenter Roeck wrote:
> Starting with commit 69a8b62a7aa1 ("riscv: acpi: avoid errors caused by
> probing DT devices when ACPI is used"), riscv images no longer populate
> devicetree if ACPI is enabled. This causes unit tests to fail which require
> the root node to be set.
>
> # Subtest: of_dtb
> # module: of_test
> 1..2
> # of_dtb_root_node_found_by_path: EXPECTATION FAILED at drivers/of/of_test.c:21
> Expected np is not null, but is
> # of_dtb_root_node_found_by_path: pass:0 fail:1 skip:0 total:1
> not ok 1 of_dtb_root_node_found_by_path
> # of_dtb_root_node_populates_of_root: EXPECTATION FAILED at drivers/of/of_test.c:31
> Expected of_root is not null, but is
> # of_dtb_root_node_populates_of_root: pass:0 fail:1 skip:0 total:1
> not ok 2 of_dtb_root_node_populates_of_root
>
> Skip those tests for RISCV if the root node is not populated.
>
> Fixes: 69a8b62a7aa1 ("riscv: acpi: avoid errors caused by probing DT devices when ACPI is used")
> Cc: Han Gao <rabenda.cn@...il.com>
> Cc: Paul Walmsley <pjw@...nel.org>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
> ---
> drivers/of/of_kunit_helpers.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
I guess the riscv folks don't care about supporting the relevant
features either, so I've applied it. Can kicked down the road again.
Powered by blists - more mailing lists