<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/clk/.kunitconfig, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/clk/.kunitconfig?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/clk/.kunitconfig?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-07-14T16:35:44Z</updated>
<entry>
<title>clk: explicitly disable CONFIG_UML_PCI_OVER_VIRTIO in .kunitconfig</title>
<updated>2022-07-14T16:35:44Z</updated>
<author>
<name>Daniel Latypov</name>
<email>dlatypov@google.com</email>
</author>
<published>2022-07-11T16:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f84a9e9658337e5a8407819971c79fd97bb7d408'/>
<id>urn:sha1:f84a9e9658337e5a8407819971c79fd97bb7d408</id>
<content type='text'>
CONFIG_UML_PCI_OVER_VIRTIO=y is needed to enable CONFIG_PCI=y on UML.
However, this causes test failures when running the clk tests, i.e.
$ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/clk

A snippet of the particular error is:
&gt;     ok 1 - clk_gate_test_parent_rate
&gt; ------------[ cut here ]------------
&gt; WARNING: CPU: 0 PID: 45 at lib/logic_iomem.c:141 __raw_readl+0x9f/0xd0

This is triggered by this cast in the test:
   143          ctx-&gt;fake_mem = (void __force __iomem *)&amp;ctx-&gt;fake_reg;
this seems to work except when logic iomem is enabled, i.e.
CONFIG_INDIRECT_IOMEM=y.

As a short-term fix, explicitly disable CONFIG_UML_PCI_OVER_VIRTIO in
drivers/clk/.kunitconfig so we can enable it for everyone else by
default in kunit.py.

The long-term fix probably requires something more complicated, like
  #ifdef CONFIG_INDIRECT_IOMEM
    logic_iomem_add_region(...);
  #endif

Signed-off-by: Daniel Latypov &lt;dlatypov@google.com&gt;
Reported-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Tested-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Acked-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Reviewed-by: David Gow &lt;davidgow@google.com&gt;
Acked-by: Brendan Higgins &lt;brendanhiggins@google.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>clk: Introduce Kunit Tests for the framework</title>
<updated>2022-03-12T03:14:38Z</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime@cerno.tech</email>
</author>
<published>2022-02-25T14:35:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=723d0530d9d778cdceab4ebd0d0efc2d3a021c3c'/>
<id>urn:sha1:723d0530d9d778cdceab4ebd0d0efc2d3a021c3c</id>
<content type='text'>
Let's test various parts of the rate-related clock API with the kunit
testing framework.

Cc: kunit-dev@googlegroups.com
Tested-by: Daniel Latypov &lt;dlatypov@google.com&gt;
Suggested-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20220225143534.405820-3-maxime@cerno.tech
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: gate: Add some kunit test suites</title>
<updated>2022-01-25T01:22:53Z</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2022-01-20T17:59:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a992acbb219a74fb025f8c2d65760fe05e775c7b'/>
<id>urn:sha1:a992acbb219a74fb025f8c2d65760fe05e775c7b</id>
<content type='text'>
Test various parts of the clk gate implementation with the kunit testing
framework.

Reviewed-by: Brendan Higgins &lt;brendanhiggins@google.com&gt;
Acked-by: Daniel Latypov &lt;dlatypov@google.com&gt;
Cc: &lt;kunit-dev@googlegroups.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Link: https://lore.kernel.org/r/20220120175902.2165958-1-sboyd@kernel.org
</content>
</entry>
</feed>
