Re: [PATCH v3 41/51] cpuidle,clk: Remove trace_.*_rcuidle()

2023-01-12 Thread Stephen Boyd
Quoting Peter Zijlstra (2023-01-12 11:43:55) > OMAP was the one and only user. > > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Ulf Hansson > Acked-by: Rafael J. Wysocki > Acked-by: Frederic Weisbecker > Tested-by: Tony Lindgren > Tested-by: Ulf Hansson >

[PATCH 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-01 Thread Stephen Boyd
setup code simpler when a platform driver or platform device is needed. Add a few test cases at the same time to make sure the APIs work as intended. Cc: Brendan Higgins Cc: David Gow Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Stephen Boyd --- Should this be moved

[PATCH 5/8] dt-bindings: kunit: Add fixed rate clk consumer test

2023-03-01 Thread Stephen Boyd
Describe a binding for a device that consumes a fixed rate clk in DT so that a KUnit test can get the clk registered by of_fixed_clk_setup() and test that it is setup properly. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd

[PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-01 Thread Stephen Boyd
ll context. I'm hoping I can take the whole pile through the clk tree as they almost all depend on each other. In the future I imagine it will be easy to add more test nodes to the clk.dtsi file and not need to go across various maintainer trees like this series does. Stephen Boyd (8): d

[PATCH 1/8] dt-bindings: Add linux,kunit binding

2023-03-01 Thread Stephen Boyd
Document the linux,kunit board compatible string. This board is loaded into the Linux kernel when KUnit is testing devicetree dependent code. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd --- .../bindings/kunit/linux,kunit.yaml

[PATCH 7/8] dt-bindings: clk: Add KUnit clk_parent_data test

2023-03-01 Thread Stephen Boyd
Describe a binding for a device that provides and consumes clks in DT so that a KUnit test can register clks based on the device node and test clk_hw_register() with clk_parent_data. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd

[PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-01 Thread Stephen Boyd
y add APIs that are used for now. More wrappers can be added in the future as necessary. Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd --- drivers/clk/Makefile| 5 + drivers/clk/clk-kunit.c | 204 drivers/clk/clk-kunit.h | 28

[PATCH 2/8] of: Enable DTB loading on UML for KUnit tests

2023-03-01 Thread Stephen Boyd
e tests will add to the kunit.dtsi file to include their specific test nodes. Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Vincent Whitchurch Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Stephen Boyd --- arch/um/kernel/dtb.c| 29 +++-- driv

[PATCH 6/8] clk: Add KUnit tests for clk fixed rate basic type

2023-03-01 Thread Stephen Boyd
Test that the fixed rate basic type clk works as intended. Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd --- This should be extended somewhat to test various combinations of the registration functions. drivers/clk/.kunitconfig | 3 + drivers/clk/Kconfig

[PATCH 8/8] clk: Add KUnit tests for clks registered with struct clk_parent_data

2023-03-01 Thread Stephen Boyd
Test that clks registered with 'struct clk_parent_data' work as intended and can find their parents. Cc: Christian Marangi Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd --- drivers/clk/clk_test.c| 456 +- drivers/of/kunit/clk.

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-02 Thread Stephen Boyd
Quoting Rob Herring (2023-03-02 09:32:09) > On Thu, Mar 2, 2023 at 2:14 AM David Gow wrote: > > > > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > > > This patch series adds unit tests for the clk fixed rate basic type and > > > the

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-02 Thread Stephen Boyd
Quoting Rob Herring (2023-03-02 09:13:59) > On Wed, Mar 1, 2023 at 7:38 PM Stephen Boyd wrote: > > > > This patch series adds unit tests for the clk fixed rate basic type and > > the clk registration functions that use struct clk_parent_data. To get > > there, we ad

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-02 Thread Stephen Boyd
Quoting Rob Herring (2023-03-02 12:18:34) > On Thu, Mar 2, 2023 at 1:44 PM Stephen Boyd wrote: > > > > Quoting Rob Herring (2023-03-02 09:13:59) > > > > > > Good to see bindings for this. I've been meaning to do something about > > > the DT unitte

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-07 Thread Stephen Boyd
Quoting Frank Rowand (2023-03-04 07:04:48) > On 3/2/23 13:27, Stephen Boyd wrote: > > > > But perhaps this design is too much of an end-to-end test and not a unit > > test? In the spirit of unit testing we shouldn't care about how the node > > is added to the live

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-07 Thread Stephen Boyd
Quoting Maxime Ripard (2023-03-03 06:38:35) > Hi, > > On Wed, Mar 01, 2023 at 05:38:13PM -0800, Stephen Boyd wrote: > > This patch series adds unit tests for the clk fixed rate basic type and > > the clk registration functions that use struct clk_parent_data. To get > >

Re: [PATCH 1/8] dt-bindings: Add linux,kunit binding

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:14:55) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Document the linux,kunit board compatible string. This board is loaded > > into the Linux kernel when KUnit is testing devicetree dependent code. > > As with the series

Re: [PATCH 2/8] of: Enable DTB loading on UML for KUnit tests

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:04) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > To fully exercise common clk framework code in KUnit we need to > > associate 'struct device' pointers with 'struct device_node' pointers so > > th

Re: [PATCH 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:31) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Introduce KUnit resource wrappers around platform_driver_register(), > > platform_device_alloc(), and platform_device_add() so that test authors > > can register platform

Re: [PATCH 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-09 Thread Stephen Boyd
Quoting Maxime Ripard (2023-03-03 06:35:28) > On Fri, Mar 03, 2023 at 03:15:31PM +0800, David Gow wrote: > > > > DRM has a similar thing already (albeit with a root_device, which is > > more common with KUnit tests generally): > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/

Re: [PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-10 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:35) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Unit tests are more ergonomic and simpler to understand if they don't > > have to hoist a bunch of code into the test harness init and exit > > functions. Add some t

Re: [PATCH 2/8] of: Enable DTB loading on UML for KUnit tests

2023-03-10 Thread Stephen Boyd
Quoting David Gow (2023-03-10 00:09:48) > On Fri, 10 Mar 2023 at 07:19, Stephen Boyd wrote: > > > > > > Hmm. I think you're suggesting that the unit test data be loaded > > whenever CONFIG_OF=y and CONFIG_KUNIT=y. Then tests can check for > > CONFIG_OF and s

Re: [PATCH 2/8] of: Enable DTB loading on UML for KUnit tests

2023-03-21 Thread Stephen Boyd
Quoting David Gow (2023-03-10 22:42:24) > Hmm... I'd've thought that shouldn't be a problem: kunit.py should > ignore most messages during a test, unless it can't find a valid > result line. What does the raw KTAP output look like? (You can get it > from kunit.py by passing the --raw_output option)

[PATCH 3/6] of: Always unflatten in unflatten_and_copy_device_tree()

2024-01-12 Thread Stephen Boyd
e and then unflatten it. If there isn't a DT to copy, then the call to unflatten_device_tree() is largely a no-op, so nothing really changes here. Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Stephen Boyd --- drivers/of/fdt.c | 32 +--- 1 file changed, 17 insertions(+

[PATCH 0/6] of: populate of_root node if bootloader doesn't

2024-01-12 Thread Stephen Boyd
ted_dt() return false if the DTB isn't from the bootloader * Architecture calls made unconditional so that a root node is always made Frank Rowand (2): of: Create of_root if no dtb provided by firmware of: unittest: treat missing of_root as error instead of fixing up Steph

[PATCH 4/6] of: Create of_root if no dtb provided by firmware

2024-01-12 Thread Stephen Boyd
Cc: Rob Herring [sb...@kernel.org: Update of_have_populated_dt() to treat this empty dtb as not populated. Drop setup_of() initcall] Signed-off-by: Stephen Boyd --- drivers/of/Kconfig| 7 ++- drivers/of/Makefile | 2 +- drivers/of/empty_root.dts | 6 ++ drivers/of

[PATCH 5/6] of: unittest: treat missing of_root as error instead of fixing up

2024-01-12 Thread Stephen Boyd
testcase-data subtree. Remove the unittest code that unflattens the unittest overlay base if architecture is UML because that is always done now. Signed-off-by: Frank Rowand Link: https://lore.kernel.org/r/20230317053415.2254616-3-frowand.l...@gmail.com Cc: Rob Herring Signed-off-by: Stephen Bo

[PATCH 6/6] of: Add KUnit test to confirm DTB is loaded

2024-01-12 Thread Stephen Boyd
Add a KUnit test that confirms a DTB has been loaded, i.e. there is a root node, and that the of_have_populated_dt() API works properly. Cc: Rob Herring Cc: Frank Rowand Cc: David Gow Cc: Brendan Higgins Signed-off-by: Stephen Boyd --- drivers/of/.kunitconfig | 3 ++ drivers/of/Kconfig

[PATCH 2/6] um: Unconditionally call unflatten_device_tree()

2024-01-12 Thread Stephen Boyd
urns early. Cc: Rob Herring Cc: Frank Rowand Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Signed-off-by: Stephen Boyd --- arch/um/kernel/dtb.c | 14 +++--- drivers/of/unittest.c | 4 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/um/kern

[PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-12 Thread Stephen Boyd
_tree() returns early. Cc: Rob Herring Cc: Frank Rowand Cc: Catalin Marinas Cc: Will Deacon Cc: Signed-off-by: Stephen Boyd --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 417a8a86b2d

Re: [PATCH 4/6] of: Create of_root if no dtb provided by firmware

2024-01-16 Thread Stephen Boyd
Quoting Rob Herring (2024-01-15 12:32:30) > On Fri, Jan 12, 2024 at 12:07:47PM -0800, Stephen Boyd wrote: > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > > index da9826accb1b..9628e48baa15 100644 > > --- a/drivers/of/Kconfig > > +++ b/drivers/of/Kconfig &g

Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-16 Thread Stephen Boyd
Quoting Mark Rutland (2024-01-16 03:51:14) > Hi Stephen, > > On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > > Call this function unconditionally so that we can populate an empty DTB > > on platforms that don't boot with a firmware provided or builtin D

Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-17 Thread Stephen Boyd
Quoting Rob Herring (2024-01-17 09:54:48) > On Tue, Jan 16, 2024 at 05:27:18PM -0800, Stephen Boyd wrote: > > Quoting Mark Rutland (2024-01-16 03:51:14) > > > Hi Stephen, > > > > > > On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > > >

Re: [PATCH 6/6] of: Add KUnit test to confirm DTB is loaded

2024-01-22 Thread Stephen Boyd
Quoting David Gow (2024-01-15 21:03:12) > On Sat, 13 Jan 2024 at 04:07, Stephen Boyd wrote: > > > > Add a KUnit test that confirms a DTB has been loaded, i.e. there is a > > root node, and that the of_have_populated_dt() API works properly. > > > > Cc: Rob Herr

[PATCH v2 0/7] of: populate of_root node if bootloader doesn't

2024-01-29 Thread Stephen Boyd
pi is in use * keep Kconfig hidden but def_bool enabled otherwise Frank Rowand (2): of: Create of_root if no dtb provided by firmware of: unittest: treat missing of_root as error instead of fixing up Stephen Boyd (5): arm64: Unconditionally call unflatten_device_tree() um:

[PATCH v2 2/7] um: Unconditionally call unflatten_device_tree()

2024-01-29 Thread Stephen Boyd
urns early. Cc: Rob Herring Cc: Frank Rowand Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Signed-off-by: Stephen Boyd --- arch/um/kernel/dtb.c | 14 +++--- drivers/of/unittest.c | 4 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/um/kern

[PATCH v2 1/7] arm64: Unconditionally call unflatten_device_tree()

2024-01-29 Thread Stephen Boyd
DT to be used during boot. If there isn't a valid initial_boot_params dtb then unflatten_device_tree() returns early so this is fine. Cc: Rob Herring Cc: Frank Rowand Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Signed-off-by: Stephen Boyd --- arch/arm64/kernel/setup.c | 7 +

[PATCH v2 5/7] of: Create of_root if no dtb provided by firmware

2024-01-29 Thread Stephen Boyd
Cc: Rob Herring [sb...@kernel.org: Update of_have_populated_dt() to treat this empty dtb as not populated. Drop setup_of() initcall] Signed-off-by: Stephen Boyd --- drivers/of/Kconfig| 2 +- drivers/of/Makefile | 2 +- drivers/of/empty_root.dts | 6 ++ drivers/of

[PATCH v2 4/7] of: Always unflatten in unflatten_and_copy_device_tree()

2024-01-29 Thread Stephen Boyd
e and then unflatten it. If there isn't a DT to copy, then the call to unflatten_device_tree() is largely a no-op, so nothing really changes here. Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Stephen Boyd --- drivers/of/fdt.c | 32 +--- 1 file changed, 17 insertions(+

[PATCH v2 3/7] x86/of: Unconditionally call unflatten_and_copy_device_tree()

2024-01-29 Thread Stephen Boyd
t; Cc: Saurabh Sengar Signed-off-by: Stephen Boyd --- arch/x86/kernel/devicetree.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index afd09924094e..650752d112a6 100644 --- a/arch/x86/kern

[PATCH v2 6/7] of: unittest: treat missing of_root as error instead of fixing up

2024-01-29 Thread Stephen Boyd
testcase-data subtree. Remove the unittest code that unflattens the unittest overlay base if architecture is UML because that is always done now. Signed-off-by: Frank Rowand Link: https://lore.kernel.org/r/20230317053415.2254616-3-frowand.l...@gmail.com Cc: Rob Herring Signed-off-by: Stephen Bo

[PATCH v2 7/7] of: Add KUnit test to confirm DTB is loaded

2024-01-29 Thread Stephen Boyd
Add a KUnit test that confirms a DTB has been loaded, i.e. there is a root node, and that the of_have_populated_dt() API works properly. Cc: Rob Herring Cc: Frank Rowand Cc: David Gow Cc: Brendan Higgins Signed-off-by: Stephen Boyd --- drivers/of/.kunitconfig | 3 +++ drivers/of/Kconfig

Re: [PATCH v2 1/7] arm64: Unconditionally call unflatten_device_tree()

2024-01-31 Thread Stephen Boyd
Quoting Rob Herring (2024-01-31 12:54:05) > On Mon, Jan 29, 2024 at 04:45:00PM -0800, Stephen Boyd wrote: > > Call this function unconditionally so that we can populate an empty DTB > > on platforms that don't boot with a firmware provided or builtin DTB. > > Override &#x

[PATCH v3 0/7] of: populate of_root node if bootloader doesn't

2024-02-02 Thread Stephen Boyd
nd (2): of: Create of_root if no dtb provided by firmware of: unittest: treat missing of_root as error instead of fixing up Stephen Boyd (5): of: Always unflatten in unflatten_and_copy_device_tree() um: Unconditionally call unflatten_device_tree() x86/of: Unconditionally call unflatten_

[PATCH v3 4/7] x86/of: Unconditionally call unflatten_and_copy_device_tree()

2024-02-02 Thread Stephen Boyd
hen unflatten_device_tree() returns early. Cc: Rob Herring Cc: Frank Rowand Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: Cc: "H. Peter Anvin" Cc: Saurabh Sengar Signed-off-by: Stephen Boyd --- arch/x86/kernel/devicetree.c | 24 +---

[PATCH v3 1/7] of: Always unflatten in unflatten_and_copy_device_tree()

2024-02-02 Thread Stephen Boyd
e and then unflatten it. If there isn't a DT to copy, then the call to unflatten_device_tree() is largely a no-op, so nothing really changes here. Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Stephen Boyd --- drivers/of/fdt.c | 32 +--- 1 file changed, 17 insertions(+

[PATCH v3 5/7] arm64: Unconditionally call unflatten_device_tree()

2024-02-02 Thread Stephen Boyd
Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Signed-off-by: Stephen Boyd --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 417a8a86b2db..ede3d59dabf0 100644 --- a/arch/arm64/kernel/setu

[PATCH v3 2/7] of: Create of_root if no dtb provided by firmware

2024-02-02 Thread Stephen Boyd
Cc: Rob Herring [sb...@kernel.org: Update of_have_populated_dt() to treat this empty dtb as not populated. Drop setup_of() initcall] Signed-off-by: Stephen Boyd --- drivers/of/Kconfig| 2 +- drivers/of/Makefile | 2 +- drivers/of/empty_root.dts | 6 ++ drivers/of

[PATCH v3 3/7] um: Unconditionally call unflatten_device_tree()

2024-02-02 Thread Stephen Boyd
urns early. Cc: Rob Herring Cc: Frank Rowand Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Signed-off-by: Stephen Boyd --- arch/um/kernel/dtb.c | 14 +++--- drivers/of/unittest.c | 4 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/um/kern

[PATCH v3 7/7] of: Add KUnit test to confirm DTB is loaded

2024-02-02 Thread Stephen Boyd
Add a KUnit test that confirms a DTB has been loaded, i.e. there is a root node, and that the of_have_populated_dt() API works properly. Cc: Rob Herring Cc: Frank Rowand Cc: David Gow Cc: Brendan Higgins Signed-off-by: Stephen Boyd --- drivers/of/.kunitconfig | 3 +++ drivers/of/Kconfig

[PATCH v3 6/7] of: unittest: treat missing of_root as error instead of fixing up

2024-02-02 Thread Stephen Boyd
testcase-data subtree. Remove the unittest code that unflattens the unittest overlay base if architecture is UML because that is always done now. Signed-off-by: Frank Rowand Link: https://lore.kernel.org/r/20230317053415.2254616-3-frowand.l...@gmail.com Cc: Rob Herring Signed-off-by: Stephen Bo

Re: [PATCH v3 7/7] of: Add KUnit test to confirm DTB is loaded

2024-02-05 Thread Stephen Boyd
Quoting David Gow (2024-02-02 20:10:17) > On Sat, 3 Feb 2024 at 03:59, Stephen Boyd wrote: > > > > Add a KUnit test that confirms a DTB has been loaded, i.e. there is a > > root node, and that the of_have_populated_dt() API works properly. > > > > Cc: Rob Herr

Re: [PATCH v3 7/7] of: Add KUnit test to confirm DTB is loaded

2024-02-09 Thread Stephen Boyd
Quoting Geert Uytterhoeven (2024-02-05 11:55:29) > On Mon, Feb 5, 2024 at 8:19 PM Stephen Boyd wrote: > > Quoting David Gow (2024-02-02 20:10:17) > > > On Sat, 3 Feb 2024 at 03:59, Stephen Boyd wrote: > > > > Add a KUnit test that confirms a DTB has been loaded, i.e

Re: [PATCH v3 7/7] of: Add KUnit test to confirm DTB is loaded

2024-02-15 Thread Stephen Boyd
Quoting Rob Herring (2024-02-13 09:52:00) > On Fri, Feb 9, 2024 at 8:59 PM Stephen Boyd wrote: > > > > ---8<--- > > diff --git a/init/main.c b/init/main.c > > index e24b0780fdff..02f5cf8be6c1 100644 > > --- a/init/main.c > > +++ b/init/main.c > >

[PATCH v4 2/7] of: Create of_root if no dtb provided by firmware

2024-02-16 Thread Stephen Boyd
b...@kernel.org: Update of_have_populated_dt() to treat this empty dtb as not populated. Drop setup_of() initcall] Signed-off-by: Stephen Boyd --- drivers/of/Kconfig| 5 ++--- drivers/of/Makefile | 2 +- drivers/of/empty_root.dts | 6 ++ drivers/of/fdt.

[PATCH v4 1/7] of: Always unflatten in unflatten_and_copy_device_tree()

2024-02-16 Thread Stephen Boyd
e and then unflatten it. If there isn't a DT to copy, then the call to unflatten_device_tree() is largely a no-op, so nothing really changes here. Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Stephen Boyd --- drivers/of/fdt.c | 32 +--- 1 file changed, 17 insertions(+

[PATCH v4 6/7] of: unittest: treat missing of_root as error instead of fixing up

2024-02-16 Thread Stephen Boyd
testcase-data subtree. Remove the unittest code that unflattens the unittest overlay base if architecture is UML because that is always done now. Signed-off-by: Frank Rowand Link: https://lore.kernel.org/r/20230317053415.2254616-3-frowand.l...@gmail.com Cc: Rob Herring Signed-off-by: Stephen Bo

[PATCH v4 4/7] x86/of: Unconditionally call unflatten_and_copy_device_tree()

2024-02-16 Thread Stephen Boyd
hen unflatten_device_tree() returns early. Cc: Rob Herring Cc: Frank Rowand Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: Cc: "H. Peter Anvin" Tested-by: Saurabh Sengar Signed-off-by: Stephen Boyd --- arch/x86/kernel/devicetree.c | 24 +

[PATCH v4 5/7] arm64: Unconditionally call unflatten_device_tree()

2024-02-16 Thread Stephen Boyd
Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Signed-off-by: Stephen Boyd --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 42c690bb2d60..0d210720d47d 100644 --- a/arch/arm64/kernel/setu

[PATCH v4 0/7] of: populate of_root node if bootloader doesn't

2024-02-16 Thread Stephen Boyd
(2): of: Create of_root if no dtb provided by firmware of: unittest: treat missing of_root as error instead of fixing up Stephen Boyd (5): of: Always unflatten in unflatten_and_copy_device_tree() um: Unconditionally call unflatten_device_tree() x86/of: Unconditionally call unflatten_and_c

[PATCH v4 7/7] of: Add KUnit test to confirm DTB is loaded

2024-02-16 Thread Stephen Boyd
would populate some sort of root node. Cc: Rob Herring Cc: Frank Rowand Reviewed-by: David Gow Cc: Brendan Higgins Signed-off-by: Stephen Boyd --- drivers/of/.kunitconfig | 3 +++ drivers/of/Kconfig | 9 +++ drivers/of/Makefile | 2 ++ drivers/of/of_test.c

[PATCH v4 3/7] um: Unconditionally call unflatten_device_tree()

2024-02-16 Thread Stephen Boyd
urns early. Cc: Rob Herring Cc: Frank Rowand Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Signed-off-by: Stephen Boyd --- arch/um/kernel/dtb.c | 14 +++--- drivers/of/unittest.c | 4 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/um/kern