]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: emu10k1: add optional debug printouts with DMA addresses
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Tue, 13 Feb 2018 23:06:18 +0000 (00:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Feb 2018 06:46:52 +0000 (07:46 +0100)
commitd3d414183083dd4554867eb1b9f997162c2493dd
tree1b17ad04ba3d9698ac99e24af0ca6d3b43dd5b8f
parent5ebf5ed9c9dbdc30e796576a66d0925945334130
ALSA: emu10k1: add optional debug printouts with DMA addresses

When we get a IOMMU page fault for a emu10k1 device it is very hard to
discover which of chip many DMA allocations triggered it (since on a IOMMU
system the DMA address space is often very different from the CPU one).
Let's add optional debug printouts providing this information.

These debug printouts are only enabled on an explicit request via the
kernel dynamic debug mechanism.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/memory.c