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)

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

2023-03-15 Thread David Gow
On Thu, 16 Mar 2023 at 08:45, Frank Rowand wrote: > > On 3/15/23 16:35, Frank Rowand wrote: > > On 3/15/23 02:04, David Gow wrote: > >> On Tue, 14 Mar 2023 at 12:28, Frank Rowand wrote: > >>> > >>> On 3/13/23 11:02, Frank Rowand wrote: > On 3/11/23 00:42, David Gow wrote: > > On Sat, 11

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

2023-03-15 Thread Frank Rowand
On 3/15/23 16:35, Frank Rowand wrote: > On 3/15/23 02:04, David Gow wrote: >> On Tue, 14 Mar 2023 at 12:28, Frank Rowand wrote: >>> >>> On 3/13/23 11:02, Frank Rowand wrote: On 3/11/23 00:42, David Gow wrote: > On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: >> >> Quoting David

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

2023-03-15 Thread Frank Rowand
On 3/15/23 02:04, David Gow wrote: > On Tue, 14 Mar 2023 at 12:28, Frank Rowand wrote: >> >> On 3/13/23 11:02, Frank Rowand wrote: >>> On 3/11/23 00:42, David Gow wrote: On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: > > Quoting David Gow (2023-03-10 00:09:48) >> On Fri, 10 Ma

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

2023-03-15 Thread David Gow
On Tue, 14 Mar 2023 at 12:28, Frank Rowand wrote: > > On 3/13/23 11:02, Frank Rowand wrote: > > On 3/11/23 00:42, David Gow wrote: > >> On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: > >>> > >>> Quoting David Gow (2023-03-10 00:09:48) > On Fri, 10 Mar 2023 at 07:19, Stephen Boyd wrote: >

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

2023-03-13 Thread Frank Rowand
On 3/13/23 11:02, Frank Rowand wrote: > On 3/11/23 00:42, David Gow wrote: >> On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: >>> >>> 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 tes

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

2023-03-13 Thread Frank Rowand
On 3/11/23 00:42, David Gow wrote: > On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: >> >> 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

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

2023-03-10 Thread David Gow
On Sat, 11 Mar 2023 at 07:34, Stephen Boyd wrote: > > 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 chec

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 skip if it isn't enabled? > > > > More o

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

2023-03-10 Thread David Gow
On Fri, 10 Mar 2023 at 07:19, Stephen Boyd wrote: > > 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' pointer

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 > > that things like clk_get() can parse DT nodes for 'clo

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

2023-03-08 Thread Rob Herring
On Wed, Mar 01, 2023 at 05:38:15PM -0800, 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 > that things like clk_get() can parse DT nodes for 'clocks' and so that > clk providers can use

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

2023-03-02 Thread David Gow
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 > that things like clk_get() can parse DT nodes for 'clocks' and so that > clk providers can use DT to pro