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
>
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
> >
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
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
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
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/
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
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
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)
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(+
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
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
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
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
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
_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
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
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
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:
> > >
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
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:
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
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 +
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
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(+
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
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
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
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
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_
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 +---
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(+
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
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
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
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
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
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
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
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
> >
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.
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(+
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
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 +
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
(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
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
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
61 matches
Mail list logo