From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69E03606A325 for ; Mon, 30 Nov 2026 14:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K29O64wn Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3130E10F096; Mon, 30 Nov 2026 14:25:31 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8B42710F096 for ; Mon, 30 Nov 2026 14:25:24 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 4CE1C418E9; Mon, 30 Nov 2026 14:25:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BC9F1F00896; Mon, 30 Nov 2026 14:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796048724; bh=G73ZqMvuMVkWf0E6b82awV4EUPDIaqhVvE+EnKoCbY8=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=K29O64wnnwdDikXr/pax+pWHgTt5zwhYOHDhFl+H4B4K4C5dxRZ2s+22Sb1RAJm+g 4XXNAywggvte9FU3qAo+ARQsbU3fSBlRdVno6Tl2GQYm/iFOXx76IV9AT5vMtAcDJe 9krKZWMINShhTtveOgNAK+tHdHY3NWPcctozQesCO/kfRcW4rFlhPFsaNXVoRJ52Ug AiHMHkjPUcJcj5piLGnnO5dl+1L7GoTDQJ1P/I8fEEyVxpLj1cZp7+wgdugmOgr8A8 304rSFwLrcYSsy+ma7AqfU1U/zf0dVqqz2nPJBlFR0j7twS1VwS2waemnDI3YXNwkr rX0LtfrSIpoKQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/4] drm/xe/cper: Add KUnit tests for CPER GUID mappings To: "Mallesh Koujalagi" , intel-xe@lists.freedesktop.org In-Reply-To: <20261130140815.2227101-7-mallesh.koujalagi@intel.com> References: <20261130140815.2227101-6-mallesh.koujalagi@intel.com> <20261130140815.2227101-7-mallesh.koujalagi@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 14:25:23 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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/x= e/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 =3D { > + .name =3D "xe_cper", > + .test_cases =3D 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=3Dm, 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130140815.2227= 101-6-mallesh.koujalagi@intel.com?part=3D1