lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SJ0PR02MB8848C9CC1ED0DBA89D56CF7D85189@SJ0PR02MB8848.namprd02.prod.outlook.com>
Date:   Mon, 5 Dec 2022 04:48:44 +0000
From:   "Viswanath Boma (Temp)" <vboma@....qualcomm.com>
To:     Nathan Hebert <nhebert@...omium.org>,
        "Viswanath Boma (Temp) (QUIC)" <quic_vboma@...cinc.com>
CC:     "stanimir.varbanov@...aro.org" <stanimir.varbanov@...aro.org>,
        Andy Gross <agross@...nel.org>,
        "bjorn.andersson@...aro.org" <bjorn.andersson@...aro.org>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        "linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
        "linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Vikash Garodia <vgarodia@....qualcomm.com>
Subject: RE: [PATCH 1/1] venus : Fix for H265 decoding failure.



-----Original Message-----
From: Nathan Hebert <nhebert@...omium.org> 
Sent: Saturday, December 3, 2022 1:19 AM
To: Viswanath Boma (Temp) (QUIC) <quic_vboma@...cinc.com>
Cc: stanimir.varbanov@...aro.org; Andy Gross <agross@...nel.org>; bjorn.andersson@...aro.org; Mauro Carvalho Chehab <mchehab@...nel.org>; linux-media@...r.kernel.org; linux-arm-msm@...r.kernel.org; linux-kernel@...r.kernel.org; Vikash Garodia <vgarodia@....qualcomm.com>
Subject: Re: [PATCH 1/1] venus : Fix for H265 decoding failure.

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

On Thu, Dec 1, 2022 at 4:12 PM Nathan Hebert <nhebert@...omium.org> wrote:
>
> On Tue, Nov 15, 2022 at 4:10 AM <quic_vboma@...cinc.com> wrote:
> >
> > From: Viswanath Boma <quic_vboma@...cinc.com>
> >
> > Aligned the mismatch of persist1 and scratch1 buffer calculation, as 
> > per the firmware requirements .
> >
> > Signed-off-by: Vikash Garodia <vgarodia@....qualcomm.com>
> > Signed-off-by: Viswanath Boma <quic_vboma@...cinc.com>
> > ---
> >  drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c 
> > b/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
> > index ea25c451222b..a9be31ec6927 100644
> > --- a/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
> > +++ b/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
> > @@ -93,7 +93,7 @@
> >  #define LCU_MIN_SIZE_PELS              16
> >  #define SIZE_SEI_USERDATA              4096
> >
> > -#define H265D_MAX_SLICE                        600
> > +#define H265D_MAX_SLICE                        3600
> >  #define SIZE_H265D_HW_PIC_T            SIZE_H264D_HW_PIC_T
> >  #define SIZE_H265D_BSE_CMD_PER_BUF     (16 * sizeof(u32))
> >  #define SIZE_H265D_VPP_CMD_PER_BUF     256
> > @@ -1021,7 +1021,7 @@ static u32 h264d_persist1_size(void)  static 
> > u32 h265d_persist1_size(void)  {
> >         return ALIGN((SIZE_SLIST_BUF_H265 * NUM_SLIST_BUF_H265 + H265_NUM_TILE
> > -                       * sizeof(u32)), HFI_DMA_ALIGNMENT);
> > +                       * sizeof(u32) + NUM_HW_PIC_BUF * 
> > + SIZE_SEI_USERDATA), HFI_DMA_ALIGNMENT);
> >  }
> >
> >  static u32 vp8d_persist1_size(void)
> > --
> > 2.17.1
> >
> Hi Viswanath. I tested this patch on ChromiumOS's downstream 
> 5.15-based fork. Using ITU-T HEVC test vectors [0] I am seeing 
> firmware errors "qcom-venus-decoder aa00000.video-codec:video-decoder:
> VenusMed : event not sufficient resources". Does this change fix HEVC 
> decoding for you?
>

Hi Viswanath. Thanks for looking at the logs offline. I re-tested after adding Q08C (UBWC) support to my decoder client, and it fixed the error that I was seeing. My mistake. Each of the main profile test vectors now decodes correctly after applying your patch!
[vboma] Thank you Nathan for the update .

Tested-by: Nathan Hebert <nhebert@...omium.org>

> [0]: 
> https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_
> conformance/HEVC_v1/
>
> Best regards,
> Nathan Hebert

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ