hey Kim,

I did not follow too closely the exact setup and boot flow you are using, but the delays below are related to missing firmware files. I think it's a 'setup' issue with the initramfs vs modules vs firmware. 

More below.

cheers
nico

On Tue, Sep 20, 2022 at 12:51 AM Kim Steiner <kim.steiner@sightlineapplications.com> wrote:
Hi Dmitry,

After building, I power cycled 10 or so times and it does always boot 😊  The boot is pretty slow (2+minutues).  Is this normal?  Seems like it gets stuck twice on boot up:

4.680695] qcom-cpr3-gfx 838000.power-controller: thread 0 initialized with 7 OPPs
[    4.688141] adreno b00000.gpu: supply vdd not found, using dummy regulator
[    4.694050] adreno b00000.gpu: supply vddcx not found, using dummy regulator
[    4.700963] adreno b00000.gpu: [drm:msm_devfreq_init] *ERROR* Couldn't register GPU cooling device
[    4.711025] msm 900000.mdss: bound b00000.gpu (ops a3xx_ops)
[    4.866823] [drm] Initialized msm 1.8.0 20130625 for 900000.mdss on minor 0
[    4.867596] msm 900000.mdss: Direct firmware load for qcom/a530_pm4.fw failed with error -2
[    4.872738] msm 900000.mdss: Falling back to sysfs fallback for: qcom/a530_pm4.fw
[   62.520488] remoteproc remoteproc0: powering up 9300000.remoteproc
[   62.520704] remoteproc remoteproc0: Direct firmware load for qcom/apq8096/adsp.mbn failed with error -2

This is a timeout which expired after the 'remoteproc' driver failed to load the DSP audio firmware. For now, unless audio support is critical, you can disable support for the audio DSP in the DTS file, set 'status' to disable in the node &adsp_pil (in apq8096-db820c.dtsi)

[   62.525653] remoteproc remoteproc0: Falling back to sysfs fallback for: qcom/apq8096/adsp.mbn
[   66.616506] msm 900000.mdss: [drm:adreno_request_fw] *ERROR* failed to load a530_pm4.fw

This is problematic. It failed to load the GPU firmware. Without more traces, it might be that the GPU/freedreno is not enabled. We will need to understand that better. 

[   66.616700] msm 900000.mdss: [drm] Cannot find any crtc or sizes
[   66.628964] dwc3-qcom 6af8800.usb: IRQ dp_hs_phy_irq not found
[   66.629641] dwc3-qcom 6af8800.usb: IRQ dm_hs_phy_irq not found
...................................
[   67.246955] hub 1-1:1.0: 4 ports detected
[   67.312447] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[   67.358556] hub 2-1:1.0: USB hub found
[   67.359062] hub 2-1:1.0: 4 ports detected
[   67.640338] msm 900000.mdss: [drm] Cannot find any crtc or sizes
[  123.960527] remoteproc remoteproc0: request_firmware failed: -110
[  128.056387] qcom-venus c00000.video-codec: fail to load video firmware
[  128.057947] qcom-venus: probe of c00000.video-codec failed with error -22

This is a timeout after the Venus driver failed to load the firmware. This IP block is used for video encode and decode. For now, to get rid of the timeout, you can disable it too. This is the node '&venus in the same DTSI file as above (change status to disabled)

[  128.069721] input: gpio_keys as /devices/platform/gpio_keys/input/input2
[  128.071183] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  128.094692] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  128.095358] ALSA devió[  128.104154] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[  128.104209] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[  128.108947] Freeing unused kernel memory: 6848K

Thanks,
Kim

-----Original Message-----
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sent: Friday, September 16, 2022 3:32 PM
To: Kim Steiner <kim.steiner@sightlineapplications.com>; Paul Neuhardt <paul.neuhardt@linaro.org>
Cc: sightlineapplications@lists.linaro.org
Subject: [Sightlineapplications] Re: Project Status EOD Friday, 9 September 2022

Hello,

On 13/09/2022 17:37, Kim Steiner wrote:
> Sounds good, thanks!

I have updated the release/db820c/qcomlt-5.15 branch with the GFX CPR patches. Be sure to enable the CONFIG_QCOM_CPR3_GFX=y option while testing the kernel.

>
> *From:* Paul Neuhardt <paul.neuhardt@linaro.org>
> *Sent:* Tuesday, September 13, 2022 5:54 AM
> *To:* Kim Steiner <kim.steiner@sightlineapplications.com>
> *Cc:* sightlineapplications@lists.linaro.org
> *Subject:* Re: [Sightlineapplications] Project Status EOD Friday, 9
> September 2022
>
> Kim,
>
> Dmitry is off on personal leave the next couple of days, but I've
> asked him to push those patches to you as soon as possible.
>
> Paul
>
> On Mon, 12 Sept 2022 at 21:04, Kim Steiner
> <kim.steiner@sightlineapplications.com
> <mailto:kim.steiner@sightlineapplications.com>> wrote:
>
>     Hi Paul,
>
>     Can we get Dmitry’s code for the CPR-GFX fixes?  I could try
>     building and running on our DB820c.
>
>     Thanks,
>
>     Kim
>
>     *From:* Paul Neuhardt <paul.neuhardt@linaro.org
>     <mailto:paul.neuhardt@linaro.org>>
>     *Sent:* Monday, September 12, 2022 5:54 AM
>     *To:* sightlineapplications@lists.linaro.org
>     <mailto:sightlineapplications@lists.linaro.org>
>     *Subject:* [Sightlineapplications] Project Status EOD Friday, 9
>     September 2022
>
>     All,
>
>     As of Friday of last week, Dmitry has completed his work on the
>     CPR-GFX. He is currently investigating issues during power up of the
>     GPU, where GPU clocks sometimes fail to start.
>
>     At the moment I do not have a full accounting of Dmitry's time spent
>     on the project for last week, but I will forward that in future
>     updates as soon as I have it.
>
>     I spent 0 hours on the project last week as I was out of office on
>     holiday.
>
>     As always, if you have any questions or concerns please let me know.
>
>     Paul
>
>     --
>
>     Image removed by sender. Linaro <http://www.linaro.org/>
>
>       
>
>     *Paul Neuhardt*|/Sr. Program Manager/
>
>     T: +44 0771 377 8664
>     paul.neuhardt@linaro.org <mailto:glen.valante@linaro.org>
>     IRC: pneuhardt
>
>
> _______________________________________________
> Sightlineapplications mailing list --
> sightlineapplications@lists.linaro.org
> To unsubscribe send an email to
> sightlineapplications-leave@lists.linaro.org

--
With best wishes
Dmitry

_______________________________________________
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org
To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
_______________________________________________
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org
To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org