The p2p
command is used to enable/disable
(PCIe Peer-to-Peer Support) feature and
check current configuration.
P2P configuration is persistent across warm reboot.
It has the following command line format:
xbutil p2p [-d card] --[enable | disable | validate]
The following table lists the available options.
Option | Description | Required |
---|---|---|
-d
<card>
|
Specifies the target card. <card> can be specified as either
the card_id or Bus:Device:Function (BDF). Defaults to card_id = 0 if
not specified. Note: Use the
xbutil
scan command to display both the card_id and BDF
for installed cards. |
N |
--enable
|
Enables p2p
Option A warm
reboot is required if the returned |
--enable, --disable, --validate mutually exclusive |
--disable
|
Enables p2p
Option This might require warm reboot to fully disable. |
--enable, --disable, --validate mutually exclusive |
--validate
|
Validates p2p feature.Option Run after a warm reboot if it is needed. |
--enable, --disable, --validate mutually exclusive |
xbutil query
to display the
current status of P2P. The following is a partial output of the xbutil query
command showing the current status under
the heading P2P
Enabled.PCIe DMA chan(bidir) MIG Calibrated P2P Enabled
GEN 3x16 2 true false
Value | Comment |
---|---|
true
|
P2P is enabled. |
false
|
P2P is disabled. |
no_iomem
|
P2P is enabled in device but system could not allocate I/O memory, warm reboot is needed. |
If P2P is not enabled when trying to validate, validation will be skipped and the following message will be displayed:
P2P BAR is not enabled. Skipping validation
If the card platform does not support P2P, the following message will be displayed:
ERROR: P2P is not supported on this platform
If no xclbin
is programmed, the following message will be
displayed:
'uuid' invalid, please re-program xclbin.