cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gladson
Participant
Participant
524 Views
Registered: ‎01-31-2021

VPSS scaler - parse_of failed and failed to get axi lite clock

Jump to solution

I am working on a Zynq MPSoC 5ev custom board.

Our project pipeline is:

TPG -> VPSS (scaler) -> Framebuffer write -> DDR -> Framebuffer read -> VPSS (scaler) -> arinc tx

Both the VPSS scaler used, are giving issue and pipeline is broken. I am using /gpu/drm/xlnx/xlnx-scaler driver.

I have attached system-user dtsi below.

LOG:
--------
root@DEV_KIT:~# dmesg | grep tpg

[ 3.743290] xilinx-tpg a00d0000.v_tpg: device found, version 0.000
[ 3.749469] xilinx-video amba_pl@0:vcap_out: Entity type for entity a00d0000.v_tpg was not initialized!

root@DEV_KIT:~# dmesg | grep scaler
[ 2.902968] xlnx,scaler-bridge a0040000.v_proc_ss: failed to get axi lite clk -517
[ 2.907590] xlnx,scaler-bridge a0040000.v_proc_ss: parse_of failed
[ 2.913778] xlnx,scaler-bridge a0080000.v_proc_ss: failed to get axi lite clk -517
[ 2.921250] xlnx,scaler-bridge a0080000.v_proc_ss: parse_of failed
[ 3.447088] xlnx,scaler-bridge a0040000.v_proc_ss: xlnx drm scaler experimental driver probed
[ 3.455771] xlnx,scaler-bridge a0080000.v_proc_ss: xlnx drm scaler experimental driver probed
root@DEV_KIT:~# media-ctl -p
Failed to enumerate /dev/media0 (-2)

root@DEV_KIT:~# dmesg | grep frmbuf
[ 2.861503] xilinx-frmbuf a0030000.v_frmbuf_rd: failed to get ap_clk (-517)
[ 2.866672] xilinx-frmbuf a00c0000.v_frmbuf_wr: failed to get ap_clk (-517)
[ 3.414849] xilinx-frmbuf a0030000.v_frmbuf_rd: Xilinx AXI frmbuf DMA_MEM_TO_DEV
[ 3.422289] xilinx-frmbuf a0030000.v_frmbuf_rd: Xilinx AXI FrameBuffer Engine Driver Probed!!
[ 3.430931] xilinx-frmbuf a00c0000.v_frmbuf_wr: Xilinx AXI frmbuf DMA_DEV_TO_MEM
[ 3.438375] xilinx-frmbuf a00c0000.v_frmbuf_wr: Xilinx AXI FrameBuffer Engine Driver Probed!!
xlnx-pl-disp amba_pl@0:arinc-pl-disp_0: failed to request dma channel
xilinx-video amba_pl@0:vcap_scaler: /amba_pl@0/vcap_scaler/ports/port@0 initialization failed
xilinx-video amba_pl@0:vcap_scaler: DMA initialization failed
zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
phy phy-fd400000.zynqmp_phy.0: Looking up phy-supply property in node /amba/zynqmp_phy@fd400000/lane0 failed
phy phy-fd400000.zynqmp_phy.1: Looking up phy-supply property in node /amba/zynqmp_phy@fd400000/lane1 failed
phy phy-fd400000.zynqmp_phy.2: Looking up phy-supply property in node /amba/zynqmp_phy@fd400000/lane2 failed
phy phy-fd400000.zynqmp_phy.3: Looking up phy-supply property in node /amba/zynqmp_phy@fd400000/lane3 failed
ahci-ceva fd0c0000.ahci: Looking up target-supply property in node /amba/ahci@fd0c0000 failed
zynqmp_pll_disable() clock disable failed for dpll_int, ret = -13

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
gladson
Participant
Participant
257 Views
Registered: ‎01-31-2021

Hi @furball 

Please add this in system-user.dtsi

&scaler_1 {
    compatible = "xlnx,v-vpss-scaler-2.2";
}

Considering your boot log I came to know that you are loading DRM driver for input path VPSS.

View solution in original post

9 Replies
furball
Adventurer
Adventurer
354 Views
Registered: ‎06-22-2017

Hi @gladson ,

Did you solve the problem?

I'm facing similar failure.

[ 3.075636] xilinx-video amba:vcap_csi: device registered
[ 3.075709] xilinx-video amba_pl@0:vcap_scaler_1: No Video DMA channel found
[ 3.075727] xilinx-video amba_pl@0:vcap_scaler_1: /amba_pl@0/vcap_scaler_1/ports/port@0 initialization failed
[ 3.075742] xilinx-video amba_pl@0:vcap_scaler_1: DMA initialization failed

0 Kudos
gladson
Participant
Participant
352 Views
Registered: ‎01-31-2021

Hi @furball 

Can you please share pl.dtsi, system-user.dtsi and also boot log?
I have found the solution for my problem. It may not be same solution in your case. So I would like to get little more info on the same and I will give you my point of view.

With Regards,
Gladson

Abhishekkumar
Contributor
Contributor
323 Views
Registered: ‎12-11-2020

Hi @gladson,

I am facing similar issue. If you are able to solve the issue could you please update the solution?

xilinx-video amba_pl@0:vcap_scaler: /amba_pl@0/vcap_scaler/ports/port@0 initialization failed
xilinx-video amba_pl@0:vcap_scaler: DMA initialization failed

Thanks and Regards 
Abhishek

0 Kudos
nathanx
Moderator
Moderator
308 Views
Registered: ‎08-01-2007

The problem is likely due to device tree or your setting in your BD design, so, a quick way to verify the issue is to compare Xilinx demo with yours.

Xilinx VCU TRD has working v4l2 capture pipelines, e.g., HDMI RX -> Video Scaler -> Frame buffer write. Generate the bd design and also get the device tree, compare them with yours. Hope it helps.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

0 Kudos
furball
Adventurer
Adventurer
275 Views
Registered: ‎06-22-2017

Hi @gladson ,

Thanks for your quick reply, Here's my pl.dtsi, system-user.dtsi and also boot log.

Could you also share yours? 

0 Kudos
gladson
Participant
Participant
258 Views
Registered: ‎01-31-2021

Hi @furball 

Please add this in system-user.dtsi

&scaler_1 {
    compatible = "xlnx,v-vpss-scaler-2.2";
}

Considering your boot log I came to know that you are loading DRM driver for input path VPSS.

View solution in original post

furball
Adventurer
Adventurer
232 Views
Registered: ‎06-22-2017

Hi @gladson ,

After adding the node in system-user.dtsi, I could successfully find a media device. Thanks for your help.

ls /dev | grep "media"
media0

 

But, though I can see "VPSS Scaler Probe Successful" in boot log, I still got those errors :
"xilinx-video amba_pl@0:vcap_scaler_1: No Video DMA channel found"
"xilinx-video amba_pl@0:vcap_scaler_1: /amba_pl@0/vcap_scaler_1/ports/port@0 initialization failed"
"xilinx-video amba_pl@0:vcap_scaler_1: DMA initialization failed"

not sure if it matters. Did you have the same problem?

 

[ 3.074537] xilinx-video amba:vcap_csi: device registered
[ 3.074610] xilinx-video amba_pl@0:vcap_scaler_1: No Video DMA channel found
[ 3.074628] xilinx-video amba_pl@0:vcap_scaler_1: /amba_pl@0/vcap_scaler_1/ports/port@0 initialization failed
[ 3.074643] xilinx-video amba_pl@0:vcap_scaler_1: DMA initialization failed
[ 3.075159] xilinx-csi2rxss 80000000.mipi_csi2_rx_subsystem: Xilinx CSI2 Rx Subsystem device found!
[ 3.075180] xilinx-video amba:vcap_csi: Entity type for entity 80000000.mipi_csi2_rx_subsystem was not initialized!
[ 3.076355] xilinx-video amba:vcap_csi: Entity type for entity 80040000.v_proc_ss was not initialized!
[ 3.076374] xilinx-vpss-scaler 80040000.v_proc_ss: Num Hori Taps 6
[ 3.076385] xilinx-vpss-scaler 80040000.v_proc_ss: Num Vert Taps 6
[ 3.076396] xilinx-vpss-scaler 80040000.v_proc_ss: VPSS Scaler Probe Successful

0 Kudos
gladson
Participant
Participant
212 Views
Registered: ‎01-31-2021

Hi @furball 

Please do stream video and check whether you are getting output. If not, please debug using ILA( Integrated Logic Analyser).

With Regards,
Gladson

0 Kudos
furball
Adventurer
Adventurer
202 Views
Registered: ‎06-22-2017

Ok I’ll try that. Thanks 

0 Kudos