From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 330783F6613 for ; Wed, 29 Apr 2026 12:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777466536; cv=none; b=EfVoLS+a9Vc1a5D7UCxWlroSliaeaGD2WxrfkTXVyoAsm6qOlsoKf4WDV18RxTOSTG3TdLe15nvzMpA4fem39TP7VnLakj+8XIYofstkrpWkMILB867UjStXQDzc5QiGazX+LymeMt8l+EppZH7rWRh5Kddpcm5WTIqFmclMi/k= 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.51 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-f51.google.com with SMTP id 5b1f17b1804b1-488e1a8ac40so152499335e9.2 for ; Wed, 29 Apr 2026 05:42:15 -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=m5tqRXc0e3n+8aF03h8i1y3KlXDMU1kqQ3vYU5QO3LTzepFrbkKG6Hm/i1O4BSmp5X vmhQzE8RDmbwT8cu88cN7E6YJLuq2icXH59z73HnBNp4bj5tQQC1T9uWAp8bieB8c4Ya pQLc8GqIEEFAtjDtlgAEKWpj/k3pxFFg2VeGG4+NS4cYKxaKb0LEm3RRN5JlDqUFspEP WzC7Qj9oRljuPmIEKnr58sUWYhHmRs3iOi2eecLd8DRRqYHiXbzGod5fl1Oi8nRbFAUQ ptKYfRe5Ze0XlW4lWDs+CxrPJAa3FmjcwyHDzgsGkIgf+UzpHDCjX6JkOgSUfsWDKije yT2w== X-Gm-Message-State: AOJu0YwDgHaro4Cl6uZMtS1L5XnO2Qenqp5P+EfocacsmMBttJy9iGmE 35APqXsC18VLeCRIjJoPR1hqOttFpp7zE3THZYViLgOUi+rg7eyKm9DR X-Gm-Gg: AeBDieuuwTTxTdC6NPSUtQvwpC35uAkqZQFK6W0EnV0tk8iQ4sxP9VYAzu5KAFVW+gR lx32ZAuzpnT18jzimd61ZyUUFwKqSv+Lt9wvAKzlYs82snkeTdE3OvBTc3f8l7NbdtuQtqu5pOW Gq+Q/dH6GAVOI6MbA8iyzN3wiytsKaJxbkvgfLlCMe7WSP6YSsWG1pCiJyfvU7qOZSYc3FXt/j9 VWmAn9dfcHme06WXF185HoGCXl+uf3aZmX8D5dHjJqvR8y20oH0mSXqvY55G/fKjiiTklbUPovb N+mlKN6vEkJJsDJwWUqr8ZBPGiw7BgZu6GfOe5P37JdbyoL3t0i5c0b3DTJDfsBu0fo4rTL2RlM gKuywKqvavcL7TzF2SfJML33wvLEXlJaGzsaCpTp98GUq4t9pXd1VhME4m7wq57KUZKZwJBXhxV 1pJ1nR6DWep/rgOSHI3f6GEsWr4kjCcFsmixtpVAOnD7sVoZHJ2/HY1r07BzSNJce8Hj5qGSaWS A== 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: linux-media@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