UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Adventurer
Adventurer
106 次查看
注册日期: ‎02-15-2019

DRM VDMA 启动出错

转到解答

使用VDMA+VTC+AXI2VIDEO搭建DRM,DTSI如下:

 

	xilinx_drm {
		compatible = "xlnx,drm";
		xlnx,vtc = <&v_tc_0>;
		//xlnx,encoder-slave = <&adv7511>;
		xlnx,connector-type = "HDMIA";
		clocks = <&vid_s_axi_clk>;
		planes {
			xlnx,pixel-format = "rgb888";
			plane0 {
				dma = <&axi_vdma_0>;
				dma-names = "axivdma0";
				//xlnx,rgb2yuv = <&v_rgb2ycrcb_0>;
				//xlnx,cresample = <&v_cresample_0>;
			};
		};
	};

 

 

使用petalinux编译完成后出错信息如下:

 

[    4.066602] xilinx-dpdma fd4c0000.dma: Xilinx DPDMA engine is probed
[    4.066881] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    4.067037] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    4.067190] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    4.067346] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    4.067501] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    4.067657] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    4.067813] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    4.067969] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    4.068191] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    4.068347] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    4.068501] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    4.068655] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    4.068836] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    4.068989] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    4.069153] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    4.069308] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    4.093874] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.095485] [drm:xilinx_drm_plane_create] *ERROR* failed to request dma channel "axi_vdma_0" for plane /xilinx_drm/planes/plane0 (err:-19)
[    4.095505] [drm:xilinx_drm_plane_create_primary] *ERROR* failed to allocate a primary plane
[    4.095518] [drm:xilinx_drm_crtc_create] *ERROR* failed to create a primary plane for crtc
[    4.097387] cacheinfo: Unable to detect cache hierarchy for CPU 0

 

 

可以看到vdma加载成功,但是drm初始化plane失败,返回错误信息为-19,经查Linux帮助,为(No such device)错误。是否是dma-names配置的不对,那么应该如何写?还有Linux中如何查询所有device的name?查询到后填入dma-names是否就可以?

 

对dma-names理解不是很清楚,请哪位大神来扫盲~

0 项奖励
1 个已接受解答

已接受的解答
Moderator
Moderator
56 次查看
注册日期: ‎08-01-2007

回复: DRM VDMA 启动出错

转到解答
2 条回复2
Moderator
Moderator
57 次查看
注册日期: ‎08-01-2007

回复: DRM VDMA 启动出错

转到解答
Adventurer
Adventurer
40 次查看
注册日期: ‎02-15-2019

回复: DRM VDMA 启动出错

转到解答
该问题已解决,是配置问题。谢谢
0 项奖励