Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783)
From: Dominik Brodowski
Date: Fri Apr 06 2018 - 10:52:59 EST
On Fri, Apr 06, 2018 at 04:14:52PM +0200, Christoph Hellwig wrote:
> Hi Dominik,
>
> can you try current Linus' master with the following hack applied and
> see if that works?
>
> diff --git a/lib/swiotlb.c b/lib/swiotlb.c
> index 47aeb04c1997..32aacd0d56a8 100644
> --- a/lib/swiotlb.c
> +++ b/lib/swiotlb.c
> @@ -1087,6 +1087,6 @@ const struct dma_map_ops swiotlb_dma_ops = {
> .unmap_sg = swiotlb_unmap_sg_attrs,
> .map_page = swiotlb_map_page,
> .unmap_page = swiotlb_unmap_page,
> - .dma_supported = swiotlb_dma_supported,
> + .dma_supported = dma_direct_supported,
> };
> #endif /* CONFIG_DMA_DIRECT_OPS */
Yes, it solves the issue.
Thanks,
Dominik