From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C6DC1E520A for ; Sun, 10 May 2026 09:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778406471; cv=none; b=mVu68CtyypvmtSCrTfuPkyy1IPDVX5qcLal+DANkT9nmo8s/upUOuO7NVv0mpCmrN4HkBEBdu+Xq1ajRtfzDmSCfx1RAjFTLbJLKXhUZ3RGWU6VUWPYsyY4MThT3Pnj5KmkMlcJgOdiYcsgkdCkxp9rjHrV8CnV9NozrHvXgApI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778406471; c=relaxed/simple; bh=D62mlNiWPfzKSRriXG2cWLUSvblI+VAYnydIZWkmXAQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=A0kXffhsI9a5cThZvy+MXLeik4JgGoZ9rA4n28CVmhwsjWPqCqWqFhh7kT264NHb3064owTmRzJj5HFPqUANAjy1ba4Dc77VfSdfUthSxByPoI0a87yuJmiAoHHjWyM5kgZBYsCuueNZdzaLI98OIzlQdH33Vxmo6+/qIXnKLdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Z3hfyrmH; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z3hfyrmH" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891b0786beso22123545e9.1 for ; Sun, 10 May 2026 02:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778406468; x=1779011268; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=WsUU3X1LaJjztgUuBWgXdCZ84qVTBBh6rswqrtRvpIY=; b=Z3hfyrmH/4Gbaqydo3VQA0jmwo9kNhq7j5/URF1mNOJv44J+bxXr19VoQpJknh5iiL 6fiACLGTxs8Mp/NO72DFu4TSgFqMb8S2iD7pUL3jJxeSmx4ok+gk4vAeZCHuHeyHo84T n/KyadK6wsndgCtY03eVw8cIfp0rkoh+nMzvpLxxBaou4AW49v3QKCgtDDx4BG4Qd6nD hWtqZeo3CPZI1knRR11qVlgjXrsQdeiGqEicRn2oRDUtUdygyp9Kksk3dYbY/YSLfrHi /FkufxX5OaPAAKURmIOnFpEdsSONbIvzANhBRMpfCbvUVu1S4YVoOF+xz3viilHPCjrN BgNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778406468; x=1779011268; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WsUU3X1LaJjztgUuBWgXdCZ84qVTBBh6rswqrtRvpIY=; b=AJfyptrK8yc0L4qwOhBG2rqYkhapiwTzyzpWnJHzR+YckBeQHp3kWgV3v+RMcLFJN5 IGfFbgiVNcOKtSnF4MemRIfkQU7Gmk0KMV3u8MnRx6981WUBXGHoynF3qMzCIZ3BX3cf a7mMuO+v6Hok0eQCO3CSxl1pthIveB3GKPqWce/LTF4+I87XruonWhAwSGIILhqY9Yw+ FmK0OClfjCFBEwxont9YXbynMy6xtLgTudeC95QCvS4TQALSlbFlMD1P25lG1rOxuylj u7j0pW4u8k9qOhbbhns94jxgPvbRvguQVDNX7TFH75jhCg9I0nx8jKydBs32ang82jEE fWLg== X-Gm-Message-State: AOJu0YzbJoxLSqinnW5IjUlOJKZDRd5j5XswutB+/3x6maPE8clLQjiQ yBOdNEBb/++QgmHJQ7pHkkrxJ1NJGMVB7aojwXNAu6xx1YWb/+X+l/MC X-Gm-Gg: Acq92OGB13NmyJXtriCsmNzM40fcAwb8J6+lbgP44I60BxHP7rOeGAOAJlHlsaUjfsJ 5XLZ6zLrG37qFpUTgEa+qtrO/90m2md70PutN0FkoVtexkfHF+NOKBcaQv1All6uj2Xzdo/lLR9 SxTBmouGii6RDxodQidEF+UG1M/z+xOOJwX8BJemYnUXqW6YpC9nWb5fZvNSTax2UmWp9K95pmH ieOLap/d3t8JTg7rpwXaA8qBcBaszwOGun1AjeU1AFSAKe8J4nAIKl8edRuPbJyicbKkPmFBnsr iZUujtCztgbBPrUVUWMX5/9qlpHStCvhUgnJL5Jb2UkDvFPsnq6PnPiv6v+K5/udPGfWjZ5EuPo KkvksDo5vGHW7IMxEBdfi6aKcd0Ehw80B9CMroqwZzYPkI8uU7GRYNHhVJaGpPDh4/HgU9MiVut DUIpQF4CGSkkCmrZF9KWKPWL81p6NF X-Received: by 2002:a05:600c:37c6:b0:48e:7f22:d90 with SMTP id 5b1f17b1804b1-48e7f7de432mr20458845e9.4.1778406467953; Sun, 10 May 2026 02:47:47 -0700 (PDT) Received: from [192.168.8.79] ([2a00:f502:160:4e2:a099:cad9:2ecd:93de]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e702e0bf2sm182807925e9.4.2026.05.10.02.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2026 02:47:47 -0700 (PDT) From: Erikas Bitovtas Subject: [PATCH v6 0/8] media: qcom: venus: add MSM8939 support Date: Sun, 10 May 2026 12:47:38 +0300 Message-Id: <20260510-msm8939-venus-rfc-v6-0-e69465375900@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/33PTU7DMBAF4KtUXmNkj38Ss+IeiIU9GbdGJEF2a 4Gq3B2nLIhKxPJJb76ZubJCOVFhT4cry1RTSfPUgn04MDz56Ug8DS0zEGCFlpaPZeydcrzSdCk 8R+QowKDGTkdPrM19ZIrp82a+vP7kcglvhOcVWhunVM5z/rotrXLt/edXyQX3wkWMgKCG+Hwcf Xp/xHlkq19hI4DZE6AJ0ToyEJQF0d0Lait0e4JqAvS9dCaEzsk/gv4VjNj9QjfBOR0NBQCP4V4 wW2H3BtOEoQuGPCAZJ7fCsizfX5vQS8wBAAA= X-Change-ID: 20260416-msm8939-venus-rfc-c025c4c74fae To: Bryan O'Donoghue , Vikash Garodia , Dikshita Agarwal , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Andr=C3=A9_Apitzsch?= , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Brian Masney Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Erikas Bitovtas , Dmitry Baryshkov X-Mailer: b4 0.15.2 This patch series adds support for Venus on MSM8939. It is mostly similar to MSM8916 Venus, except it needs two additional cores to be powered on before it can start decoding. As per Dmitry's request, I am attaching Fluster results and v4l2-compliance output. Fluster results were very inconsistent and caused power collapse fails. H.264: https://pastebin.com/C15qeq5W H.265 (HEVC): https://pastebin.com/WDsnxvuk VP8: https://pastebin.com/egAgEm15 v4l2-compliance: https://pastebin.com/VpBhEFc1 Power collapse fail log: https://pastebin.com/rTivMcpK Signed-off-by: Erikas Bitovtas --- Changes in v6: - Added a more generic mechanism on blacklisting codecs. - Reworded a commit for setting Venus core GDSCs to hardware controlled. - Reworded a commit for adding HEVC decoding to MSM8939. - Link to v5: https://patch.msgid.link/20260507-msm8939-venus-rfc-v5-0-d7b5ea2ce591@gmail.com Changes in v5: - Undid the merge of vcodec_clks, they are split back to vcodec{0,1}_clks now. - Extracted a dev_pm_domain_attach_list() call into a function of its own to reduce nesting. - Added missing "power-domain-names" required property to device tree binding. - Renamed vcodec clocks and power domains to match other Venus bindings. - Reordered commits and grouped them by subsystems. Now first come DTB patches, then clock, then media. - Removed "status = "disabled"" in the device tree example. - Link to v4: https://patch.msgid.link/20260506-msm8939-venus-rfc-v4-0-994f5eb22acb@gmail.com Changes in v4: - Removed vcodec{0,1}_pmdomains and merged vcodec{0,1}_clks into vcodec_clks instead for MSM8939. - Inlined video decoder and encoder device tree nodes in the driver and removed them from the binding. - Kept vdec and venc methods for HFI v3 separate from HFI v1. - {vdec,venc}_get() are now called as early as before, since it is no longer needed for us to attach power domains to dev_dec and dev_enc. - Link to v3: https://patch.msgid.link/20260427-msm8939-venus-rfc-v3-0-288195bb7917@gmail.com Changes in v3: - Added missing vcodec1_clks to resource struct. - Removed enc_nodename from resource struct since we include video-decoder now. - Link to v2: https://patch.msgid.link/20260425-msm8939-venus-rfc-v2-0-f69e52b36207@gmail.com Changes in v2: - Enabled GDSCs during encoding as well. - Merged vcodec{0,1}_pmdomains_num into vcodec_pmdomains_num. - Reworded commit for marking GDSCs as hardware controlled. Same situation as in cdc59600bccf ("clk: qcom: gcc-msm8953: fix stuck venus0_core0 clock") - Clarified the reason for missing firmware-name property in device tree. - Clarified the reason for moving vdec_get and venc_get for later. - Link to v1: https://patch.msgid.link/20260416-msm8939-venus-rfc-v1-0-a09fcf2c23df@gmail.com To: Bryan O'Donoghue To: Vikash Garodia To: Dikshita Agarwal To: Mauro Carvalho Chehab To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: André Apitzsch To: Erikas Bitovtas To: Bjorn Andersson To: Konrad Dybcio To: Michael Turquette To: Stephen Boyd To: Brian Masney Cc: linux-arm-msm@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-clk@vger.kernel.org --- André Apitzsch (4): media: dt-bindings: venus: Add qcom,msm8939 schema arm64: dts: qcom: msm8939: Add venus node arm64: dts: qcom: msm8939-longcheer-l9100: Enable venus node media: qcom: venus: Add msm8939 resource struct Erikas Bitovtas (4): arm64: dts: qcom: msm8939-asus-z00t: add Venus clk: qcom: gcc-msm8939: mark Venus core GDSCs as hardware controlled media: qcom: venus: add power domain enable logic for Venus cores media: qcom: venus: add codec blacklist mechanism .../bindings/media/qcom,msm8939-venus.yaml | 79 +++++++++++ arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts | 8 ++ .../boot/dts/qcom/msm8939-longcheer-l9100.dts | 8 ++ arch/arm64/boot/dts/qcom/msm8939.dtsi | 23 ++++ drivers/clk/qcom/gcc-msm8939.c | 4 + drivers/media/platform/qcom/venus/core.c | 47 +++++++ drivers/media/platform/qcom/venus/core.h | 2 + drivers/media/platform/qcom/venus/hfi_parser.c | 10 +- drivers/media/platform/qcom/venus/pm_helpers.c | 149 ++++++++++++++++++++- 9 files changed, 321 insertions(+), 9 deletions(-) --- base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83 change-id: 20260416-msm8939-venus-rfc-c025c4c74fae Best regards, -- Erikas Bitovtas