From patchwork Wed Dec 18 13:22:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 1212401 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="pNxmEJx9"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47dG1C3NgFz9sSH for ; Thu, 19 Dec 2019 00:23:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbfLRNXl (ORCPT ); Wed, 18 Dec 2019 08:23:41 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45349 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbfLRNXk (ORCPT ); Wed, 18 Dec 2019 08:23:40 -0500 Received: by mail-lf1-f67.google.com with SMTP id 203so1662961lfa.12 for ; Wed, 18 Dec 2019 05:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5SkJ4zyZx5Gc3ntyaEJs4TJQW06uBI/jmE9PJA8MRnM=; b=pNxmEJx9Ga6kWrGleWquQnRu+x3IT4w1xzdjQfVYIZVWuru47elp68vnOsLTC9ZZHZ rDLkSDl37TzgFL4Gf4Fy67tihwWMznjflIrHiWUFbowKfLb1P5EU9RaBZ57PkGEwky6z gn4PnqxcjjGDq/H3F2uDq34+kxhWS26Cq/vI/bIwdujMtGAgdlZvRY+/sCcEcGyTPOYS Q23ldAXtkmV2ol3H0s+5ji9ebp3gBQ+QAl5D4LBObw8gnEjgL8VfQYB5VZBLpl7GqlaD namvOYPapFh5swcHHrLHSogN3GZTDGWg7vT/A3RnV0MDx6fNbtO0VjbgA/mHBDAMLL8/ Uhzg== 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=5SkJ4zyZx5Gc3ntyaEJs4TJQW06uBI/jmE9PJA8MRnM=; b=LNLPXfZcT5uUI/O+36hP7ANEs1RLPv1kO83XLxdDlj5xj5mQ/ZcQUbQyKFoG/jOeau Q3xEe0rxdB2GLersnyE0NPDI6rgg4NG+l16oLxOtR2NXRRSoTslp1Tk7N8x0Q0ayBSCh myuI+LtaQM8sIn16236uvq+nKiRP54KoxKGDtf9j49fm18eKZB8GAt3vOVIJMpwG3aGZ k/SbuHlFGeBPUl/7ZOmswFU3A0JhS9qUhQNMbG5jtmqZAYyTc2bw9m8V1s+K8+70S/Eu GyjycHmwYHMH9aG23zhb7354Tdup56lyDUzob8YC6NvWZOcGBw7mv0mpoKlMKFM7DLSB OQWQ== X-Gm-Message-State: APjAAAVcmAgHKOkNOJyqwSVO0pSTeJu7myRupie0jFHZEd8mmDxJyVEK tuTeWLzM9zgn5mobfsDU0QB7QA== X-Google-Smtp-Source: APXvYqwjvj3hNKYMIv28Jm1ph10aljnG35FIxC2qpNMG2AVVRU1HuPC7o35HF9tZxE1MVNZ9r0+NeA== X-Received: by 2002:a19:6a04:: with SMTP id u4mr1798924lfu.62.1576675417586; Wed, 18 Dec 2019 05:23:37 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id z7sm1440667lfa.81.2019.12.18.05.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:23:36 -0800 (PST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , dikshita@codeaurora.org, Stanimir Varbanov Subject: [PATCH v2 00/12] Venus new features Date: Wed, 18 Dec 2019 15:22:39 +0200 Message-Id: <20191218132251.24161-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, Here is v2 with the following changes: - added patches for dt-bindings conversion to DT schema, and delete the obsoleted .txt document - introduced qcom,sdm845-venus-v2 compatible and resources to better describe the ability for dynamic core assignment and also cover SoCs with one vcodec - 01/12 - move all clock and pmdomains names in venus resource structure - 02/12 - fixed locking issues when deciding on which core to run current instance The previous version is at [1]. regards, Stan [1] https://lkml.org/lkml/2019/12/9/121 Aniket Masule (2): media: venus: introduce core selection media: venus: vdec: handle 10bit bitstreams Stanimir Varbanov (10): venus: redesign clocks and pm domains control venus: venc: blacklist two encoder properties v4l: Add source event change for bit-depth dt-bindings: media: venus: Convert msm8916 to DT schema dt-bindings: media: venus: Convert msm8996 to DT schema dt-bindings: media: venus: Convert sdm845 to DT schema dt-bindings: media: venus: Add sdm845v2 DT schema venus: core: add sdm845-v2 DT compatible and resource struct arm64: dts: sdm845: follow venus-sdm845v2 DT binding dt-bindings: media: venus: delete old binding document .../bindings/media/qcom,venus-msm8916.yaml | 115 +++ .../bindings/media/qcom,venus-msm8996.yaml | 139 +++ .../bindings/media/qcom,venus-sdm845-v2.yaml | 137 +++ .../bindings/media/qcom,venus-sdm845.yaml | 151 +++ .../devicetree/bindings/media/qcom,venus.txt | 120 --- .../media/uapi/v4l/vidioc-dqevent.rst | 8 +- .../media/videodev2.h.rst.exceptions | 1 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 25 +- drivers/media/platform/qcom/venus/Makefile | 2 +- drivers/media/platform/qcom/venus/core.c | 122 ++- drivers/media/platform/qcom/venus/core.h | 31 +- drivers/media/platform/qcom/venus/helpers.c | 435 ++------ drivers/media/platform/qcom/venus/helpers.h | 4 - drivers/media/platform/qcom/venus/hfi_cmds.c | 2 + .../media/platform/qcom/venus/hfi_helper.h | 6 + .../media/platform/qcom/venus/hfi_parser.h | 5 + .../media/platform/qcom/venus/pm_helpers.c | 964 ++++++++++++++++++ .../media/platform/qcom/venus/pm_helpers.h | 65 ++ drivers/media/platform/qcom/venus/vdec.c | 88 +- drivers/media/platform/qcom/venus/venc.c | 75 +- include/uapi/linux/videodev2.h | 1 + 21 files changed, 1849 insertions(+), 647 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-msm8916.yaml create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-msm8996.yaml create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sdm845-v2.yaml create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sdm845.yaml delete mode 100644 Documentation/devicetree/bindings/media/qcom,venus.txt create mode 100644 drivers/media/platform/qcom/venus/pm_helpers.c create mode 100644 drivers/media/platform/qcom/venus/pm_helpers.h