Bugzilla – Bug 1093027
Leap 15.0 lost Analog output for SB live 5.1 sound card EMU10K1
Last modified: 2022-03-04 20:40:29 UTC
Created attachment 769977 [details]
output list in Tumbleweed 20180502 without the bug
This sound card works fine in Leap 42.3 and Tumbleweed. But there is not any Analog output option in output list for SB live 5.1 (EMU10K1).
Created attachment 769978 [details]
output list in Leap 15 with the bug
(In reply to Hillwood Yang from comment #0)
> Created attachment 769977 [details]
> output list in Leap 15.0
> This sound card works fine in Leap 42.3 and Tumbleweed. But there is not any
> Analog output option in output list for SB live 5.1 (EMU10K1).
I see "Analog Output" in this screenshot. The screenshot in comment 1 misses it, though. Did you attach the pictures wrongly?
There should be no big difference in the kernel, so at most it's likely a PulseAudio problem. Try to upgrade pulseaudio related packages from TW or OBS multimedia:libs project.
(In reply to Takashi Iwai from comment #2)
> (In reply to Hillwood Yang from comment #0)
> > Created attachment 769977 [details]
> > output list in Leap 15.0
> > This sound card works fine in Leap 42.3 and Tumbleweed. But there is not any
> > Analog output option in output list for SB live 5.1 (EMU10K1).
> I see "Analog Output" in this screenshot. The screenshot in comment 1
> misses it, though. Did you attach the pictures wrongly?
Sorry, it is my mistake. I fixed their descriptions just now.
> There should be no big difference in the kernel, so at most it's likely a
> PulseAudio problem. Try to upgrade pulseaudio related packages from TW or
> OBS multimedia:libs project.
The pulseaudio's version in multimedia:libs is same as it in Leap 15.
Hrm, OK, then please try to install TW kernel from OBS Kernel:stable repo, and test with it. If this makes the difference, I should be able to fix it easily.
Created attachment 770094 [details]
output list in Leap 15 kernel 4.16.8 without the bug
Yes, kernel 4.16.8 can fix this bug.
Could you take alsa-info.sh outputs on both 4.16 and 4.12 kernels, and attach to bugzilla?
Created attachment 770114 [details]
alsa-info output with kernel 4.12.14 in Leap 15
Created attachment 770115 [details]
alsa-info output with kernel 4.16.8
Ah, I see that emu10k1 driver failed to allocate pages.
We've got fixes for IOMMU issues recently, and possibly that's it.
I'll try to build a test kernel with the backported fixes.
A test kernel is being built in OBS home:tiwai:bnc1093027 repo.
It'll take some time (an hour or so) until the build finishes. Once after that, please test the kernel.
If it still doesn't work, please upload alsa-info.sh output from the kernel again.
Created attachment 770278 [details]
alsa-info output with kernel 4.12.14.g7873b61 in Leap 15
This kernel still can not fix this bug.
Hm, then the patches are irrelevant with the allocation issues.
Could you give the whole kernel messages after the boot?
Basically the issue isn't new, and it's interesting that it worked before.
(Do I understand correctly that you didn't have the problem with Leap 42.3 kernel, right?)
There were a big rewrite of swiotlb in the recent kernels, and this might make things working again...
Created attachment 770292 [details]
Thanks. This is an AMD IOMMU, and I thought this should have been a long-standing issue with it. Didn't it happen in the past? Interesting.
In anyway, I'll try to hack and add a temporary workaround.
A new kernel is being built in OBS home:tiwai:bnc1093027-2 repo. Please try it later.
(In reply to Takashi Iwai from comment #14)
> Thanks. This is an AMD IOMMU, and I thought this should have been a
> long-standing issue with it. Didn't it happen in the past? Interesting.
This bug is not in Leap 42.3 and before.
Created attachment 770441 [details]
Sadly, this building still can not fix this bug....
Created attachment 770443 [details]
alsa-info output with kernel 4.12.14.g7c82cb4 in Leap 15.0
Thanks, so it's not the failure at the allocation time but it's a bad page fault happening in iommu, as the AMD-Vi error messages indicate.
Could you try to boot with iommu=soft option and see whether it suppresses the issue? It should be effective to genuine Leap kernels, too.
(In reply to Takashi Iwai from comment #18)
> Thanks, so it's not the failure at the allocation time but it's a bad page
> fault happening in iommu, as the AMD-Vi error messages indicate.
> Could you try to boot with iommu=soft option and see whether it suppresses
> the issue? It should be effective to genuine Leap kernels, too.
It's great! Fixed by this option!
Created attachment 770455 [details]
Good to hear. So this sounds more like an issue with AMD IOMMU stuff.
The drawback with iommu=soft is, of course, a performance drop. It essentially disables the hardware IOMMU.
What system is it, BTW?
Created attachment 770457 [details]
(In reply to Takashi Iwai from comment #21)
> Good to hear. So this sounds more like an issue with AMD IOMMU stuff.
> The drawback with iommu=soft is, of course, a performance drop. It
> essentially disables the hardware IOMMU.
> What system is it, BTW?
Err, I meant the hardware side :) Which AMD chip it is?
(In reply to Takashi Iwai from comment #24)
> Err, I meant the hardware side :) Which AMD chip it is?
ASUS PRIME X370-A (AMD X370).
Did you update BIOS to the recent version?
I'm asking this because there were some issues on some Ryzen boards that showed similar IOMMU page fault errors, and got fixed by BIOS update. So just to be sure...
And one more favor: could you try kernel-vanilla-4.12.* package from Leap 15.0, and check whether you get the same issue? It's to confirm whether the issue is brought by our own patches or not. Thanks.
Updating BIOS is not helpful. And kernel-vanilla also have this issue.
OK, thanks for confirmation. So the conclusion is that it's a generic problem of AMD IOMMU stuff on 4.12 kernel, which has been eventually fixed in the upstream.
I'm afraid that we'd need to live with the workaround for Leap 15.0.
Feel free to reopen if you see any regressions by that. Thanks.
BTW, although the bug itself could be worked around with the option, I merged a few emu10k1 fixes from upstream, as relevant with iommu, too.
This is an autogenerated message for OBS integration:
This bug (1093027) was mentioned in
https://build.opensuse.org/request/show/623532 15.0 / kernel-source
SUSE-SU-2018:2092-1: An update that solves 22 vulnerabilities and has 246 fixes is now available.
Category: security (important)
CVE References: CVE-2017-5715,CVE-2017-5753,CVE-2018-1000200,CVE-2018-1000204,CVE-2018-10087,CVE-2018-10124,CVE-2018-1092,CVE-2018-1093,CVE-2018-1094,CVE-2018-1118,CVE-2018-1120,CVE-2018-1130,CVE-2018-12233,CVE-2018-13053,CVE-2018-13405,CVE-2018-13406,CVE-2018-3639,CVE-2018-5803,CVE-2018-5848,CVE-2018-7492,CVE-2018-8781,CVE-2018-9385
SUSE Linux Enterprise Workstation Extension 15 (src): kernel-default-4.12.14-25.3.1
SUSE Linux Enterprise Module for Live Patching 15 (src): kernel-default-4.12.14-25.3.1, kernel-livepatch-SLE15_Update_1-1-1.3.1
SUSE Linux Enterprise Module for Legacy Software 15 (src): kernel-default-4.12.14-25.3.1
SUSE Linux Enterprise Module for Development Tools 15 (src): kernel-docs-4.12.14-25.3.1, kernel-obs-build-4.12.14-25.3.1, kernel-source-4.12.14-25.3.1, kernel-syms-4.12.14-25.3.1, kernel-vanilla-4.12.14-25.3.1
SUSE Linux Enterprise Module for Basesystem 15 (src): kernel-default-4.12.14-25.3.1, kernel-source-4.12.14-25.3.1, kernel-zfcpdump-4.12.14-25.3.1
SUSE Linux Enterprise High Availability 15 (src): kernel-default-4.12.14-25.3.1
openSUSE-SU-2018:2119-1: An update that solves 23 vulnerabilities and has 283 fixes is now available.
Category: security (important)
CVE References: CVE-2017-5715,CVE-2017-5753,CVE-2018-1000200,CVE-2018-1000204,CVE-2018-10087,CVE-2018-10124,CVE-2018-10323,CVE-2018-1092,CVE-2018-1093,CVE-2018-1094,CVE-2018-1108,CVE-2018-1118,CVE-2018-1120,CVE-2018-1130,CVE-2018-12233,CVE-2018-13053,CVE-2018-13405,CVE-2018-13406,CVE-2018-5803,CVE-2018-5848,CVE-2018-7492,CVE-2018-8781,CVE-2018-9385
openSUSE Leap 15.0 (src): kernel-debug-4.12.14-lp184.108.40.206, kernel-default-4.12.14-lp220.127.116.11, kernel-docs-4.12.14-lp18.104.22.168, kernel-kvmsmall-4.12.14-lp22.214.171.124, kernel-obs-build-4.12.14-lp126.96.36.199, kernel-obs-qa-4.12.14-lp188.8.131.52, kernel-source-4.12.14-lp184.108.40.206, kernel-syms-4.12.14-lp220.127.116.11, kernel-vanilla-4.12.14-lp18.104.22.168