Re: USB-C Devices only show up if connected at boot

2018-02-11 Thread Mika Westerberg
On Sun, Feb 11, 2018 at 06:59:52PM +, Mike Lothian wrote:
> This a final patch ever get sent out?

I'll send it out tomorrow once merge window is closed.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-02-11 Thread Mike Lothian
On 29 January 2018 at 09:44, Mika Westerberg
 wrote:
> On Sat, Jan 27, 2018 at 01:31:00PM +, Mike Lothian wrote:
>> On 26 January 2018 at 09:53, Mike Lothian  wrote:
>> > On 26 January 2018 at 08:31, Mika Westerberg
>> >  wrote:
>> >> On Fri, Jan 26, 2018 at 08:07:56AM +, Mike Lothian wrote:
>> >>> Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
>> >>> device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued
>> >>
>> >> That's not how it is supposed to work. Please send me full dmesg and in
>> >> addition acpidump of the system (or attach it to the bugzilla bug). Also
>> >> share your .config.
>> >
>> > I've attached my full dmesg and .config to the bug. The acpidump info
>> > can be found at https://bugzilla.kernel.org/show_bug.cgi?id=198051,
>> > the current kernel has the attached patch to enable
>> > AcpiGbl_ParseTableAsTermList, the bug also contains a dmesg without it
>>
>> I've attached the dmesg to the bug
>> https://bugzilla.kernel.org/show_bug.cgi?id=198557
>>
>> The important lines I think are:
>>
>> [   26.988174] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in 
>> hotplug_event()
>> [  129.086070] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in 
>> hotplug_event()
>
> Indeed. Thanks! Let's continue debugging on bugzilla.

This a final patch ever get sent out?
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-29 Thread Mika Westerberg
On Sat, Jan 27, 2018 at 01:31:00PM +, Mike Lothian wrote:
> On 26 January 2018 at 09:53, Mike Lothian  wrote:
> > On 26 January 2018 at 08:31, Mika Westerberg
> >  wrote:
> >> On Fri, Jan 26, 2018 at 08:07:56AM +, Mike Lothian wrote:
> >>> Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
> >>> device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued
> >>
> >> That's not how it is supposed to work. Please send me full dmesg and in
> >> addition acpidump of the system (or attach it to the bugzilla bug). Also
> >> share your .config.
> >
> > I've attached my full dmesg and .config to the bug. The acpidump info
> > can be found at https://bugzilla.kernel.org/show_bug.cgi?id=198051,
> > the current kernel has the attached patch to enable
> > AcpiGbl_ParseTableAsTermList, the bug also contains a dmesg without it
> 
> I've attached the dmesg to the bug
> https://bugzilla.kernel.org/show_bug.cgi?id=198557
> 
> The important lines I think are:
> 
> [   26.988174] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in 
> hotplug_event()
> [  129.086070] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in 
> hotplug_event()

Indeed. Thanks! Let's continue debugging on bugzilla.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-27 Thread Mike Lothian
On 26 January 2018 at 09:53, Mike Lothian  wrote:
> On 26 January 2018 at 08:31, Mika Westerberg
>  wrote:
>> On Fri, Jan 26, 2018 at 08:07:56AM +, Mike Lothian wrote:
>>> Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
>>> device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued
>>
>> That's not how it is supposed to work. Please send me full dmesg and in
>> addition acpidump of the system (or attach it to the bugzilla bug). Also
>> share your .config.
>
> I've attached my full dmesg and .config to the bug. The acpidump info
> can be found at https://bugzilla.kernel.org/show_bug.cgi?id=198051,
> the current kernel has the attached patch to enable
> AcpiGbl_ParseTableAsTermList, the bug also contains a dmesg without it

I've attached the dmesg to the bug
https://bugzilla.kernel.org/show_bug.cgi?id=198557

The important lines I think are:

[   26.988174] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in hotplug_event()
[  129.086070] ACPI: \_SB_.PCI0.RP01: acpiphp_glue: Bus check in hotplug_event()
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-26 Thread Mike Lothian
On 26 January 2018 at 08:31, Mika Westerberg
 wrote:
> On Fri, Jan 26, 2018 at 08:07:56AM +, Mike Lothian wrote:
>> Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
>> device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued
>
> That's not how it is supposed to work. Please send me full dmesg and in
> addition acpidump of the system (or attach it to the bugzilla bug). Also
> share your .config.

I've attached my full dmesg and .config to the bug. The acpidump info
can be found at https://bugzilla.kernel.org/show_bug.cgi?id=198051,
the current kernel has the attached patch to enable
AcpiGbl_ParseTableAsTermList, the bug also contains a dmesg without it
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-26 Thread Mika Westerberg
On Fri, Jan 26, 2018 at 08:07:56AM +, Mike Lothian wrote:
> Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
> device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued

That's not how it is supposed to work. Please send me full dmesg and in
addition acpidump of the system (or attach it to the bugzilla bug). Also
share your .config.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-26 Thread Mike Lothian
On 26 January 2018 at 06:33, Mika Westerberg
 wrote:
> On Thu, Jan 25, 2018 at 10:20:02PM +, Mike Lothian wrote:
>> I've just tried this and the USB-C device was detected :D This is the
>> first time it's ever been detected after boot
>>
>> 02:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
>> [Alpine Ridge 2C 2015]
>>Kernel driver in use: pcieport
>> 03:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
>> [Alpine Ridge 2C 2015]
>>Kernel driver in use: pcieport
>> 03:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
>> [Alpine Ridge 2C 2015]
>>Kernel driver in use: pcieport
>> 03:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
>> [Alpine Ridge 2C 2015]
>>Kernel driver in use: pcieport
>> 39:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller
>> [Alpine Ridge]
>>Subsystem: Device :
>>Kernel driver in use: xhci_hcd
>
> Yes, this is how it should work. All those PCI bridges + xHCI are
> hotplugged when you plug in a USB-C device.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Whether CONFIG_HOTPLUG_PCI_ACPI=y or CONFIG_HOTPLUG_PCI_ACPI=n the
device doesn't show unless echo 1 > /sys/bus/pci/rescan is issued
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Mika Westerberg
On Thu, Jan 25, 2018 at 10:20:02PM +, Mike Lothian wrote:
> I've just tried this and the USB-C device was detected :D This is the
> first time it's ever been detected after boot
> 
> 02:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
> [Alpine Ridge 2C 2015]
>Kernel driver in use: pcieport
> 03:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
> [Alpine Ridge 2C 2015]
>Kernel driver in use: pcieport
> 03:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
> [Alpine Ridge 2C 2015]
>Kernel driver in use: pcieport
> 03:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
> [Alpine Ridge 2C 2015]
>Kernel driver in use: pcieport
> 39:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller
> [Alpine Ridge]
>Subsystem: Device :
>Kernel driver in use: xhci_hcd

Yes, this is how it should work. All those PCI bridges + xHCI are
hotplugged when you plug in a USB-C device.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Mika Westerberg
On Thu, Jan 25, 2018 at 09:31:08PM +, Mike Lothian wrote:
> I've tried with and without those being set, neither help,  having
> CONFIG_HOTPLUG_PCI_ACPI=y on causes my NVMe drive to disappear after
> suspend

You *must* have those set, othewise the xHCI will not work. Can you do
so that you enable those options, boot without anything connected to the
USB-C port. Then when the system is up and running plug in your USB-C
device and see if it works or not. If it does not then send me full dmesg.

NVMe missing after suspend is a different issue, though.

> I'll switch back into windows and check I've the latest firmware for
> Thunderbolt, is there a way to do that on linux too?

I don't think that is needed since hotplug works in Windows. You can
upgrade NVM from Linux as well. See Documentation/admin-guide/thunderbolt.rst.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Mike Lothian
On 25 January 2018 at 21:31, Mike Lothian  wrote:
>
> Hi
>
> I've tried with and without those being set, neither help,  having
> CONFIG_HOTPLUG_PCI_ACPI=y on causes my NVMe drive to disappear after
> suspend
>
> I'll switch back into windows and check I've the latest firmware for
> Thunderbolt, is there a way to do that on linux too?
>
> Thanks
>
> Mike

So I noticed on one of the other bugs regarding NVMe devices going
missing after suspend that issuing a echo 1 > /sys/bus/pci/rescan got
them to reappear

I've just tried this and the USB-C device was detected :D This is the
first time it's ever been detected after boot

02:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
[Alpine Ridge 2C 2015]
   Kernel driver in use: pcieport
03:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
[Alpine Ridge 2C 2015]
   Kernel driver in use: pcieport
03:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
[Alpine Ridge 2C 2015]
   Kernel driver in use: pcieport
03:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge
[Alpine Ridge 2C 2015]
   Kernel driver in use: pcieport
39:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller
[Alpine Ridge]
   Subsystem: Device :
   Kernel driver in use: xhci_hcd

Here's the output of lsusb -v

lsusb -v

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
 bLength18
 bDescriptorType 1
 bcdUSB   3.10
 bDeviceClass9 Hub
 bDeviceSubClass 0
 bDeviceProtocol 3
 bMaxPacketSize0 9
 idVendor   0x1d6b Linux Foundation
 idProduct  0x0003 3.0 root hub
 bcdDevice4.15
 iManufacturer   3 Linux 4.15.0-rc8-agd5f+ xhci-hcd
 iProduct2 xHCI Host Controller
 iSerial 1 :39:00.0
 bNumConfigurations  1
 Configuration Descriptor:
   bLength 9
   bDescriptorType 2
   wTotalLength   31
   bNumInterfaces  1
   bConfigurationValue 1
   iConfiguration  0
   bmAttributes 0xe0
 Self Powered
 Remote Wakeup
   MaxPower0mA
   Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber0
 bAlternateSetting   0
 bNumEndpoints   1
 bInterfaceClass 9 Hub
 bInterfaceSubClass  0
 bInterfaceProtocol  0 Full speed (or root) hub
 iInterface  0
 Endpoint Descriptor:
   bLength 7
   bDescriptorType 5
   bEndpointAddress 0x81  EP 1 IN
   bmAttributes3
 Transfer TypeInterrupt
 Synch Type   None
 Usage Type   Data
   wMaxPacketSize 0x0004  1x 4 bytes
   bInterval  12
   bMaxBurst   0
Hub Descriptor:
 bLength  12
 bDescriptorType  42
 nNbrPorts 2
 wHubCharacteristic 0x000a
   No power switching (usb 1.0)
   Per-port overcurrent protection
 bPwrOn2PwrGood   10 * 2 milli seconds
 bHubContrCurrent  0 milli Ampere
 bHubDecLat  0.0 micro seconds
 wHubDelay 0 nano seconds
 DeviceRemovable0x00
Hub Port Status:
  Port 1: .02a0 lowspeed L1
  Port 2: .02a0 lowspeed L1
Binary Object Store Descriptor:
 bLength 5
 bDescriptorType15
 wTotalLength   43
 bNumDeviceCaps  2
 SuperSpeed USB Device Capability:
   bLength10
   bDescriptorType16
   bDevCapabilityType  3
   bmAttributes 0x02
 Latency Tolerance Messages (LTM) Supported
   wSpeedsSupported   0x0008
 Device can operate at SuperSpeed (5Gbps)
   bFunctionalitySupport   3
 Lowest fully-functional device speed is SuperSpeed (5Gbps)
   bU1DevExitLat  10 micro seconds
   bU2DevExitLat 512 micro seconds
 SuperSpeedPlus USB Device Capability:
   bLength28
   bDescriptorType16
   bDevCapabilityType 10
   bmAttributes 0x0023
 Sublink Speed Attribute count 3
 Sublink Speed ID count 1
   wFunctionalitySupport   0x0001
   bmSublinkSpeedAttr[0]   0x00050034
 Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed
   bmSublinkSpeedAttr[1]   0x000500b4
 Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed
   bmSublinkSpeedAttr[2]   0x000a4035
 Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus
   bmSublinkSpeedAttr[3]   0x000a40b5
 Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0001
 Self Powered

Bus 003 Device 003: ID 18d1:4ee2 Google Inc. Nexus Device (debug)
Device Descriptor:
 bLength18
 bDescriptorType 1
 bcdUSB   2.00
 bDeviceClass0
 bDeviceSubClass 0
 bDeviceProtocol 0
 bMaxPacketSize0   

Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Mike Lothian
On Thu, 25 Jan 2018 at 10:52 Mika Westerberg
 wrote:
>
> On Thu, Jan 25, 2018 at 12:35:49PM +0200, Heikki Krogerus wrote:
> > +Mika
> >
> > On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> > > On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> > > >
> > > > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > > > Hi
> > > > >
> > > > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > > > informed by Greg bugs should be raised on the mailing list not in
> > > > > bugzilla
> > > > >
> > > > > So USB-C devices only show up in dmesg or for use if they are
> > > > > connected during boot
> > > > >
> > > > > Once booted and the device is disconnected the following message
> > > > > appears in the dmesg:
> > > > >
> > > > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > > > responding, assume dead
> > > > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > > > >
> > > > > No further connections or disconnections display anything further in
> > > > > the dmesg, the device works fine if connected via USB-A
> > > > >
> > > > > I've witnessed this behaviour since getting the laptop at the end of
> > > > > 2015 so this isn't a regression
> > > >
> > > > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > > > past on lots of different laptops but was always resolved by the BIOS
> > > > update (the latest one for mine also updates the xhci controller as
> > > > well.)
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > >
> > > Hi
> > >
> > > I've applied all BIOS updates for my laptop including the pulled one
> > > for Spectre/Meltdown & ME bugs the other week
> > > http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> > >
> > > If it helps, I don't have this issue in Windows but I rarely have it 
> > > booted
> > >
> > > I thought it might have something to do with an ACPI failure (see bug
> > > https://bugzilla.kernel.org/show_bug.cgi?id=198051)
> >
> > Did you update the Thunderbolt firmware?
> >
> > Mika, perhaps you can provide steps how to do that?
>
> If it works in Windows then I suspect this is not related to the
> firmware.
>
> Mike, do you have PCI hotplug enabled in your .config? Following needs
> to be set:
>
> CONFIG_HOTPLUG_PCI=y
> CONFIG_HOTPLUG_PCI_ACPI=y
>
> If not, please enabled them and try again.


Hi

I've tried with and without those being set, neither help,  having
CONFIG_HOTPLUG_PCI_ACPI=y on causes my NVMe drive to disappear after
suspend

I'll switch back into windows and check I've the latest firmware for
Thunderbolt, is there a way to do that on linux too?

Thanks

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Mika Westerberg
On Thu, Jan 25, 2018 at 12:35:49PM +0200, Heikki Krogerus wrote:
> +Mika
> 
> On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> > On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> > >
> > > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > > Hi
> > > >
> > > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > > informed by Greg bugs should be raised on the mailing list not in
> > > > bugzilla
> > > >
> > > > So USB-C devices only show up in dmesg or for use if they are
> > > > connected during boot
> > > >
> > > > Once booted and the device is disconnected the following message
> > > > appears in the dmesg:
> > > >
> > > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > > responding, assume dead
> > > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > > >
> > > > No further connections or disconnections display anything further in
> > > > the dmesg, the device works fine if connected via USB-A
> > > >
> > > > I've witnessed this behaviour since getting the laptop at the end of
> > > > 2015 so this isn't a regression
> > >
> > > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > > past on lots of different laptops but was always resolved by the BIOS
> > > update (the latest one for mine also updates the xhci controller as
> > > well.)
> > >
> > > thanks,
> > >
> > > greg k-h
> > 
> > 
> > Hi
> > 
> > I've applied all BIOS updates for my laptop including the pulled one
> > for Spectre/Meltdown & ME bugs the other week
> > http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> > 
> > If it helps, I don't have this issue in Windows but I rarely have it booted
> > 
> > I thought it might have something to do with an ACPI failure (see bug
> > https://bugzilla.kernel.org/show_bug.cgi?id=198051)
> 
> Did you update the Thunderbolt firmware?
> 
> Mika, perhaps you can provide steps how to do that?

If it works in Windows then I suspect this is not related to the
firmware.

Mike, do you have PCI hotplug enabled in your .config? Following needs
to be set:

CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_ACPI=y

If not, please enabled them and try again.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-25 Thread Heikki Krogerus
+Mika

On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> >
> > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > Hi
> > >
> > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > informed by Greg bugs should be raised on the mailing list not in
> > > bugzilla
> > >
> > > So USB-C devices only show up in dmesg or for use if they are
> > > connected during boot
> > >
> > > Once booted and the device is disconnected the following message
> > > appears in the dmesg:
> > >
> > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > responding, assume dead
> > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > >
> > > No further connections or disconnections display anything further in
> > > the dmesg, the device works fine if connected via USB-A
> > >
> > > I've witnessed this behaviour since getting the laptop at the end of
> > > 2015 so this isn't a regression
> >
> > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > past on lots of different laptops but was always resolved by the BIOS
> > update (the latest one for mine also updates the xhci controller as
> > well.)
> >
> > thanks,
> >
> > greg k-h
> 
> 
> Hi
> 
> I've applied all BIOS updates for my laptop including the pulled one
> for Spectre/Meltdown & ME bugs the other week
> http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> 
> If it helps, I don't have this issue in Windows but I rarely have it booted
> 
> I thought it might have something to do with an ACPI failure (see bug
> https://bugzilla.kernel.org/show_bug.cgi?id=198051)

Did you update the Thunderbolt firmware?

Mika, perhaps you can provide steps how to do that?


Cheers,

-- 
heikki
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Mike Lothian
On 24 January 2018 at 10:42, Oliver Neukum  wrote:
> Am Mittwoch, den 24.01.2018, 10:30 + schrieb Mike Lothian:
>
> echo "file $NAMEOFKERNELSOURCEFILEYOUWANT +mfp" > 
> /sys/kernel/debug/dynamic_debug/control
>
> HTH
> Oliver
>

OK so I'm enabling dynamic debugging in the kernel (DYNAMIC_DEBUG)

Which files would you like me to monitor?
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Oliver Neukum
Am Mittwoch, den 24.01.2018, 10:30 + schrieb Mike Lothian:
> On 24 January 2018 at 10:04, Oliver Neukum  wrote:
> > 
> > Am Mittwoch, den 24.01.2018, 09:36 + schrieb Mike Lothian:
> > > 
> > > 
> > > I've played around with this some more, if the device is connected
> > > after boot nothing shows when it's plugged in
> > > 
> > > I did however get more messages out when I disconnected the device
> > > after booting with it (see attached)
> > > 
> > 
> > That is the normal case of PCI disconnect of XHCI and Thunderbolt
> > stuff. It confirms that you have the Intel chipsets that does
> > a PCI disconnect while nothing is plugged in.
> > 
> > This really needs PCI hotplugging to work.
> > Could you activate dynamic debugging for PCI and ACPI?
> > 
> > You might, if your BIOS is crap, try only native hotplug
> > with ACPI hotplug disabled.
> > 
> > Regards
> > Oliver
> > 
> 
> Still nothing if I connect the device with PCI Hotplugging with no
> ACPI Hotplugging
> 
> What do I need to do to activate dynamic debugging?

echo "file $NAMEOFKERNELSOURCEFILEYOUWANT +mfp" > 
/sys/kernel/debug/dynamic_debug/control

HTH
Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Mike Lothian
On 24 January 2018 at 10:04, Oliver Neukum  wrote:
> Am Mittwoch, den 24.01.2018, 09:36 + schrieb Mike Lothian:
>>
>> I've played around with this some more, if the device is connected
>> after boot nothing shows when it's plugged in
>>
>> I did however get more messages out when I disconnected the device
>> after booting with it (see attached)
>>
>
> That is the normal case of PCI disconnect of XHCI and Thunderbolt
> stuff. It confirms that you have the Intel chipsets that does
> a PCI disconnect while nothing is plugged in.
>
> This really needs PCI hotplugging to work.
> Could you activate dynamic debugging for PCI and ACPI?
>
> You might, if your BIOS is crap, try only native hotplug
> with ACPI hotplug disabled.
>
> Regards
> Oliver
>

Still nothing if I connect the device with PCI Hotplugging with no
ACPI Hotplugging

What do I need to do to activate dynamic debugging?
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Oliver Neukum
Am Mittwoch, den 24.01.2018, 09:36 + schrieb Mike Lothian:
> 
> I've played around with this some more, if the device is connected
> after boot nothing shows when it's plugged in
> 
> I did however get more messages out when I disconnected the device
> after booting with it (see attached)
> 

That is the normal case of PCI disconnect of XHCI and Thunderbolt
stuff. It confirms that you have the Intel chipsets that does
a PCI disconnect while nothing is plugged in.

This really needs PCI hotplugging to work.
Could you activate dynamic debugging for PCI and ACPI?

You might, if your BIOS is crap, try only native hotplug
with ACPI hotplug disabled.

Regards
Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Mike Lothian
On Wed, 24 Jan 2018 at 08:46 Greg KH  wrote:
>
> >
> > Hi
> >
> > PCI Hotplug and ACPI Hotplug are disabled on my system due to bug
> > https://bugzilla.kernel.org/show_bug.cgi?id=112121 where by my NVMe
> > drive would disappear from the system after suspend making my system
> > inoperable
>
> Ah, well that explains why this doesn't work, you need that in order to
> have the PCI device show back up again when you plug a device in.
>
> > I tried enabling PCI Hotplug, PCIE Hotplug and ACPI Hotplug - the
> > USB-C device still didn't appear when plugged in
>
> Really?  No kernel messages at all when you plug a device in?
>
> > The suspend bug still remained and when trying with
> > CONFIG_ACPI_PCI_SLOT the whole system refused to boot (unable to find
> > systemd), I'm guessing the hard drive didn't enumerate
>
> It sounds like your machine has a lot of ACPI issues :(
>
> greg k-h


Hi

I've played around with this some more, if the device is connected
after boot nothing shows when it's plugged in

I did however get more messages out when I disconnected the device
after booting with it (see attached)

Regards

Mike


dmesg.extra.info.xz
Description: application/xz


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Greg KH
On Wed, Jan 24, 2018 at 08:39:10AM +, Mike Lothian wrote:
> On Wed, 24 Jan 2018 at 04:07 Greg KH  wrote:
> >
> > On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> > > On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> > > >
> > > > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > > > Hi
> > > > >
> > > > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > > > informed by Greg bugs should be raised on the mailing list not in
> > > > > bugzilla
> > > > >
> > > > > So USB-C devices only show up in dmesg or for use if they are
> > > > > connected during boot
> > > > >
> > > > > Once booted and the device is disconnected the following message
> > > > > appears in the dmesg:
> > > > >
> > > > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > > > responding, assume dead
> > > > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > > > >
> > > > > No further connections or disconnections display anything further in
> > > > > the dmesg, the device works fine if connected via USB-A
> > > > >
> > > > > I've witnessed this behaviour since getting the laptop at the end of
> > > > > 2015 so this isn't a regression
> > > >
> > > > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > > > past on lots of different laptops but was always resolved by the BIOS
> > > > update (the latest one for mine also updates the xhci controller as
> > > > well.)
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > >
> > > Hi
> > >
> > > I've applied all BIOS updates for my laptop including the pulled one
> > > for Spectre/Meltdown & ME bugs the other week
> > > http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> > >
> > > If it helps, I don't have this issue in Windows but I rarely have it 
> > > booted
> > >
> > > I thought it might have something to do with an ACPI failure (see bug
> > > https://bugzilla.kernel.org/show_bug.cgi?id=198051)
> >
> > I can't see web links at the moment, but are you sure you have PCI
> > hotplug enabled in your kernel?  Same for ACPI PCI hotplug?  That's how
> > the controller usually shows up in the system, and that's a PCI issue,
> > not a USB issue.
> >
> > thanks,
> >
> > greg k-h
> 
> Hi
> 
> PCI Hotplug and ACPI Hotplug are disabled on my system due to bug
> https://bugzilla.kernel.org/show_bug.cgi?id=112121 where by my NVMe
> drive would disappear from the system after suspend making my system
> inoperable

Ah, well that explains why this doesn't work, you need that in order to
have the PCI device show back up again when you plug a device in.

> I tried enabling PCI Hotplug, PCIE Hotplug and ACPI Hotplug - the
> USB-C device still didn't appear when plugged in

Really?  No kernel messages at all when you plug a device in?

> The suspend bug still remained and when trying with
> CONFIG_ACPI_PCI_SLOT the whole system refused to boot (unable to find
> systemd), I'm guessing the hard drive didn't enumerate

It sounds like your machine has a lot of ACPI issues :(

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-24 Thread Mike Lothian
On Wed, 24 Jan 2018 at 04:07 Greg KH  wrote:
>
> On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> > On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> > >
> > > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > > Hi
> > > >
> > > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > > informed by Greg bugs should be raised on the mailing list not in
> > > > bugzilla
> > > >
> > > > So USB-C devices only show up in dmesg or for use if they are
> > > > connected during boot
> > > >
> > > > Once booted and the device is disconnected the following message
> > > > appears in the dmesg:
> > > >
> > > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > > responding, assume dead
> > > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > > >
> > > > No further connections or disconnections display anything further in
> > > > the dmesg, the device works fine if connected via USB-A
> > > >
> > > > I've witnessed this behaviour since getting the laptop at the end of
> > > > 2015 so this isn't a regression
> > >
> > > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > > past on lots of different laptops but was always resolved by the BIOS
> > > update (the latest one for mine also updates the xhci controller as
> > > well.)
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> >
> > Hi
> >
> > I've applied all BIOS updates for my laptop including the pulled one
> > for Spectre/Meltdown & ME bugs the other week
> > http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> >
> > If it helps, I don't have this issue in Windows but I rarely have it booted
> >
> > I thought it might have something to do with an ACPI failure (see bug
> > https://bugzilla.kernel.org/show_bug.cgi?id=198051)
>
> I can't see web links at the moment, but are you sure you have PCI
> hotplug enabled in your kernel?  Same for ACPI PCI hotplug?  That's how
> the controller usually shows up in the system, and that's a PCI issue,
> not a USB issue.
>
> thanks,
>
> greg k-h

Hi

PCI Hotplug and ACPI Hotplug are disabled on my system due to bug
https://bugzilla.kernel.org/show_bug.cgi?id=112121 where by my NVMe
drive would disappear from the system after suspend making my system
inoperable

I tried enabling PCI Hotplug, PCIE Hotplug and ACPI Hotplug - the
USB-C device still didn't appear when plugged in

The suspend bug still remained and when trying with
CONFIG_ACPI_PCI_SLOT the whole system refused to boot (unable to find
systemd), I'm guessing the hard drive didn't enumerate

Regards

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-23 Thread Greg KH
On Tue, Jan 23, 2018 at 05:43:27PM +, Mike Lothian wrote:
> On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
> >
> > On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > > Hi
> > >
> > > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > > informed by Greg bugs should be raised on the mailing list not in
> > > bugzilla
> > >
> > > So USB-C devices only show up in dmesg or for use if they are
> > > connected during boot
> > >
> > > Once booted and the device is disconnected the following message
> > > appears in the dmesg:
> > >
> > > [  100.814687] usb 3-1: USB disconnect, device number 3
> > > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > > responding, assume dead
> > > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> > >
> > > No further connections or disconnections display anything further in
> > > the dmesg, the device works fine if connected via USB-A
> > >
> > > I've witnessed this behaviour since getting the laptop at the end of
> > > 2015 so this isn't a regression
> >
> > Is there a BIOS update for the laptop?  This has been seen a lot in the
> > past on lots of different laptops but was always resolved by the BIOS
> > update (the latest one for mine also updates the xhci controller as
> > well.)
> >
> > thanks,
> >
> > greg k-h
> 
> 
> Hi
> 
> I've applied all BIOS updates for my laptop including the pulled one
> for Spectre/Meltdown & ME bugs the other week
> http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> 
> If it helps, I don't have this issue in Windows but I rarely have it booted
> 
> I thought it might have something to do with an ACPI failure (see bug
> https://bugzilla.kernel.org/show_bug.cgi?id=198051)

I can't see web links at the moment, but are you sure you have PCI
hotplug enabled in your kernel?  Same for ACPI PCI hotplug?  That's how
the controller usually shows up in the system, and that's a PCI issue,
not a USB issue.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-23 Thread Mike Lothian
>
> Hi Mike,
>
> You did not specify what provides the USB-C port.
>
> I suppose that your USB-C port is actually a Thunderbolt 3 port from an Intel 
> controller.
>
> What you describe is a well known bug that affects all Thunderbolt 3 ports 
> and this bug has always existed in Linux, including until now.
>
>
> I also have a Dell laptop, some Intel NUCs and some ATX motherboards with 
> Thunderbolt 3 ports, all of which have this bug.
>
> On the other hand, all the USB C ports that I have seen, which are connected 
> to other USB controllers, e.g. from ASMedia, those work normally, they do not 
> have this bug.
>
> Best regards !


Hi

I'm not sure what chip is in the laptop, most of the time it doesn't
show up at all

Is there a bug report I can follow? Is this issue even being worked on?

Thanks

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-23 Thread Adrian Bocaniciu
On Tue, 23 Jan 2018 17:43:27 +
Mike Lothian  wrote:

> Hi
> 
> I've applied all BIOS updates for my laptop including the pulled one
> for Spectre/Meltdown & ME bugs the other week
> http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers
> 
> If it helps, I don't have this issue in Windows but I rarely have it booted
> 
> I thought it might have something to do with an ACPI failure (see bug
> https://bugzilla.kernel.org/show_bug.cgi?id=198051)
> 
> Regards
> 
> Mike
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


Hi Mike,

You did not specify what provides the USB-C port.

I suppose that your USB-C port is actually a Thunderbolt 3 port from an Intel 
controller.

What you describe is a well known bug that affects all Thunderbolt 3 ports and 
this bug has always existed in Linux, including until now.


I also have a Dell laptop, some Intel NUCs and some ATX motherboards with 
Thunderbolt 3 ports, all of which have this bug.

On the other hand, all the USB C ports that I have seen, which are connected to 
other USB controllers, e.g. from ASMedia, those work normally, they do not have 
this bug.

Best regards !









--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-23 Thread Mike Lothian
On Tue, 23 Jan 2018 at 17:30 Greg KH  wrote:
>
> On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> > Hi
> >
> > I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> > informed by Greg bugs should be raised on the mailing list not in
> > bugzilla
> >
> > So USB-C devices only show up in dmesg or for use if they are
> > connected during boot
> >
> > Once booted and the device is disconnected the following message
> > appears in the dmesg:
> >
> > [  100.814687] usb 3-1: USB disconnect, device number 3
> > [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> > responding, assume dead
> > [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> >
> > No further connections or disconnections display anything further in
> > the dmesg, the device works fine if connected via USB-A
> >
> > I've witnessed this behaviour since getting the laptop at the end of
> > 2015 so this isn't a regression
>
> Is there a BIOS update for the laptop?  This has been seen a lot in the
> past on lots of different laptops but was always resolved by the BIOS
> update (the latest one for mine also updates the xhci controller as
> well.)
>
> thanks,
>
> greg k-h


Hi

I've applied all BIOS updates for my laptop including the pulled one
for Spectre/Meltdown & ME bugs the other week
http://www.dell.com/support/home/uk/en/ukdhs1/product-support/servicetag/8k5w662/drivers

If it helps, I don't have this issue in Windows but I rarely have it booted

I thought it might have something to do with an ACPI failure (see bug
https://bugzilla.kernel.org/show_bug.cgi?id=198051)

Regards

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: USB-C Devices only show up if connected at boot

2018-01-23 Thread Greg KH
On Tue, Jan 23, 2018 at 05:12:03PM +, Mike Lothian wrote:
> Hi
> 
> I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
> informed by Greg bugs should be raised on the mailing list not in
> bugzilla
> 
> So USB-C devices only show up in dmesg or for use if they are
> connected during boot
> 
> Once booted and the device is disconnected the following message
> appears in the dmesg:
> 
> [  100.814687] usb 3-1: USB disconnect, device number 3
> [  100.882840] xhci_hcd :39:00.0: xHCI host controller not
> responding, assume dead
> [  100.882843] xhci_hcd :39:00.0: HC died; cleaning up
> 
> No further connections or disconnections display anything further in
> the dmesg, the device works fine if connected via USB-A
> 
> I've witnessed this behaviour since getting the laptop at the end of
> 2015 so this isn't a regression

Is there a BIOS update for the laptop?  This has been seen a lot in the
past on lots of different laptops but was always resolved by the BIOS
update (the latest one for mine also updates the xhci controller as
well.)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


USB-C Devices only show up if connected at boot

2018-01-23 Thread Mike Lothian
Hi

I raised https://bugzilla.kernel.org/show_bug.cgi?id=198557 but was
informed by Greg bugs should be raised on the mailing list not in
bugzilla

So USB-C devices only show up in dmesg or for use if they are
connected during boot

Once booted and the device is disconnected the following message
appears in the dmesg:

[  100.814687] usb 3-1: USB disconnect, device number 3
[  100.882840] xhci_hcd :39:00.0: xHCI host controller not
responding, assume dead
[  100.882843] xhci_hcd :39:00.0: HC died; cleaning up

No further connections or disconnections display anything further in
the dmesg, the device works fine if connected via USB-A

I've witnessed this behaviour since getting the laptop at the end of
2015 so this isn't a regression

The full dmesg can be seen here
https://bugzilla.kernel.org/attachment.cgi?id=273801

Thanks for any help you can offer

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html