瀏覽代碼

In IPEDMA use negotiated payload instead of maximum supported by device

Suren A. Chilingaryan 9 年之前
父節點
當前提交
8f241478d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dma/ipe.c

+ 1 - 1
dma/ipe.c

@@ -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;