** Changed in: linux-oem-6.1 (Ubuntu Jammy)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-6.0 in Ubuntu.
https://bugs.launchpad.net/bugs/2011389

Title:
  vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
  some other drivers like wwan

Status in HWE Next:
  New
Status in linux package in Ubuntu:
  In Progress
Status in linux-oem-6.0 package in Ubuntu:
  Invalid
Status in linux-oem-6.1 package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Invalid
Status in linux-oem-6.0 source package in Jammy:
  Won't Fix
Status in linux-oem-6.1 source package in Jammy:
  Fix Committed
Status in linux source package in Lunar:
  In Progress
Status in linux-oem-6.0 source package in Lunar:
  Invalid
Status in linux-oem-6.1 source package in Lunar:
  Invalid

Bug description:
  [SRU Justification]

  [Impact]

  With wwan t7xx driver patched, vmd may fail the probe process because
  it does not lock properly.

  [Fix]

  https://lore.kernel.org/linux-
  pci/20230313173733.1815277-1-vicamo.y...@canonical.com/T/#u

  [Test Case]

  Verify on platforms with FM350 wwan module with prebuilt oem-6.1 or
  above kernels. No vmd probe error should be found in dmesg.

  [Where problems could occur]

  This is the way it should have been done.

  [Other Info]

  This is not reproducible with v6.0 or older kernels, so only Lunar and
  oem-6.1 are nominated for fix. OEM-6.0 patch goes to Gerrit instead.

  ========== original bug report ==========

  vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
  some other drivers like wwan.

  This happens after bug 2002089 re-added pci rescan feature back to
  wwan t7xx driver to support firmware updates via devlink. t7xx may
  call `pci_rescan_bus()` with proper locks, but vmd doesn't.

  sysfs: cannot create duplicate filename '/devices/.../resource0'
  Call Trace:
   <TASK>
   sysfs_warn_dup.cold+0x17/0x34
   sysfs_add_bin_file_mode_ns+0xc0/0xf0
   sysfs_create_bin_file+0x6d/0xb0
   pci_create_attr+0x117/0x260
   pci_create_resource_files+0x6b/0x150
   pci_create_sysfs_dev_files+0x18/0x30
   pci_bus_add_device+0x30/0x80
   pci_bus_add_devices+0x31/0x80
   pci_bus_add_devices+0x5b/0x80
   vmd_enable_domain.constprop.0+0x6b7/0x880 [vmd]
   vmd_probe+0x16d/0x193 [vmd]

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/2011389/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to