• Federico Vaga's avatar
    drv: split DMA on mapping failure · 330caa51
    Federico Vaga authored
    By default the SW-IOMMU reserves 64MiB, but despite this it fails in
    allocating buffere bigger than 0.3MiB. We do not have control over the
    kernel code, and it is not clear how to debug it (e.g. see the current
    status of those 64MiB). For this reasons the most practical solution
    is to break the DMA transfer in smaller chunks until it works.
    
    We set the minimum chunk to PAGE_SIZE, because if it fails with this,
    really there is nothing we can do.
    Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
    330caa51
Name
Last commit
Last update
LICENSES Loading commit data...
distribution Loading commit data...
doc Loading commit data...
kernel Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
Makefile Loading commit data...