From patchwork Mon Dec 9 08:38:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 180982 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4062661ile; Mon, 9 Dec 2019 00:39:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxcJTN1YAWxEnB3e8XWmOZVw+xXvGemQFRjcKHmmewy8+MeuUz0sPRYMAlSE/cAWg2d+iES X-Received: by 2002:aca:ed46:: with SMTP id l67mr22681402oih.53.1575880750613; Mon, 09 Dec 2019 00:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575880750; cv=none; d=google.com; s=arc-20160816; b=ZBrmLJSpROZfqll8hYAfVpGas1SY1s9Wh0+9FsqLJDhroaUcWLPN9XKoKApVUNBLHi poJ8CDjmVFT03JsXfXpgwlAkod2Yr3GhsvZ0NYK1qU0asyt8j0+RSgR/YGGHBSWKEeEj RL7izII6RWqunw8Brp2Jk9GAm2b9ci3EWjZZHBUOqBQdod9Kx1BZu5G0/gFnFyvJ30FZ O3H/hJ5shtjdbCpZk9VfVTb8KH52fytYRbz4++S9fxAAYDvh89GSEscpL7vWy0s0DaH6 5k4Oyts4aIRnTeCgGNrIFJBmQe+nnrnB0rC+LCNDp8Jok7RZxNSd4l02Krw07E0cAaC+ CK9w== 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; bh=N3RpZCRpKUtgoEtKAWxxbXAbpUsrQdnPIi7268knFtw=; b=HjmKASnPtOkpstWDWuxrsMHVBpYNQIfMHClVUBRqe+CZs5ruhtHtObFjCDABcr/JYJ D5/nl7VlDAMvIZddJ6UHFjBkLaL8EQnIL43SRWxWeQ+m1zUSO1Sndwz6X96RGsP/RlWw YQE0bg+qRGakNXkHIbyVfaF70/tzPcOjU8EdRr+eYP3Zs9oW4jaJdj6QARTHYNtHXbsU nMe/TjYOOG3bjezaAgRmJ5p/q2ZvBV9RPMw3S9+oYCwug0W+wOlrvILIsY7L/Teq+HOx MHrV2LOKtYjYD1Vus8McQsjxLTqhb7E92jFzQQ2UoLbWWmD6gg3ecOFsWc6Uwqn0p/o3 EB8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dULvsJi+; 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 e1si3352345oie.168.2019.12.09.00.39.10; Mon, 09 Dec 2019 00:39:10 -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=dULvsJi+; 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 S1727263AbfLIIjJ (ORCPT + 8 others); Mon, 9 Dec 2019 03:39:09 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42483 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbfLIIjJ (ORCPT ); Mon, 9 Dec 2019 03:39:09 -0500 Received: by mail-lj1-f196.google.com with SMTP id e28so14576381ljo.9 for ; Mon, 09 Dec 2019 00:39:07 -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=N3RpZCRpKUtgoEtKAWxxbXAbpUsrQdnPIi7268knFtw=; b=dULvsJi+k8JTBXayTBi+s3SshIdVsHL29YXMyJjjgMwbPPXEyS8/YN0HcPA8jIJds2 VSkpKhtaM6e5vO5CwrYNZjoPvfd37sSFsDvXmAqZR9HqQNRkBORQByFPWgULxD79Q+km +qCWIf+GuDYPlz8B+LwdsNUa0+3nydUVkBdVywCCi0GNte3iV+gdPwETx+4XDB1AZonl Gi6qZFmImHXrWbDr4jPOzBdwdtDLZtNdVWaCa9OBkpXH1wyu4ptcUAJ5SPr/PvLD0/jp OCxwZA5n6HL9rq7/TpX8n3c6ECcyOaUYknjBeuDIOoXLt4mBnxvn05VLVzVC8lCWXXRa QXVw== 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=N3RpZCRpKUtgoEtKAWxxbXAbpUsrQdnPIi7268knFtw=; b=FJ6Q7D1FtQWF65p/KwN/zKxbd05+yKd/X5dO5Qph/HDQTUfJSQMw0c2GDwuWGMYcCt nstVEhMEghNqD48lM9U3C5LfsLutpBwNE+kLtvT5S+B/3suuXbvdXz3bNYGXzefhZCwv WlUn3mAlWBdFAo3Eg8DZp97oJQ0jZDGF1JWI5GrN+pDEGCXJRbB0L+PHr3LxDcq58wR6 V04W4Ux/s2o+lpcSdSBUAD5/GXF2zJn3cXW1vGKYheO995W2iMSEiCe4Jg492wEd1IKq x55WqmrKMYuaLn+tt7Ubo8qDS6zlKfFafLJEXT2d2yCZUtFsG+msduBfb+NuT5oIIxRu acow== X-Gm-Message-State: APjAAAUPyX0d1+Jh8JunsUshBypyfVC++W1/CBuQz7DsXQSALeymv6xK GnrdBmG0GCFoT5WOrgSeoU3CUg== X-Received: by 2002:a2e:9906:: with SMTP id v6mr16255037lji.90.1575880747094; Mon, 09 Dec 2019 00:39:07 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id r26sm10438971lfm.82.2019.12.09.00.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 00:39:06 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , Tomasz Figa , Stanimir Varbanov Subject: [PATCH 0/6] Venus new features Date: Mon, 9 Dec 2019 10:38:18 +0200 Message-Id: <20191209083824.806-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, The patchset contains two new features: The first one is the so called core-selection (for Venus on sdm845) where we adding a mechanism in the driver to select the minimum loaded core (sdm845 has two cores, aka hardware pipelines) for the given driver instance. This feature should improve power management and thermal mitigation as well. The second one is related to the decoder 10bit bitstream playback. Aniket Masule (2): media: venus: introduce core selection media: venus: vdec: handle 10bit bitstreams Stanimir Varbanov (4): venus: redesign clocks and pm domains control arm64: dts: sdm845: move venus clocks and pmdomains in parent dt-bindings: media: venus: describe sdm845 with optional pmdomains v4l: Add source event change for bit-depth .../devicetree/bindings/media/qcom,venus.txt | 22 +- .../media/uapi/v4l/vidioc-dqevent.rst | 8 +- .../media/videodev2.h.rst.exceptions | 1 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +- drivers/media/platform/qcom/venus/Makefile | 2 +- drivers/media/platform/qcom/venus/core.c | 89 +- drivers/media/platform/qcom/venus/core.h | 9 + drivers/media/platform/qcom/venus/helpers.c | 435 ++------ drivers/media/platform/qcom/venus/helpers.h | 4 - .../media/platform/qcom/venus/hfi_helper.h | 6 + .../media/platform/qcom/venus/hfi_parser.h | 5 + .../media/platform/qcom/venus/pm_helpers.c | 947 ++++++++++++++++++ .../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 + 16 files changed, 1262 insertions(+), 518 deletions(-) create mode 100644 drivers/media/platform/qcom/venus/pm_helpers.c create mode 100644 drivers/media/platform/qcom/venus/pm_helpers.h -- 2.17.1