[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.dtsi | 15

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

2023-03-01 Thread Stephen Boyd
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 provide clks; the most common mode of operation for clk provide

[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 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
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 test managed wrappers for the clk APIs so that clk unit tests can write more code in the actual test and less code in the harness. Only add AP

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

2023-03-01 Thread Stephen Boyd
Introduce KUnit resource wrappers around platform_driver_register(), platform_device_alloc(), and platform_device_add() so that test authors can register platform drivers/devices from their tests and have the drivers/devices automatically be unregistered when the test is done. This makes test setu

[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 --- .../kunit

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

2023-03-01 Thread Stephen Boyd
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 add support for loading a DTB into the UML kernel that's running the unit tests along with probing platform drivers to bind to device nodes specif

Re: [GIT PULL] UML changes for v6.3-rc1

2023-03-01 Thread pr-tracker-bot
The pull request you sent on Wed, 1 Mar 2023 09:07:03 +0100 (CET): > git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux.git > tags/uml-for-linus-6.3-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/64e851689e441e66e001ae063d4536602f9f74cb Thank you! -- Deet-

Re: [PATCH v6 13/41] mm: Make pte_mkwrite() take a VMA

2023-03-01 Thread Deepak Gupta
On Sat, Feb 18, 2023 at 01:14:05PM -0800, Rick Edgecombe wrote: The x86 Control-flow Enforcement Technology (CET) feature includes a new type of memory called shadow stack. This shadow stack memory has some unusual properties, which requires some core mm changes to function properly. One of thes

Re: [PATCH v7 13/41] mm: Make pte_mkwrite() take a VMA

2023-03-01 Thread David Hildenbrand
On 01.03.23 08:03, Christophe Leroy wrote: Le 27/02/2023 à 23:29, Rick Edgecombe a écrit : The x86 Control-flow Enforcement Technology (CET) feature includes a new type of memory called shadow stack. This shadow stack memory has some unusual properties, which requires some core mm changes to f

[GIT PULL] UML changes for v6.3-rc1

2023-03-01 Thread Richard Weinberger
Linus, The following changes since commit 2241ab53cbb5cdb08a6b2d4688feb13971058f65: Linux 6.2-rc5 (2023-01-21 16:27:01 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux.git tags/uml-for-linus-6.3-rc1 for you to fetch changes up to 04df9