提问人:Creator 提问时间:11/9/2023 最后编辑:Creator 更新时间:11/17/2023 访问量:121
system-user.dtsi 文件中定义了两个中断,但为什么 /proc/interrupts 中只有一个中断?
Two interrupts are defined in system-user.dtsi file but why only one interrupt in /proc/interrupts?
问:
VIVADO 中有一个用于 DMA 传输的设计。我想使用 uio 设备,并且我有一个目录以及目录中的信息。在我的pl.dtsi中,我有两个中断,我已将它们添加到system-user.dtsi文件中:/dev/uio0
/sys/class/uio/uio0/maps/map0
/include/ "system-conf.dtsi"
/ {
chosen {
bootargs = "earlycon clk_ignore_unused uio_pdrv_genirq.of_id=generic-uio rootwait quiet loglevel=0";
stdout-path = "serial0:115200n8";
};
};
&axi_dma_0 {
clock-names = "s_axi_lite_aclk", "m_axi_sg_aclk", "m_axi_mm2s_aclk", "m_axi_s2mm_aclk";
clocks = <&clkc 15>, <&clkc 15>, <&clkc 15>, <&clkc 15>;
interrupt-names = "mm2s_introut", "s2mm_introut";
compatible = "generic-uio";
reg = <0x40400000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <0 29 4 0 30 4>;
dma-channel@40400000 {
compatible = "xlnx,axi-dma-mm2s-channel";
dma-channels = <0x1>;
interrupts = <0 29 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
};
dma-channel@40400030 {
compatible = "xlnx,axi-dma-s2mm-channel";
dma-channels = <0x1>;
interrupts = <0 30 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
};
};
但是,在启动后(我使用 petalinux 来构建嘘声图像和其他文件),板子中我看到一个条目/proc/interrupts
32: 0 0 GIC-0 61 Level dma
我假设 61 是 mm2s,因为它对应于 .我不应该在 /proc/interupts 中看到另一个 30 的条目吗?61 - 32 = 29
答: 暂无答案
评论
CONFIG_DMADEVICES_DEBUG
debug
dmesg | grep -C3 dma