From patchwork Thu Jul 5 13:03:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 141119 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1918134ljj; Thu, 5 Jul 2018 06:05:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcvbrAnWnfDgDFP8ggaijt2ZRyRsi6cG2JgVAX25CNTUyCD1COU5PpBE8oa/2qTnBqtCO6t X-Received: by 2002:a63:5a13:: with SMTP id o19-v6mr5511990pgb.195.1530795906651; Thu, 05 Jul 2018 06:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530795906; cv=none; d=google.com; s=arc-20160816; b=aU0F4syAPE2wXNfMEYVThwZZH2RFr4mpUWYre6O6X/siHeX7cJ5idPXm7D4GuIL/C9 /o5WKH0Mm1wYehMctR/hnRaDBC3VKQBJrt3rSDNcgyqK4QKca/UHLlY9JqPmuI7zL2kK muwa80KwnU+Z9AIS97AJT0XGpmYhucz0fNdxiZP46MaOdA3Zc0vQclvIfqyM8Jq98yF+ oEYgWjE2qPzcYnwaKu0qP7X3O5OhYv/Mf4Psbrl1U0yduXOsbVunBtOEAl/Br+KJg47A 38VFqNV9UtHWCPfdR56gxGC1NMAkXWO9Sj6jziujCP/5SLKHkw2kfcU6j2LLYoM1j21I tzQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=LXX/ik0JkRnznqqUV0oWx0cz3AIfUo8AKWWvUP8EOTs=; b=GpdeVuSWttU/12oLgq3TYJd5V8P/VUWasjFwWXj5KxcNM67FxTi8ZO0V2rl/guDlL+ jGuVUv6O01oladd8tnF7Q2YLIvbGUoAeEzyCZFfKtAzb9B0BGBM4nKkGJKOS6PKPu0H7 6rbhhXAMlv2h+vevdQA/8i9WCygN65nFPPCFWbdvm9oRVpYTesIvfa3TeKHjyZJuq+0B lp3s08ViAbubccCo9qbe2r0G1G+tytbKzljEcR7xLF5Vg4PHMWtG5LAC0ItUO00ZXrOJ VHgHDyxtI4dfqcEBxL2aMfS7U9Fi4Oydd8J5a+yDvR/S2Rzu+JvoJpUJ5CrQnFbdiI0X l0jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=apBX1ofb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a10-v6si6165265pln.349.2018.07.05.06.05.06; Thu, 05 Jul 2018 06:05:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=apBX1ofb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1754164AbeGENFC (ORCPT + 31 others); Thu, 5 Jul 2018 09:05:02 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38053 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753941AbeGENE7 (ORCPT ); Thu, 5 Jul 2018 09:04:59 -0400 Received: by mail-wr1-f65.google.com with SMTP id j33-v6so1134865wrj.5 for ; Thu, 05 Jul 2018 06:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=LXX/ik0JkRnznqqUV0oWx0cz3AIfUo8AKWWvUP8EOTs=; b=apBX1ofbMYcrRRdwM+CdrZbHfZgT6F6Pg5ulsEfrjhJCGzGtvY3apAyup7MbwKc1Aj uKapwcbqSXyXHENKzWVo7T8WvSw1Gfq+QQ+CYGuDDp4GdoaddxCetOnEgMoQpqzPqV1W 8eJ2miT+xJR1X7B50uflNi/7aIqeN3ueU1M2E= 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; bh=LXX/ik0JkRnznqqUV0oWx0cz3AIfUo8AKWWvUP8EOTs=; b=O9DIM/l6RUGbYMac8kYOxQRjYeLsKRM4JxG/z/N6xZHyPao8r0K1TUAoVNM9eiG8F3 XoXtRzTi3iIqWHfQCKm3ClZQFnouu9KOQjiIJ559cW/wE7gBemfnBj6T2e1cufNSsplo Qk2RtxfsE65yuvolVW+RzVL9JuZs80p+Kw0GAbpyzd94/DORfD7cV/XdDU97ZE7QawPh Q7vjyrprmvrIr21v8FiNebQbD+Vp4MG6GzrQLUwDz7NBM7Gx4tO0Dpybk362AK1JC+gk /f82XxtEZJfAybsQw126YyjlsCSSptpo2/HF/+y0AcGWQurE8kOjC+QYPFD6y5OArwXb z3BQ== X-Gm-Message-State: APt69E3FUonA5+0cudEg6U2fBLbjHjF2RFmuDL5ShXGyFpLUZI/qbnp9 rfKQezQxmeeoRL3jiwpBIuz95Q== X-Received: by 2002:adf:c844:: with SMTP id e4-v6mr4427370wrh.236.1530795898728; Thu, 05 Jul 2018 06:04:58 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 11-v6sm2109102wrw.67.2018.07.05.06.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 06:04:58 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Stanimir Varbanov Subject: [PATCH v5 00/27] Venus updates Date: Thu, 5 Jul 2018 16:03:34 +0300 Message-Id: <20180705130401.24315-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Changes since v4: * 02/27 re-write intbufs_alloc as suggested by Alex, and moved new structures in 03/27 where they are used * 11/27 exit early if error occur in vdec_runtime_suspend venc_runtime_suspend and avoid ORing ret variable * 12/27 fixed typo in patch description * added a const when declare ptype variable Previous v4 can be found at https://lkml.org/lkml/2018/6/27/404 regards, Stan Stanimir Varbanov (27): venus: hfi_msgs: correct pointer increment venus: hfi: preparation to support venus 4xx venus: hfi: update sequence event to handle more properties venus: hfi_cmds: add set_properties for 4xx version venus: hfi: support session continue for 4xx version venus: hfi: handle buffer output2 type as well venus: hfi_venus: add halt AXI support for Venus 4xx venus: hfi_venus: fix suspend function for venus 3xx versions venus: hfi_venus: move set of default properties to core init venus: hfi_venus: add suspend functionality for Venus 4xx venus: core,helpers: add two more clocks found in Venus 4xx venus: hfi_parser: add common capability parser venus: helpers: rename a helper function and use buffer mode from caps venus: helpers: add a helper function to set dynamic buffer mode venus: helpers: add helper function to set actual buffer size venus: core: delete not used buffer mode flags venus: helpers: add buffer type argument to a helper venus: helpers: add a new helper to set raw format venus: helpers,vdec,venc: add helpers to set work mode and core usage venus: helpers: extend set_num_bufs helper with one more argument venus: helpers: add a helper to return opb buffer sizes venus: vdec: get required input buffers as well venus: vdec: a new function for output configuration venus: helpers: move frame size calculations on common place venus: implementing multi-stream support venus: core: add sdm845 DT compatible and resource data venus: add HEVC codec support .../devicetree/bindings/media/qcom,venus.txt | 1 + drivers/media/platform/qcom/venus/Makefile | 3 +- drivers/media/platform/qcom/venus/core.c | 107 ++++ drivers/media/platform/qcom/venus/core.h | 100 ++-- drivers/media/platform/qcom/venus/helpers.c | 568 +++++++++++++++++++-- drivers/media/platform/qcom/venus/helpers.h | 23 +- drivers/media/platform/qcom/venus/hfi.c | 12 +- drivers/media/platform/qcom/venus/hfi.h | 10 + drivers/media/platform/qcom/venus/hfi_cmds.c | 62 ++- drivers/media/platform/qcom/venus/hfi_helper.h | 112 +++- drivers/media/platform/qcom/venus/hfi_msgs.c | 407 +++------------ drivers/media/platform/qcom/venus/hfi_parser.c | 278 ++++++++++ drivers/media/platform/qcom/venus/hfi_parser.h | 45 ++ drivers/media/platform/qcom/venus/hfi_venus.c | 108 +++- drivers/media/platform/qcom/venus/hfi_venus_io.h | 10 + drivers/media/platform/qcom/venus/vdec.c | 326 +++++++----- drivers/media/platform/qcom/venus/venc.c | 220 ++++---- 17 files changed, 1702 insertions(+), 690 deletions(-) create mode 100644 drivers/media/platform/qcom/venus/hfi_parser.c create mode 100644 drivers/media/platform/qcom/venus/hfi_parser.h -- 2.14.1 Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot