From patchwork Thu Jul 1 08:05:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dikshita Agarwal X-Patchwork-Id: 12353679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFC6CC11F64 for ; Thu, 1 Jul 2021 08:06:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8BBC6148E for ; Thu, 1 Jul 2021 08:06:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234839AbhGAIIf (ORCPT ); Thu, 1 Jul 2021 04:08:35 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:49778 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234635AbhGAIIf (ORCPT ); Thu, 1 Jul 2021 04:08:35 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 01 Jul 2021 01:06:05 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 01 Jul 2021 01:06:03 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 01 Jul 2021 13:35:48 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id 93F2D21A36; Thu, 1 Jul 2021 13:35:46 +0530 (IST) From: Dikshita Agarwal To: 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 Agarwal Subject: [PATCH v2 0/7] media: venus: Enable venus support on sc7280 Date: Thu, 1 Jul 2021 13:35:29 +0530 Message-Id: <1625126736-16266-1-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series enables support for 6xx venus encode/decode on sc7280. The driver changes are dependent on [1]yaml and [2]dts patches. [1] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=484019 [2] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=484727 Changes since v1: - added cx power domain as opp domain. - addressed comments on all patches (stanimir). - updated buf count handling to consider client requirment. - use VB2_MAX_FRAME for scratch1 buffer size calculation to match FW buffer calculation. Dikshita Agarwal (7): venus: firmware: enable no tz fw loading for sc7280 media: venus: core: Add sc7280 DT compatible and resource data media: venus: Add num_vpp_pipes to resource structure media: venus: hfi: Skip AON register programming for V6 1pipe venus: vdec: set work route to fw media: venus: helpers: update NUM_MBS macro calculation media: venus: Set buffer to FW based on FW min count requirement. drivers/media/platform/qcom/venus/core.c | 54 ++++++++++++++++++++++ drivers/media/platform/qcom/venus/core.h | 2 + drivers/media/platform/qcom/venus/firmware.c | 41 ++++++++++++---- drivers/media/platform/qcom/venus/helpers.c | 26 +++++++---- drivers/media/platform/qcom/venus/hfi_cmds.c | 7 +++ drivers/media/platform/qcom/venus/hfi_helper.h | 14 ++++++ drivers/media/platform/qcom/venus/hfi_msgs.c | 7 +++ drivers/media/platform/qcom/venus/hfi_plat_bufs.h | 2 +- .../media/platform/qcom/venus/hfi_plat_bufs_v6.c | 14 ++++-- drivers/media/platform/qcom/venus/hfi_platform.c | 13 ------ drivers/media/platform/qcom/venus/hfi_platform.h | 5 +- .../media/platform/qcom/venus/hfi_platform_v6.c | 6 --- drivers/media/platform/qcom/venus/hfi_venus.c | 4 ++ drivers/media/platform/qcom/venus/hfi_venus_io.h | 2 + drivers/media/platform/qcom/venus/vdec.c | 42 ++++++++++++++--- 15 files changed, 186 insertions(+), 53 deletions(-)