* [PATCH 0/2] GPU buddy allocator test fixes
@ 2026-06-18 15:23 Krzysztof Niemiec
2026-06-18 15:23 ` [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST Krzysztof Niemiec
2026-06-18 15:23 ` [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig Krzysztof Niemiec
0 siblings, 2 replies; 7+ messages in thread
From: Krzysztof Niemiec @ 2026-06-18 15:23 UTC (permalink / raw)
To: dri-devel
Cc: David Airlie, Simona Vetter, Joel Fernandes, Andi Shyti,
Krzysztof Karas, Sebastian Brzezinka, Janusz Krzysztofik,
Krzysztof Niemiec
This series introduces small fixes to the GPU buddy allocator test
configuration. The direct purpose of these changes is to fix running the
KUnit tests via kunittool, or running the tests on systems not building
any DRM drivers.
Krzysztof Niemiec (2):
gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST
gpu/tests: Add a dedicated .kunitconfig
drivers/gpu/Kconfig | 3 ++-
drivers/gpu/tests/.kunitconfig | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
create mode 100644 drivers/gpu/tests/.kunitconfig
--
2.45.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST
2026-06-18 15:23 [PATCH 0/2] GPU buddy allocator test fixes Krzysztof Niemiec
@ 2026-06-18 15:23 ` Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:24 ` Andi Shyti
2026-06-18 15:23 ` [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig Krzysztof Niemiec
1 sibling, 2 replies; 7+ messages in thread
From: Krzysztof Niemiec @ 2026-06-18 15:23 UTC (permalink / raw)
To: dri-devel
Cc: David Airlie, Simona Vetter, Joel Fernandes, Andi Shyti,
Krzysztof Karas, Sebastian Brzezinka, Janusz Krzysztofik,
Krzysztof Niemiec
CONFIG_GPU_BUDDY is currently not selectable by the user, mirroring
how CONFIG_DRM_BUDDY does it - the idea is for a driver that makes use
of it to include a "select GPU_BUDDY" line in its kconfig.
CONFIG_DRM_BUDDY is also selected when building with
CONFIG_DRM_KUNIT_TEST, as it can be thought of as building a mock
"driver" running the tests, that makes use of the buddy functionality.
CONFIG_GPU_BUDDY_KUNIT_TEST doesn't follow that logic, requiring
GPU_BUDDY to be selected already instead of selecting it itself. This
requires building the test kernel with another driver that uses
DRM_BUDDY, as this is currently the only kconfig option that selects
GPU_BUDDY. That shouldn't be required to run unit tests for a module
now completely independent from DRM, let alone any specific driver.
Fix the dependency declaration in CONFIG_GPU_BUDDY_KUNIT_TEST to make it
work as intended, mirroring the setup in CONFIG_DRM_KUNIT_TEST.
Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
---
drivers/gpu/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/Kconfig b/drivers/gpu/Kconfig
index ebb2ad4b7ea0..3bcf08260d73 100644
--- a/drivers/gpu/Kconfig
+++ b/drivers/gpu/Kconfig
@@ -7,7 +7,8 @@ config GPU_BUDDY
config GPU_BUDDY_KUNIT_TEST
tristate "KUnit tests for GPU buddy allocator" if !KUNIT_ALL_TESTS
- depends on GPU_BUDDY && KUNIT
+ depends on KUNIT
+ select GPU_BUDDY
default KUNIT_ALL_TESTS
help
KUnit tests for the GPU buddy allocator.
--
2.45.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig
2026-06-18 15:23 [PATCH 0/2] GPU buddy allocator test fixes Krzysztof Niemiec
2026-06-18 15:23 ` [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST Krzysztof Niemiec
@ 2026-06-18 15:23 ` Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:26 ` Andi Shyti
1 sibling, 2 replies; 7+ messages in thread
From: Krzysztof Niemiec @ 2026-06-18 15:23 UTC (permalink / raw)
To: dri-devel
Cc: David Airlie, Simona Vetter, Joel Fernandes, Andi Shyti,
Krzysztof Karas, Sebastian Brzezinka, Janusz Krzysztofik,
Krzysztof Niemiec
Add a dedicated .kunitconfig for running the GPU buddy allocator tests.
Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
---
drivers/gpu/tests/.kunitconfig | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 drivers/gpu/tests/.kunitconfig
diff --git a/drivers/gpu/tests/.kunitconfig b/drivers/gpu/tests/.kunitconfig
new file mode 100644
index 000000000000..fd611b3dfe09
--- /dev/null
+++ b/drivers/gpu/tests/.kunitconfig
@@ -0,0 +1,2 @@
+CONFIG_KUNIT=y
+CONFIG_GPU_BUDDY_KUNIT_TEST=y
--
2.45.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig
2026-06-18 15:23 ` [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig Krzysztof Niemiec
@ 2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:26 ` Andi Shyti
1 sibling, 0 replies; 7+ messages in thread
From: Sebastian Brzezinka @ 2026-06-19 10:09 UTC (permalink / raw)
To: Krzysztof Niemiec, dri-devel
Cc: David Airlie, Simona Vetter, Joel Fernandes, Andi Shyti,
Krzysztof Karas, Sebastian Brzezinka, Janusz Krzysztofik
Hi Krzysztof,
On Thu Jun 18, 2026 at 5:23 PM CEST, Krzysztof Niemiec wrote:
> Add a dedicated .kunitconfig for running the GPU buddy allocator tests.
>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
> ---
> drivers/gpu/tests/.kunitconfig | 2 ++
> 1 file changed, 2 insertions(+)
> create mode 100644 drivers/gpu/tests/.kunitconfig
>
> diff --git a/drivers/gpu/tests/.kunitconfig b/drivers/gpu/tests/.kunitconfig
> new file mode 100644
> index 000000000000..fd611b3dfe09
> --- /dev/null
> +++ b/drivers/gpu/tests/.kunitconfig
> @@ -0,0 +1,2 @@
> +CONFIG_KUNIT=y
> +CONFIG_GPU_BUDDY_KUNIT_TEST=y
Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
--
Best regards,
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST
2026-06-18 15:23 ` [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST Krzysztof Niemiec
@ 2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:24 ` Andi Shyti
1 sibling, 0 replies; 7+ messages in thread
From: Sebastian Brzezinka @ 2026-06-19 10:09 UTC (permalink / raw)
To: Krzysztof Niemiec, dri-devel
Cc: David Airlie, Simona Vetter, Joel Fernandes, Andi Shyti,
Krzysztof Karas, Sebastian Brzezinka, Janusz Krzysztofik
Hi Krzysztof,
On Thu Jun 18, 2026 at 5:23 PM CEST, Krzysztof Niemiec wrote:
> CONFIG_GPU_BUDDY is currently not selectable by the user, mirroring
> how CONFIG_DRM_BUDDY does it - the idea is for a driver that makes use
> of it to include a "select GPU_BUDDY" line in its kconfig.
> CONFIG_DRM_BUDDY is also selected when building with
> CONFIG_DRM_KUNIT_TEST, as it can be thought of as building a mock
> "driver" running the tests, that makes use of the buddy functionality.
>
> CONFIG_GPU_BUDDY_KUNIT_TEST doesn't follow that logic, requiring
> GPU_BUDDY to be selected already instead of selecting it itself. This
> requires building the test kernel with another driver that uses
> DRM_BUDDY, as this is currently the only kconfig option that selects
> GPU_BUDDY. That shouldn't be required to run unit tests for a module
> now completely independent from DRM, let alone any specific driver.
>
> Fix the dependency declaration in CONFIG_GPU_BUDDY_KUNIT_TEST to make it
> work as intended, mirroring the setup in CONFIG_DRM_KUNIT_TEST.
>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
> ---
Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
--
Best regards,
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST
2026-06-18 15:23 ` [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
@ 2026-06-19 11:24 ` Andi Shyti
1 sibling, 0 replies; 7+ messages in thread
From: Andi Shyti @ 2026-06-19 11:24 UTC (permalink / raw)
To: Krzysztof Niemiec
Cc: dri-devel, David Airlie, Simona Vetter, Joel Fernandes,
Andi Shyti, Krzysztof Karas, Sebastian Brzezinka,
Janusz Krzysztofik
Hi Krzysztof,
On Thu, Jun 18, 2026 at 05:23:30PM +0200, Krzysztof Niemiec wrote:
> CONFIG_GPU_BUDDY is currently not selectable by the user, mirroring
> how CONFIG_DRM_BUDDY does it - the idea is for a driver that makes use
> of it to include a "select GPU_BUDDY" line in its kconfig.
> CONFIG_DRM_BUDDY is also selected when building with
> CONFIG_DRM_KUNIT_TEST, as it can be thought of as building a mock
> "driver" running the tests, that makes use of the buddy functionality.
>
> CONFIG_GPU_BUDDY_KUNIT_TEST doesn't follow that logic, requiring
> GPU_BUDDY to be selected already instead of selecting it itself. This
> requires building the test kernel with another driver that uses
> DRM_BUDDY, as this is currently the only kconfig option that selects
> GPU_BUDDY. That shouldn't be required to run unit tests for a module
> now completely independent from DRM, let alone any specific driver.
>
> Fix the dependency declaration in CONFIG_GPU_BUDDY_KUNIT_TEST to make it
> work as intended, mirroring the setup in CONFIG_DRM_KUNIT_TEST.
>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Thanks,
Andi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig
2026-06-18 15:23 ` [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
@ 2026-06-19 11:26 ` Andi Shyti
1 sibling, 0 replies; 7+ messages in thread
From: Andi Shyti @ 2026-06-19 11:26 UTC (permalink / raw)
To: Krzysztof Niemiec
Cc: dri-devel, David Airlie, Simona Vetter, Joel Fernandes,
Andi Shyti, Krzysztof Karas, Sebastian Brzezinka,
Janusz Krzysztofik
Hi Krzysztof,
On Thu, Jun 18, 2026 at 05:23:31PM +0200, Krzysztof Niemiec wrote:
> Add a dedicated .kunitconfig for running the GPU buddy allocator tests.
>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
not a bad idea!
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Thanks,
Andi
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-06-19 11:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 15:23 [PATCH 0/2] GPU buddy allocator test fixes Krzysztof Niemiec
2026-06-18 15:23 ` [PATCH 1/2] gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:24 ` Andi Shyti
2026-06-18 15:23 ` [PATCH 2/2] gpu/tests: Add a dedicated .kunitconfig Krzysztof Niemiec
2026-06-19 10:09 ` Sebastian Brzezinka
2026-06-19 11:26 ` Andi Shyti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.