You can add the DMA soft IP to the IP integrator canvas and enable block automation for the CPM PCIe controller, as shown in the following figure:
Figure 1. DMA IP Configuration

In this scenario, block automation uses PCIe Controller 0 of CPM4/CPM5 from the two available controllers in CPM. When you run block automation, a new Versal CIPS IP is created and the CPM sub-core inside CIPS is configured to enable PCIe Controller 0 with the chosen Link Width and Link Speed, along with configuring other PCIe attributes from the QDMA/XDMA Configuration. After configuring CPM, all necessary interface connections are made with CPM interfaces, as shown in the following figure:
Figure 2. IP Interface Connections

Important: QDMA/XDMA block automation only
supports the flow with new BD cell creation and cannot re-use existing BD cells present
in the block design. For CPM Controller based flow, QDMA/XDMA block automation only
supports for using controller 0 and there is no option to select controller 0 or
1.