Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4800283pxv; Tue, 6 Jul 2021 09:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGKpT2bOaTBDazMOU/jHhdsO5yKL12vyWdLI+GBRsViaGxBYD2FknD3alcSrIJhBVz1myf X-Received: by 2002:a17:907:1691:: with SMTP id hc17mr19083183ejc.382.1625588710026; Tue, 06 Jul 2021 09:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625588710; cv=none; d=google.com; s=arc-20160816; b=O5FoSfJ2g0oVg3xNoQOvu10Np1KueyN/0RBs26yZTqtcVvHMsLNQY8XEPrsHgeiVpW rkx7vpjBtmlDmDvhIK6JgzIrizIvjioo5tYqxRXgcQ9XUV5Tlo83Imhsj7JimyaO71PR 0yiXt9VB7TuKjPsTVgTzOpxtlu5ub+R/m1wGk9KwPn4n3JKLX9J2yNenR0LtpMY5Vp91 t8aZrHWOXQKQl8hjhlTQADH0vfFzCYCez1KHcOWC/cchvL1BBK2LNN9ZtsT+eqTb/bWj 7j7yTUArcuO/xfkHcwgeqSiVafpilw8uOXUFn206nIXq1zwIl3Y/jsgLPIIsxaHb6GiS rQTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=63iMmoQC/BLSh4fXKs46yLTpuvbubQVjmP7WSmSWN9s=; b=Y2Vq/UaJmm2ighjhd1O6hxTXVKYoFzrNifET9a5Cwz3s8ErnCNUUxVwu2a0aXo5Qs1 b4nJsattLsMjO1dR667bfFSC50lwn8nmmiP8vr2Ak4AHf0NBlz9ez312BftMWBiwLrKc goaef9Z8J6MOAIjYPTCcTDE4QFjUOVNeJTEbX3RvYXR4km4PMu1gE9yIXJTO+TagvHO3 ahOdvkjnd9KoD7i33Y+ybojripGJaXwKhMyyiq27t04jxwvw1Zib1hUGw34CaanaxJ7f LlMUOulPH+BVCdxSq8YI+PnwiQdBBZdt6AEQ1QN8h7UkhKW9AKW17P11YoDUAjBnpXf4 5Msw== ARC-Authentication-Results: i=1; mx.google.com; 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 jy1si16383972ejc.592.2021.07.06.09.24.45; Tue, 06 Jul 2021 09:25:10 -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; 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 S230038AbhGFQYe (ORCPT + 99 others); Tue, 6 Jul 2021 12:24:34 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:8092 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbhGFQYc (ORCPT ); Tue, 6 Jul 2021 12:24:32 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 06 Jul 2021 09:21:53 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Jul 2021 09:21:50 -0700 X-QCInternal: smtphost Received: from c-mansur-linux.qualcomm.com ([10.204.90.208]) by ironmsg01-blr.qualcomm.com with ESMTP; 06 Jul 2021 21:51:26 +0530 Received: by c-mansur-linux.qualcomm.com (Postfix, from userid 461723) id 7005A226EF; Tue, 6 Jul 2021 21:51:24 +0530 (IST) From: Mansur Alisha Shaik To: bryan.odonoghue@linaro.org, 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, Mansur Alisha Shaik Subject: [V4] venus: helper: do not set constrained parameters for UBWC Date: Tue, 6 Jul 2021 21:51:22 +0530 Message-Id: <1625588482-19269-1-git-send-email-mansur@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Plane constraints firmware interface is to override the default alignment for a given color format. By default venus hardware has alignments as 128x32, but NV12 was defined differently to meet various usecases. Compressed NV12 has always been aligned as 128x32, hence not needed to override the default alignment. Fixes: bc28936bbba9 ("media: venus: helpers, hfi, vdec: Set actual plane constraints to FW") Signed-off-by: Mansur Alisha Shaik Reviewed-by: Bryan O'Donoghue Changes in V4: - Corrected the commit message and removed extra line --- drivers/media/platform/qcom/venus/helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index 1fe6d46..8012f5c 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -1137,6 +1137,9 @@ 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; pconstraint.plane_format[0].stride_multiples = 128; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation