Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2607537rwb; Fri, 2 Dec 2022 12:12:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7LceGhfdJa3tA/uQ9y4bh/xbfy3b61cN+dBrHGK7uAdf7OCfkxlYgTN6SGYICpsMFzukaU X-Received: by 2002:a17:906:1546:b0:741:5c0e:1058 with SMTP id c6-20020a170906154600b007415c0e1058mr60647325ejd.472.1670011972213; Fri, 02 Dec 2022 12:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670011972; cv=none; d=google.com; s=arc-20160816; b=PZsfIoPzJ35fqdnbSvd1k+DYJyO4MDzWRyIuuh9UgVkPs94qoSo/IJRDbwyhXQhwgh yZNsLAJUJaeZF1v4s5bHAGzVoSA1UCvnFgGU7sTqBppDtLdoEEUNamkQyeymwihWZoLu wCDbU8jfn2kyVVSufB7ldTXtbdgWJ+JGqsfcLQHs97Z+Y6kRXMJb1V5FOnu/3OKOGCHN UnvLzsqeWJPF1QK1hMMpG4yHtdvRrVMR2ycoCL3/MMz0RKvaDFnhFtMBmT+HAQaGbK6/ e02vQds9OEscS9iLqKsQlBpv94mK9ApIHe8T2YNNPDVPYXH5qxCT4U4mO1NZUNrEEuYi uj4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LKRU6k6DP3+MoWkZKc6pR9Fxw8QPzYqEpMkErX9J1aI=; b=ogqMJuPqL7XatQHkmYLpaVKgYFgB+v45OZcGzDxMOP6nhpXYiKT7RbH8sGsyWHCnu2 9LcqK779ELhNjWzrMuH1Xe9SYmAXOqk/7Nr+aQ9gh6B28Ouo1A6c5+9fiVxxDwNccyZw wNyLdOuDnNOiTwR2DDxKQW+nMrcwzbgeYF/0oDHZKG2cRvSVeorQMK6ZNBZbboIdlb8I b1rbx/n65AlUdLtBj/6vsUhcB8DNRTp+Cq4/SObMd9rRF9eujJEkelSauso0c//96iIx /xSOmQONbSiu4QRtf9ksJkc0qZQLB2+je4ydAZikrReh1lsIQ7cu5RQIOE7zoCCGN3/5 OaTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TJt+az+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a05640206cb00b0045d189ac612si6512075edy.402.2022.12.02.12.12.30; Fri, 02 Dec 2022 12:12:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TJt+az+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234528AbiLBTs5 (ORCPT + 83 others); Fri, 2 Dec 2022 14:48:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234486AbiLBTsy (ORCPT ); Fri, 2 Dec 2022 14:48:54 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C43EF0F9 for ; Fri, 2 Dec 2022 11:48:50 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id bp15so8901109lfb.13 for ; Fri, 02 Dec 2022 11:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LKRU6k6DP3+MoWkZKc6pR9Fxw8QPzYqEpMkErX9J1aI=; b=TJt+az+6QemYlHALrKlPXXwpeSk5LEevUf1/CUYcJbogqyVJzzaOv91evf3XQpLFAN wwFNcx6fxAuP8V1JJ4TYXKKIH8/H7lGHVWLSuizBUqOOwmy6NyMQc1DzDQJNQag93Fw8 nrXx+l3XHCoJMEyWcllJ7Gx1ydav3UU0pLH0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LKRU6k6DP3+MoWkZKc6pR9Fxw8QPzYqEpMkErX9J1aI=; b=BRMz8pK+seoN86itrmyQKGZCtswF7LWinvvHNx51797wl+Ad/v6DAlHx2MGid4Zvfu nF9r4BWkpuhaGKzCpcrAdJYJ258q90v2vtmPyoa+Ge9NH5119RnYG6FX/nAuVAGDI8fV ONFePsyaOlkcQKBgGmp51XHwJ2qjqWAnjKs0jMaRKbJnjC1MFdYS5jdS77CqTbnLsglt smrzEw3WnFZIaZMhJwj6+KL4q0Pgtp2Ih0rJAJrVntSMxmL6gX3tDmFf13D7vear4E4F rKW/t21olLUb+TQDyp4cDtgXgKz4qHXF7ho9OOxLqtkmq7YQO5+0ZpD8TBrUNnwiQaVa Aswg== X-Gm-Message-State: ANoB5pnx0kzrOqmZDj9QnkKXUkouUN4rAH/QjtoJL1adeCNfG7RwhbwQ aqkKxRI4TFc2VT9Iw/uss8T+0cbvR6ymAMDBsAArOg== X-Received: by 2002:a05:6512:a83:b0:4aa:f944:f7ec with SMTP id m3-20020a0565120a8300b004aaf944f7ecmr19927828lfu.467.1670010529136; Fri, 02 Dec 2022 11:48:49 -0800 (PST) MIME-Version: 1.0 References: <20221115121004.28197-1-quic_vboma@quicinc.com> <20221115121004.28197-2-quic_vboma@quicinc.com> In-Reply-To: From: Nathan Hebert Date: Fri, 2 Dec 2022 11:48:37 -0800 Message-ID: Subject: Re: [PATCH 1/1] venus : Fix for H265 decoding failure. To: quic_vboma@quicinc.com Cc: Stanimir Varbanov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Vikash Garodia Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 1, 2022 at 4:12 PM Nathan Hebert wrote: > > On Tue, Nov 15, 2022 at 4:10 AM wrote: > > > > From: Viswanath Boma > > > > Aligned the mismatch of persist1 and scratch1 buffer calculation, > > as per the firmware requirements . > > > > Signed-off-by: Vikash Garodia > > Signed-off-by: Viswanath Boma > > --- > > 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! Tested-by: Nathan Hebert > [0]: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/HEVC_v1/ > > Best regards, > Nathan Hebert