Received: by 10.192.165.148 with SMTP id m20csp2924602imm; Mon, 7 May 2018 03:42:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWvTyoIyfQ2xOXLHchtnBx3atS3vgeE/PU3H6c0cao77F8LYYkL8X7Ko97H1ScUBDhltd+ X-Received: by 2002:a63:3584:: with SMTP id c126-v6mr30153185pga.37.1525689728582; Mon, 07 May 2018 03:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525689728; cv=none; d=google.com; s=arc-20160816; b=ft78WybmtJtfpTtpMvbsWEcIV1hWL3RxFUDzTy1brPd79FnlDttyeF61ZwwVUUtbyj w7VNF2niQjYoR0Yk9xXdrl70GjRZLX4ninU1M5SPrf6buw7fRbdNvUCNaKeQJ/DWZh1S wQ8gB2MYsx1Y/uVQGbpOSXgrvtlvRkczixTUpj/MMfDwgTwY7A5nMomxzdSYEqtE2FKA S8lSC9IoIM3seJKGkUM/UIz6xpcIn8TTOJ7WEbtNZGmoCtFTNf57PWsd1oE2kp5mw0hl VpXpQD4MBVZzLq3e0M39Z/3VU95kpw+wPAEHDJv9b5s3YBI4GXYzLQGavk71r9sczYmV IP5A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=h+7n5PCz5l4QdR2tfVKV2q5FGbzMbvGwHo/CgwHAV+4=; b=YshFw/6bODKkUaN57s/wQ+eri7K0L/X2fWHiVbFuqSED96+MEsdWuj3CXDcv1S9ISj S3AsrxDODO7v//4XzlfOMy/2oRwTeS3EQtmgC2KKOzKWLXegJy+Pj2C4l7O0QwJ0kRTE cFnC+XvicKhovvtfXNrhJCaOiIpZ8xil9zteCpG5bVXaMbktZp4nZ3v/goLqV6bMSLff bliEvsKvpNOFlwE8Rv7Ehx0W7VLbno1B0JlrzFPPf60TDhOwJvAhfHpBmQygjFRs+MGW m9EGL8BUBFhk/AyfoJfW75sXTL2vEx4VABrr56Nb17ffcUM1Kwlf0iaHyAgWd7pda6Op vERQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19-v6si15126081pgv.66.2018.05.07.03.41.54; Mon, 07 May 2018 03:42:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbeEGKlk (ORCPT + 99 others); Mon, 7 May 2018 06:41:40 -0400 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:57117 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbeEGKlj (ORCPT ); Mon, 7 May 2018 06:41:39 -0400 Received: from [IPv6:2001:983:e9a7:1:2913:d371:8c33:6f] ([IPv6:2001:983:e9a7:1:2913:d371:8c33:6f]) by smtp-cloud9.xs4all.net with ESMTPA id FdaKfcckOHgC9FdaLfFpkK; Mon, 07 May 2018 12:41:37 +0200 Subject: Re: [PATCH 00/28] Venus updates To: Stanimir Varbanov , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> From: Hans Verkuil Message-ID: <29a88d99-537f-5fdc-9e6a-8238703ea8d1@xs4all.nl> Date: Mon, 7 May 2018 12:41:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424124436.26955-1-stanimir.varbanov@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfAJSP8xE8PoIu/LrVoWQNeDn0xpxGqfDmo4eJX9EwjTriHSR5BwyW5YZmtpAVmDMRoETB9ST6t76UFLJbiK/B4Bp3YOH48U9evMFO5dwL1ORBtpawAFv 4+rfTCRVWSeJrEk6uqp/BweRXUbeiyQD2bt0y3th8lkJBSI5kjNB/cq+9BY6V5HuaCw42rofdKqWIIuu6Gqv7d5O7DhaKQbGrQ5C9KihL2Md9U3oF+2Fbj/A xwJVOyWYA71UiJkhz6VxE0gtMLx8KNSnZrk5w6MqfNWZwN+/LckSRkS1T9soJ1C5/hp/7AZgeUuTYQTt0ttDS6DDQ+HmAta/X/A2cUhoSSChpGJCRgNyeuRA kCC0Oy3AHb8U49gL5X1PUE7N8GxsqLk4VHVqu1WLplK7xlgTrotHNvBCJtURdI+s2F4UY0gnmb0lJMb9jUiOsxQApIYscYpaz0yFNNaSoF/yoP5PONMI+BZ3 XmrbChRdORAMtosT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/04/18 14:44, Stanimir Varbanov wrote: > Hello, > > This patch set aims to: > > * add initial support for Venus version 4xx (found on sdm845). > > * introduce a common capability parser to enumerate better > supported uncompressed formats, capabilities by codec, > supported codecs and so on. > > * also contains various cleanups, readability improvements > and fixes. > > * adds HEVC codec support for the Venus versions which has > support for it. > > * add multi-stream support (secondary decoder output), which > will give as an opportunity to use UBWC compressed formats > to optimize internal interconnect bandwidth on higher > resolutions. I'm a bit confused about this: is this a purely driver-internal thing, or is this exposed somehow to userspace as well? It seems to be purely internal. Regards, Hans > > Comments are welcome! > > regards, > Stan > > Stanimir Varbanov (28): > 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: add suspend function for 4xx version > venus: venc,vdec: adds clocks needed for venus 4xx > venus: vdec: call session_continue in insufficient event > venus: add common capability parser > venus: helpers: make a commmon function for power_enable > venus: core: delete not used flag for buffer mode > venus: helpers: rename a helper function and use buffer mode from caps > venus: add a helper function to set dynamic buffer mode > venus: add helper function to set actual buffer size > venus: delete no longer used bufmode flag from instance > 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: new function for output configuration > venus: move frame size calculations in common place > venus: implementing multi-stream support > venus: add sdm845 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 | 102 ++++ > drivers/media/platform/qcom/venus/core.h | 91 ++-- > drivers/media/platform/qcom/venus/helpers.c | 558 +++++++++++++++++++-- > drivers/media/platform/qcom/venus/helpers.h | 23 +- > drivers/media/platform/qcom/venus/hfi.c | 12 +- > drivers/media/platform/qcom/venus/hfi.h | 9 + > drivers/media/platform/qcom/venus/hfi_cmds.c | 64 ++- > drivers/media/platform/qcom/venus/hfi_helper.h | 112 ++++- > drivers/media/platform/qcom/venus/hfi_msgs.c | 401 +++------------ > drivers/media/platform/qcom/venus/hfi_parser.c | 290 +++++++++++ > drivers/media/platform/qcom/venus/hfi_parser.h | 45 ++ > drivers/media/platform/qcom/venus/hfi_venus.c | 69 +++ > drivers/media/platform/qcom/venus/hfi_venus_io.h | 24 + > drivers/media/platform/qcom/venus/vdec.c | 324 +++++++----- > drivers/media/platform/qcom/venus/venc.c | 166 +++--- > 17 files changed, 1641 insertions(+), 653 deletions(-) > create mode 100644 drivers/media/platform/qcom/venus/hfi_parser.c > create mode 100644 drivers/media/platform/qcom/venus/hfi_parser.h >