From: "Chauhan, Shekhar" <shekhar.chauhan@intel.com>
To: "Garg, Nemesa" <nemesa.garg@intel.com>,
"Pottumuttu, Sai Teja" <sai.teja.pottumuttu@intel.com>,
"Kandpal, Suraj" <suraj.kandpal@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Cc: "Roper, Matthew D" <matthew.d.roper@intel.com>
Subject: Re: [PATCH] drm/i915/display: Workaround for odd panning for planar yuv
Date: Fri, 18 Oct 2024 11:14:40 +0530 [thread overview]
Message-ID: <d6876566-1385-40b0-b4f2-7d5c67ea4367@intel.com> (raw)
In-Reply-To: <IA1PR11MB64675D48E2FBAE7A8BB4622BE3402@IA1PR11MB6467.namprd11.prod.outlook.com>
On 10/18/2024 10:34, Garg, Nemesa wrote:
>
>> -----Original Message-----
>> From: Pottumuttu, Sai Teja <sai.teja.pottumuttu@intel.com>
>> Sent: Thursday, October 17, 2024 10:24 PM
>> To: Kandpal, Suraj <suraj.kandpal@intel.com>; Garg, Nemesa
>> <nemesa.garg@intel.com>; intel-xe@lists.freedesktop.org
>> Cc: Roper, Matthew D <matthew.d.roper@intel.com>
>> Subject: Re: [PATCH] drm/i915/display: Workaround for odd panning for planar
>> yuv
>>
>>
>> On 17-10-2024 13:35, Kandpal, Suraj wrote:
>>>> -----Original Message-----
>>>> From: Intel-xe <intel-xe-bounces@lists.freedesktop.org> On Behalf Of
>>>> Nemesa Garg
>>>> Sent: Wednesday, October 16, 2024 12:55 PM
>>>> To: intel-xe@lists.freedesktop.org
>>>> Cc: Garg, Nemesa <nemesa.garg@intel.com>
>>>> Subject: [PATCH] drm/i915/display: Workaround for odd panning for
>>>> planar yuv
>>>>
>>>> Disable the support for odd x pan for even xsize for NV12 format as
>>>> underrun issue is seen.
>> - Probably with the discussion and the latest update to the patch we should also
>> update the commit message to aptly reflect what are we doing here. (We can
>> remove even xsize part or maybe give more explanation on why even x size is not
>> being checked in the patch)
>>
>> - We should ideally be using the workaround lineage number in the commit
>> message.
>>
> Sure.
>> - Also, seems like NV12 is not the only planar format, should we check for a planar
>> format in general instead of NV12 specifically?
>> Cc: Matt Roper
>>
> In WA its mentioned that the issue is seen for YUV420 format so that's why I'm checking for NV12 format.
Could you please explain me:
1. Was this issue reproducible for Planar formats or Semi Planar formats
(if they are different)?
2. Did we check it on only YUV_420 or all the planar formats (if the
issue is only on Planar Formats). If it's only for YUV_420, then can we
have commit title as "Workaround for odd panning of YUV_420..." or
something like that. If not, then can we test it for the other formats
as well?
3. Are YUV_420 and NV_12 formats the same, and is NV_12 a planar format
or a semi_planar format? (drm/drm_fourcc.h makes me think otherwise,
correct me if I'm wrong??)
-shekhar
CC: Matt Roper, Sai Teja
>
> Thanks,
> Nemesa
>
>> Thanks
>> Sai Teja
>>
>>>> WA: 16024459452
>>> This should be right above your signed-off-by The rest LGTM,
>>> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
>>>
>>>> v2: Replace HSD with WA in commit message [Suraj]
>>>> Modified the condition for handling odd panning
>>>>
>>>> v3: Simplified the condition for checking hsub
>>>> Using older framework for wa as rev1[Jani]
>>>>
>>>> v4: Modify the condition for hsub [Sai Teja]
>>>> Initialize hsub in else path [Dan]
>>>>
>>>> v5: Replace IS_LUNARLAKE with display version.
>>>> Resolve nitpicks[Jani]
>>>>
>>>> v6: Replace -EINVAL with hsub [Suraj]
>>>> Remove src_w check as not required
>>>>
>>>> Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
>>>> ---
>>>> drivers/gpu/drm/i915/display/intel_atomic_plane.c | 5 +++++
>>>> 1 file changed, 5 insertions(+)
>>>>
>>>> diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
>>>> b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
>>>> index e979786aa5cf..2d7ca6e62926 100644
>>>> --- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
>>>> +++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
>>>> @@ -1031,6 +1031,11 @@ int intel_plane_check_src_coordinates(struct
>>>> intel_plane_state *plane_state)
>>>> */
>>>> hsub = 1;
>>>> vsub = 1;
>>>> +
>>>> + /* Wa_16023981245 */
>>>> + if (DISPLAY_VER(i915) == 20 && fb->format->format ==
>>>> DRM_FORMAT_NV12 &&
>>>> + src_x % 2 != 0)
>>>> + hsub = 2;
>>>> } else {
>>>> hsub = fb->format->hsub;
>>>> vsub = fb->format->vsub;
>>>> --
>>>> 2.25.1
--
-shekhar
next prev parent reply other threads:[~2024-10-18 5:44 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 11:21 [PATCH] drm/i915/display: Workaround for odd panning for planar yuv Nemesa Garg
2024-09-30 11:28 ` ✓ CI.Patch_applied: success for drm/i915/display: Workaround for odd panning for planar yuv (rev5) Patchwork
2024-09-30 11:29 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-30 11:31 ` ✓ CI.KUnit: success " Patchwork
2024-09-30 11:47 ` ✓ CI.Build: " Patchwork
2024-09-30 11:49 ` ✓ CI.Hooks: " Patchwork
2024-09-30 11:51 ` ✗ CI.checksparse: warning " Patchwork
2024-09-30 12:31 ` ✓ CI.BAT: success " Patchwork
2024-09-30 13:45 ` ✗ CI.FULL: failure " Patchwork
2024-10-16 7:24 ` [PATCH] drm/i915/display: Workaround for odd panning for planar yuv Nemesa Garg
2024-10-17 8:05 ` Kandpal, Suraj
2024-10-17 16:53 ` Pottumuttu, Sai Teja
2024-10-18 5:04 ` Garg, Nemesa
2024-10-18 5:05 ` Garg, Nemesa
2024-10-18 5:44 ` Chauhan, Shekhar [this message]
2024-10-18 17:36 ` Matt Roper
2024-10-16 9:53 ` ✓ CI.Patch_applied: success for drm/i915/display: Workaround for odd panning for planar yuv (rev6) Patchwork
2024-10-16 9:53 ` ✓ CI.checkpatch: " Patchwork
2024-10-16 9:54 ` ✓ CI.KUnit: " Patchwork
2024-10-16 10:06 ` ✓ CI.Build: " Patchwork
2024-10-16 10:08 ` ✓ CI.Hooks: " Patchwork
2024-10-16 10:10 ` ✗ CI.checksparse: warning " Patchwork
2024-10-16 10:51 ` ✓ CI.BAT: success " Patchwork
2024-10-16 22:34 ` ✗ CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-09-25 12:25 [PATCH] drm/i915/display: Workaround for odd panning for planar yuv Nemesa Garg
2024-09-25 13:09 ` Jani Nikula
2024-09-25 13:57 ` Pottumuttu, Sai Teja
2024-09-10 14:37 Nemesa Garg
2024-09-10 16:36 ` Pottumuttu, Sai Teja
2024-09-25 7:49 ` Garg, Nemesa
2024-09-06 7:01 Nemesa Garg
2024-09-06 8:51 ` Jani Nikula
2024-09-06 9:07 ` Jani Nikula
2024-09-06 13:51 ` Lucas De Marchi
2024-09-06 14:18 ` Jani Nikula
2024-09-06 15:33 ` Rodrigo Vivi
2024-07-24 13:06 Nemesa Garg
2024-07-24 17:01 ` Kandpal, Suraj
2024-07-25 2:59 ` Kandpal, Suraj
2024-08-12 5:18 ` Garg, Nemesa
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=d6876566-1385-40b0-b4f2-7d5c67ea4367@intel.com \
--to=shekhar.chauhan@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=nemesa.garg@intel.com \
--cc=sai.teja.pottumuttu@intel.com \
--cc=suraj.kandpal@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