* pci_p2pdma_unmap_sg_attrs(). * * Returns the number of SG entries mapped or 0 on error. */ int pci_p2pdma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) ...
The dma_map_sg() function can fail, so check for the return value.
@@ -245,15 +245,15 @@ dma_map_sg(dma_controller_t *dma, dma_sg_t *sg, struct iovec *iov, return ERROR_INT(EFAULT); }if (sg->writeable) { if (sg[i].writeable) { if (dma->dirty_pgsize > 0) { _dma_mark_dirty(dma, region, sg); ...
lpfc 驱动程序报告一个 "Too many sg segments" 错误消息,I/O 被中断 Raw Oct 15 07:27:28 server kernel: lpfc_scsi_prep_dma_buf_s3: Too many sg segments from dma_map_sg. Config 64, seg_cnt 128 Environment Red Hat Enterprise Linux 8 Red Hat Enterprise Linux 7 Red Hat Enterprise Linux ...
The VideoPortMapDmaMemory function is obsolete in Windows 2000 and later.VideoPortMapDmaMemory maps a range of memory for use in DMA transfers.
lpfc 驱动程序报告一个 "Too many sg segments" 错误消息,I/O 被中断 Raw Oct 15 07:27:28 server kernel: lpfc_scsi_prep_dma_buf_s3: Too many sg segments from dma_map_sg. Config 64, seg_cnt 128 Environment Red Hat Enterprise Linux 8 ...