mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Wangao Wang <wangao.wang@oss.qualcomm.com>,
	Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Bryan O'Donoghue <bod@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Subject: Re: [PATCH v4 0/6] media: qcom: iris: add support for decoding 10bit formats
Date: Thu, 28 May 2026 15:26:41 +0200	[thread overview]
Message-ID: <c54e7f34-b3a7-47fa-843a-9930de04599e@linaro.org> (raw)
In-Reply-To: <12da2953-fe51-4999-9656-2b42a7897f91@oss.qualcomm.com>

Hi Wangao,

On 5/27/26 06:15, Wangao Wang wrote:
> I tested the v4 patch using the gst command you provided earlier. The decoded output still has the previous plane misalignment issue, but all frames are decoded successfully. When viewing the raw data with an image player at 1920x1080 resolution, the first frame looks correct but subsequent frames appear shifted. If viewed at 1920x1088 resolution, there are artifacts at the bottom of each frame. I've attached the images.
> 
> Also, have you tested the 720p case? I can't get it to run on my end.

Thanks for the report but I don't have access to the Purwa platform you use,
I've run test with multiple resolutions with display using P010
and QC10, and ran fluster aswell and all passed on SM8550 and SM8650.

I'll test it on the Hamoa T14S I have which should be the closest to purwa,
but it uses the same driver setup as SM8550 so I expected it to work the same.

Could you indicate which iris firmware you're using ?

Could you try passing the fluster h265 main10 test suite with gstreamer ?

fluster download -c h.265
fluster run -d GStreamer-H.265-V4L2 -ts JCT-VC-HEVC_V1 -q -s -j1

The picture you send looks like there's a mismatch with the kernel
and firmware setup of planes offsets.
Could you check if there's a Purwa specific firmware property
to set for 10bit decoding ?

Neil

> 
> On 2026/5/26 20:45, Vikash Garodia wrote:
>>
>> On 5/26/2026 6:09 PM, Neil Armstrong wrote:
>>> On 5/26/26 09:53, Vikash Garodia wrote:
>>>>
>>>> On 5/21/2026 2:54 PM, Neil Armstrong wrote:
>>>>> This adds the plumbing to support decoding HEVC, VP9 and AV1
>>>>> streams into 10bit pixel formats, linear and compressed.
>>>>>
>>>>> This has only been tested on SM8550 & SM8650 with HEVC, and was
>>>>> inspired by Venus, DRM MSM and the downstream vidc driver for the
>>>>> buffer calculations and HFI messages.
>>>>>
>>>>> Gstreamer support for QC08 and QC10 need the MR at [1] to be applied,
>>>>> but NV12 and P010 works out of the box with mainline Gstreamer.
>>>>>
>>>>> Fluster HEVC results on SM8650 using Gstreamer:
>>>>>
>>>>> ./fluster.py run -ts JCT-VC-HEVC_V1 -d GStreamer-H.265-V4L2-Gst1.0 - 141/147
>>>>> The failing test case:
>>>>> - Pixel Format mismatch
>>>>>   - TSUNEQBD_A_MAIN10_Technicolor_2 - Gstreamer waits NV12 but decoder returns P010
>>>>> - Unsupported resolution
>>>>>   - PICSIZE_A_Bossen_1 - resolution is higher than max supported
>>>>>   - PICSIZE_B_Bossen_1 - resolution is higher than max supported
>>>>>   - WPP_D_ericsson_MAIN_2 - resolution is lower than min supported
>>>>>   - WPP_D_ericsson_MAIN10_2 - resolution is lower than min supported
>>>>> - CRC mismatch
>>>>>   - RAP_A_docomo_6
>>>>>
>>>>
>>>> <snip>
>>>>
>>>>
>>>>>
>>>>> Total for iris_driver device /dev/video0: 54, Succeeded: 54, Failed: 0, Warnings: 0
>>>>>
>>>>> [1] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/ merge_requests/8195
>>>>>
>>>>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
>>>>> ---
>>>>> Changes in v4:
>>>>> - Picked review tags
>>>>> - Use u32 instead of __u32
>>>>> - Explicit DPB
>>>>> - Drop NULL and use >>1 in q10c buffer calc
>>>>> - Drop selicolon after switch statementr
>>>>> - Correctly align HFI_PROP_UBWC_STRIDE_SCANLINE entry
>>>>
>>>> Its not very clear. Does this fix the issue reported here [1] ?
>>>>
>>>> https://lore.kernel.org/linux-media/fb377b11-c54c-4bd9-bf12- cf19d6484c66@oss.qualcomm.com/
>>>
>>> I wasn't able to reproduce the issue, and the reporter never answered my questions so far.
>>>
>>> Neil
>>
>> It would be nice to add the reviewers directly as well.
>>
>> adding Wangao now.
>>
>>>
>>>>
>>>>> - Rebase on media next tree after the file split
>>>>> - Link to v3: https://patch.msgid.link/20260511-topic-sm8x50- iris-10bit-decoding-v3-0-7fc049b93042@linaro.org
>>>>>
>>>>> Changes in v3:
>>>>> - Added review tag on patch 1
>>>>> - Limited stride command to AV1 decoding only
>>>>> - Link to v2: https://patch.msgid.link/20260417-topic-sm8x50- iris-10bit-decoding-v2-0-c987b65a31d5@linaro.org
>>>>>
>>>>> Changes in v2:
>>>>> - Fixed bug breaking 8bit decoding
>>>>> - Dropped filtering on G_FMT while waiting for soure change
>>>>> - Dropped format filtering on ENUMFMT
>>>>> - Switched ALIGN(x, 192) to roundup(x, 192) because ALIGN works only with Power Of Two numbers
>>>>> - Cleaned and refactors the width/height/stride calculations
>>>>> - Cleaned and redesigned the buffer calculations functions with proper comments and var names
>>>>> - Passed fluster and v4l2-compliance to check for non regression
>>>>> - Tested on SM8550
>>>>> - Added missing V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10 with made gstreamer fail decoding
>>>>> - Link to v1: https://patch.msgid.link/20260408-topic-sm8x50- iris-10bit-decoding-v1-0-428c1ec2e3f3@linaro.org
>>>>>
>>>>> ---
>>>>> Neil Armstrong (6):
>>>>>        media: qcom: iris: add helpers for 8bit and 10bit formats
>>>>>        media: qcom: iris: add QC10C & P010 buffer size calculations
>>>>>        media: qcom: iris: gen2: add support for 10bit decoding
>>>>>        media: qcom: iris: vdec: update size and stride calculations for 10bit formats
>>>>>        media: qcom: iris: vdec: update find_format to handle 8bit and 10bit formats
>>>>>        media: qcom: iris: vdec: allow GEN2 decoding into 10bit format
>>>>>
>>>>>   drivers/media/platform/qcom/iris/iris_buffer.c     | 195 +++++++++ + ++++++++++-
>>>>>   drivers/media/platform/qcom/iris/iris_hfi_gen2.c   |   8 +-
>>>>>   .../platform/qcom/iris/iris_hfi_gen2_command.c     |  75 +++++++-
>>>>>   .../platform/qcom/iris/iris_hfi_gen2_defines.h     |   1 +
>>>>>   .../platform/qcom/iris/iris_hfi_gen2_response.c    |  37 +++-
>>>>>   drivers/media/platform/qcom/iris/iris_instance.h   |   2 +
>>>>>   .../platform/qcom/iris/iris_platform_common.h      |   1 +
>>>>>   drivers/media/platform/qcom/iris/iris_utils.c      |  16 +-
>>>>>   drivers/media/platform/qcom/iris/iris_utils.h      |   2 +
>>>>>   drivers/media/platform/qcom/iris/iris_vdec.c       |  42 ++++-
>>>>>   10 files changed, 364 insertions(+), 15 deletions(-)
>>>>> ---
>>>>> base-commit: 86693e86019a7466be961fd4f45d407cc0b0ba0a
>>>>> change-id: 20260408-topic-sm8x50-iris-10bit-decoding-074c3ac7975c
>>>>>
>>>>> Best regards,
>>>>> -- 
>>>>> Neil Armstrong <neil.armstrong@linaro.org>
>>>>>
>>>>
>>>> Regards,
>>>> Vikash
>>>
>>
> 


  parent reply	other threads:[~2026-05-28 13:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-21  9:24 Neil Armstrong
2026-05-21  9:24 ` [PATCH v4 1/6] media: qcom: iris: add helpers for 8bit and " Neil Armstrong
2026-05-21  9:24 ` [PATCH v4 2/6] media: qcom: iris: add QC10C & P010 buffer size calculations Neil Armstrong
2026-05-25 23:32   ` bod
2026-05-21  9:24 ` [PATCH v4 3/6] media: qcom: iris: gen2: add support for 10bit decoding Neil Armstrong
2026-05-21  9:24 ` [PATCH v4 4/6] media: qcom: iris: vdec: update size and stride calculations for 10bit formats Neil Armstrong
2026-05-21  9:24 ` [PATCH v4 5/6] media: qcom: iris: vdec: update find_format to handle 8bit and " Neil Armstrong
2026-05-21  9:24 ` [PATCH v4 6/6] media: qcom: iris: vdec: allow GEN2 decoding into 10bit format Neil Armstrong
2026-05-26  7:53 ` [PATCH v4 0/6] media: qcom: iris: add support for decoding 10bit formats Vikash Garodia
2026-05-26 12:39   ` Neil Armstrong
2026-05-26 12:45     ` Vikash Garodia
     [not found]       ` <12da2953-fe51-4999-9656-2b42a7897f91@oss.qualcomm.com>
2026-05-28 13:26         ` Neil Armstrong [this message]
2026-05-28 23:55           ` Bryan O'Donoghue
2026-05-29  8:21           ` Wangao Wang
2026-05-29  9:55             ` Neil Armstrong
2026-05-29 10:33               ` Wangao Wang
2026-05-29 13:25                 ` Neil Armstrong
2026-06-01  5:52                   ` Wangao Wang
2026-06-01  8:41                     ` Vikash Garodia
2026-06-01  9:01 ` Wangao Wang
2026-06-01 15:03   ` Bryan O'Donoghue
2026-06-01 18:59     ` Neil Armstrong

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=c54e7f34-b3a7-47fa-843a-9930de04599e@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=abhinav.kumar@linux.dev \
    --cc=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=vikash.garodia@oss.qualcomm.com \
    --cc=wangao.wang@oss.qualcomm.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

all inboxes | Powered by JetHome®