From patchwork Tue May 15 07:58:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 135828 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp668057lji; Tue, 15 May 2018 00:59:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq9Aw34A5Sz21Mbbnael6QOrhpkzMc1z7bGYXeLi8ZGOYRPaUgXnhMD21mqKSs1y5rUFQNh X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr13042034plo.305.1526371173136; Tue, 15 May 2018 00:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526371173; cv=none; d=google.com; s=arc-20160816; b=jcFwyiKcPst3OfvmFthDiXlZhWrfpOoAufFU4wOnN3VzFDj9K6viTlmeRdwjzdSKEn Q9pL/9Vp0y93FaOCxIqWWC/Et9JLABo32aK+/7N1dTZCpnUyUHm1/307aLqSVyGuxDp/ peeZWfwwSKvHMQr779yrN9my3JsP9jaif7zrBfgTcVQO5P9yN5CwZBWlJH0Q5S548Ocm KOCmDTRqhwtZgAifQX2oqf5fs7AVahCb3MNzKCgKnr2sY11U98HvWufzuRdHEC/SkFdg tRDmL9SIYKgJBJFBE7yETVByRAA4y7h88QcQ5l8rPrLp4MpMjzAtKg0CClA1x//UcQOj 3h7g== 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=u5FWkvDUu/BVgbS8BBkPg9HF+JbIQhggVJlh8Mnxf9E=; b=oVKZlge4hzMOMW0XvbaR2u3ymCzIxLKOfVYyztbakm2KU0Mh/6/ES7HeszQnhC+Yhu FydAT6IM6ZQXKNoX/PdkQSRJG/puLrDrIHqWDr0bHBjdyveYDjj00X0MyskH2TI5T674 mkX5AWENttkI8jkF5wWIDX6cQsdFsvthlGePmZc43adiyHoPsgSVnvnByECEGNUKqTwa 0z+PLH+9A1WaIBAcChooGgYRRK+tY+9aitHDfDrMCIiqrxsT4y5/H7t0a3icUiJh/lLW DZbH5bLha0DvrMBFxsowGrziW2v1rUV02dcED33jh3MNpfEbt7r0pmYqvVfG6ztkdw+B Pklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=epKvyUMu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 o14-v6si9143599pgd.684.2018.05.15.00.59.32; Tue, 15 May 2018 00:59:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=epKvyUMu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752261AbeEOH7a (ORCPT + 13 others); Tue, 15 May 2018 03:59:30 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39192 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbeEOH72 (ORCPT ); Tue, 15 May 2018 03:59:28 -0400 Received: by mail-wr0-f194.google.com with SMTP id q3-v6so14909559wrj.6 for ; Tue, 15 May 2018 00:59:28 -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=v5Bq0U57mMmcfOVUDG5SbkJQdL1kLLXbTkPGQj1M4hs=; b=epKvyUMubQOE98+QVx6R2ZMrd+cqmQi38fsL1qc0ysRSsCXNE0bOukSrrG0ue5DJHW ELpbpTxZxL7TgraVqhcHYscN/SMGMSuMCvnRIWz/RXNMBO2nzL/mO4lk6Wx32yBFRpsJ vr594wUVy7OYeGkztpUA/7BvSQehP75jKY8TQ= 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=v5Bq0U57mMmcfOVUDG5SbkJQdL1kLLXbTkPGQj1M4hs=; b=g80nYDV8a8sDtCm/yNKgJ4bqTsZ0ooScum2tgJvnW2xYLgv0AdrAN0aokV9cxkJIDG uP7RhU8PdoRyTtROMRTuyMeSm2Z4VIM2KCPgj09+HXLLjkYJR0kUjBHqCAE9prUr6YHB Mo1XEilJCLM88QZmBiiEvfI0moZZFswOxY6lQTe+TRA5VuuTaR0xLVdNeFSJJYgeAZ55 fMJKYmi5spPoFdb/JqSd+qBquCPGQbSCY2rVOnR42kySiNxHjV5m/20hjAxRzPvuaaNI 9uex7y/HF+rVcKiYXpi3WO6Sk6UwL9pihvkP+t6nByr2VVkT9kGWIVbJK8AP5A6GvzBZ xA9g== X-Gm-Message-State: ALKqPwcszSTg3Z3IVmLkrHxvP5Y/Z8nbotZocm+uWYjtZ9GO2EjRq++H WfQAbVGWJ5px92AleQ0HNGBNQg== X-Received: by 2002:adf:93e5:: with SMTP id 92-v6mr9514841wrp.230.1526371167464; Tue, 15 May 2018 00:59:27 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 4-v6sm10918510wmg.40.2018.05.15.00.59.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 00:59:26 -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 , Stanimir Varbanov Subject: [PATCH v2 00/29] Venus updates Date: Tue, 15 May 2018 10:58:30 +0300 Message-Id: <20180515075859.17217-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hello, Here is v2 with following comments addressed: * reworked venus suspend 3xx and reuse it for 4xx. * drop 10/28 patch from v1, i.e. call of session_continue when buffer requirements are not sufficient. * fixed kbuild test robot warning in 11/28 by allocating instance variable from heap. * spelling typo in 15/28. * added Reviewed-by for DT changes. * extended 28/28 HEVC support for encoder, now the profile and level are selected properly. Comments are welcome! regards, Stan Stanimir Varbanov (29): 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: venc,vdec: adds clocks needed for venus 4xx 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 | 107 ++++ drivers/media/platform/qcom/venus/core.h | 93 ++-- 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 | 291 +++++++++++ drivers/media/platform/qcom/venus/hfi_parser.h | 45 ++ drivers/media/platform/qcom/venus/hfi_venus.c | 95 +++- drivers/media/platform/qcom/venus/hfi_venus_io.h | 25 + drivers/media/platform/qcom/venus/vdec.c | 316 +++++++----- drivers/media/platform/qcom/venus/venc.c | 211 ++++---- 17 files changed, 1689 insertions(+), 677 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 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html