HomeFreeBSD

QAT: Allocate digest_buffer using QAT_PHYS_CONTIG_ALLOC()

Description

QAT: Allocate digest_buffer using QAT_PHYS_CONTIG_ALLOC()

If the buffer 'digest_buffer' is allocated in the qat_checksum()
stack, it can't ensure that the address is physically contiguous,
and the DMA result of the buffer may be handled incorrectly.
Using QAT_PHYS_CONTIG_ALLOC() ensures a physically
contiguous allocation.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Chengfei, Zhu <chengfeix.zhu@intel.com>
Closes #8323
Closes #8521

Details

Provenance
cfzhu <chengfeix.zhu@intel.com>Authored on Mar 21 2019, 5:35 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 21 2019, 5:35 PM
Parents
rGec4f9b8f3039: Report holes when there are only metadata changes
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG45001b949c14: QAT: Allocate digest_buffer using QAT_PHYS_CONTIG_ALLOC() (authored by cfzhu <chengfeix.zhu@intel.com>).Mar 21 2019, 5:35 PM