[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-22 Thread Kai-Heng Feng
Interesting. Please attach dmesg.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-21 Thread Kamyar Kaviani
I tried putting that parameter in grub after quiet splash, but I still
get the exact same error.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-11 Thread Kai-Heng Feng
Add kernel parameter "pci-stub.ids=1102:0008".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-11 Thread Kamyar Kaviani
Hi Kai, I do not know how to answer that. What would be the procedure to
test that?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-11 Thread Kai-Heng Feng
s/psi-stub/pci-stub/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-08-11 Thread Kai-Heng Feng
Does the issue happen if psi-stub is used to claim the device before
passing it to VM?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-07-13 Thread Kamyar Kaviani
Tested with 5.8.0-050800-generic downloaded from kernel ppa. Got exactly
the same error as above, except this time the whole system froze and
became unusable, so I had to kill the power to the PC.

Additionally I got a whole bunch of new errors in dmesg like

[   31.072963] SQUASHFS error: Unable to read metadata cache entry [31b7fff]
[   31.072964] SQUASHFS error: Unable to read directory block [31b7fff:13ee]

which seem to be unrelated.


** Changed in: linux (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-07-13 Thread Kai-Heng Feng
Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc5/

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-07-09 Thread Kamyar Kaviani
apport information

** Tags added: apport-collected

** Description changed:

  After passing through the PCIe card EMU 1212m to a VM (kvm/qemu) and
  turning the VM off, I see this in dmesg:
  
  [ 4675.188761] snd_emu10k1 :05:04.0: non-passthrough IOMMU detected, 
widening DMA allocations
  [ 4675.188874] snd_emu10k1 :05:04.0: emu1010: Special config.
  [ 4675.189019] snd_emu10k1 :05:04.0: emu1010: EMU_HANA_ID = 0x3f
  [ 4680.350820] snd_emu10k1 :05:04.0: emu1010: Hana Firmware loaded
  [ 4680.350878] snd_emu10k1 :05:04.0: emu1010: Hana version: 1.6
  [ 4680.350948] snd_emu10k1 :05:04.0: emu1010: Card options = 0x1
  [ 4680.350977] snd_emu10k1 :05:04.0: emu1010: Card options = 0x1
  [ 4680.351583] snd_emu10k1 :05:04.0: emu1010: Card options3 = 0x1
  [ 4680.377334] snd_emu10k1 :05:04.0: Audigy2 value: Special config.
  [ 4680.377972] snd_emu10k1 :05:04.0: EMU outputs on
  [ 4680.377972] snd_emu10k1 :05:04.0: EMU2 inputs on
  [ 4680.392669] sysfs: cannot create duplicate filename 
'/devices/pci:00/:00:01.2/:02:00.0/:03:02.0/:04:00.0/:05:04.0/sound/card0/emu10k1-synth-0-1'
  [ 4680.392672] CPU: 10 PID: 5204 Comm: libvirtd Tainted: G   OE 
5.4.0-40-generic #44-Ubuntu
  [ 4680.392673] Hardware name: System manufacturer System Product Name/ROG 
STRIX X570-E GAMING, BIOS 1409 05/12/2020
  [ 4680.392674] Call Trace:
  [ 4680.392681]  dump_stack+0x6d/0x9a
  [ 4680.392684]  sysfs_warn_dup.cold+0x17/0x35
  [ 4680.392685]  sysfs_create_dir_ns+0xb8/0xd0
  [ 4680.392687]  kobject_add_internal+0xbd/0x2b0
  [ 4680.392688]  kobject_add+0x7e/0xb0
  [ 4680.392692]  device_add+0x132/0x6b0
  [ 4680.392696]  snd_seq_device_dev_register+0x1c/0x60 [snd_seq_device]
  [ 4680.392702]  __snd_device_register.part.0+0x1f/0x30 [snd]
  [ 4680.392706]  snd_device_register_all+0x33/0x50 [snd]
  [ 4680.392709]  snd_card_register+0x62/0x1b0 [snd]
  [ 4680.392712]  ? snd_hwdep_new+0xfe/0x146 [snd_hwdep]
  [ 4680.392715]  snd_emux_init_hwdep+0xa0/0xd0 [snd_emux_synth]
  [ 4680.392717]  snd_emux_register+0x11a/0x190 [snd_emux_synth]
  [ 4680.392719]  ? 0xc1065000
  [ 4680.392721]  ? sf_sample_new+0x20/0x20 [snd_emux_synth]
  [ 4680.392723]  snd_emu10k1_synth_probe+0x108/0x1a0 [snd_emu10k1_synth]
  [ 4680.392725]  really_probe+0x2b3/0x3e0
  [ 4680.392726]  driver_probe_device+0xbc/0x100
  [ 4680.392728]  __device_attach_driver+0x71/0xd0
  [ 4680.392729]  ? driver_allows_async_probing+0x50/0x50
  [ 4680.392731]  bus_for_each_drv+0x84/0xd0
  [ 4680.392732]  __device_attach+0xe1/0x160
  [ 4680.392734]  device_initial_probe+0x13/0x20
  [ 4680.392735]  bus_probe_device+0x8f/0xa0
  [ 4680.392737]  device_add+0x3c7/0x6b0
  [ 4680.392740]  ? __snd_device_register.part.0+0x1f/0x30 [snd]
  [ 4680.392742]  snd_seq_device_dev_register+0x1c/0x60 [snd_seq_device]
  [ 4680.392745]  __snd_device_register.part.0+0x1f/0x30 [snd]
  [ 4680.392748]  snd_device_register_all+0x33/0x50 [snd]
  [ 4680.392751]  snd_card_register+0x62/0x1b0 [snd]
  [ 4680.392753]  ? snd_seq_device_new+0xd0/0x126 [snd_seq_device]
  [ 4680.392758]  snd_card_emu10k1_probe+0x30f/0x400 [snd_emu10k1]
  [ 4680.392761]  local_pci_probe+0x48/0x80
  [ 4680.392763]  pci_device_probe+0x10f/0x1b0
  [ 4680.392765]  really_probe+0x159/0x3e0
  [ 4680.392766]  driver_probe_device+0xbc/0x100
  [ 4680.392767]  __device_attach_driver+0x71/0xd0
  [ 4680.392769]  ? driver_allows_async_probing+0x50/0x50
  [ 4680.392770]  bus_for_each_drv+0x84/0xd0
  [ 4680.392771]  __device_attach+0xe1/0x160
  [ 4680.392773]  device_attach+0x10/0x20
  [ 4680.392775]  bus_rescan_devices_helper+0x39/0x80
  [ 4680.392777]  drivers_probe_store+0x36/0x60
  [ 4680.392778]  bus_attr_store+0x27/0x30
  [ 4680.392780]  sysfs_kf_write+0x3e/0x50
  [ 4680.392782]  kernfs_fop_write+0xda/0x1b0
  [ 4680.392784]  __vfs_write+0x1b/0x40
  [ 4680.392785]  vfs_write+0xb9/0x1a0
  [ 4680.392786]  ksys_write+0x67/0xe0
  [ 4680.392788]  __x64_sys_write+0x1a/0x20
  [ 4680.392790]  do_syscall_64+0x57/0x190
  [ 4680.392793]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [ 4680.392794] RIP: 0033:0x7f52456222cf
  [ 4680.392795] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 fd ff ff 48 
8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 
f0 ff ff 77 2d 44 89 c7 48 89 44 24 08 e8 5c fd ff ff 48
  [ 4680.392796] RSP: 002b:7f52023615a0 EFLAGS: 0293 ORIG_RAX: 
0001
  [ 4680.392798] RAX: ffda RBX: 000c RCX: 
7f52456222cf
  [ 4680.392799] RDX: 000c RSI: 7f5230062f50 RDI: 
0019
  [ 4680.392800] RBP: 7f5230062f50 R08:  R09: 

  [ 4680.392800] R10:  R11: 0293 R12: 
0019
  [ 4680.392801] R13: 0019 R14:  R15: 
7f5245b3ef70
  [ 4680.392803] kobject_add_internal failed for emu10k1-synth-0-1 with 
-EEXIST, don't try to register things with the same name in the same directo

[Bug 1886234] Re: libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1 with -EEXIST, don't try to register things with the same name in the same directory.

2020-07-08 Thread Robie Basak
Thank you for taking the time to report this bug and helping to make
Ubuntu better.

Am I right in understanding that this is a host kernel oops? My
understanding of PCIe passthrough is that if you're passing through your
sound card to a VM then the host kernel's sound driver should never
crash, so this sounds like a kernel bug to me. My reasoning is that
either the host kernel should not permit passthrough if the sound driver
is using the card, or it should correctly reset the card before taking
it over again afterwards.

If this is wrong then presumably this is a qemu bug? For people who know
more about this area, feel free to explain and reassign. But to make
progress for now, I'm reassigning this bug to the kernel.

** Package changed: libvirt (Ubuntu) => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886234

Title:
  libvirtd Tainted: kobject_add_internal failed for emu10k1-synth-0-1
  with -EEXIST, don't try to register things with the same name in the
  same directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs