From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C36318DF80 for ; Mon, 1 Jun 2026 05:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780293175; cv=none; b=bJsnsRjy0Q3KYyLboHhq4KTvfpc1fPPWbGydaxRs3KE0dEeqoCv6CnJOMwEIg98MEsE/5Op879zjUqQ658MR6nyPGwCqrNlvpJyiiNnYuLXkpIFPvJ26GhjM9TvcpCcOSA4435Lf5bUonhBv/9HwVswHpL426umtjkmOkqazAIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780293175; c=relaxed/simple; bh=MfzHraVuLyZV3po/8qGl5n1uLaihs5b0BUqLZYJ2VPQ=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=Nz4iWQ8R18kv0vCysOkyylY2TmT1hOnb5tiec09ozEP9uGpwFiH7tiztT4ge2dJovZ/YVGaeyoDBNI/sGhBXEOIKqVzIp7F2c2ABSyoYK+nz2Cq5+niptsCu3/aPDrp9Q5NeIQVHnbriKX2FyV2RjnRq84vckXqHZX2tx3Tm5vU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=JgFrh6Yo; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=S4H7h+Uq; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="JgFrh6Yo"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="S4H7h+Uq" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6512lw3T3586077 for ; Mon, 1 Jun 2026 05:52:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LcnAs697VrlnzLquQDasRgSAeWnZHSj8hzCAtvsVObU=; b=JgFrh6YoXSyg1qR/ q/rGizMoQhMhleHR2LlAZiMXkG0G8tkHatnkgxc1DwVFlMFyGiNGrKTTVxBXQG90 7CHNisjXGNMVYrF3XnVfV+xiSs7sKz1UD6kG8lqZdPs6NIqG7Qgcf+ggk3qSpwtZ At7avHrFS7X492LOGN8yl2owh0gHsJqgLLOKW2uOm2F+iMC5bPqhqjceoYKThJ+F l3wIOhfYfZmwB/ox9/Q6xBxAjI7oRWBY5mqGkUl9IeXsj0XO5J2DhQROBz3FRaYN /Z1GcH6EVJLI+hNCO77OY7XQbhNBb3bdPsc9Pd574JdYUaLym1hQIlayjy8Yh0YL uN+Mig== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4efr41dxnv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 01 Jun 2026 05:52:53 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c8599ebec31so1507984a12.1 for ; Sun, 31 May 2026 22:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780293173; x=1780897973; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LcnAs697VrlnzLquQDasRgSAeWnZHSj8hzCAtvsVObU=; b=S4H7h+UqYB6he4lT8Cyz8PihVnIyS8JIuur3K3ZgBFzQUncP11bZCPBbgWypzFicKQ PL4L25tGiR5Yh55GKTcqWV/CP+BWFmjWyB/e/6ADXky1DpYo3yYh10fvrOxe2HrpUiNX LAwkqauMaaj3Nrj7okvajJ+s90XwJeH6+WS5ZgcN+yDsMOZt4wtdsb8MY11w3+ymHcGJ LCO9BBByvEZWJF6cUsPIrb8EmV9bQFxCoWemQPPuYrmUAo1GAUgzZ5fk2gFJPSMQnrDg LFXpEqLoSc+mlMeP48RHoyHjd27Vex11r/KsyzY5MPSJ2iGNl7i9xVFvGcdrENrjHSd+ AE3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780293173; x=1780897973; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LcnAs697VrlnzLquQDasRgSAeWnZHSj8hzCAtvsVObU=; b=C4FaCAWy+XM6vNLmJv4PfSIob7G2ntctuegzq6rYK39KHFn1zYAd5wjpZT5C206mnq nE98VbJqN9zWZ9q7H7HQ6NXMWzvOp3/aY35wJPqpO2cxTpK+z+kY5pUC0eHP7PxK7Dwq 9l5HdSFR+ONy7OQoG0kDxsyIelAjOiCUqtrWU9DmPPuiIEq4aSmLh+onPoxOUmtdxtR6 GoToAq+Xmz4jKFR8qlbWMPAy2icqG1pDxbtPAJQ0+IJSfAJzIIM3nM9vF6qd5vxTAbTS EmZwwzDxONmDYfjWCWO1ImLqasZNXHHeAYr2j8sRT9mGUtqki+kTVj6Js2Qy5WJhMAl5 rMXg== X-Forwarded-Encrypted: i=1; AFNElJ+JPwJT9O01w5djUdRtTjSXH6eTYnfVf0MpW/A86y/sWjhvccastM+LRH5dStsmRjpL3JiYnYRUT6hCgzE=@vger.kernel.org X-Gm-Message-State: AOJu0YxY7680nQNWaNSNpX1pcFL76F2hFywKKBBWjK/d0OTdo/WviTCV O1Q+FKObokrPYgKitxBYli5pxzEcyWN+X5SVyJRgV587AugqBITlouPiSdTfC9y1tDEJ9zP5rn1 aG1vzusDMG+26U2rsfPxB7HuYL4NcQk6RtHYxN5VNVyxWqdyQ5pAqbp3zIID5W2v5+Gk= X-Gm-Gg: Acq92OHDMYHgT86dtnKR5WGO+WP4Ecpuxjacy2F5XVK5LbuJOSEj3RqXpAchu3pwVZL cVRCZinMFGTcrSit9jx8WyJB8kuQLzbZJsbObX8At88Ob/W51Ao5QmQw9ySItAslbelhByIvZ/S bPpyTOrXxAT08sCogEoekbE9ItP4bQNRuYSiYpj5zWaxJnAmhxxmkhCcjMCgEfq40W5/Neangcg RIH3gRl/FxgOf0SX819/u8ZDYHWaXofCOEq3efUV9sH8iDDNeXliBEdIKsLHJGmuoKAvBXSuUDL YsDk0onXRi5vncJ2zcRQLIIDVLEQlVJTWD68k8s5gLA6THwIsfau2ZHUPngERH0F0qV3irzfcLr KgaAyb4nlj533ivXDca+t9iNxQpeX2FGx3UAiCrO6wvcdHfuXNgX8zjsaAKhJB359ECxhSC/6ZK mEobb4LlGl2S1diucXjhn1mCizaVo= X-Received: by 2002:a05:6a00:1485:b0:83e:f208:b0f8 with SMTP id d2e1a72fcca58-84225709021mr9336804b3a.47.1780293172713; Sun, 31 May 2026 22:52:52 -0700 (PDT) X-Received: by 2002:a05:6a00:1485:b0:83e:f208:b0f8 with SMTP id d2e1a72fcca58-84225709021mr9336776b3a.47.1780293172222; Sun, 31 May 2026 22:52:52 -0700 (PDT) Received: from [10.249.20.117] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84214ce54b8sm8926009b3a.48.2026.05.31.22.52.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 May 2026 22:52:51 -0700 (PDT) Message-ID: Date: Mon, 1 Jun 2026 13:52:46 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: wangao.wang@oss.qualcomm.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Bryan O'Donoghue Subject: Re: [PATCH v4 0/6] media: qcom: iris: add support for decoding 10bit formats To: Neil Armstrong , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab References: <20260521-topic-sm8x50-iris-10bit-decoding-v4-0-8ff8fce3f904@linaro.org> <12102d68-da35-47ea-a972-28cb6d54ce1c@linaro.org> <12da2953-fe51-4999-9656-2b42a7897f91@oss.qualcomm.com> <9148913b-a5cd-4730-beff-6c517ac4818e@oss.qualcomm.com> <3baa753a-f716-45da-b1aa-7406f4092578@linaro.org> <88f8519f-31d8-47db-b0d1-f1d0d8c9df1f@oss.qualcomm.com> <0fb85345-ea8c-4294-bf4b-220617c9f089@linaro.org> Content-Language: en-US From: Wangao Wang In-Reply-To: <0fb85345-ea8c-4294-bf4b-220617c9f089@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=fOEJG5ae c=1 sm=1 tr=0 ts=6a1d1e35 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=785Dn-WPAAAA:8 a=9Z9kgQCjHYkt6ZcilowA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 a=b7-gl1MdSEcY02uTy1GE:22 X-Proofpoint-ORIG-GUID: oh8jB9al71b2i_s-b5Zu9O7dXJikmbmZ X-Proofpoint-GUID: oh8jB9al71b2i_s-b5Zu9O7dXJikmbmZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjAxMDA1NyBTYWx0ZWRfX+YM3mOrCg2D0 K6MG7D2GxlFl5yd7RF6rHhUf/BVl70RlYmXhn8OhRAppaArAGT9ttJnyd1Mv50l/3HNKNeYodVY dhP8r4GRmJXXMDHpPv+AcBTf4qYlczj769wuQ6q8HSk6H5AvvLpablkYLlmsWLMI3pfHJfHX4YT lygpm+r1D6O830QqwqPS9xMhjZ+cBwQdcXnzJtHQmrdQxspk3sHTHt4mEQXagnhWIfmHLOn3Emx XcBhNuUvC5cF2fTGDvrjofdmHBQlKFLmmuNWF3j7tye5bFGAKKKEh6sM+SaTK8gMtGfRUxwLh6Y 7yBROpzi9CdkoeRhosSWPanLETdW4k7RRsDbhKXwa6mBkoTxt8nq8AM4bqeHomK76Wao2hnJweK e7YL1Mix4voVN1tPg1foOatv6OhUxMxRhswJv2RppLpZ0dINayIW+5i1w5uEvh92Vi+mHKe6ISZ l36+l61ej2ngtQBzzRg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-01_01,2026-05-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 spamscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606010057 On 2026/5/29 21:25, Neil Armstrong wrote: > On 5/29/26 12:33, Wangao Wang wrote: >> >> >> On 2026/5/29 17:55, Neil Armstrong wrote: >>> Hi, >>> >>> On 5/29/26 10:21, Wangao Wang wrote: >>>> >>>> >>>> On 2026/5/28 21:26, Neil Armstrong wrote: >>>>> 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 >>>>> >>>>>> >>>> >>>> Hi Neil, >>>> >>>> I also tested on hamoa, and it has the same issue as purwa. The >>>> firmware used on purwa is vpu30_p1_s7.mbn. >>>> >>>> This is the result of fluster: >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WP_MAIN10_B_Toshiba_3 >>>>       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_A_ericsson_MAIN10_2       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_A_ericsson_MAIN_2 >>>>       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_B_ericsson_MAIN10_2       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_B_ericsson_MAIN_2 >>>>       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_C_ericsson_MAIN10_2       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_C_ericsson_MAIN_2 >>>>       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_D_ericsson_MAIN10_2       ... Error >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_D_ericsson_MAIN_2 >>>>       ... Error >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_E_ericsson_MAIN10_2       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_E_ericsson_MAIN_2 >>>>       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) >>>> WPP_F_ericsson_MAIN10_2       ... Success >>>> [JCT-VC-HEVC_V1] (GStreamer-H.265-V4L2-Gst1.0) WPP_F_ericsson_MAIN_2 >>>>       ... Success >>>> >>> >>> Ok so this works fine, so I'm really wondering if your main10 HEVC is >>> not properly encoded. >>> >>> Could you try playing a well know HEVC main10 files ? >>> >>> For example I just tried the 1080p and 4k 10bit files on Hamoa + >>> fluster and it just worked as expected: >>> https://larmoire.org/jellyfish/ >>> https://larmoire.org/jellyfish/media/jellyfish-10-mbps-hd-hevc-10bit.mkv >>> https://larmoire.org/jellyfish/media/jellyfish-120-mbps-4k-uhd- >>> hevc-10bit.mkv >>> >>> Neil >> >> Could you provide the test commands? I tried both files and the >> results from gst still show anomalies, but the results from >> iris_test_app are normal. I'm wondering if there are any additional >> settings needed on the client side. >> >> Here are my test commands: >> gst-launch-1.0 -v -m filesrc location=jellyfish-10-mbps-hd- >> hevc-10bit.mkv ! matroskademux ! h265parse ! v4l2h265dec ! filesink >> location=1080P_out.yuv >> gst-launch-1.0 -v -m filesrc location=jellyfish-120-mbps-4k-uhd- >> hevc-10bit.mkv ! matroskademux ! h265parse ! v4l2h265dec ! filesink >> location=4K_out.yuv >> > > If I run those exact commands, I can correctly visualize the files with: > gst-launch-1.0 -v -m filesrc location=1080P_out.yuv ! rawvideoparse > format=p010-10le width=1920 height=1080 frame-size=6266880 ! waylandsink > gst-launch-1.0 -v -m filesrc location=4K_out.yuv ! rawvideoparse > format=p010-10le width=3840 height=2160 frame-size=25067520 ! waylandsink > > I have to use the decoder full aligned buffer size because gst just > dumps the whole v4l2 buffer into filesink and frames are not tighly > packed together. > > If you want to output tighly packed frames, this worked for me: > gst-launch-1.0 -v -m filesrc location=jellyfish-10-mbps-hd- > hevc-10bit.mkv ! matroskademux ! h265parse ! v4l2h265dec ! rawvideoparse > format=p010-10le width=1920 height=1080 frame-size=6266880 ! filesink > location=1080P_out.yuv > gst-launch-1.0 -v -m filesrc location=jellyfish-120-mbps-4k-uhd- > hevc-10bit.mkv.1 ! matroskademux ! h265parse ! v4l2h265dec ! > rawvideoparse format=p010-10le width=3840 height=2160 frame- > size=25067520 ! filesink location=4K_out.yuv > > There's probably a better way I don't know, but in any case gstreamer > will only use the "frame-size" portion of each frame and process it. > > For example, you can convert it nv12 and dump to file, it will then dump > only the nv12 data: > gst-launch-1.0 -v -m filesrc location=jellyfish-10-mbps-hd- > hevc-10bit.mkv ! matroskademux ! h265parse ! v4l2h265dec ! > videoconvert ! video/x-raw, format=NV12 ! filesink location=1080P_out.yuv > gst-launch-1.0 -v -m filesrc location=1080P_out.yuv ! rawvideoparse > format=nv12 width=1920 height=1080 ! waylandsink > > If the plane offset/alignment was wrong, the convert frames would be > wrong and playback would also be wrong. > > Neil Thanks. Using the commands you provided, the output file no longer has the previous issues. -- Best Regards, Wangao