From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 2D11E3F6610 for ; Wed, 29 Apr 2026 12:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777466536; cv=none; b=qdvJJtxjDCaCggCSFlfr2Gf6kK+JBcDy11tPAol993WuRF64X238CBZrv6J9WLLEeR/MbTOpys5D/JedQ0K2ScZmGsYFn51TsIpuAItPHAu/dHXfcGPGTHmPnEFcwLuMXl2oJp7x9B8GDBoQf6Eh9bAUvRbwUtT8pAiHZ74CyNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777466536; c=relaxed/simple; bh=1A2EDd/9ZFXW9B7wngZDMLHdvoHs8PLDGHjr5zxPytA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d8B3GcEqwEwFbHr/JDHTPTKVdQudWHfH4tXTSQGuqq+DjwqWag6uNS3stsPiZilnEcKGY83wiSp8pTXS/yKZXG18282dSO4p0tsYJPh2VMXoQ+n9hZvUU04/Br9eVAmhBpFOqLfr1prOnYjZfB6ID02rQMMB/wqWbfxZMOH0Q2g= 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=hYSUqybE; arc=none smtp.client-ip=209.85.128.46 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="hYSUqybE" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4891cd41959so109031935e9.3 for ; Wed, 29 Apr 2026 05:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777466534; x=1778071334; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tEWUzkm/84gIEBZKZ1aGJfvpThsAR0MsD57R0RvbGsU=; b=hYSUqybEY414WCwF1ESX/JoRG/Ee+hysZc4svXr4q/NK1gS/DDqOE6UZG6dfOW9FGF Xw7oasUBQQyRkiDdTzzTzy26cKjBGYZjoe7FWxLHZWeR7fToCZpehlBAALEUAAO+yXKE UHe6LU7Gvh/Qz/8sUFfTKL2CIfQyA2GH5rEX6fgVsSPi9aj8dUjuAnzuqemDKBtC4JWF LfyN6YyUWpyctIqyqnneMgpw0Q/9nuqYWlmYQxSD0BILHXnMV6cQTcLdA3yIx0Yev67H A13wyX6NaneRygAWvHK59SkPUVA9PdD2i9J1VuWvxmkZnLGb1bV4Nt1Oeok/RJD9AQBc 9NlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777466534; x=1778071334; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tEWUzkm/84gIEBZKZ1aGJfvpThsAR0MsD57R0RvbGsU=; b=F8bgoMw5WBzyAuivYlH4gmQ8fLSqGlXKObGwinXpV6X4ZhxTsp5J/rQch6JSzfeXrY NmeOPc0yWKRT3L8knujAWBfsj9wHNhZ3s/hV2OQU9QUGdQIs7XNW8QjeiHmMUGiROPoM lqdYnfHEvUo9Fjdk39gP8G+CEPPAfJoZYojEIr7r0UZ5AzF8FGcCycPLxHZ4oR+ju6b2 4z45/o1i55dir7yV+8kDdLVxzTCOyHSX0cF2z2TH2RFISb93YDpe5zhCSY6vchWLHFKK vp7jpkaWbiHXG5U2glVKXDYur4JMVdY0kbq+4mnR2mrY5bkZu5RI2DJlslf+5b3vcPbI qQFw== X-Forwarded-Encrypted: i=1; AFNElJ8/8GwLo4aUP532AmUfHTMTK7PWp62OOaXpK3FDRqq1g89F3pVKcEeTtPuyolsmjOfZaSHuRWps+kpo@vger.kernel.org X-Gm-Message-State: AOJu0Yy5Ry6JNmsuA0q5ijfczrZnCDnww7vQwKz1+ycZuZ85JzOXtVBt n2dHSRkVQDBWDs9qxKeQU2c7T0KIRWH+En4iQfagfZUJchKtgDNOLrIY X-Gm-Gg: AeBDietiMpVcGeamTxUhpx7ysqbEYsMGKlGFysxNrFpJS1isZHfyZmiwwCY7fuobTyh //xRidmH1sW82p/IO1sfDrJwc5F1kD/Cfx0ktZyqRO88zbHCSG6fYmeiciYI/tCKNVXRNCdA+XA y99gT2bxMMv2Q/4KP8CrrTVW1ReBpjjLteUVNqCIwD+7gz+ze7ceQP+/Y4pLq0pMTMgxdJpKrRY DQN2R/+ps/Kitu0I+es/vzvu85SvAua2EKusybhfOyu1p2NRzTHRnivALrHzgVyNllSZKNoClBr IVxbSQWp58QxXP9kZIJ9fXSmujxhWeY0OMi8uziKLV3hcCy15NHXMjLqq5zYYha/T6fy3i8nFFC EiwvlOMYBXncucL56RLyZ95Y5v9pKx6ILTPGBdYFotd9+7hETyBuSNxsNgQRHwkmkBlCAMVcyeI IYF9+O6zBLi8pMf0kgk0YkAz5RSemmZT8vLtVP8ykNunI8xZar/6bn9yC5P+G9p1kW2mEDjquxk g== X-Received: by 2002:a05:600c:a11:b0:489:1a3a:9e45 with SMTP id 5b1f17b1804b1-48a77b1b405mr123401375e9.26.1777466533338; Wed, 29 Apr 2026 05:42:13 -0700 (PDT) Received: from ?IPV6:2a00:f502:160:68fe:a26c:adcb:8da8:2? ([2a00:f502:160:68fe:a26c:adcb:8da8:2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a7c31fb8asm17976745e9.30.2026.04.29.05.42.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Apr 2026 05:42:12 -0700 (PDT) Message-ID: <89f2b7ab-2335-4029-a074-4d9bf956c14f@gmail.com> Date: Wed, 29 Apr 2026 15:42:10 +0300 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v3 04/11] arm64: dts: qcom: msm8939: Add venus node 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 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 References: <20260427-msm8939-venus-rfc-v3-0-288195bb7917@gmail.com> <20260427-msm8939-venus-rfc-v3-4-288195bb7917@gmail.com> <56d609dd-62be-47eb-8ba3-c5d70d773113@kernel.org> <34627be5-75cc-469b-af23-f1f08ce29820@gmail.com> <2846fc60-bf8c-43b3-ae64-58faad6aed2f@kernel.org> Content-Language: en-US From: Erikas Bitovtas In-Reply-To: <2846fc60-bf8c-43b3-ae64-58faad6aed2f@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/28/26 4:36 PM, Bryan O'Donoghue wrote: > On 28/04/2026 10:47, Erikas Bitovtas wrote: >> >> >> On 4/28/26 10:10 AM, Bryan O'Donoghue wrote: >>> On 27/04/2026 18:58, Erikas Bitovtas wrote: >>>> +            video-decoder { >>>> +                compatible = "venus-decoder"; >>>> +                clocks = <&gcc GCC_VENUS0_CORE0_VCODEC0_CLK>, >>>> +                     <&gcc GCC_VENUS0_CORE1_VCODEC0_CLK>; >>>> +                clock-names = "core0", "core1"; >>>> +                power-domains = <&gcc VENUS_CORE0_GDSC>, >>>> +                        <&gcc VENUS_CORE1_GDSC>; >>>> +                power-domain-names = "core0", "core1"; >>>> +            }; >>>> + >>>> +            video-encoder { >>>> +                compatible = "venus-encoder"; >>>> +                clocks = <&gcc GCC_VENUS0_CORE0_VCODEC0_CLK>, >>>> +                     <&gcc GCC_VENUS0_CORE1_VCODEC0_CLK>; >>>> +                clock-names = "core0", "core1"; >>>> +                power-domains = <&gcc VENUS_CORE0_GDSC>, >>>> +                        <&gcc VENUS_CORE1_GDSC>; >>>> +                power-domain-names = "core0", "core1"; >>>> +            }; >>> >>> So to be fair in this case you do have a reason to have an encoder and >>> decoder compatible here _but_ it should be the case that one one of the >>> sub-devices contains CORE0 related stuff and the other CORE1 related >>> stuff. >>> >>> Because in that case the sub-devices actually represent individual >>> hardware settings. >>> >>> So listing power-domains and clocks for both cores in each node like >>> this militates against that. >>> >>> The other thing is to double check of the encoder and decoder are inter- >>> changable here i.e. can either core be encoder or decoder or is it >>> fixed ? >>> >>> I believe on older generations - perhaps not on 8939 it is not >>> interchangable. >>> >> I found this in LA.BR.1.2.9.1_rb1.5: >> https://github.com/msm8916-mainline/linux-downstream/blob/ >> b20608408caff817ec874f325127b07609fbaeb8/arch/arm/boot/dts/qcom/ >> msm8939-common.dtsi#L1589 >> Only decoder bits are being set in bus configs. This suggests that the >> cores are not interchangeable. >> Then again, I never managed to get encoding working on MSM8939. Testing >> it with >> gst-launch-1.0 videotestsrc ! videoconvert ! v4l2vp8enc ! queue ! >> v4l2vp8dec ! xvimagesink >> Fails with the following log: https://pastebin.com/nmZcLgPV >> And in dmesg it reports a firmware error: >> [  784.461031] qcom-venus 1d00000.video-codec: no valid instance(pkt >> session_id:dead, pkt:21001) >> [  784.461126] qcom-venus-decoder 1d00000.video-codec:video-decoder: >> dec: event session error 0 >> [  784.461200] qcom-venus-encoder 1d00000.video-codec:video-encoder: >> enc: event session error 0 >> [  784.468799] qcom-venus 1d00000.video-codec: SFR message from FW: >> QC_IMAGE_VERSION_STRING=VIDEO.VE.1.8-00099, Err_Fatal - >> Z:\b\venus\utils\src\vbuffer.c:1319: >> [  785.791641] qcom-venus 1d00000.video-codec: System error has >> occurred, recovery failed to init HFI >> [  787.018339] qcom-venus 1d00000.video-codec: System error has >> occurred, recovery failed to init HFI >> [  787.097253] qcom-venus 1d00000.video-codec: system error has occurred >> (recovered) >> This happens regardless of whether I enable the cores for encoding too >> or not. The same errors were happening on MSM8916 as well. So I can't >> tell if these cores are interchangeable just by testing. > > Right so if you swap around the definition of which core is encoder and > which decoder do you get the same or different result ? > If I set the core0 to be decoder, only HEVC decoding works. If I set core1, only non-HEVC decoding works. Encoding doesn't work regardless.> i.e. is it because you are trying to get encoder running generally or > because of the core you are doing it on ? > > How about declaring both cores a decoder ? > That is what I did on v1. Ideally we'd decide which core we want to power up based on what codec we are dealing with, but given there is no easy way to do so on mainline yet, it could work.> --- > bod