Public bug reported:

[Impact]
We'll see this call trace while plugged tbt device

Sep 24 13:24:22 ubuntu-202504-36599 kernel: sysfs: cannot create duplicate 
filename '/devices/platform/USBC000:00/typec/port0/port0.0/partner'
Sep 24 13:24:22 ubuntu-202504-36599 kernel: CPU: 1 UID: 0 PID: 132 Comm: 
kworker/u64:1 Tainted: G           O       6.14.0-1012-oem #12-Ubuntu
Sep 24 13:24:22 ubuntu-202504-36599 kernel: Tainted: [O]=OOT_MODULE
Sep 24 13:24:22 ubuntu-202504-36599 kernel: Hardware name: Dell Inc. /, BIOS 
x.x.x xx/xx/2025
Sep 24 13:24:22 ubuntu-202504-36599 kernel: Workqueue: USBC000:00-con1 
ucsi_poll_worker [typec_ucsi]
Sep 24 13:24:22 ubuntu-202504-36599 kernel: Call Trace:
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  <TASK>
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  dump_stack_lvl+0x76/0xa0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  dump_stack+0x10/0x20
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  sysfs_warn_dup+0x8a/0xb0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  sysfs_do_create_link_sd+0xf1/0x100
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  sysfs_create_link+0x21/0x50
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  typec_probe+0x7e/0x100 [typec]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? driver_sysfs_add+0x66/0xd0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  really_probe+0xee/0x3c0 
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __driver_probe_device+0x8c/0x180
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  driver_probe_device+0x24/0xd0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __device_attach_driver+0xcd/0x170
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? 
_pfx__device_attach_driver+0x10/0x10
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  bus_for_each_drv+0x94/0xf0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __device_attach+0xb6/0x1d0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_initial_probe+0x13/0x20
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  bus_probe_device+0x9f/0xb0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_add+0x513/0x710
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_register+0x1a/0x30
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  typec_register_altmode+0x253/0x3a0 
[typec]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
typec_partner_register_altmode+0xe/0x20 [typec]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
ucsi_register_altmode.constprop.0+0x30e/0x390 [typec_ucsi]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ucsi_register_altmodes+0x162/0x250 
[typec_ucsi]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ucsi_check_altmodes+0x19/0xb0 
[typec_ucsi]
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ucsi_poll_worker+0x3d/0xf0 
[typec_ucsi] 
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  process_one_work+0x178/0x3d0
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  worker_thread+0x2de/0x410
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_worker_thread+0x10/0x10
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  kthread+0xfb/0x230
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_kthread+0x10/0x10
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ret_from_fork+0x44/0x70
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_kthread+0x10/0x10
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ret_from_fork_asm+0x1a/0x30
Sep 24 13:24:22 ubuntu-202504-36599 kernel:  </TASK>
Sep 24 13:24:22 ubuntu-202504-36599 kernel: typec-thunderbolt port0-partner.1: 
failed to create symlinks
Sep 24 13:24:22 ubuntu-202504-36599 kernel: typec-thunderbolt port0-partner.1: 
probe with driver typec-thunderbolt failed with error -17

[Fix]
It's a firmware bug, we try to detect the issue inside the ucsi driver and then 
show a warning message to avoid the scaring call trace.


[Test]
On many Dell machines, you can see the above error and call trace while plugg'd 
tbt device, with the fix you should only see something like this
   con1: Firmware bug: duplicate altmode SVID 0x8087 in same response at offset 
2, ignoring. Please update your system firmware.

[Where problems could occur]
It doesn't change any functionalities, just checks the duplicate partner, port, 
or altmodes.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: linux-oem-6.14 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: jira-somerville-3206 oem-priority somerville

** Tags added: jira-somerville-3206 oem-priority somerville

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

Title:
  sysfs: cannot create duplicate filename call trace because ucsi try to
  registere duplicate partner_altmode

Status in HWE Next:
  New
Status in linux-oem-6.14 package in Ubuntu:
  New

Bug description:
  [Impact]
  We'll see this call trace while plugged tbt device

  Sep 24 13:24:22 ubuntu-202504-36599 kernel: sysfs: cannot create duplicate 
filename '/devices/platform/USBC000:00/typec/port0/port0.0/partner'
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: CPU: 1 UID: 0 PID: 132 Comm: 
kworker/u64:1 Tainted: G           O       6.14.0-1012-oem #12-Ubuntu
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: Tainted: [O]=OOT_MODULE
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: Hardware name: Dell Inc. /, BIOS 
x.x.x xx/xx/2025
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: Workqueue: USBC000:00-con1 
ucsi_poll_worker [typec_ucsi]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: Call Trace:
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  <TASK>
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  dump_stack_lvl+0x76/0xa0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  dump_stack+0x10/0x20
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  sysfs_warn_dup+0x8a/0xb0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
sysfs_do_create_link_sd+0xf1/0x100
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  sysfs_create_link+0x21/0x50
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  typec_probe+0x7e/0x100 [typec]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? driver_sysfs_add+0x66/0xd0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  really_probe+0xee/0x3c0 
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __driver_probe_device+0x8c/0x180
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  driver_probe_device+0x24/0xd0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __device_attach_driver+0xcd/0x170
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? 
_pfx__device_attach_driver+0x10/0x10
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  bus_for_each_drv+0x94/0xf0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  __device_attach+0xb6/0x1d0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_initial_probe+0x13/0x20
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  bus_probe_device+0x9f/0xb0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_add+0x513/0x710
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  device_register+0x1a/0x30
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
typec_register_altmode+0x253/0x3a0 [typec]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
typec_partner_register_altmode+0xe/0x20 [typec]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
ucsi_register_altmode.constprop.0+0x30e/0x390 [typec_ucsi]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  
ucsi_register_altmodes+0x162/0x250 [typec_ucsi]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ucsi_check_altmodes+0x19/0xb0 
[typec_ucsi]
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ucsi_poll_worker+0x3d/0xf0 
[typec_ucsi] 
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  process_one_work+0x178/0x3d0
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  worker_thread+0x2de/0x410
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_worker_thread+0x10/0x10
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  kthread+0xfb/0x230
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_kthread+0x10/0x10
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ret_from_fork+0x44/0x70
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ? __pfx_kthread+0x10/0x10
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  ret_from_fork_asm+0x1a/0x30
  Sep 24 13:24:22 ubuntu-202504-36599 kernel:  </TASK>
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: typec-thunderbolt 
port0-partner.1: failed to create symlinks
  Sep 24 13:24:22 ubuntu-202504-36599 kernel: typec-thunderbolt 
port0-partner.1: probe with driver typec-thunderbolt failed with error -17

  [Fix]
  It's a firmware bug, we try to detect the issue inside the ucsi driver and 
then show a warning message to avoid the scaring call trace.

  
  [Test]
  On many Dell machines, you can see the above error and call trace while 
plugg'd tbt device, with the fix you should only see something like this
     con1: Firmware bug: duplicate altmode SVID 0x8087 in same response at 
offset 2, ignoring. Please update your system firmware.

  [Where problems could occur]
  It doesn't change any functionalities, just checks the duplicate partner, 
port, or altmodes.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to