From: sashiko-bot@kernel.org
To: "Mallesh Koujalagi" <mallesh.koujalagi@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 1/4] drm/xe/cper: Add KUnit tests for CPER GUID mappings
Date: Mon, 30 Nov 2026 14:25:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-241381@kernel.org> (raw)
In-Reply-To: <20261130140815.2227101-7-mallesh.koujalagi@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/xe/cper: xe_cper.c includes KUnit suite under IS_ENABLED
not IS_BUILTIN
--
commit f07f36170256d3e8a2df6a694614b76a315a8b2d
Author: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
drm/xe/cper: Add KUnit tests for CPER GUID mappings
This commit adds a KUnit test suite to verify that CRI PCI IDs and CPER
GUID entries in xe_device_guids[] stay in sync, and selects UEFI_CPER for
DRM_XE_KUNIT_TEST.
> diff --git a/drivers/gpu/drm/xe/tests/xe_cper_kunit.c b/drivers/gpu/drm/xe/tests/xe_cper_kunit.c
> new file mode 100644
> index 0000000000000..6376f9e91d7eb
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/tests/xe_cper_kunit.c
[ ... ]
> +static struct kunit_suite xe_cper_suite = {
> + .name = "xe_cper",
> + .test_cases = xe_cper_test_cases,
> +};
> +
> +kunit_test_suites(&xe_cper_suite);
> diff --git a/drivers/gpu/drm/xe/xe_cper.c b/drivers/gpu/drm/xe/xe_cper.c
> index 64bbb149e4e3e..ee00c7b31a7ac 100644
> --- a/drivers/gpu/drm/xe/xe_cper.c
> +++ b/drivers/gpu/drm/xe/xe_cper.c
> @@ -571,3 +571,7 @@ int xe_cper_sysfs_init(struct xe_device *xe)
> {
> return devm_device_add_group(xe->drm.dev, &cper_group);
> }
> +
> +#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
> +#include "tests/xe_cper_kunit.c"
> +#endif
[Severity: Medium]
Should this include be guarded by IS_BUILTIN(CONFIG_DRM_XE_KUNIT_TEST)
like the other inline KUnit test files in drivers/gpu/drm/xe/ that call
kunit_test_suites()?
xe_cper.o is linked into the main xe.ko module. When
CONFIG_DRM_XE_KUNIT_TEST=m, IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST) is true,
so kunit_test_suites(&xe_cper_suite) embeds a .kunit_test_suites section
into xe.ko itself. Loading xe.ko then triggers kunit_module_notify() ->
kunit_module_init(), running xe_cper_suite and tainting the kernel with
TAINT_TEST during normal driver load even when no KUnit test module is
loaded.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130140815.2227101-6-mallesh.koujalagi@intel.com?part=1
next prev parent reply other threads:[~2026-11-30 14:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 14:08 [PATCH v2 0/4] Add KUnit tests for CPER GUID mappings Mallesh Koujalagi
2026-11-30 14:08 ` [PATCH v2 1/4] drm/xe/cper: " Mallesh Koujalagi
2026-11-30 14:25 ` sashiko-bot [this message]
2026-11-30 14:08 ` [PATCH v2 2/4] drm/xe/cper: Add KUnit tests for GUID uniqueness Mallesh Koujalagi
2026-11-30 14:08 ` [PATCH v2 3/4] drm/xe/cper: Validate platform GUIDs in KUnit tests Mallesh Koujalagi
2026-11-30 14:08 ` [PATCH v2 4/4] drm/xe/cper: Add PCI ID to GUID mapping verification in KUnit Mallesh Koujalagi
2026-11-30 14:16 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-241381@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mallesh.koujalagi@intel.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox