You are not logged in.
My Macbook Air 2012 (5,1) has problems with Thunderbolt display hotplug, from journalctl listing:
Sep 05 06:12:00 accensi-MBAir kernel: Linux version 4.1.6-1-ARCH (builduser@tobia
Sep 05 06:12:00 accensi-MBAir kernel: Command line: initrd=\initramfs-linux.img c
...
Sep 05 06:12:00 accensi-MBAir kernel: DMI: Apple Inc. MacBookAir5,1/Mac-66F35F19F
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NHI initialized, starting thunderbolt
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: allocating TX ring 0 of size 10
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: allocating RX ring 0 of size 10
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: control channel created
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: control channel starting...
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: starting TX ring 0
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1)
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: starting RX ring 0
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001)
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: initializing Switch at 0x0 (depth: 0, up port: 5)
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: old switch config:
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Switch: 8086:1547 (Revision: 3, TB Version: 1)
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max Port Number: 12
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Config:
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Upstream Port Number: 5 Depth: 0 Route String: 0x0 Enabled: 1, PlugEventsDelay: 255ms
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: unknown1: 0x0 unknown4: 0x0
Sep 05 06:12:00 accensi-MBAir kernel: input: PC Speaker as /devices/platform/pcspkr/input/input5
...
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0: uid: 0x1000000000000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 0: 8086:1547 (Revision: 3, TB Version: 1, Type: Port (0x1))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 7/7
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 8
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x700000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 1: 8086:1547 (Revision: 3, TB Version: 1, Type: Port (0x1))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 15/15
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 16
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x3c00000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 2: 8086:1547 (Revision: 3, TB Version: 1, Type: Port (0x1))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 15/15
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 16
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x3c00000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 3: 8086:1547 (Revision: 3, TB Version: 1, Type: Port (0x1))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 15/15
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 16
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x3c00000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 4: 8086:1547 (Revision: 3, TB Version: 1, Type: Port (0x1))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 15/15
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 16
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x3c00000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 5: 8086:1547 (Revision: 3, TB Version: 1, Type: NHI (0x2))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 11/11
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 16
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x700000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 6: 8086:1547 (Revision: 3, TB Version: 1, Type: PCIe (0x100101))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 8/8
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 2
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x700000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 7: 8086:1547 (Revision: 3, TB Version: 1, Type: PCIe (0x100101))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 8/8
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 2
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x700000
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Port 8: 8086:1547 (Revision: 3, TB Version: 1, Type: PCIe (0x100101))
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max hop id (in/out): 8/8
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: Max counters: 2
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: NFC Credits: 0x700000
... goes up to Port 12
...
When hotplugging a display via Apple original adapter, sometimes I got a trace, sometimes just the messages after the trace:
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: resetting error on 0:0.
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:0: hotplug: scanning
Sep 05 06:12:00 accensi-MBAir kernel: ------------[ cut here ]------------
Sep 05 06:12:00 accensi-MBAir kernel: WARNING: CPU: 3 PID: 146 at drivers/thunderbolt/switch.c:95 tb_wait_for_port+0x396/0x430 [thunderbolt]()
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:0: does not have PHY
Sep 05 06:12:00 accensi-MBAir kernel: Modules linked in: nvram(+) nls_cp437 msr vfat fat cfg80211 ssb snd_hda_codec_hdmi mmc_core rfkill rng_core snd_hda_codec_cirrus s
Sep 05 06:12:00 accensi-MBAir kernel: crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci libata scsi_mod
Sep 05 06:12:00 accensi-MBAir kernel: CPU: 3 PID: 146 Comm: kworker/u16:2 Tainted: G U O 4.1.6-1-ARCH #1
Sep 05 06:12:00 accensi-MBAir kernel: Hardware name: Apple Inc. MacBookAir5,1/Mac-66F35F19FE2A0D05, BIOS MBA51.88Z.00EF.B03.1506081623 06/08/2015
Sep 05 06:12:00 accensi-MBAir kernel: Workqueue: thunderbolt tb_handle_hotplug [thunderbolt]
Sep 05 06:12:00 accensi-MBAir kernel: 0000000000000000 00000000704a123c ffff88007c41fc78 ffffffff815866ee
Sep 05 06:12:00 accensi-MBAir kernel: 0000000000000000 ffff88007c41fcd0 ffff88007c41fcb8 ffffffff81078cba
Sep 05 06:12:00 accensi-MBAir kernel: ffff88007c41fcd8 0000000000000000 ffff88026568ec50 0000000000000000
Sep 05 06:12:00 accensi-MBAir kernel: Call Trace:
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff815866ee>] dump_stack+0x4c/0x6e
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81078cba>] warn_slowpath_common+0x8a/0xc0
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81078d45>] warn_slowpath_fmt+0x55/0x70
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffffa039e4b6>] tb_wait_for_port+0x396/0x430 [thunderbolt]
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff813f0d4e>] ? __dev_printk+0x3e/0x90
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffffa039d757>] tb_scan_port+0x67/0x1c0 [thunderbolt]
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff8109f65d>] ? finish_task_switch+0x5d/0x100
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: resetting error on 0:b.
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffffa039da81>] tb_handle_hotplug+0x1d1/0x360 [thunderbolt]
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff810919ab>] process_one_work+0x14b/0x470
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81091d18>] worker_thread+0x48/0x4c0
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81091cd0>] ? process_one_work+0x470/0x470
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81097868>] kthread+0xd8/0xf0
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81097790>] ? kthread_worker_fn+0x170/0x170
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff8158c3a2>] ret_from_fork+0x42/0x70
Sep 05 06:12:00 accensi-MBAir kernel: [<ffffffff81097790>] ? kthread_worker_fn+0x170/0x170
Sep 05 06:12:00 accensi-MBAir kernel: ---[ end trace 58a09fdcab6120b2 ]---
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:0: hotplug: no switch found
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:b: hotplug: scanning
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:b: hotplug: no switch found
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: resetting error on 0:c.
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:c: hotplug: scanning
Sep 05 06:12:00 accensi-MBAir kernel: thunderbolt 0000:05:00.0: 0:c: hotplug: no switch found
Anyone with the same problem?
Thanks
A C Censi
Offline