From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 A3E3536DA18 for ; Thu, 7 May 2026 08:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778142821; cv=none; b=ca8U1j6Xnf1twxXBMv+PUYDzEpbTxYnO00631ALA2UshtA50Le35H8L8sqeNpQjujmwNP/z+0d59SdS27nnCXAmgMuZfn4uST0rJqrxq1IHsYhD+bhll0FWTed+tgmwQ/6Uuch4+kVQoria2+zXpFPP2NLKuJeklFWrKJe7YNsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778142821; c=relaxed/simple; bh=D3osnMe3vp6rwSX+97IPBj9Y1Qkke5LagVWMBNxNw0A=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=u1ePx5f2mAyLkJoWaQcfaRLBEAGSZLsrYFDMmeOyxL2Olkwyo8J0dE0kw2237AFXkJveVboSOHrwdbrhenZL3QFAHRtoTyaB12OlygiSpehY9+0vVa5KDyTthVLjpSueG6mVQ6oAAyv2/ZpeRz3LPwlpJcnI3siH6k8fYxbRfzo= 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=TaAAXT+V; arc=none smtp.client-ip=209.85.128.180 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="TaAAXT+V" Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-79a535e7c00so6193487b3.3 for ; Thu, 07 May 2026 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778142816; x=1778747616; 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=u8Sk4ijFe93HuTbksMx/E9qQulVUf+80VobQVOkUoSw=; b=TaAAXT+VyQSSbKz0IHsLjhmRGLd7Zy9A820pTZh3TlYK2rtcOt3PglRiFf+q6JYHA8 4dThlogZLucG0lHc1F3BLefcKjNacXtzq7YweV2z2Y10JiBjylnB0iAHIz7IFju8PKmb RvuSTsyCRcRpvE/L3k4aD0iyJzwGX/dw3PqI1uY8mnU4b16dg7u0vA3/dq0ZIVnOnuMw yNdwxOr1m8nqKzUE+5Euaqxgogi9jAr0vQhA7rIrOWwO8J069fiS3XZBrfsdHwhjB2Cl ouHDBEbJLG91KNQbDUwAqLxocxhneEWXLWs7eMp6a0Gy79QyyjAFXRzLBun3XZ5mbXmX 0RfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778142816; x=1778747616; 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=u8Sk4ijFe93HuTbksMx/E9qQulVUf+80VobQVOkUoSw=; b=iIYU4GKvPQZJ0aH3bAOfG4TZOh37N0nUdqcY0Vuv7dlzU8e43IRRNNY+Khr7C7RyuG 8QFx9zJx2kCQ3EtS8I2TkYgTHbeNkOPFr5F6gMnO85/7ynTpYWr297XJS/zbEB3EJnvq 9NdrhH0Y16FCu2FIB3of7MqW4Ub8MleMQUpn+40xFlekl9Oih2v/Kd6dSenDA6cvUd9/ qzlObZTY5nJnKy7/bwc2LGkglVPqGKI6YIbBW3vgJWVR/nUOZfzgsFo6AC6SeRCr8+cF NkkQxswWv5OQEj1GjcyhtzTpBmIpqVGj4Eyqm0McDTM82GrCUF1cA8XEYK7zBR9WXv2n c45w== X-Forwarded-Encrypted: i=1; AFNElJ/D+h/HdBccTSmqWg5UEscLygX1zhuP0huZLdQFSh1t99LI4nA3AdAegM2EcGzGPjlH23RUfc+elErT@vger.kernel.org X-Gm-Message-State: AOJu0Yw7rGQpi+U67af1UNzt1sI8lFImiWaj8h07EJB6N3Z+f0iFsMKC 64gQtHD+Z+g4o0T4R+bV1wOSl8KCpgrgHMm5qJ5S0WzsW5L/XZCqEkF2 X-Gm-Gg: AeBDietlzh8RKVEsBAhC9Co27BCZ5f87s+T1ZERGUaG/jxLXp4kMnXUkLs04CSi1anS Fidu/afzrBbQDp8ttsPl1ehhlUmHYDrV20+BbVpK0+QM2cTEvugYMfCa7kwcwlncLMfJ0TWvbn0 9idoLjSTgOEAd2ridVgrpjPgg647ibx/U1C2Xf1c3jfx5Id1ePUmK5988aJqI0YczQWDlMERINj zsHV+xGpxe+PH7Q1GhS/Af2Mfr4GNEgRxkJtXVznosAO8xG2jP1UHs5v346+wbkpblhDHOa7MZ3 NjE8Rsms7dpGiLUhHLbxHoD/CD5f4ZT2C+2HO2D36FxNrMZzUoiAh0yPg+G5Su9hRurdbr+1O0v PCGI77vnmDe5Gz1gnTMm9ktJ6Y/dfTHXLOFWc89CtjgJVj0arJnNrkVYgZ10OD3BbMCImbxy4FS 33UdYkWIIXw3uktPw6BVC579MBxilitlYvCVIm X-Received: by 2002:a05:690c:e04e:b0:7bf:424:bf4d with SMTP id 00721157ae682-7bf0424ed8bmr19632797b3.2.1778142815746; Thu, 07 May 2026 01:33:35 -0700 (PDT) Received: from [192.168.0.39] ([79.133.247.80]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7bd6683794dsm91692297b3.27.2026.05.07.01.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 01:33:35 -0700 (PDT) From: Erikas Bitovtas Subject: [PATCH v5 0/8] media: qcom: venus: add MSM8939 support Date: Thu, 07 May 2026 11:32:15 +0300 Message-Id: <20260507-msm8939-venus-rfc-v5-0-d7b5ea2ce591@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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/33PQW7DIBAF0KtErEsEA9gmq9yj6gImQ0JV2xEkK FHkuweni1qt1eWX/ryvebBMKVJmu82DJSoxx3GowbxtGJ7ccCQeDzUzENAILRve576zyvJCwzX zFJCjAIMaWx0csXp3ThTi7WW+f3znfPWfhJcZmhunmC9jur9Gi5x7//lFcsGdsAEDIKhD2B97F 7+2OPZs9gssBDBrAlQhNJYMeNWAaH8Laim0a4KqAnSdtMb71so/gv4RjFj9QlfBWh0MeQCHfil M0/QEFbT/WooBAAA= 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 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: Enable HEVC decoding for MSM8939 .../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 | 43 ++++++ drivers/media/platform/qcom/venus/hfi_parser.c | 3 +- drivers/media/platform/qcom/venus/pm_helpers.c | 149 ++++++++++++++++++++- 8 files changed, 312 insertions(+), 5 deletions(-) --- base-commit: 735d2f48cadaa9a87e7c7601667878de70c771c5 change-id: 20260416-msm8939-venus-rfc-c025c4c74fae Best regards, -- Erikas Bitovtas