Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2501395pxj; Sun, 13 Jun 2021 23:28:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw27iCPxJsJvaPpvFNXvGm1QoLIbKNE+rcZgIFirvopS+v4y422+/na0TdlsTAoILhGYQsh X-Received: by 2002:aa7:d713:: with SMTP id t19mr13712440edq.83.1623652113082; Sun, 13 Jun 2021 23:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623652113; cv=none; d=google.com; s=arc-20160816; b=eWasN5azTU/LLkHnYp2F2EerVDsVluKpXFBV0BVEdXJ55/LAD+4bvFcoBA3pYxtxZ8 D7loBEXB6e8wOPiaV9JrTiVLZTQaifMw8A6XnkLRrtzpqc1xcAqbb+EbGFlkMtDLTOcM beevyLLKdsyJP+SJcSpPUFHB91C5aSJ8G5x0G9Ouo2rZeYIM3UDUkF5i83v9pdjTHf93 zM6eMG71XNeJJ0gyNw7AGdjobNOA5PnT4OW5TD3Z59vAVFJHhlNLW/2O+yqb787TOowU 9IZY5BF/kvfvgusadIcGVNaWbHPRFfmVcYOrIHlOevujynXzuuRJhT+e1CIyIpIu0e2X +5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=DXckBJ5VYEYcYrhr8smIMHoGQcSFlkNdhRmfr1PB77k=; b=JfdnKAyi/donsqOlF65B507J9QhMkPIPkRel9Oy+Ga9og0S0JPZx2tBKSgEtd/p5hL IIuBbW40nUd9sl055FrZs1WRc5fsBDxVeWgUUgDdIh7DbaVIvU5K+p8ToyoOnu4W/15U RsR9xan2iSKN1gXmNg8VgCjNHixATgRtIBkhEI71J+qKJnSXKeK/jARAa/z7qfrPQ5wd 74HD4u5BRhx/6qGQwen/6JB4Q8tqpet8BVLCUvl1KAdBiqUepV0T8kchqfjXt+Z3PaKi ev/rI9jLCHSNl9weUK7vf+7DTa3CD6iMIXsNHNtEQxTDovKKqVr225UeVjKnT5k9Ww5u KnXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mC3ar6vB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si10508825edw.427.2021.06.13.23.28.10; Sun, 13 Jun 2021 23:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mC3ar6vB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232486AbhFNG2B (ORCPT + 99 others); Mon, 14 Jun 2021 02:28:01 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:25722 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232479AbhFNG2A (ORCPT ); Mon, 14 Jun 2021 02:28:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623651958; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=DXckBJ5VYEYcYrhr8smIMHoGQcSFlkNdhRmfr1PB77k=; b=mC3ar6vBzK/lTxQCyatWsOVL+IIlcXZChVjjzrBiFqx7Fpvh3l+VRVutYeN+l00hf4hi6K5a GwOV1kZazYF57HdYO1i8ZnyqV5vrNu6kFWNUvDfNOIzAYGAgd9BsvtlL9ger8PfXMIjtnyuA KkgwLY2dDWQoUWjHWbe9UYINsfk= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 60c6f656ed59bf69cc3cdeee (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 14 Jun 2021 06:25:26 GMT Sender: mansur=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E78B6C43460; Mon, 14 Jun 2021 06:25:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mansur) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2D177C433D3; Mon, 14 Jun 2021 06:25:25 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 14 Jun 2021 11:55:25 +0530 From: mansur@codeaurora.org To: Stanimir Varbanov Cc: Bryan O'Donoghue , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, dikshita@codeaurora.org Subject: Re: [PATCH] venus: helper: do not set constrained format for UBWC In-Reply-To: <17aaec56-bfad-63a6-b1c4-7562dedb3137@linaro.org> References: <1622195288-18541-1-git-send-email-mansur@codeaurora.org> <17aaec56-bfad-63a6-b1c4-7562dedb3137@linaro.org> Message-ID: X-Sender: mansur@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-02 15:23, Stanimir Varbanov wrote: > Mansur, could you answer to Bryan's comments? > >> On 5/28/21 8:23 PM, Bryan O'Donoghue wrote: >>> On 28/05/2021 10:48, Mansur Alisha Shaik wrote: >>>> Do not set constrained format explicitly for UBWC >>>> >>>> Signed-off-by: Mansur Alisha Shaik >>> >>> Could you give a little bit more detail on why, what the side effects >>> are ? >>> Sorry for late response, by default for NV12_UBWC is 128x32 >>> Should this be a Fixes: ? >>> without this fix on V6, firmware throws below SFR qcom-venus aa00000.video-codec: SFR message from FW: QC_IMAGE_VERSION_STRING=video-firmware.1.0-df9cb37cf8e507a4468265658702247652351a49 Err_Fatal - /local/mnt/workspace/pkg/builds/dynamic_timely/tree2/vendor/qcom/proprietary/video-firmware-noship/venus_proc/venus/decoders/common/src/video_decoder.c:6644:2fef3 which result in playback happens through Software codec. >>>> --- >>>>   drivers/media/platform/qcom/venus/helpers.c | 4 ++++ >>>>   1 file changed, 4 insertions(+) >>>> >>>> diff --git a/drivers/media/platform/qcom/venus/helpers.c >>>> b/drivers/media/platform/qcom/venus/helpers.c >>>> index b813d6dba..e4b8a2a 100644 >>>> --- a/drivers/media/platform/qcom/venus/helpers.c >>>> +++ b/drivers/media/platform/qcom/venus/helpers.c >>>> @@ -1138,8 +1138,12 @@ int >>>> venus_helper_set_format_constraints(struct >>>> venus_inst *inst) >>>>       if (!IS_V6(inst->core)) >>>>           return 0; >>>>   +    if (inst->opb_fmt == HFI_COLOR_FORMAT_NV12_UBWC) >>>> +        return 0; >>>> + >>>>       pconstraint.buffer_type = HFI_BUFFER_OUTPUT2; >>>>       pconstraint.num_planes = 2; >>>> + >>> >>> Additional newline should be removed. >>> >>>>       pconstraint.plane_format[0].stride_multiples = 128; >>>>       pconstraint.plane_format[0].max_stride = 8192; >>>>       pconstraint.plane_format[0].min_plane_buffer_height_multiple = >>>> 32; >>>> >>> >>> --- >>> bod