[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-12-08 Thread Joseph Salisbury
*** This bug is a duplicate of bug 1717431 ***
https://bugs.launchpad.net/bugs/1717431

** Tags removed: kernel-da-key

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-12-08 Thread Mario Limonciello
*** This bug is a duplicate of bug 1717431 ***
https://bugs.launchpad.net/bugs/1717431

Looks like those made it to artful too:
https://bugs.launchpad.net/intel/+bug/1717431


** This bug has been marked a duplicate of bug 1717431
   [Bug] Thunderbolt-patches: Fixes the issue regarding the order of ACPI calls 
w.r.t. PCI enumeration

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-12-08 Thread Mario Limonciello
Those 3 patches were backported to 4.13.13.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.13.y&id=dcd2b010f17d64f19ac6a1f7cc77d85faf29196a
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.13.y&id=d055d4161c9354cd53f33c38bc9699ceeaadf1b5
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.13.y&id=61380235fe7c76ee306565c0f4dd294256e25079

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-09-11 Thread Yehezkel Bernat
FYI, the patches that Mario mentioned above landed Linus' tree for v4.14-rc1 
and hopefully will be backported to 4.13.
See details here:
https://github.com/01org/thunderbolt-software-user-space/issues/24#issuecomment-328011428

** Bug watch added: github.com/01org/thunderbolt-software-user-space/issues #24
   https://github.com/01org/thunderbolt-software-user-space/issues/24

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-07-07 Thread dragon788
I wonder if we need to sleep a second between the unbind and the rebind?
I still haven't restarted but I will test that while monitoring with
`journalctl -xf` in another terminal.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-07-06 Thread Kai-Heng Feng
Yea, I ran it as root.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-07-06 Thread dragon788
Kai-Heng, did you run the command as root? Otherwise you may want to
`sudo su` and run the loop or "prime" your sudo by running `sudo echo`
(to get prompted for you password once) and then use the same loop but
instead of `> /path/to/file` use `| tee /path/to/file` and see if you
get different results.

I will bookmark this to test after my next restart, as I'm seeing the
same issue on boot, and I don't know that changing the system hardware
test from Automatic to Thorough or Quick in the BIOS will make a
difference.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-16 Thread Kai-Heng Feng
Probably physical intervention is the only viable workaround now...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-16 Thread André Düwel
# for i in $(lspci -nn | grep Alpine | awk '{print $1}'); do
i=":$i"; echo $i
echo "$i" > /sys/bus/pci/drivers/pcieport/unbind
echo "$i" > /sys/bus/pci/drivers/pcieport/bind
done
:06:00.0
:07:00.0
:07:01.0
:07:02.0
:08:00.0
echo: write error: no such device
echo: write error: no such device
:09:00.0
:0a:01.0
:0a:04.0
:0c:00.0
:0d:01.0
:0d:04.0

without success :/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-15 Thread Kai-Heng Feng
Something like this:

for i in $(lspci -nn | grep Alpine | awk '{print $1}'); do
i=":$i"
echo "$i" > /sys/bus/pci/drivers/pcieport/unbind
echo "$i" > /sys/bus/pci/drivers/pcieport/bind
done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-14 Thread André Düwel
@Kai-Heng: How do I unbind/bind all devices? Never did this before :/

echo ":00:1d.6" > /sys/bus/pci/drivers/pcieport/unbind

Seems to unbind all usb devices, at least they stop working :D ... but

echo ":00:1d.6" > /sys/bus/pci/drivers/pcieport/bind

has no effect.

lspci | grep Alpine 
06:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine 
Ridge 2C 2015]
07:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine 
Ridge 2C 2015]
07:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine 
Ridge 2C 2015]
07:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine 
Ridge 2C 2015]
08:00.0 System peripheral: Intel Corporation DSL6340 Thunderbolt 3 NHI [Alpine 
Ridge 2C 2015]
09:00.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]
0a:01.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]
0a:04.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]
0c:00.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]
0d:01.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]
0d:04.0 PCI bridge: Intel Corporation DSL6540 Thunderbolt 3 Bridge [Alpine 
Ridge 4C 2015]

─root@atlantis /sys/bus/pci/drivers/pcieport  
╰─# tree
.
├── :00:01.0 -> ../../../../devices/pci:00/:00:01.0
├── :00:1c.0 -> ../../../../devices/pci:00/:00:1c.0
├── :00:1c.1 -> ../../../../devices/pci:00/:00:1c.1
├── :00:1d.0 -> ../../../../devices/pci:00/:00:1d.0
├── :00:1d.4 -> ../../../../devices/pci:00/:00:1d.4
├── :00:1d.6 -> ../../../../devices/pci:00/:00:1d.6
├── :06:00.0 -> ../../../../devices/pci:00/:00:1d.6/:06:00.0
├── :07:00.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:00.0
├── :07:01.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0
├── :07:02.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:02.0
├── :09:00.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0
├── :0a:01.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0/:0a:01.0
├── :0a:04.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0/:0a:04.0
├── :0c:00.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0/:0a:04.0/:0c:00.0
├── :0d:01.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0/:0a:04.0/:0c:00.0/:0d:01.0
├── :0d:04.0 -> 
../../../../devices/pci:00/:00:1d.6/:06:00.0/:07:01.0/:09:00.0/:0a:04.0/:0c:00.0/:0d:04.0
├── bind
├── new_id
├── remove_id
├── uevent
└── unbind

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-14 Thread Zhenfang Wei
Hi, i am using Dell XPS 9360 Developer Edition (with ubuntu 16.04
(kernel 4.4.0)) together with TB16 docking station. I have the same
issue, if TB16 is plugged before booting, the peripherals such as the
USB port, ethernet port, USB-C port, etc. works fine. But they are not
detected once the TB16 is unplugged after booting and re-plugged again.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-14 Thread Kai-Heng Feng
Hmm, maybe try go to /sys/bus/pci/drivers/pcieport, then unbind & bind
all Alpine Ridge devices?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-13 Thread André Düwel
nope, does not help. Only reconnecting helps :-/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-13 Thread Kai-Heng Feng
@Mario

Thanks for the info.

@Andre

Does doing a PCI rescan work for you?

$ sudo -s
# echo 1 > /sys/bus/pci/rescan

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-13 Thread Mario Limonciello
@Kai Heng:

It should not be machine/chipset specific, but may have some BIOS
component to this due to BIOS sends the hotplug event.  If the hotplug
event comes too soon (before enumeration is done) you should see this
behavior.

It's specific to PCIe tunnels of TBT devices.  You won't for example see
it if you connect a non-TBT type-C device to the the type-C port of the
TB16 or a display to one of the display ports.

The USB hub and USB ports are however behind the PCIe tunnels though and
should hit this issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-13 Thread André Düwel
I could reproduce this issue on my old TB15 dock with my XP15 9550, too.

@Kai-Heng Feng: Dell is replacing the TB15 with the TB16 for free,
because of heat problems and other issues especially if you use two 4k
monitors. But you need to call the service center and they do not want
the old TB15 back. ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-12 Thread Kai-Heng Feng
Thanks for the info, Mario.
Is it machine/chipset specific? I didn't see this issue on Latitude E7370 
though.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-12 Thread Joseph Salisbury
** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

** Changed in: linux (Ubuntu)
   Status: Incomplete => Triaged

** Tags added: kernel-da-key

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-12 Thread Mario Limonciello
Mika has already consulted with the ACPI guys and has an idea, but it's
going to require changes outside of Linux first in ACPICA.  So it
shouldn't be a very quick fix.

>There is also another PCI/ACPI related issue that Mario reported where
>we execute _INI() methods before the initial PCI scan on boot when
>Thunderbolt device is connected causing Linux to accidentally find the
>upstream port of the Thunderbolt host controller before it is configured
>properly by the BIOS ACPI hotplug handler. I've discussed this with
>Rafael and he has an idea how we could fix it but it probably requires
>some changes to ACPICA first. Also on my todo list :)

https://lkml.org/lkml/2017/6/5/881

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1697395] Re: Thunderbolt devices don't work if connected during boot

2017-06-12 Thread André Düwel
@Mario, thanks for this additional information. Could you image a way to
influence this order, to let the pci_scan happen before ACPI is
initialized?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697395

Title:
  Thunderbolt devices don't work if connected during boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1697395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs