diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-07 16:02:14 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-07 16:02:14 +0200 |
commit | 8f241478d649bfafb73f7fe0e4ae5e3d80b73bab (patch) | |
tree | 8ae12dcf000f955edc9f00cd1ec20eaf8575ffbe | |
parent | e202b682db9b5241c59de3d934d64205a3df091d (diff) | |
download | pcitool-8f241478d649bfafb73f7fe0e4ae5e3d80b73bab.tar.gz pcitool-8f241478d649bfafb73f7fe0e4ae5e3d80b73bab.tar.bz2 pcitool-8f241478d649bfafb73f7fe0e4ae5e3d80b73bab.tar.xz pcitool-8f241478d649bfafb73f7fe0e4ae5e3d80b73bab.zip |
In IPEDMA use negotiated payload instead of maximum supported by device
-rw-r--r-- | dma/ipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -206,7 +206,7 @@ int dma_ipe_start(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, pcilib_dm #else /* IPEDMA_TLP_SIZE */ link_info = pcilib_get_pcie_link_info(vctx->pcilib); if (link_info) { - tlp_size = 1<<link_info->max_payload; + tlp_size = 1<<link_info->payload; if (tlp_size > IPEDMA_MAX_TLP_SIZE) tlp_size = IPEDMA_MAX_TLP_SIZE; } else tlp_size = 128; |