From patchwork Wed Jun 13 15:07: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: 138478 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp846648lji; Wed, 13 Jun 2018 08:08:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXHRr7wbltWOJoRsHuV9D/6OGHtGEOyZRBi1cbhYyiDSf48msrytJuwjgNA5ddw66Pb77B X-Received: by 2002:a17:902:7293:: with SMTP id d19-v6mr5628832pll.142.1528902524393; Wed, 13 Jun 2018 08:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528902524; cv=none; d=google.com; s=arc-20160816; b=Kms/ju9WdGW7k38TBSp7UPRG+mUZRJ4ZSwDJfXlfzb9f5QiM8ybEUYq0712l8l84vz JO+eWKwoxFJRrd6Nf61pzM6pTuZ7H3+KSXminbvHO8C+tPO0V/JTuqq37l358pxMeO90 e2bjWXldirhHwjKqcRj0lZ67Fm3bpId0tOM8PwXOzHOfIkCVMf37R4J29tNGHK8mP+vk j8b6az+a8XdUfrxUjsk4qzUZjL425B23rum6QEvCNw2emTpXD3WERiRTXcDPGgLwEN92 zXWoYW/GAP8LXZbrGw0qTDVDI+Dc5LlnqPG3PvWZlJ23WXO6sCI8DnhI+HwPPMVR0SsD USBQ== 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=L1RwHANbm3nFVJsxzr232+kz0RGFGeYeLHmgrwLBw4A=; b=z7ZVZcKIL6oKt1kxmZgn9Ci3WihiEigm8qvk3YVzeQfnyBy4fCIdyJhYq/1qYWKvkj JV8LrTxUuF7Lu9UtssFT9iBFVB9a/MgJ5gv0dXnky6Tx9cMRqQNSsCKw4p/nnCtOZ9gl XGBH/8Nxu+Ve1UH4o13p7mnv24UIkAeQFQKbRTAyOJECSzDZ0ACSLumZfM4Exig1waRf 5LpvMaiQLDTKexhoB6thEb5A0POlxtZFDRHZ+92UZrj8AFskX6Tj5ZYorKHpxvVDEwLi CyCy51fUAHZdbo5SLygG+gEr5B6acPGfuzBMHCVk0FnwOF3J+omOuG2NdL3rbpt0rVte K+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="hMmeh/EW"; 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 o11-v6si2957748pls.234.2018.06.13.08.08.44; Wed, 13 Jun 2018 08:08:44 -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="hMmeh/EW"; 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 S935705AbeFMPIn (ORCPT + 13 others); Wed, 13 Jun 2018 11:08:43 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34259 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935477AbeFMPIl (ORCPT ); Wed, 13 Jun 2018 11:08:41 -0400 Received: by mail-wr0-f193.google.com with SMTP id a12-v6so3161827wro.1 for ; Wed, 13 Jun 2018 08:08:41 -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=i/HHA4PkKB3hJI7sKtzDILXhHsJaabk1eD6PHzj9G9s=; b=hMmeh/EWHOnKGyMcIIVtDdB+gOT1KakhfkguwjxCIeLUJXgx1ru04cYwrctUbjR0lR ijXs6vgINz2cSy6ED4gUrCQrXq5U5LcZlYszp1hPdWJ4ich5WJBg+zaJfWk+6zA7ajjJ XDx8v8cj3asV7eIXzUPIJu+Mu5v5dthrQu2Hw= 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=i/HHA4PkKB3hJI7sKtzDILXhHsJaabk1eD6PHzj9G9s=; b=m66rj0a4NinFn1A0mL3MbDSp3D4CDtAcokMVvrDj2rMNdlLG6TNdFbz2DZiQ21wVyG 1YzqMUJefuDH8rplh357vGnzS1f0qxI+Xl1TQ1rBjcNg1XYyl/2Ifac60aimo/Kn9/8C iLX8Pp5kbXUIqLfOTudLn7rdM9IVZVITTqzZgEadoNHlSIjnOLM9nAqCVrqdD7lG1p/H OyNefU3pO6UjzeCygb+6r4L5Af5aX94DiA0YhdeGaBZa1W9IYcJqwrWBuUCtUEmU6M6m waz2lwTbS02KvMiFNvgUHPXjU2JhWsNYU25UUUidLD+Ez6t8Pk5J/Iv1B+HpIh0xHaLV CtgA== X-Gm-Message-State: APt69E0Q0oxzza3jt6kKzG7LwGeSIrZ9LEF+/mHm32BB+e/mOrVLQ2ll KpmlJynVWNZhXW/KHtEcUw/2sQ== X-Received: by 2002:adf:b839:: with SMTP id h54-v6mr4644894wrf.36.1528902520651; Wed, 13 Jun 2018 08:08:40 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id e13-v6sm2886548wrm.45.2018.06.13.08.08.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 08:08:39 -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 , Stanimir Varbanov Subject: [PATCH v3 00/27] Venus updates Date: Wed, 13 Jun 2018 18:07:34 +0300 Message-Id: <20180613150801.11702-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 Hi, This is a new version of the patch-set which addressing most of review comments made by Tomasz. The changes are: * added Reviewed-by tags * in 02/29 dropped vcodec noc error registers for now, * in 03/29 added a comment for new properties and drop entropy_mode local variable. * in 04/29 drop ret local variable and call pkt_session_set_property_3xx directly from switch default. * in 07/29 added defines for register bits. * in 08/29 added venus_cpu_and_video_core_idle and venus_cpu_idle_and_pc_ready and use readx_poll_timeout. * squashed v2's 11/29 and 13/29 and reworked error handling in vdec/venc suspend/resume * in 12/29 - switched to for_each_set_bit when init codecs capability structure - added a define for MAX_ALLOC_MODE_ENTRIES, now - fill profile/level capabilities in capabilities structure. - announce data argument as const in callback function. - dropped some not needed loops. * squashed v2's 14/29 and 18/29 * in 15/29 make is_dynamic_bufmode bool and drop inline. v2 can found at https://lkml.org/lkml/2018/5/15/190 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 | 555 +++++++++++++++++++-- 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 | 399 +++------------ 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 | 109 +++- 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, 1694 insertions(+), 678 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