Skip to content

Commit

Permalink
Fix the axi_dma hang issue
Browse files Browse the repository at this point in the history
In the function add_dma_coherent_prop based on the number of
master interfaces will be looping and check the interface
port is S_AXI_ACP then we add the dma-coherent property.
But is some of the designs the master interfaces can be
NULL, so add the check to fix this case.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
  • Loading branch information
Venkatesh Yadav Abbarapu committed May 2, 2018
1 parent 4398b8d commit afc83a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions axi_dma/data/axi_dma.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ proc add_dma_coherent_prop {drv_handle intf} {
while {[string match -nocase $intrconnect "axi_interconnect"]} {
# loop over number of master interfaces
set master_intf [::hsi::get_intf_pins -of_objects [get_cells -hier $connectedip] -filter {TYPE==MASTER}]
if {[llength $master_intf] == 0} {
break
}
foreach interface ${master_intf} {
set intf_port [hsi::utils::get_connected_intf $connectedip $interface]
set intrconnect [hsi::utils::get_connected_stream_ip $connectedip $interface]
Expand Down

0 comments on commit afc83a1

Please sign in to comment.