Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Hung <alex.hung@amd.com>
To: "André Almeida" <andrealmeid@igalia.com>,
	"Melissa Wen" <mwen@igalia.com>
Cc: igt-dev@lists.freedesktop.org, Jeevan B <jeevan.b@intel.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	kernel-dev@igalia.com, Vitaly Prosyak <vitaly.prosyak@amd.com>,
	Rodrigo Siqueira <siqueira@igalia.com>
Subject: Re: [PATCH v6 4/4] tests/kms_async_flips: Create subtest for overlay planes
Date: Tue, 8 Apr 2025 15:46:25 -0600	[thread overview]
Message-ID: <9a6eff78-7205-4c5f-b553-dbe99d27eb7b@amd.com> (raw)
In-Reply-To: <a9220ac3-273b-4f31-8252-5ef20fbcbed6@igalia.com>



On 4/8/25 14:45, André Almeida wrote:
> 
> 
> Em 08/04/2025 16:26, André Almeida escreveu:
>> Em 08/04/2025 15:53, Alex Hung escreveu:
>>>
>>>
>>> On 4/8/25 10:16, Melissa Wen wrote:
>>>> On 04/07, André Almeida wrote:
>>>>> amdgpu can perform async flips in overlay planes as well, so create a
>>>>> test for that.
>>>>
>>>> Hey,
>>>>
>>>> LGTM. Thanks!
>>>>
>>>> Reviewed-by: Melissa Wen <mwen@igalia.com>
>>>>
>>>> Alex,
>>>>
>>>> Can you check if it's fine for AMD too?
>>>
>>> Hi André,
>>>
>>> I ran the subtest "overlay-atomic" on PHX APU + kernel of amd- 
>>> staging- drm-next, and they were skipped.
>>>
>>> What the kernel and ASIC did you run overlay-atomic?
>>
>> I'm using drm-misc/drm-misc-next (eff0347e7c228335e9ff64aaf02c669578) 
>> with a Steam Deck and Melissa tested in an AMD Cezanne (DCN 2.1) GPU.
>>
> 
> Also, please note that amd-staging-drm-next currently doesn't have 
> support for this, so you need to either checkout to drm-next or drm- 
> misc-next, or apply the following commits to your tree:
> 
> 41129e236f14 drm/amdgpu: Enable async flip on overlay planes
> fd40a63c63a1 drm/atomic: Let drivers decide which planes to async flip

Thanks. I was able to run overlay-atomic on either drm-misc-next or asdn 
+ these two commits.

overlay-atomic ran fine on PHX + 1080p panel, but it failed on PHX + 4K 
panel (more specifically, 3840 x 2400) with the following errors:

(kms_async_flips:8296) CRITICAL: Test assertion failure function 
test_async_flip, file ../tests/kms_async_flips.c:431:
(kms_async_flips:8296) CRITICAL: Failed assertion: (fps / 1000) > 
(data->refresh_rate * MIN_FLIPS_PER_FRAME)
(kms_async_flips:8296) CRITICAL: FPS should be significantly higher than 
the refresh rate

Where
     fps / 1000 = 121
     data->refresh_rate * MIN_FLIPS_PER_FRAME = 300

Comparing to the result of 1080p
     fps / 1000 = 1232
     data->refresh_rate * MIN_FLIPS_PER_FRAME = 300

However, this doesn't seem to be directly related to this patch and is 
something we should look into.

Reviewed-by: Alex Hung <alex.hung@amd.com>



  reply	other threads:[~2025-04-08 21:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-08  0:02 [PATCH v6 0/4] tests/kms_async_flips: Create subtest for overlay planes André Almeida
2025-04-08  0:02 ` [PATCH v6 1/4] lib/ioctl_wrappers: let the caller handle capability check result André Almeida
2025-04-08 12:08   ` Kamil Konieczny
2025-04-08 16:09   ` Melissa Wen
2025-04-08  0:02 ` [PATCH v6 2/4] tests/kms_async_flips: Check for atomic async flip cap André Almeida
2025-04-08 16:01   ` Melissa Wen
2025-04-08 16:07     ` André Almeida
2025-04-08 18:48       ` Melissa Wen
2025-04-08  0:02 ` [PATCH v6 3/4] kms_async_flips: Refactor data options André Almeida
2025-04-08  0:02 ` [PATCH v6 4/4] tests/kms_async_flips: Create subtest for overlay planes André Almeida
2025-04-08 16:16   ` Melissa Wen
2025-04-08 18:53     ` Alex Hung
2025-04-08 19:26       ` André Almeida
2025-04-08 20:45         ` André Almeida
2025-04-08 21:46           ` Alex Hung [this message]
2025-04-08  0:05 ` [PATCH v6 0/4] " André Almeida
2025-04-08  1:02 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-04-08  1:12 ` ✓ i915.CI.BAT: " Patchwork
2025-04-08  3:06 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-08  8:01 ` ✗ Xe.CI.Full: " 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=9a6eff78-7205-4c5f-b553-dbe99d27eb7b@amd.com \
    --to=alex.hung@amd.com \
    --cc=andrealmeid@igalia.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=kernel-dev@igalia.com \
    --cc=mwen@igalia.com \
    --cc=siqueira@igalia.com \
    --cc=vitaly.prosyak@amd.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