[Kernel-packages] [Bug 1860284]

2023-01-17 Thread knyffen
First of all, I forgot that this issue was for "thinkpad thunderbolt 3 dock gen2" specifically. Sorry. Anyway, I leave this as a note for other people who came here from the Arch Linux wiki: The mainline kernel (6.2-rc2) works without bugs (in my case). I have been testing it for a week, and I

[Kernel-packages] [Bug 1860284]

2023-01-04 Thread bjorn
Thanks, Jonas. This bugzilla has a lot of stuff going on, and it's not clear yet whether the issue you're seeing is the same, so can you please open a new report? Use the "File a Bug" button at https://bugzilla.kernel.org/ and the Drivers/PCI product/component. After you open the issue, the

[Kernel-packages] [Bug 1860284]

2023-01-02 Thread knyffen
Thanks for the great work! Hotplugging thunderbolt docks definitely work better, but I still have a couple issues. Before I start, here is some info about my setup. I use KDE on Arch Linux, but it shouldn't affect the problem. uname -a prints: Linux MyPC 6.1.1-arch1-1 #1 SMP PREEMPT_DYNAMIC

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread bjorn
Thanks for those! It's a little overwhelming, but I don't see any issues related to the comment #62 patch. It seems to work as I expect on your system. There are definitely dock hotplug issues and the performance issue, but those are problems for different reports. -- You received this bug

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread bjorn
Since your laptop does match d341838d776a, I don't think the comment #62 patch will make much difference. It will likely change MMCONFIG messages from "reserved in E820" to "reserved in ACPI motherboard resources", but won't change the behavior. No need to repeat with v6.1-rc7. A single .tgz or

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread kjhambrick
Yes, it is overwhelming, isn't it. The only thing that seems to stick out for me is when I sdiff pairs of lsmod and lsusb files where it seems like the states of the devices should return to the initial states after plugging or unplugging the TBT4 Dock. For example, when I sdiff these two files,

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread kjhambrick
p.s. Yes Bjorn, your patch from commentt #62 worked perfectly, even after I removed the Clevo Entry from the pci_crs_quirks[] array. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread kjhambrick
Created attachment 303339 6.0.10 Logs Bjorn -- Attached anker-tests-e..f-tar.gz Manifest is below. I went ahead and included all the logs I had already gathered yesterday after reading this thread. Notable: 1. The Patches I applied are in kernel_config_debug/linux-6.0.10.kjh_dp.patch 2.

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread kjhambrick
Bjorn -- My Laptop does match d341838d776a # dmesg -t |grep DMI: DMI: Notebook X170KM-G/X170KM-G, BIOS 1.07.08LS1 01/11/2020 I've already built 6.0.10 with your patches and I booted yesterday afternoon with these CommandLine Args: ro nvidia-drm.modeset=1 thunderbolt.dyndbg=+p efi=debug

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread kjhambrick
Bjorn -- Not to butt in, but ... If you want it, I've built 6.0.10 with your Patches and I ran the same tests. I've got a Sager NP9672M Laptop which is a rebranded Clevo X1170KM-G I've been working with Mika on Bug 214259 - Discrete Thunderbolt Controller 8086:1137 throws DMAR and XHCI errors

[Kernel-packages] [Bug 1860284]

2022-12-02 Thread bjorn
Hi Konrad, you're not butting in at all! Things got a little tangled up here. I think bug 214259 describes two issues: 1) Hot-added devices, e.g., an ethernet NIC in a dock, don't work. This should be helped by https://git.kernel.org/linus/d341838d776a, which appeared in v5.19, but only for

[Kernel-packages] [Bug 1860284]

2022-11-30 Thread wse
Created attachment 303327 dmsg of experimental patch, dock attached after boot 2 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci

[Kernel-packages] [Bug 1860284]

2022-11-30 Thread wse
ofc uploaded the dmesg with the new patch -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940

[Kernel-packages] [Bug 1860284]

2022-11-30 Thread wse
Created attachment 303326 dmsg of experimental patch, dock attached before boot 2 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci

[Kernel-packages] [Bug 1860284]

2022-11-28 Thread bjorn
Created attachment 303314 add resource clip debug Thank you very much, Werner! I was confused about why your machine has DMI_BOARD_NAME "X170KM-G", but didn't match the quirk in d341838d776a ("x86/PCI: Disable E820 reserved region clipping via quirks"), but I see that in comment #62 I suggested

[Kernel-packages] [Bug 1860284]

2022-11-28 Thread wse
Created attachment 303309 dmsg of experimental patch, dock attached after boot -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci

[Kernel-packages] [Bug 1860284]

2022-11-28 Thread wse
Created attachment 303308 dmsg of experimental patch, dock attached before boot -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci

[Kernel-packages] [Bug 1860284]

2022-11-28 Thread wse
Tested on Clevo X170KM seems to work. Attached dmesg with dock attached during boot and dock attached after boot. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad

[Kernel-packages] [Bug 1860284]

2022-11-23 Thread benoitg
I'd love to help you out Bjorn; Unfortunately, I no longer have easy access to the original hardware. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt

[Kernel-packages] [Bug 1860284]

2022-11-21 Thread bjorn
Created attachment 303237 experimental patch That patch (d341838d776a ("x86/PCI: Disable E820 reserved region clipping via quirks")) relies on quirks that match DMI Vendor, Product Version, Product Name, and Board Name. This isn't an ideal solution because there are likely other systems we don't

[Kernel-packages] [Bug 1860284]

2022-11-21 Thread bjorn
>From the dmesg log in https://bugzilla.kernel.org/attachment.cgi?id=287483, BIOS-e820: [mem 0x4bc5-0xcfff] reserved pci_bus :00: root bus resource [mem 0x6540-0xbfff window] pci :00:07.1: PCI bridge to [bus 2b-54] pci :00:07.1: bridge window

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2022-02-25 Thread Kolargol00
I'm also affected by this bug on 20.04 with the HWE 5.13 kernel (currently: 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux). My PCIe Thunderbolt card (ASUS ThunderboltEX 4, Intel JHL8540 controller) only partially works: the USB part works and

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2021-10-11 Thread Bug Watch Updater
** Bug watch added: Linux Kernel Bug Tracker #214259 https://bugzilla.kernel.org/show_bug.cgi?id=214259 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread wse
*** Bug 214259 has been marked as a duplicate of this bug. *** -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread wse
Just wanted to leave a note here that this issue continues to be a problem with descrete thundebold 4 chips: https://bugzilla.kernel.org/show_bug.cgi?id=214259 The hack from https://bugzilla.kernel.org/show_bug.cgi?id=206459#c46 fixes the dock on that Laptop, the cleaner hack I have yet to try.

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread benoitg
Just a testing update: As of today (2020-11-12), the patch: - Still hasn't landed - Still applies cleanly on kernel 5.10-rc3 - Is still needed, otherwise thunderbolt doesn't work at all on affected hardware upon reconnect. -- You received this bug notification because you are a member of

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread mumblingdrunkard
Any updates on if a fix for this has arrived? So far I've just been applying the patch (287661) and compiling the kernel myself for my Yoga C940, but it's rather finnicky. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread mika.westerberg
I suggest you to reply on that email thread that there is a real problem that needs to be solved so we get some traction from the maintainers. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1860284]

2021-10-11 Thread mika.westerberg
Hi, sorry about this. I did not get any comments from x86 maintainers for this and the comment from Bjorn (the author of the original code) seems to suggest rather big rework so I simply haven't had time to look at it at the moment. Can send a ping on that thread? Maybe we get some x86 maintainers

[Kernel-packages] [Bug 1860284]

2020-06-17 Thread mika.westerberg
I just resent the patch. Hopefully it lands mainline at some point :) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-06-16 Thread Bug Watch Updater
Launchpad has imported 54 comments from the remote bug at https://bugzilla.kernel.org/show_bug.cgi?id=206459. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-06-01 Thread Benoit Grégoire
** Also affects: linux via https://bugzilla.kernel.org/show_bug.cgi?id=206459 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-27 Thread Benoit Grégoire
There is now a working patch on the upstream bug -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-17 Thread Benoit Grégoire
Still no luck with 5.5.4 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-11 Thread Benoit Grégoire
unfortunately, same results with BIOS AUCN54WW (manually installed, since not offered by either lenovo system update nor windows update). Same symptoms. Same symptoms also on with kernel mainline 5.5.3 For reference, dock firmware is V3.1.66 -- You received this bug notification because you

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-11 Thread Kai-Heng Feng
Please test latest BIOS AUCN54WW. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-07 Thread Benoit Grégoire
Reported upstream on Bug: https://bugzilla.kernel.org/show_bug.cgi?id=206459 ** Bug watch added: Linux Kernel Bug Tracker #206459 https://bugzilla.kernel.org/show_bug.cgi?id=206459 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-07 Thread Benoit Grégoire
Still the same on 5.5.2 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-04 Thread Benoit Grégoire
With kernel mainline 5.5.1, it does get a little bit further, only BAR 14 and 0 fail to assign on the second try. See attached dmesg. But symptoms are still identical: no peripherals work except for video. Any way I can systematically search for a workaround using pci= kernel parameters? **

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-02-04 Thread Kai-Heng Feng
Please test latest mainline kernel: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/ -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock gen2

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot

2020-01-21 Thread Benoit Grégoire
** Summary changed: - thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot + thinkpad thunderbolt 3 dock gen2 with pci memory allocation errors on Yoga C940 unless plugged in before boot -- You received this bug notification because you are a member of

[Kernel-packages] [Bug 1860284] Status changed to Confirmed

2020-01-19 Thread Ubuntu Kernel Bot
This change was made by a bot. ** Changed in: linux (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1860284 Title: thinkpad thunderbolt 3 dock

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_working_dmesg_dock_plugged_before_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321565/+files/ubuntu_5.3.0-26_working_dmesg_dock_plugged_before_boot.txt -- You received this bug notification because you are a member

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_notworking_lspci_dock_plugged_after_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321563/+files/ubuntu_5.3.0-26_notworking_lspci_dock_plugged_after_boot.txt -- You received this bug notification because you are a

[Kernel-packages] [Bug 1860284] [NEW] thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
Public bug reported: I have thinkpad thunderbolt 3 dock gen2 dock I am trying to use with a New Lenovo Yoga C940 laptop. - The dock works fine when plugged-in before boot. - The dock does NOT work when plugged after the system booted. - The dock does NOT work when plugged-in at boot,

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_working_lsusb_dock_plugged_before_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321567/+files/ubuntu_5.3.0-26_working_lsusb_dock_plugged_before_boot.txt -- You received this bug notification because you are a member

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_working_lspci_dock_plugged_before_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321566/+files/ubuntu_5.3.0-26_working_lspci_dock_plugged_before_boot.txt -- You received this bug notification because you are a member

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_notworking_dmesg_dock_plugged_after_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321562/+files/ubuntu_5.3.0-26_notworking_dmesg_dock_plugged_after_boot.txt -- You received this bug notification because you are a

[Kernel-packages] [Bug 1860284] Re: thinkpad thunderbolt 3 dock gen2 does not work on Yoga C940 unless plugged in before boot

2020-01-19 Thread Benoit Grégoire
** Attachment added: "ubuntu_5.3.0-26_notworking_lsusb_dock_plugged_after_boot.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1860284/+attachment/5321564/+files/ubuntu_5.3.0-26_notworking_lsusb_dock_plugged_after_boot.txt -- You received this bug notification because you are a