]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "iommu/amd: Don't allocate with __GFP_ZERO in alloc_coherent"
authorJoerg Roedel <jroedel@suse.de>
Mon, 1 Jun 2015 15:30:57 +0000 (17:30 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 2 Jun 2015 06:46:32 +0000 (08:46 +0200)
commitbf77fb84801a2077b61208c838e5942fd88de5e4
treef2b9357156dd8332baadb9f10db5e455af7787c7
parentae35b9aa4a3f7752f4e92e71f8082b00bdc73996
Revert "iommu/amd: Don't allocate with __GFP_ZERO in alloc_coherent"

This reverts commit 9aa53aba91169a578e89532ef039064591458058.

The DMA-API does not strictly require that the memory
returned by dma_alloc_coherent is zeroed out. For that
another function (dma_zalloc_coherent) should be used. But
all other x86 DMA-API implementation I checked zero out the
memory, so that some drivers rely on it and break when it is
not.

It seems the (driver-)world is not yet ready for this
change, so revert it.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c