From patchwork Mon Dec 23 11:33:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182396 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp305653ili; Mon, 23 Dec 2019 03:33:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwhB+JPww1mCiEzQlJnGdNGtQhK6pUmFQEyy3ZGXkbhGW1sYJ8FrK6vFh4BCl07o59bljfZ X-Received: by 2002:a05:6830:2102:: with SMTP id i2mr30153476otc.123.1577100830526; Mon, 23 Dec 2019 03:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577100830; cv=none; d=google.com; s=arc-20160816; b=MO9TflpnzWVVYFkKHYDLr6Yg/moRzqOgX8uGEggG0BMD/bfWUuRJIO9zo2srvbKmX6 885WX56EJyXAqnFP55vjSH1PiO82sUs3BIojeuB1+Pyd04nDQ6VdlC8x2wTEctLk7IP3 qv8el+PiVBSxEjyHT5EAgYgWPQysnv6QA3xtUe2yu0G0HcXb5Nd8fJRIfc1yIFlBybvs MPS8/PVaoLgkx31snZZtBOEqvW1Ae7+ggBuiW8/UpWEm+HaPoxektadZag0MHUvTpP4n Yy/LJYM+icluRr8S3of57rrpG+Hsvh0++IzOl52EU6Dtg0p9oVjWqavEXFD1emfCIm01 1OlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=P72Y5udFHhnfLqxUCy8WtY2iwNO/ZT4H/0nL4IC4LCk=; b=vr/Kn9QnhExp3qj1AXcfEWq7WPYkuAhqiHLhMX7pH98HtDaOvl/LimveQRlesRzReQ l5A94F+hk4FE1JwtF/x8uNTLz9i2LAgdc3SrAP9qFFb9z/vMtEyNxjhJNgocueD+t3uS axqbfsfjZ3/KD+wukZOIjnPNQCS541pOi42YSB6mpDsJSVEC8E+IhzFJu0DXGQseZ24v 1ax2lPaujCLDpuRDzxXMURr8Gd6E2biTtgoKtzpOcTzBLcC6JMBRg/U0eGuga+AF/Ttf iYKvjIFlRzTCNF+DCPyMmrKhZe7ydNEueDJsexwDaL+bKAP7JKoEPk8l6BMHJ49SNNiy HNeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNPQuTGJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x20si10290877otq.222.2019.12.23.03.33.50; Mon, 23 Dec 2019 03:33:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=JNPQuTGJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726903AbfLWLdt (ORCPT + 8 others); Mon, 23 Dec 2019 06:33:49 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36516 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfLWLdq (ORCPT ); Mon, 23 Dec 2019 06:33:46 -0500 Received: by mail-lf1-f66.google.com with SMTP id n12so12381755lfe.3 for ; Mon, 23 Dec 2019 03:33:45 -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:in-reply-to:references; bh=P72Y5udFHhnfLqxUCy8WtY2iwNO/ZT4H/0nL4IC4LCk=; b=JNPQuTGJntfRmCaIG7t6bulJZsUrPsoDQI3KgGUm2NNtuZcMdomnKkYzW20dCYyrb3 XvsoDG743sudLkY8REoB1VMXE6g7ZuBzrshaNAnKpYGyws5MSZkxVUA+rM58z560Zato MGDxqnJqeTprbioNgEaTNtVBVIwJIB40yo1DQMwvQaf3HTOQt7bjyfmTt7AlAAy4suBV AwzU8Tzjuq7PwraTdcOG6kZ+ip4IrShlmgSYoAwjKVy24Y5ZysAXZC62N4JLxtprrTEj 4G/u24IbWVOSzDOj8eprOg2lA8ycPUY/FZjRfcvSc1gt0mkKv652VvsQwl6Rl4q7k7l7 9W1Q== 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:in-reply-to :references; bh=P72Y5udFHhnfLqxUCy8WtY2iwNO/ZT4H/0nL4IC4LCk=; b=TRKeEvBl9uECeK4XOLhSv4gdWyiFN1MGvmfuPsKpcbWfh/U/QdProC5Tsakhee0wHk th2B+1Q/9jIi14jDTD8EDZZ+TPKMqnSz2gFB/1MgOmu5lm2JxhtSjbA9gsNKKZz9MP2+ pezqHWABLpf4iGhHlP/HeshqDLEukCaHA+0n+H2Q4BOIQSCCIFwW0pjSowx4Q8UE4CFb 0r9qYsH4s579UysJJFLiOMb+rWJ/s7JxLsVOhDBOMSqUg/GpRYbzovDnaVT2/Jdbszzn /Lwa0rKIVtNMTdEWSOUXgPvRNraS/6BzKptuontsgo6A0HgHoevENfqcWcvrUHnsSYsD 8rWA== X-Gm-Message-State: APjAAAUKxCEX9SnZFVfN63btrQrgOlm/Ar9/BrTlHEURzg9aT8pPv5Qf 58e4697TnGSdbpZVPf9ycLQQwA== X-Received: by 2002:ac2:41c8:: with SMTP id d8mr16345702lfi.65.1577100825231; Mon, 23 Dec 2019 03:33:45 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id g15sm8381500ljk.8.2019.12.23.03.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 03:33:44 -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 v3 03/12] venus: venc: blacklist two encoder properties Date: Mon, 23 Dec 2019 13:33:02 +0200 Message-Id: <20191223113311.20602-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191223113311.20602-1-stanimir.varbanov@linaro.org> References: <20191223113311.20602-1-stanimir.varbanov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Those two properties are not implemented for Venus v4 (sdm845), thus don't set them to firmware. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_cmds.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.c b/drivers/media/platform/qcom/venus/hfi_cmds.c index 4f645076abfb..c67e412f8201 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.c +++ b/drivers/media/platform/qcom/venus/hfi_cmds.c @@ -1207,6 +1207,8 @@ pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt, case HFI_PROPERTY_CONFIG_VENC_MAX_BITRATE: case HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER: case HFI_PROPERTY_PARAM_BUFFER_ALLOC_MODE: + case HFI_PROPERTY_PARAM_VENC_SESSION_QP: + case HFI_PROPERTY_PARAM_VENC_SESSION_QP_RANGE: /* not implemented on Venus 4xx */ return -ENOTSUPP; default: From patchwork Mon Dec 23 11:33:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182398 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp305761ili; Mon, 23 Dec 2019 03:33:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxG/wtY1Rr/kgzZhxZj91Bb8IW3F+ogAfLHa0f74f2DqNAXu9SZu/1NhLVUt9dL8Ir/fGT3 X-Received: by 2002:a05:6830:138b:: with SMTP id d11mr21449400otq.38.1577100836563; Mon, 23 Dec 2019 03:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577100836; cv=none; d=google.com; s=arc-20160816; b=lBfLi/g6FNYv+lm5wRkxrgXCCh0Gd8gCXs6yv0PDs4G40QVDA6vBrqSvwYGsMZzaDt NQ680ETEo+nVkuxwBP265v33tjb6HBPMcc5YaZbBqSkLFPCKcYGhIt9lREBl2YpTQIN0 Ly2VIaBw2xOzG1Tld3hiQuOJ+O/gjgvuJ8tx/rQqui0QBz2KGajsgWuPlMHk7W+4lrgr ngmEWOfnlZnLqg+GStWMYmiLS/ICjLUDMMcTT/FJ6UCQqOy/eVsZH6u1Hrdsr3/hsIAS EHCubZcQD0MtsUQ2QLKTlNLiZrI5FCrRD2xujkTxKZgAjyaMEKgiaceGlAHCozX1Tr7t 9PpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=H9oZQbNnPKg04bTmHZzlCtfyOoPK++pS7U+3W7/mSLw=; b=LvVAgAzEsWoC8gCAF3OEV3pKcB1prcRX+z66qVMoEMxRW1FxqSxyUVZZRBNG2otlXe YaqI7IVzjz71JF0PkvDdE1aUYmqtRr076eO9vtZiTaHHk4GoF5WHgMnA/C96V9Lv1KS9 gCwkMakca6+KuY6iQB3RdASDPexDpQSr+AkmpHhufTCin6oSsZHaYK2U8riLMZfO/Vor 4ij9v5NoU+FxpqJJoSyhezFu40YlNBxvZtEu+k/QobU5wWt2YzzqwXs24T16xiciYVWM orrP5tsFW97lLY5cunhvIDy69MftDPQELypfQZUFCDEW8T5U6RJyxgKsAZlynEZ16zAo ImZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pxbvWXpE; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 200si9003352oii.156.2019.12.23.03.33.56; Mon, 23 Dec 2019 03:33:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=pxbvWXpE; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726925AbfLWLdz (ORCPT + 8 others); Mon, 23 Dec 2019 06:33:55 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:39570 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbfLWLdz (ORCPT ); Mon, 23 Dec 2019 06:33:55 -0500 Received: by mail-lj1-f196.google.com with SMTP id l2so17407214lja.6 for ; Mon, 23 Dec 2019 03:33:53 -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:in-reply-to:references; bh=H9oZQbNnPKg04bTmHZzlCtfyOoPK++pS7U+3W7/mSLw=; b=pxbvWXpEMT6dOlVLN8Q0xT9fFnWN7z/CHLpSnCDRV1VI4aucc64DFyiAkqV935Z5ci 1iZNw8sDc0VcubAeXhjWVIYglMTzbpOHju7v55qS30jnTKMvz3iIC/jt2NoI2C3oiMbB ABNeuncbRKPokgAW1p6Nh5dyY0glsGr2oBpI7SNXw6r1wTlNNPZbmXYzMN/dJArLiF1R CtG8OaK8KX9pDhQ3MGXJlHzIDroQulkbfzSOM81YhBtHov0dl/MdTYYCt0+BjD9+kogo r0hf2uhnuFoS6TZ0LnqmmlmSj1f+qq/QixvdEmqB8o/oGMDV+/ZqfNFjat6jwWQexb3v iBng== 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:in-reply-to :references; bh=H9oZQbNnPKg04bTmHZzlCtfyOoPK++pS7U+3W7/mSLw=; b=dqgwvmh64QPS70ku3am3ADiSK7niYUBDF27NSAV7z3kxAWRlejAr7PFj0c9JLJd8Is tEyE2sMFSx3d2qh/R0JeirAeU02ZTZxP8p3IGXAfFi8Qa2dhwBUEw4hdwTAuFSI6wpgM /XtOnS9wlfL1qdbSGwvZXOGrwy+tvitIEIKXpPATS+lFKPU1CK4OMBh4JkS4L2e3tjk0 GlmJRT63gzgiPAgZAzL+CJ3lkd69Z072XfwDmgRXtdTkEYOfFWwl5tT59Y93Yu3lAuUS W39zeEy7QPl0yiLAMfHcIshwPTjscAkwump4yjOKJYtLPfF/camvVJwvvRfQAIBeKHRZ SjOQ== X-Gm-Message-State: APjAAAUqiIu5JY8Du+C1aidYN7nshdKc4NHu8hSZR3/PeiS75RVgOn1W LCrDbrSVhuE6ylHMtHd6UWhd8A== X-Received: by 2002:a2e:8e22:: with SMTP id r2mr10480377ljk.51.1577100832546; Mon, 23 Dec 2019 03:33:52 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id g15sm8381500ljk.8.2019.12.23.03.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 03:33:52 -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 v3 07/12] dt-bindings: media: venus: Convert msm8996 to DT schema Date: Mon, 23 Dec 2019 13:33:06 +0200 Message-Id: <20191223113311.20602-8-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191223113311.20602-1-stanimir.varbanov@linaro.org> References: <20191223113311.20602-1-stanimir.varbanov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert qcom,msm8996-venus Venus binding to DT schema. Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,msm8996-venus.yaml | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml b/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml new file mode 100644 index 000000000000..d1431dfa0de8 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml @@ -0,0 +1,153 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,msm8996-venus.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Venus video encode and decode accelerators + +maintainers: + - Stanimir Varbanov + +description: | + The Venus IP is a video encode and decode accelerator present + on Qualcomm platforms + +properties: + compatible: + const: "qcom,msm8996-venus" + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 4 + + clock-names: + items: + - const: core + - const: iface + - const: bus + - const: mbus + + iommus: + minItems: 1 + maxItems: 20 + + memory-region: + maxItems: 1 + + video-decoder: + type: object + + properties: + compatible: + const: "venus-decoder" + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + items: + - const: core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + + video-encoder: + type: object + + properties: + compatible: + const: "venus-encoder" + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + items: + - const: core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + + video-firmware: + type: object + + description: | + Firmware subnode is needed when the platform does not + have TrustZone. + + properties: + iommus: + minItems: 1 + +required: + - compatible + - reg + - interrupts + - power-domains + - clocks + - clock-names + - iommus + - memory-region + - video-decoder + - video-encoder + +examples: + - | + #include + #include + + video-codec@c00000 { + compatible = "qcom,msm8996-venus"; + reg = <0x00c00000 0xff000>; + interrupts = ; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc VIDEO_MAXI_CLK>; + clock-names = "core", "iface", "bus", "mbus"; + power-domains = <&mmcc VENUS_GDSC>; + iommus = <&iommu 0>; + memory-region = <&venus_mem>; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE1_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE1_GDSC>; + }; + };