Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Shankar, Uma" <uma.shankar@intel.com>
To: Jeremy Cline <jcline@redhat.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Latvala, Petri" <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v3] tests/kms_hdr: Fix bpc-switch tests on AMD hardware
Date: Wed, 10 Mar 2021 16:38:30 +0000	[thread overview]
Message-ID: <07b4a3f11f7d4061aa17298424694223@intel.com> (raw)
In-Reply-To: <20210310163434.71450-1-jcline@redhat.com>



> -----Original Message-----
> From: Jeremy Cline <jcline@redhat.com>
> Sent: Wednesday, March 10, 2021 10:05 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Latvala, Petri <petri.latvala@intel.com>; Shankar, Uma
> <uma.shankar@intel.com>; Sharma, Swati2 <swati2.sharma@intel.com>;
> maarten.lankhorst@linux.intel.com; nicholas.kazlauskas@amd.com; Jeremy Cline
> <jcline@redhat.com>
> Subject: [PATCH i-g-t v3] tests/kms_hdr: Fix bpc-switch tests on AMD hardware
> 
> Kernel commit b836a274b797 ("drm/amdgpu/dc: Require primary plane to be
> enabled whenever the CRTC is") causes the bpc-switch tests to fail since the primary
> plane fb is being removed, which leads to the next atomic commit failing with -
> EINVAL.
> 
> Fix this by leaving the primary plane in place for amdgpu devices.
> 
> Signed-off-by: Jeremy Cline <jcline@redhat.com>
> ---
> Changes from v2:
>   - Instead of skipping on pre-Kaby Lake, only remove the primary
>     plane for AMD devices (thanks for the feedback Petri, Swati,
>     and Uma!)

Looks good.
Reviewed-by: Uma Shankar <uma.shankar@intel.com>

>  tests/kms_hdr.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c index e9dd7f27..5b8529c8 100644
> --- a/tests/kms_hdr.c
> +++ b/tests/kms_hdr.c
> @@ -223,7 +223,14 @@ static void test_bpc_switch_on_output(data_t *data,
> igt_output_t *output,
>  			data->h = afb.height;
>  		}
> 
> -		igt_plane_set_fb(data->primary, NULL);
> +		/*
> +		 * amdgpu requires a primary plane when the CRTC is enabled.
> +		 * However, some older Intel hardware (hsw) have scaling
> +		 * requirements that are not met by the plane, so remove it
> +		 * for non-AMD devices.
> +		 */
> +		if (!is_amdgpu_device(data->fd))
> +			igt_plane_set_fb(data->primary, NULL);
> 
>  		/*
>  		 * i915 driver doesn't expose max bpc as debugfs entry,
> --
> 2.30.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2021-03-10 16:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 17:27 [igt-dev] [PATCH i-g-t] tests/kms_hdr: Fix bpc-switch tests on AMD hardware Jeremy Cline
2021-02-19 18:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-19 19:35 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-02-19 22:00   ` Jeremy Cline
2021-03-05 16:42 ` [igt-dev] [PATCH i-g-t v2 0/2] Fix up the HDR tests for AMD devices Jeremy Cline
2021-03-05 16:42   ` [igt-dev] [PATCH i-g-t v2 1/2] kms_hdr: Skip HDR tests on pre-Kaby Lake Intel devices Jeremy Cline
2021-03-08  8:47     ` Petri Latvala
2021-03-08 12:41       ` Sharma, Swati2
2021-03-08 12:53         ` Petri Latvala
2021-03-08 15:06           ` Jeremy Cline
2021-03-09 14:01             ` Petri Latvala
2021-03-10 12:48               ` Shankar, Uma
2021-03-10 12:53                 ` Petri Latvala
2021-03-10 14:55                   ` Sharma, Swati2
2021-03-05 16:42   ` [igt-dev] [PATCH i-g-t v2 2/2] kms_hdr: Fix bpc-switch tests on AMD hardware Jeremy Cline
2021-03-05 16:48     ` Kazlauskas, Nicholas
2021-03-05 17:17 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_hdr: Fix bpc-switch tests on AMD hardware (rev2) Patchwork
2021-03-05 21:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-03-10 16:34 ` [igt-dev] [PATCH i-g-t v3] tests/kms_hdr: Fix bpc-switch tests on AMD hardware Jeremy Cline
2021-03-10 16:38   ` Shankar, Uma [this message]
2021-03-10 16:45 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/kms_hdr: Fix bpc-switch tests on AMD hardware (rev3) Patchwork
2021-03-11  9:01   ` Petri Latvala

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=07b4a3f11f7d4061aa17298424694223@intel.com \
    --to=uma.shankar@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jcline@redhat.com \
    --cc=petri.latvala@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