Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp448592pxj; Wed, 2 Jun 2021 03:16:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAFm3ljPcLfawVX0OXHKg5Ou1xINz3M0Wxd2EF0SdhzLS/w4XPb8GneKZjzOz5K/4bFBu4 X-Received: by 2002:a50:8fc3:: with SMTP id y61mr1246562edy.107.1622628979617; Wed, 02 Jun 2021 03:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622628979; cv=none; d=google.com; s=arc-20160816; b=FlgYjoD613lLsJsSljFadKHO6AwaVH0eqEGvLJ/JdGBGYpKsE0txio+4XZdqlWTXsT rVUHmtngu2qIuIXbbxwmJgy/GCoUPe8s3VNfKenT9KKFtF4oxVZ0trT6mL+kkIEMc0kK x9aTCILrV+GWeTu5KWZcURKy72+3AqjKz9rLGAVDOHXg9HkrH/NMYsdDw9YVDIKVcj5d 2F9XtXhTM3QdW+RMlzKIxR12KxD/dDN5f/p4DSc/kl1zFddIIaC/cCYVWd51eSbnU2gp chxH3BLK/9s2/nM6B5rgYbrjeLnxfRUOCX4X+Ky5hRjrG2gfCmSsKme5jSycctExI4aj 5Vlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=R+UA/QItNObeMQQscZ4ivUcRFeqMf57DAC45WgOVgmY=; b=pjOLZi4vGfBk+rfGz36v0Kqe1ACGfE3Naf/qFnoMWgbCP5Rn9T5KdAj01b0GpaQCgN 6vEh1zd2Sfj2tS0Z8K0Kv9+T0TVDsOHOiY3AN6PeogVWoMtn88NVaiw7Xb2z0pMqiMvL OnyZVI+xNNb6954CBeBfQsEf6xG0+/YeFFuSEAynAo9TFYdBzBfZfegurEG5X+CE/P80 2O8PABv45nxW8OXiRkY60Buu2rvG2JUjDnnYp8kcS7wHXv/da4UO7zFq1t1sQVX56DCF QBmlmuriPGnUrXI6MNgK61B1TnvoYWZFTjWcgAFLltLUHE5a80j54PzEBozG66oJ5WfN MBBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b0rR34OP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op2si9642571ejb.522.2021.06.02.03.15.55; Wed, 02 Jun 2021 03:16:19 -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=@linaro.org header.s=google header.b=b0rR34OP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231490AbhFBJzA (ORCPT + 99 others); Wed, 2 Jun 2021 05:55:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhFBJy7 (ORCPT ); Wed, 2 Jun 2021 05:54:59 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 869B9C061574 for ; Wed, 2 Jun 2021 02:53:15 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id dg27so2135554edb.12 for ; Wed, 02 Jun 2021 02:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=R+UA/QItNObeMQQscZ4ivUcRFeqMf57DAC45WgOVgmY=; b=b0rR34OP4uOaXepns0xG74caSrzPD9qMYG1pa3l8duCvyQLD3BLgAOFJ1sqAQCNdja 2+CIRHJzfULinBmSF+djnPdbv11fJK5nSTnFYSe/N4o9xal5rbRnNFqUbpi0p+jxoWs4 ZXzFL2ndKx/uLucPEjaue4bPpGhuugMG6TyrOXyPCxtJYX6vhDPq/3MPYbCSPQyRwsSl 7HCBsFWbkg88xUJ5ns0Tf0RWDUYOgMAkaLMsRew4e9/2+/NvP4v/IasGKo5dQRvlmI8w vXWp+erbEry7ULfFkfhCg8/igaOcKxsqLQ27u8Y7FD9szVtpdaj1hQ09nHIWc57ToeXs 1j5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R+UA/QItNObeMQQscZ4ivUcRFeqMf57DAC45WgOVgmY=; b=A6EETG15D6bc0n/mQBC5QMsAHP04hPNtd6WFGnT6ZWLRYc3hTXWcFvCsLjYug21/QL /amZMuBhW6NKZsgfvl77ZbifxR61xjYUX0p60+0Lv5WSiTltj3z/AJvWtFz70UOHkkXD VRBFYMXej3AU22vI3paj1L1GUkv0vfhtCdFgJ++xYcKY1pIhjqszYAeIUvO9OIvR8p1I gtj1vwQgjsupNaDS2pke9U+PFarfglTSqmrUpVYtjnDfeVNAXec21Nml1w+1E+h8CM0X K2x8Z4H/txjzNnBmXa8O4CoUzTqmu4q+n7csQ8TA0goVKyGibQa2kk2TXhHvX6rEvJZQ kuBA== X-Gm-Message-State: AOAM531nj4mgwT4/oP6ZuGuiWvkZ+CFjGs5RdPbLGfL0SxSIsyFdG2Wl uzluv6eNvugNvHAfGv1KX8Xl17sgSXhQDB9V X-Received: by 2002:aa7:d755:: with SMTP id a21mr18386424eds.146.1622627594218; Wed, 02 Jun 2021 02:53:14 -0700 (PDT) Received: from [192.168.1.28] (hst-221-100.medicom.bg. [84.238.221.100]) by smtp.googlemail.com with ESMTPSA id d11sm935808ede.74.2021.06.02.02.53.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jun 2021 02:53:13 -0700 (PDT) Subject: Re: [PATCH] venus: helper: do not set constrained format for UBWC To: Bryan O'Donoghue , Mansur Alisha Shaik , linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, dikshita@codeaurora.org References: <1622195288-18541-1-git-send-email-mansur@codeaurora.org> From: Stanimir Varbanov Message-ID: <17aaec56-bfad-63a6-b1c4-7562dedb3137@linaro.org> Date: Wed, 2 Jun 2021 12:53:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? > > Should this be a Fixes: ? > >> --- >>   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 -- regards, Stan