Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	intel-xe@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t v3 01/11] lib/ktap: Improve TODO workaround description
Date: Thu, 12 Oct 2023 16:45:34 +0200	[thread overview]
Message-ID: <20231012164534.574aa0d3@maurocar-mobl2> (raw)
In-Reply-To: <20231011141734.590321-14-janusz.krzysztofik@linux.intel.com>

On Wed, 11 Oct 2023 16:17:36 +0200
Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> wrote:

> A workaround was implemented in IGT KTAP parser so it could accepted KTAP
> reports with missing top level KTAP version and test suite plan headers.
> While the issue has been fixed by a kernel side commit c95e7c05c139
> ("kunit: Report the count of test suites in a module"), included in the
> mainline kernel since v6.6-rc1, we still need to keep that workaround in
> place to preserve IGT compatibility with LTS kernel version 6.1 as long as
> it is used by major Linux distributions.
> 
> Update the comment with a reference to the kernel side fix and a
> clarification on why we need to keep the workaround in place.
> 
> Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>

Reviewed-by: Mauro Carvaho Chehab <mchehab@kernel.org>

> ---
>  lib/igt_ktap.c | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/igt_ktap.c b/lib/igt_ktap.c
> index 5eac102417..3df4d6950d 100644
> --- a/lib/igt_ktap.c
> +++ b/lib/igt_ktap.c
> @@ -91,9 +91,16 @@ int igt_ktap_parse(const char *buf, struct igt_ktap_results *ktap)
>  				       "%*1[ ]%*1[ ]%*1[ ]%*1[ ]KTAP%*[ ]version%*[ ]%u %n",
>  				       &n, &len) == 1 && len == strlen(buf))) {
>  		/*
> -		 * TODO: drop the following workaround as soon as
> -		 * kernel side issue of missing lines with top level
> -		 * KTAP version and test suite plan is fixed.
> +		 * TODO: drop the following workaround, which addresses a kernel
> +		 * side issue of missing lines that provide top level KTAP
> +		 * version and test suite plan, as soon as no longer needed.
> +		 *
> +		 * The issue has been fixed in v6.6-rc1, commit c95e7c05c139
> +		 * ("kunit: Report the count of test suites in a module"),
> +		 * but we still need this workaround for as long as LTS kernel
> +		 * version 6.1, with DRM selftests already converted to Kunit,
> +		 * but without that missing Kunit headers issue fixed, is used
> +		 * by major Linux distributions.
>  		 */
>  		if (ktap->expect == KTAP_START) {
>  			ktap->suite_count = 1;

  parent reply	other threads:[~2023-10-12 14:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11 14:17 [igt-dev] [PATCH i-g-t v3 00/11] Kunit fixes and improvements Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 01/11] lib/ktap: Improve TODO workaround description Janusz Krzysztofik
2023-10-12  7:41   ` Kamil Konieczny
2023-10-12 14:45   ` Mauro Carvalho Chehab [this message]
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 02/11] lib/kunit: Fix handling of potential errors from F_GETFL Janusz Krzysztofik
2023-10-12 14:46   ` [igt-dev] [Intel-gfx] " Mauro Carvalho Chehab
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 03/11] lib/kunit: Be more verbose on errors Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 04/11] lib/kunit: Fix misplaced igt_kunit() doc Janusz Krzysztofik
2023-10-12 14:47   ` [igt-dev] [Intel-gfx] " Mauro Carvalho Chehab
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 05/11] lib/kunit: Parse KTAP report from the main process thread Janusz Krzysztofik
2023-10-20 11:32   ` Kamil Konieczny
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 06/11] lib/kunit: Omit suite name prefix if the same as subtest name Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 07/11] tests/kms_selftest: Let subtest names match suite names Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 08/11] lib/kunit: Provide all results cleanup helper Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 09/11] lib/kunit: Prepare for KTAP parsing after modprobe completed Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 10/11] lib/kunit: Fetch a list of test cases in advance Janusz Krzysztofik
2023-10-20 11:33   ` Kamil Konieczny
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 11/11] lib/kunit: Execute kunit test cases only when needed Janusz Krzysztofik
2023-10-12  1:00 ` [igt-dev] ✓ Fi.CI.BAT: success for Kunit fixes and improvements (rev4) Patchwork
2023-10-12  1:21 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-12 17:59 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-13 12:59   ` Janusz Krzysztofik
2023-10-17  5:41 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

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=20231012164534.574aa0d3@maurocar-mobl2 \
    --to=mauro.chehab@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=janusz.krzysztofik@linux.intel.com \
    /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