Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1253818pxv; Thu, 1 Jul 2021 22:22:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNM5YLG0gDBujGHKdEdRtFEQPJkgPC21XrqLfViD/RY0cukn8fyXSdUTnb7ykaQeuor864 X-Received: by 2002:a05:6e02:1ba9:: with SMTP id n9mr2138919ili.267.1625203336067; Thu, 01 Jul 2021 22:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625203336; cv=none; d=google.com; s=arc-20160816; b=S8qE++6LSM4k4Oxa0YT5Z0RP0CaNLbGalPOXcxzaGJVBxHGHn7+WStXlSiyIpUHnCo nf/ZBy3xm9O94hweRNKuBbE0qM2Ykw1fr/CW6pb33gJiPIVZYSKw8RMaWJsD0a1YGnrq YLY0xMkNsGNiAjSZFdB3wcisF1XTdLnHCpvrKhmqb5HPmYE8xpswv0JvnoizM8XQk4HK rE3Iv8vo+i57wkrmwPQOPhGVxWzXlZHIF+V0sn0teqEYhD1+tPPhjK/JiiQUGFQdO6Xf zthp0x6FMf5ryHvwJ+k2VFOhC5EMqjBK+QsH+BkAlD0AF4a1yDpYf4F0+96+geWPgVIi iG0Q== 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=eGMuQgqJU90gY5wj9bD7vVDUspjwhkZ5t0keEn1G+nY=; b=TgVvyLrBFYCbVieHkyjgrlHSiF9rLVKAh0cVU1qwMOHv4Cou2jA/QfsCz9VGhXo+Jk H1Lw0vhxPu/QyBzISjf7DoNecLjPA8RvBzUYfevOU+vpYT8EhqSzd8SS8lU4tqRJKtnv p3A4WB/gY+HP7DGvKMrU9eBNYX6B73chq1ZsVQY5QRM2Xhk+s007priUosXKN+Q2kkpr raMzxno+axO3xAysr/ehucMcSbUbU8TC5R/3OVhiFsRdgASJwrLcByWj/leJDrgVnfUo FaNbSZ9RhNA3FAlyhTXGax8vZb50GlPaKG8xa7Jlwf5MpcgI3B4/kw4ZgTe25tQILvjw kFFg== 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 c9si2200426ilu.72.2021.07.01.22.22.03; Thu, 01 Jul 2021 22:22:16 -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 S229978AbhGBFTS (ORCPT + 99 others); Fri, 2 Jul 2021 01:19:18 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:34213 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbhGBFTR (ORCPT ); Fri, 2 Jul 2021 01:19:17 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 01 Jul 2021 22:16:46 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 01 Jul 2021 22:16:43 -0700 X-QCInternal: smtphost Received: from c-mansur-linux.qualcomm.com ([10.204.90.208]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 Jul 2021 10:46:25 +0530 Received: by c-mansur-linux.qualcomm.com (Postfix, from userid 461723) id 7F795224DC; Fri, 2 Jul 2021 10:46: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: [V3] venus: helper: do not set constrained parameters for UBWC Date: Fri, 2 Jul 2021 10:46:19 +0530 Message-Id: <1625202979-23232-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 Changes in V3: - Elaborated commit message as per comments by Bryan - As per Bryan comment alligned fixes in single line. --- 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 1fe6d46..601ee3e 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -1137,8 +1137,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; + pconstraint.plane_format[0].stride_multiples = 128; pconstraint.plane_format[0].max_stride = 8192; pconstraint.plane_format[0].min_plane_buffer_height_multiple = 32; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation