* x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783)
@ 2018-04-05 20:56 Dominik Brodowski
2018-04-05 21:14 ` Christoph Hellwig
[not found] ` <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
0 siblings, 2 replies; 7+ messages in thread
From: Dominik Brodowski @ 2018-04-05 20:56 UTC (permalink / raw)
To: hch
Cc: thomas.lendacky, tglx, dwmw2, joro, jdmason, konrad.wilk,
torvalds, mulix, peterz, iommu, mingo, linux-kernel, lgirdwood,
broonie, perex, tiwai
Christoph,
unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the
dmesg diff between fec777c385b6 and 6e4bf5867783:
-sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels
-haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2
-haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2)
-haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19
-broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> System Pin mapping ok
-broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload0 Pin mapping ok
-broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload1 Pin mapping ok
-broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Loopback Pin mapping ok
-broadwell-audio broadwell-audio: rt286-aif1 <-> snd-soc-dummy-dai mapping ok
-input: broadwell-rt286 Headset as /devices/pci0000:00/INT3438:00/broadwell-audio/sound/card1/input15
+broadwell-audio broadwell-audio: ASoC: CPU DAI System Pin not registered
So it seems that sst-acpi is unhappy with this patch. Any ideas?
Thanks,
Dominik
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) 2018-04-05 20:56 x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) Dominik Brodowski @ 2018-04-05 21:14 ` Christoph Hellwig [not found] ` <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org> 1 sibling, 0 replies; 7+ messages in thread From: Christoph Hellwig @ 2018-04-05 21:14 UTC (permalink / raw) To: Dominik Brodowski Cc: hch, thomas.lendacky, tglx, dwmw2, joro, jdmason, konrad.wilk, torvalds, mulix, peterz, iommu, mingo, linux-kernel, lgirdwood, broonie, perex, tiwai On Thu, Apr 05, 2018 at 10:56:57PM +0200, Dominik Brodowski wrote: > Christoph, > > unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the > dmesg diff between fec777c385b6 and 6e4bf5867783: Very strange. I'll need to spend some time untangling all that sound-soc mess where it might be stuck. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>]
* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) [not found] ` <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org> @ 2018-04-06 1:14 ` Mark Brown [not found] ` <20180406011418.GE12349-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 2018-04-06 14:02 ` Pierre-Louis Bossart 2018-04-06 14:14 ` Christoph Hellwig 1 sibling, 2 replies; 7+ messages in thread From: Mark Brown @ 2018-04-06 1:14 UTC (permalink / raw) To: Dominik Brodowski Cc: mingo-DgEjT+Ai2ygdnm+yROfE0A, thomas.lendacky-5C7GfCeVMHo, lgirdwood-Re5JQEeQqe8AvxtiuMwx3w, konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA, peterz-wEGCiKHe2LqWVfeAwA7xHQ, torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tiwai-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA, mulix-BzGcCpaT2IbYtjvyW6yDsg, Vinod Koul, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Pierre-Louis Bossart, tglx-hfZtesqFncYOwBW4kG4KsQ, perex-/Fr2/VpizcU, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ, hch-jcswGhMUV9g [-- Attachment #1.1: Type: text/plain, Size: 1447 bytes --] On Thu, Apr 05, 2018 at 10:56:57PM +0200, Dominik Brodowski wrote: > Christoph, > > unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the > dmesg diff between fec777c385b6 and 6e4bf5867783: Adding Vinod and Pierre from Intel in case they have any ideas here. Which model of XPS13 is this (2015?)? > -sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels > -haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2 > -haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2) > -haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19 > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> System Pin mapping ok > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload0 Pin mapping ok > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload1 Pin mapping ok > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Loopback Pin mapping ok > -broadwell-audio broadwell-audio: rt286-aif1 <-> snd-soc-dummy-dai mapping ok > -input: broadwell-rt286 Headset as /devices/pci0000:00/INT3438:00/broadwell-audio/sound/card1/input15 > +broadwell-audio broadwell-audio: ASoC: CPU DAI System Pin not registered > So it seems that sst-acpi is unhappy with this patch. Any ideas? > Thanks, > Dominik [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20180406011418.GE12349-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>]
* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) [not found] ` <20180406011418.GE12349-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> @ 2018-04-06 4:35 ` Dominik Brodowski 0 siblings, 0 replies; 7+ messages in thread From: Dominik Brodowski @ 2018-04-06 4:35 UTC (permalink / raw) To: Mark Brown Cc: mingo-DgEjT+Ai2ygdnm+yROfE0A, thomas.lendacky-5C7GfCeVMHo, lgirdwood-Re5JQEeQqe8AvxtiuMwx3w, konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA, peterz-wEGCiKHe2LqWVfeAwA7xHQ, torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tiwai-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA, mulix-BzGcCpaT2IbYtjvyW6yDsg, Vinod Koul, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Pierre-Louis Bossart, tglx-hfZtesqFncYOwBW4kG4KsQ, perex-/Fr2/VpizcU, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ, hch-jcswGhMUV9g On Fri, Apr 06, 2018 at 02:14:18AM +0100, Mark Brown wrote: > On Thu, Apr 05, 2018 at 10:56:57PM +0200, Dominik Brodowski wrote: > > Christoph, > > > > unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the > > dmesg diff between fec777c385b6 and 6e4bf5867783: > > Adding Vinod and Pierre from Intel in case they have any ideas here. > Which model of XPS13 is this (2015?)? Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016, with # CONFIG_GPIOLIB is not set, just CONFIG_PINCTRL=y but no # CONFIG_PINCTRL_BAYTRAIL is not set # CONFIG_PINCTRL_CHERRYVIEW is not set # CONFIG_PINCTRL_BROXTON is not set # CONFIG_PINCTRL_CANNONLAKE is not set # CONFIG_PINCTRL_CEDARFORK is not set # CONFIG_PINCTRL_DENVERTON is not set # CONFIG_PINCTRL_GEMINILAKE is not set # CONFIG_PINCTRL_LEWISBURG is not set # CONFIG_PINCTRL_SUNRISEPOINT is not set (yes, this works, see commit d1fa74520dcd ), and, CONFIG_SND_HDA_I915=y CONFIG_SND_SOC=y CONFIG_SND_SOC_AC97_BUS=y CONFIG_SND_SOC_COMPRESS=y CONFIG_SND_SOC_ACPI=y CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y CONFIG_SND_SST_IPC=y CONFIG_SND_SST_IPC_ACPI=y CONFIG_SND_SOC_INTEL_SST_ACPI=y CONFIG_SND_SOC_INTEL_SST=y CONFIG_SND_SOC_INTEL_SST_FIRMWARE=y CONFIG_SND_SOC_INTEL_HASWELL=y CONFIG_SND_SST_ATOM_HIFI2_PLATFORM=y CONFIG_SND_SOC_ACPI_INTEL_MATCH=y CONFIG_SND_SOC_INTEL_MACH=y CONFIG_SND_SOC_INTEL_BROADWELL_MACH=y CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH=y CONFIG_SND_SOC_INTEL_BYTCR_RT5651_MACH=y CONFIG_SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH=y CONFIG_SND_SOC_I2C_AND_SPI=y CONFIG_SND_SOC_AC97_CODEC=y Thanks for looking into this! Dominik > > -sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels > > -haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2 > > -haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2) > > -haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19 > > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> System Pin mapping ok > > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload0 Pin mapping ok > > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload1 Pin mapping ok > > -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Loopback Pin mapping ok > > -broadwell-audio broadwell-audio: rt286-aif1 <-> snd-soc-dummy-dai mapping ok > > -input: broadwell-rt286 Headset as /devices/pci0000:00/INT3438:00/broadwell-audio/sound/card1/input15 > > +broadwell-audio broadwell-audio: ASoC: CPU DAI System Pin not registered > > > So it seems that sst-acpi is unhappy with this patch. Any ideas? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) 2018-04-06 1:14 ` Mark Brown [not found] ` <20180406011418.GE12349-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> @ 2018-04-06 14:02 ` Pierre-Louis Bossart 1 sibling, 0 replies; 7+ messages in thread From: Pierre-Louis Bossart @ 2018-04-06 14:02 UTC (permalink / raw) To: Mark Brown, Dominik Brodowski Cc: hch, thomas.lendacky, tglx, dwmw2, joro, jdmason, konrad.wilk, torvalds, mulix, peterz, iommu, mingo, linux-kernel, lgirdwood, perex, tiwai, Vinod Koul On 04/05/2018 08:14 PM, Mark Brown wrote: > On Thu, Apr 05, 2018 at 10:56:57PM +0200, Dominik Brodowski wrote: >> Christoph, >> >> unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the >> dmesg diff between fec777c385b6 and 6e4bf5867783: > Adding Vinod and Pierre from Intel in case they have any ideas here. > Which model of XPS13 is this (2015?)? No clear idea, but this patch is odd. It claims to replace a dma_ops structure by an equivalent one but the callbacks for alloc/free are different. -void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size, - dma_addr_t *dma_handle, gfp_t flags, - unsigned long attrs) -{ - void *vaddr; - - /* - * Don't print a warning when the first allocation attempt fails. - * swiotlb_alloc_coherent() will print a warning when the DMA - * memory allocation ultimately failed. - */ - flags |= __GFP_NOWARN; - - vaddr = dma_direct_alloc(hwdev, size, dma_handle, flags, attrs); - if (vaddr) - return vaddr; - - return swiotlb_alloc_coherent(hwdev, size, dma_handle, flags); -} - -void x86_swiotlb_free_coherent(struct device *dev, size_t size, - void *vaddr, dma_addr_t dma_addr, - unsigned long attrs) -{ - if (is_swiotlb_buffer(dma_to_phys(dev, dma_addr))) - swiotlb_free_coherent(dev, size, vaddr, dma_addr); - else - dma_direct_free(dev, size, vaddr, dma_addr, attrs); -} > >> -sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels >> -haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2 >> -haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2) >> -haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19 >> -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> System Pin mapping ok >> -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload0 Pin mapping ok >> -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload1 Pin mapping ok >> -broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Loopback Pin mapping ok >> -broadwell-audio broadwell-audio: rt286-aif1 <-> snd-soc-dummy-dai mapping ok >> -input: broadwell-rt286 Headset as /devices/pci0000:00/INT3438:00/broadwell-audio/sound/card1/input15 >> +broadwell-audio broadwell-audio: ASoC: CPU DAI System Pin not registered >> So it seems that sst-acpi is unhappy with this patch. Any ideas? >> Thanks, >> Dominik ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) [not found] ` <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org> 2018-04-06 1:14 ` Mark Brown @ 2018-04-06 14:14 ` Christoph Hellwig [not found] ` <20180406141452.GA29724-jcswGhMUV9g@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Christoph Hellwig @ 2018-04-06 14:14 UTC (permalink / raw) To: Dominik Brodowski Cc: mingo-DgEjT+Ai2ygdnm+yROfE0A, thomas.lendacky-5C7GfCeVMHo, lgirdwood-Re5JQEeQqe8AvxtiuMwx3w, konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA, peterz-wEGCiKHe2LqWVfeAwA7xHQ, torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tiwai-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA, mulix-BzGcCpaT2IbYtjvyW6yDsg, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, broonie-DgEjT+Ai2ygdnm+yROfE0A, tglx-hfZtesqFncYOwBW4kG4KsQ, perex-/Fr2/VpizcU, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ, hch-jcswGhMUV9g 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 */ ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <20180406141452.GA29724-jcswGhMUV9g@public.gmane.org>]
* Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) [not found] ` <20180406141452.GA29724-jcswGhMUV9g@public.gmane.org> @ 2018-04-06 14:52 ` Dominik Brodowski 0 siblings, 0 replies; 7+ messages in thread From: Dominik Brodowski @ 2018-04-06 14:52 UTC (permalink / raw) To: Christoph Hellwig Cc: thomas.lendacky-5C7GfCeVMHo, lgirdwood-Re5JQEeQqe8AvxtiuMwx3w, konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA, peterz-wEGCiKHe2LqWVfeAwA7xHQ, torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tiwai-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA, mulix-BzGcCpaT2IbYtjvyW6yDsg, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, broonie-DgEjT+Ai2ygdnm+yROfE0A, tglx-hfZtesqFncYOwBW4kG4KsQ, perex-/Fr2/VpizcU, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ, mingo-DgEjT+Ai2ygdnm+yROfE0A 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-04-06 14:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 20:56 x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783) Dominik Brodowski
2018-04-05 21:14 ` Christoph Hellwig
[not found] ` <20180405205657.GA1788-SGhQLRGLuNwb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
2018-04-06 1:14 ` Mark Brown
[not found] ` <20180406011418.GE12349-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-04-06 4:35 ` Dominik Brodowski
2018-04-06 14:02 ` Pierre-Louis Bossart
2018-04-06 14:14 ` Christoph Hellwig
[not found] ` <20180406141452.GA29724-jcswGhMUV9g@public.gmane.org>
2018-04-06 14:52 ` Dominik Brodowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).