Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp744718ybh; Sun, 12 Jul 2020 23:09:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEZMrc2HKbitBWSMr9B2TVSv5nREYBMUdzkCVueEU6w//BuuZbVdviPQ5WRVt+PZsXnatq X-Received: by 2002:a17:906:5912:: with SMTP id h18mr74225192ejq.259.1594620591900; Sun, 12 Jul 2020 23:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594620591; cv=none; d=google.com; s=arc-20160816; b=ntGnDqC4GoSILTsXtPfK7JFCSp47nBx1xNHRUgeomyoHfNFRzJ1g8Xlx/52VW0aG+J wQDi9OyHbLCQH3Ebh5nhlW5s0Y7g37FyLHH4l5q4zWWqi/O92KKSWb0Yp2nAkJGNT0Lq +St6jFeCO5c1ZT3WfpDUlxZhE5nqIZN4Y88f5WfCHEV3UMiXgZ5QeUg0vUm3J3s2t1Hq VlpFdrtUU+b4W5WrwfEndPaJlMlKBa4nFJ4vKnApM5NI1hMZLtN7mvYkxQmkH9pLFIAH MX4Df9+j2WWWID9MXpd9SIVc1kFbZKo+OuxAIcPXdgCCeYx2y9YGMLr3R+BdCRYtnVm4 iY+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rj/eX87Yry4bMawv7goL3V6HwtUE4PbCYaJFfOPa4n0=; b=xTFOKaNVWR069SzLozdS/VwvARpPrDPikFmjmyWuHYG9dzSunHVtleZEEsVggrnnX9 5AubnkeMCa9WJSgqX66XEIXl9XFyCFXQnKS1aPKdHezTrbPgOSmBGJhhjA9t43gYORrz xaJYlC/bsjrl9mHin08HSfliu6C6ojwD+w2GBlTecNbC7xv1vAKo1lXcu2GY8qIV4AV+ 5xCFfafSQ7O/jEqAAiCPc73sTbBdhp4BKICCs9zpCmHx0PgCuqRsmTnvTVSxhW1NR7IN zNfFVFRDtDqY//ERokK4fGO4DgHLRmc8pzfF+EwRLynbaBacKbQj99gIm6N17yD3mloQ 1rPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cfUC2mwA; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by9si8513767edb.212.2020.07.12.23.09.28; Sun, 12 Jul 2020 23:09:51 -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=@chromium.org header.s=google header.b=cfUC2mwA; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729081AbgGMGJK (ORCPT + 99 others); Mon, 13 Jul 2020 02:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgGMGJK (ORCPT ); Mon, 13 Jul 2020 02:09:10 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20277C061794 for ; Sun, 12 Jul 2020 23:09:10 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id z5so5577649pgb.6 for ; Sun, 12 Jul 2020 23:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rj/eX87Yry4bMawv7goL3V6HwtUE4PbCYaJFfOPa4n0=; b=cfUC2mwAl/yFCEEpI2JTWLQR07oRL3/ZK1qOLOpHaBBaXdr1Cot3d4xtkUn/ua0OuI vx2FsPXISp0gVgegbBXR4y8hzXsCrnuQt7gYCsBbJt94R/kwk4CQK8FEbbNbVSIe90Cq jAUarPk+6bOIy+1Cm4T7+tDD5vWHgjOe+GHKs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rj/eX87Yry4bMawv7goL3V6HwtUE4PbCYaJFfOPa4n0=; b=ReTXkjFGN413H6c+DSI++Y/EXi3tSaa3H1k/xEshvsTswkZ83A3iUmVq4qnO5iy8+f 4j6eOGk9f7626RsfL8Cj2BHnynycrFttyFgYX3bfKJDVd8F90R9YNazmyVIlTEHg0bjk nBo58wv+GVSsR1xDf4DkwFJtzvI1rwH5i3YidvkL8AHLxduBw2xyU2sp9NRDiAtT3JCb EsnNfTSrM2WLjWpwpkWxww02khpFbgfwsN3m03mDNXMovBaKb0lAxFxswAEoSVf+bWmk EujgeJOSeCqsmz0ZZhjwpusMR6AZ/DaEPga1WeohYCLAKlITW1JH049k44qReZopyt+m R+BA== X-Gm-Message-State: AOAM5305zML3xu9+NEUAow5rkIPMi8q01dVs6lKVdwSa0yNH7tqaABre fkCZiafRA5O3aaekQmbv0kH9ceu+WBE= X-Received: by 2002:aa7:9a92:: with SMTP id w18mr30369024pfi.233.1594620549625; Sun, 12 Jul 2020 23:09:09 -0700 (PDT) Received: from acourbot.tok.corp.google.com ([2401:fa00:8f:203:eeb1:d7ff:fe57:b7e5]) by smtp.gmail.com with ESMTPSA id c134sm13134934pfc.115.2020.07.12.23.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 23:09:08 -0700 (PDT) From: Alexandre Courbot To: Tiffany Lin , Andrew-CT Chen , Hans Verkuil , Yunfei Dong , Maoguang Meng Cc: linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Courbot Subject: [PATCH v3 00/16] mtk-vcodec: venc: support for MT8183 and v4l2-compliance fixes Date: Mon, 13 Jul 2020 15:08:26 +0900 Message-Id: <20200713060842.471356-1-acourbot@chromium.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the third version of the series adding support for the MT8183 encoder (1-9) and fixing v4l2-compliance tests (10-16). Changes since v2: * Carried new Acked-bys from mtk-vcodec maintainer, * Removed 2 patches that addressed what was in fact a bug in v4l2-compliance, * Moved DT bindings patches before the code implementing them as Changes since v1: * Checked that no regressions against v4l2-compliance were introduced, * Fixed 9 failing v4l2-compliance tests, * Removed 1 cleanup patch of contested utility, * Carried Acked-bys and Reviewed-bys from mtk-vcodec maintainer. Alexandre Courbot (12): dt-bindings: media: mtk-vcodec: document SCP node media: mtk-vcodec: venc: handle firmware version field media: mtk-vcodec: venc: specify bitrate range per-chip media: mtk-vcodec: venc: specify supported formats per-chip dt-bindings: media: document mediatek,mt8183-vcodec-enc Revert "media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding" media: mtk-vcodec: venc support MIN_OUTPUT_BUFFERS control media: mtk-vcodec: venc: set OUTPUT buffers field to V4L2_FIELD_NONE media: mtk-vcodec: venc: use platform data for ENUM_FRAMESIZES media: mtk-vcodec: venc: support ENUM_FRAMESIZES on OUTPUT formats media: mtk-vcodec: venc: set default time per frame media: mtk-vcodec: venc: fix invalid time per frame in S_PARM Yunfei Dong (4): media: mtk-vcodec: abstract firmware interface media: mtk-vcodec: add SCP firmware ops media: mtk-vcodec: venc: support SCP firmware media: mtk-vcodec: add support for MT8183 encoder .../bindings/media/mediatek-vcodec.txt | 9 +- drivers/media/platform/Kconfig | 1 + drivers/media/platform/mtk-vcodec/Makefile | 4 +- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 53 ++-- .../platform/mtk-vcodec/mtk_vcodec_dec_pm.c | 1 - .../platform/mtk-vcodec/mtk_vcodec_drv.h | 38 ++- .../platform/mtk-vcodec/mtk_vcodec_enc.c | 211 ++++++++-------- .../platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 149 ++++++++---- .../platform/mtk-vcodec/mtk_vcodec_enc_pm.c | 2 - .../media/platform/mtk-vcodec/mtk_vcodec_fw.c | 228 ++++++++++++++++++ .../media/platform/mtk-vcodec/mtk_vcodec_fw.h | 38 +++ .../platform/mtk-vcodec/mtk_vcodec_util.c | 1 - .../platform/mtk-vcodec/vdec/vdec_h264_if.c | 1 - .../platform/mtk-vcodec/vdec/vdec_vp8_if.c | 1 - .../platform/mtk-vcodec/vdec/vdec_vp9_if.c | 1 - .../media/platform/mtk-vcodec/vdec_drv_base.h | 2 - .../media/platform/mtk-vcodec/vdec_drv_if.c | 1 - .../media/platform/mtk-vcodec/vdec_vpu_if.c | 12 +- .../media/platform/mtk-vcodec/vdec_vpu_if.h | 11 +- .../platform/mtk-vcodec/venc/venc_h264_if.c | 80 ++++-- .../platform/mtk-vcodec/venc/venc_vp8_if.c | 11 +- .../media/platform/mtk-vcodec/venc_drv_if.c | 1 - .../media/platform/mtk-vcodec/venc_drv_if.h | 6 + .../media/platform/mtk-vcodec/venc_ipi_msg.h | 24 +- .../media/platform/mtk-vcodec/venc_vpu_if.c | 141 ++++++++--- .../media/platform/mtk-vcodec/venc_vpu_if.h | 8 +- 26 files changed, 756 insertions(+), 279 deletions(-) create mode 100644 drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.c create mode 100644 drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.h -- 2.27.0.383.g050319c2ae-goog