On Fri, 2022-04-22 at 09:30 +0300, Mika Westerberg wrote: > On Fri, Apr 22, 2022 at 08:09:23AM +0200, Tomasz Moń wrote: > > On Fri, Apr 22, 2022 at 7:27 AM Mika Westerberg > > <mika.westerberg@xxxxxxxxxxxxxxx> wrote: > > > On Thu, Apr 21, 2022 at 09:52:18PM +0200, Tomasz Moń wrote: > > > > I have observed that when I suspend to RAM, I cannot wakeup the > > > > host > > > > (MacBook Pro 2019) with my low-speed USB keyboard (Microsoft > > > > Comfort > > > > Curve Keyboard 2000) connected to Thunderbolt 3 dock (CalDigit > > > > USB-C > > > > Pro Dock). > > > > > > > > The host runs on Intel Core i9-9980HK and lspci shows Intel > > > > Corporation > > > > JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] and Intel > > > > Corporation > > > > DSL6540 Thunderbolt 3 Bridge [Alpine Ridge 4C 2015]. > > > > > > > > On Windows and Mac OS the system can be successfully woken up > > > > by > > > > pressing key on keyboard connected via the dock. > > > > > > Is the system that has the problem an Apple system or a regular > > > PC? > > > > It is an Apple system (MacBook Pro 2019) as noted in in first > > paragraph. All tests were performed on the same host with the same > > equipment. > > OK, I see. I was bit confused because you mention that it works in > Windows. I guess you run the Windows on boot camp or so? Yes, Windows was installed using Boot Camp Assistant. > If that's the case then you should be getting same kind of "support" > by passing "thunderbolt.start_icm=1" in the kernel command line. Passing "thunderbolt.start_icm=1" in the kernel command line made things worse. The system does not wake from suspend at all. It does not wake from USB keyboard connected directly to the host. And it does not wake after opening the lid nor after pressing power button (Touch ID). The only way to get system back running seemed to be pressing and holding power button long enough until the Apple bootloader starts. > That should do the same than what the boot camp does and start the > TBT firmware connection manager. I have no idea what boot camp does on the low level, but atleast Windows can wakeup successfully. > Apple systems by default have the firmware connection manager > disabled so the OS does all the tunneling and in Linux we do not > supportThunderbolt 3 hosts fully in the software connection manager > side (we do support devices, though). Mostly it's the power > management that is missing and I don't see it being fully supported > in the future either because the Apple systems are not like the most > standardized systems in the market so there are lots of "magic" > things happening that are completely undocumented :( Apple "magic" is just one thing, but for someone outside Intel it is even worse, as basically the whole JHL7540 is just a black box. Or is there a way for casual programmer to get hold on the Intel Thunderbolt 3 datasheet/specification?