`ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-15 Thread Paul Menzel

Dear Linux folks,


Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian 
Sid/unstable.


```
[…]
[0.440240] usb: port power management may be unreliable
[0.441358] usbcore: registered new interface driver usb-storage
[0.441367] usbcore: registered new interface driver usbserial_generic
[0.441369] usbserial: USB Serial support registered for generic
[0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, 
got 0x0

[0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
[…]
```

1.  Are the ioremap and ucsi_acpi error related or is a separate report 
needed?

2.  Do you know the reason for the ucsi_acpi error?


Kind regards,

Paul
[0.00] Linux version 4.17.0-rc5-9-g1150fc87af6f (root@eed5a4f78c51) 
(gcc version 7.3.0 (Debian 7.3.0-19)) #2 SMP Tue May 15 12:47:39 UTC 2018
[0.00] Command line: BOOT_IMAGE=/vmlinuz-4.17.0-rc5-9-g1150fc87af6f 
root=UUID=b8b2f3b6-8c20-4c2a-8895-aa2768866674 ro quiet noisapnp 
cryptomgr.notests mem_sleep_default=deep
[0.00] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point 
registers'
[0.00] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[0.00] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[0.00] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[0.00] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[0.00] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[0.00] x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
[0.00] x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
[0.00] x86/fpu: Enabled xstate features 0x1f, context size is 960 
bytes, using 'compacted' format.
[0.00] e820: BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x00057fff] usable
[0.00] BIOS-e820: [mem 0x00058000-0x00058fff] reserved
[0.00] BIOS-e820: [mem 0x00059000-0x0009dfff] usable
[0.00] BIOS-e820: [mem 0x0009e000-0x000f] reserved
[0.00] BIOS-e820: [mem 0x0010-0x2d6f7fff] usable
[0.00] BIOS-e820: [mem 0x2d6f8000-0x2d6f8fff] ACPI NVS
[0.00] BIOS-e820: [mem 0x2d6f9000-0x2d6f9fff] reserved
[0.00] BIOS-e820: [mem 0x2d6fa000-0x3ecf4fff] usable
[0.00] BIOS-e820: [mem 0x3ecf5000-0x3f0b2fff] reserved
[0.00] BIOS-e820: [mem 0x3f0b3000-0x3f0f] ACPI data
[0.00] BIOS-e820: [mem 0x3f10-0x3f7b7fff] ACPI NVS
[0.00] BIOS-e820: [mem 0x3f7b8000-0x3ff26fff] reserved
[0.00] BIOS-e820: [mem 0x3ff27000-0x3fffefff] type 20
[0.00] BIOS-e820: [mem 0x3000-0x3fff] usable
[0.00] BIOS-e820: [mem 0x4000-0x47ff] reserved
[0.00] BIOS-e820: [mem 0x4800-0x48df] usable
[0.00] BIOS-e820: [mem 0x48e0-0x4f7f] reserved
[0.00] BIOS-e820: [mem 0xe000-0xefff] reserved
[0.00] BIOS-e820: [mem 0xfe00-0xfe010fff] reserved
[0.00] BIOS-e820: [mem 0xfec0-0xfec00fff] reserved
[0.00] BIOS-e820: [mem 0xfee0-0xfee00fff] reserved
[0.00] BIOS-e820: [mem 0xff00-0x] reserved
[0.00] BIOS-e820: [mem 0x0001-0x0004ae7f] usable
[0.00] NX (Execute Disable) protection: active
[0.00] efi: EFI v2.40 by American Megatrends
[0.00] efi:  ACPI=0x3f0c3000  ACPI 2.0=0x3f0c3000  SMBIOS=0xf  
SMBIOS 3.0=0xf0020  ESRT=0x3fdd9018  MEMATTR=0x3c2bb018 
[0.00] SMBIOS 3.0.0 present.
[0.00] DMI: Dell Inc. XPS 13 9370/0F6P3V, BIOS 1.2.1 02/21/2018
[0.00] e820: update [mem 0x-0x0fff] usable ==> reserved
[0.00] e820: remove [mem 0x000a-0x000f] usable
[0.00] e820: last_pfn = 0x4ae800 max_arch_pfn = 0x4
[0.00] MTRR default type: write-back
[0.00] MTRR fixed ranges enabled:
[0.00]   0-9 write-back
[0.00]   A-B uncachable
[0.00]   C-F write-protect
[0.00] MTRR variable ranges enabled:
[0.00]   0 base 008000 mask 7F8000 uncachable
[0.00]   1 base 006000 mask 7FE000 uncachable
[0.00]   2 base 005000 mask 7FF000 uncachable
[0.00]   3 base 004C00 mask 7FFC00 uncachable
[0.00]   4 base 004B00 mask 7FFF00 uncachable
[0.00]   5 disabled
[0.00]   6 disabled
[0.00]   7 disabled
[0.00]   8 disabled
[0.00]   9 disabled
[0.00] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[0.00] e820: last_pfn = 0x48e00 max_arch_pfn = 0x4

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-15 Thread Greg KH
On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> Dear Linux folks,
> 
> 
> Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
> Sid/unstable.
> 
> ```
> […]
> [0.440240] usb: port power management may be unreliable
> [0.441358] usbcore: registered new interface driver usb-storage
> [0.441367] usbcore: registered new interface driver usbserial_generic
> [0.441369] usbserial: USB Serial support registered for generic
> [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, got
> 0x0
> [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> […]
> ```
> 
> 1.  Are the ioremap and ucsi_acpi error related or is a separate report
> needed?

The ioremap error is what causes ucsi_acpi to fail the probe call (-12
is "out of memory".)

> 2.  Do you know the reason for the ucsi_acpi error?

the call to ioremap failed.

Does this device really have a working typec connector?  Does normal USB
devices work with it?

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: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-15 Thread Paul Menzel

Dear Greg,


As always, thank you for the prompt response.


On 05/15/18 18:00, Greg KH wrote:

On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:



Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
Sid/unstable.

```
[…]
[0.440240] usb: port power management may be unreliable
[0.441358] usbcore: registered new interface driver usb-storage
[0.441367] usbcore: registered new interface driver usbserial_generic
[0.441369] usbserial: USB Serial support registered for generic
[0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, got
0x0
[0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
[…]
```

1.  Are the ioremap and ucsi_acpi error related or is a separate report
needed?


The ioremap error is what causes ucsi_acpi to fail the probe call (-12
is "out of memory".)


2.  Do you know the reason for the ucsi_acpi error?


the call to ioremap failed.

Does this device really have a working typec connector?


Just to avoid misunderstandings, no device was connected to the laptop 
during my test.


But, from other boots, the Dell docking station TB16 kind of works with 
it, so I’d say the USB Type-C connector is working.



Does normal USB devices work with it?


Sorry for being ignorant, but could you please tell me what normal USB 
devices are?



Kind regards,

Paul



smime.p7s
Description: S/MIME Cryptographic Signature


Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Greg KH
On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> Dear Greg,
> 
> 
> As always, thank you for the prompt response.
> 
> 
> On 05/15/18 18:00, Greg KH wrote:
> > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> 
> > > Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
> > > Sid/unstable.
> > > 
> > > ```
> > > […]
> > > [0.440240] usb: port power management may be unreliable
> > > [0.441358] usbcore: registered new interface driver usb-storage
> > > [0.441367] usbcore: registered new interface driver usbserial_generic
> > > [0.441369] usbserial: USB Serial support registered for generic
> > > [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, got
> > > 0x0
> > > [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> > > […]
> > > ```
> > > 
> > > 1.  Are the ioremap and ucsi_acpi error related or is a separate report
> > > needed?
> > 
> > The ioremap error is what causes ucsi_acpi to fail the probe call (-12
> > is "out of memory".)
> > 
> > > 2.  Do you know the reason for the ucsi_acpi error?
> > 
> > the call to ioremap failed.
> > 
> > Does this device really have a working typec connector?
> 
> Just to avoid misunderstandings, no device was connected to the laptop
> during my test.
> 
> But, from other boots, the Dell docking station TB16 kind of works with it,
> so I’d say the USB Type-C connector is working.

Ok, good, this might just be the acpi tables not set up properly for
this type of connection.  Odd that the tables show it should work,
Heikki should know more about this.

> > Does normal USB devices work with it?
> 
> Sorry for being ignorant, but could you please tell me what normal USB
> devices are?

If you plug a USB typeC device into this port, does it work?  A docking
station is a little bit "different" in that it usually uses the PCIe
connection, not the USB connectors.  Or at least that's how my Dell
docking station works last time I tried it[1]

thanks,

greg k-h

[1] When the power supply for the docking station is bigger than the
laptop's power supply, you begin to wonder what is in that thing and
stop using it after a while...
--
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: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Heikki Krogerus
Hi,

On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:
> On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> > Dear Greg,
> > 
> > 
> > As always, thank you for the prompt response.
> > 
> > 
> > On 05/15/18 18:00, Greg KH wrote:
> > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> > 
> > > > Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
> > > > Sid/unstable.
> > > > 
> > > > ```
> > > > [???]
> > > > [0.440240] usb: port power management may be unreliable
> > > > [0.441358] usbcore: registered new interface driver usb-storage
> > > > [0.441367] usbcore: registered new interface driver 
> > > > usbserial_generic
> > > > [0.441369] usbserial: USB Serial support registered for generic
> > > > [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, 
> > > > got
> > > > 0x0
> > > > [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> > > > [???]
> > > > ```
> > > > 
> > > > 1.  Are the ioremap and ucsi_acpi error related or is a separate report
> > > > needed?
> > > 
> > > The ioremap error is what causes ucsi_acpi to fail the probe call (-12
> > > is "out of memory".)
> > > 
> > > > 2.  Do you know the reason for the ucsi_acpi error?
> > > 
> > > the call to ioremap failed.
> > > 
> > > Does this device really have a working typec connector?
> > 
> > Just to avoid misunderstandings, no device was connected to the laptop
> > during my test.
> > 
> > But, from other boots, the Dell docking station TB16 kind of works with it,
> > so I???d say the USB Type-C connector is working.
> 
> Ok, good, this might just be the acpi tables not set up properly for
> this type of connection.  Odd that the tables show it should work,
> Heikki should know more about this.

The firmware probable has not implemented UCSI on this board. I think
Dell always supplies the ACPI device node for UCSI in their acpi
tables. The _STA method in that device node is then used to inform the
OS if the interface exists or not. The return value for _STA comes
probable from BIOS, so this is most likely a BIOS problem.

Please note that UCSI will only supply status information to the
operating system, so the USB Type-C ports will function normally even
without it. The ports are handled in firmware on these platforms.

Paul, do you have the latest BIOS?


> > > Does normal USB devices work with it?
> > 
> > Sorry for being ignorant, but could you please tell me what normal USB
> > devices are?
> 
> If you plug a USB typeC device into this port, does it work?  A docking
> station is a little bit "different" in that it usually uses the PCIe
> connection, not the USB connectors.  Or at least that's how my Dell
> docking station works last time I tried it[1]
> 
> thanks,
> 
> greg k-h
> 
> [1] When the power supply for the docking station is bigger than the
> laptop's power supply, you begin to wonder what is in that thing and
> stop using it after a while...

Br,

-- 
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: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Paul Menzel

Dear Heikki,


On 05/16/18 13:58, Heikki Krogerus wrote:


On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:

On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:



On 05/15/18 18:00, Greg KH wrote:

On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:



Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
Sid/unstable.

```
[???]
[0.440240] usb: port power management may be unreliable
[0.441358] usbcore: registered new interface driver usb-storage
[0.441367] usbcore: registered new interface driver usbserial_generic
[0.441369] usbserial: USB Serial support registered for generic
[0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, got
0x0
[0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
[???]
```

1.  Are the ioremap and ucsi_acpi error related or is a separate report
needed?


The ioremap error is what causes ucsi_acpi to fail the probe call (-12
is "out of memory".)


2.  Do you know the reason for the ucsi_acpi error?


the call to ioremap failed.

Does this device really have a working typec connector?


Just to avoid misunderstandings, no device was connected to the laptop
during my test.

But, from other boots, the Dell docking station TB16 kind of works with it,
so I???d say the USB Type-C connector is working.


Ok, good, this might just be the acpi tables not set up properly for
this type of connection.  Odd that the tables show it should work,
Heikki should know more about this.


The firmware probable has not implemented UCSI on this board. I think
Dell always supplies the ACPI device node for UCSI in their acpi
tables. The _STA method in that device node is then used to inform the
OS if the interface exists or not. The return value for _STA comes
probable from BIOS, so this is most likely a BIOS problem.

Please note that UCSI will only supply status information to the
operating system, so the USB Type-C ports will function normally even
without it. The ports are handled in firmware on these platforms.

Paul, do you have the latest BIOS?


I had the latest firmware

> DMI: Dell Inc. XPS 13 9370/0F6P3V, BIOS 1.2.1 02/21/2018

until today, when 1.3.2 with the changes below was released [1].

Mario, it’d be great, if the Dell firmware team could start testing with 
Linux releases too to find such issues. Mario, could you please also 
check internally if the Dell firmware team is aware of the issues and 
can incorporate a fix. (I really wish the firmware would be free 
software, so that these issues could be fixed ourselves.)



Fixes & Enhancements
Fixes:
- Battery can't charge over 55%
- Incorrect Ctrl+Alt+Del log on message with HID Event filter driver
- Platform can't boot to the PXE boot environment in Legacy mode via DA300
- Correct the flash utility string typo
- PCIE Card error shows in Support Assist Tool
- Fail 'PCR1 changed' msg prompt in CMD during running TPM PCR cycles in OS
- The PCI-to-PCI Bridge will lost while connecting to Dell Thunderbolt Dock TB18
- Adjust fan speed
- Skips keys when typing fast

Enhancements:
- None


It’ll take me up to some days to get my hands on the device again. But 
the update should be easy enough thanks to Dell supporting fwupd with 
UEFI Capsule and uploading their updates to the Linux Vendor Firmware 
Service [2].



Kind regards,

Paul


[1] 
http://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverId=VF23P

[2] https://fwupd.org/



smime.p7s
Description: S/MIME Cryptographic Signature


RE: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Mario.Limonciello


> -Original Message-
> From: Paul Menzel [mailto:pmenzel+linux-...@molgen.mpg.de]
> Sent: Wednesday, May 16, 2018 7:36 AM
> To: Heikki Krogerus
> Cc: Greg KH; linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; 
> Limonciello,
> Mario
> Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell 
> XPS 13
> 9370
> 
> Dear Heikki,
> 
> 
> On 05/16/18 13:58, Heikki Krogerus wrote:
> 
> > On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:
> >> On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> 
> >>> On 05/15/18 18:00, Greg KH wrote:
> >>>> On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> >>>
> >>>>> Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian
> >>>>> Sid/unstable.
> >>>>>
> >>>>> ```
> >>>>> [???]
> >>>>> [0.440240] usb: port power management may be unreliable
> >>>>> [0.441358] usbcore: registered new interface driver usb-storage
> >>>>> [0.441367] usbcore: registered new interface driver 
> >>>>> usbserial_generic
> >>>>> [0.441369] usbserial: USB Serial support registered for generic
> >>>>> [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 0x2, 
> >>>>> got
> >>>>> 0x0
> >>>>> [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> >>>>> [???]
> >>>>> ```
> >>>>>
> >>>>> 1.  Are the ioremap and ucsi_acpi error related or is a separate report
> >>>>> needed?
> >>>>
> >>>> The ioremap error is what causes ucsi_acpi to fail the probe call (-12
> >>>> is "out of memory".)
> >>>>
> >>>>> 2.  Do you know the reason for the ucsi_acpi error?
> >>>>
> >>>> the call to ioremap failed.
> >>>>
> >>>> Does this device really have a working typec connector?
> >>>
> >>> Just to avoid misunderstandings, no device was connected to the laptop
> >>> during my test.
> >>>
> >>> But, from other boots, the Dell docking station TB16 kind of works with 
> >>> it,
> >>> so I???d say the USB Type-C connector is working.
> >>
> >> Ok, good, this might just be the acpi tables not set up properly for
> >> this type of connection.  Odd that the tables show it should work,
> >> Heikki should know more about this.
> >
> > The firmware probable has not implemented UCSI on this board. I think
> > Dell always supplies the ACPI device node for UCSI in their acpi
> > tables. The _STA method in that device node is then used to inform the
> > OS if the interface exists or not. The return value for _STA comes
> > probable from BIOS, so this is most likely a BIOS problem.
> >
> > Please note that UCSI will only supply status information to the
> > operating system, so the USB Type-C ports will function normally even
> > without it. The ports are handled in firmware on these platforms.
> >
> > Paul, do you have the latest BIOS?
> 
> I had the latest firmware
> 
>  > DMI: Dell Inc. XPS 13 9370/0F6P3V, BIOS 1.2.1 02/21/2018
> 
> until today, when 1.3.2 with the changes below was released [1].
> 
> Mario, it’d be great, if the Dell firmware team could start testing with
> Linux releases too to find such issues. 

Paul,

The team that sustains platforms does perform Linux testing, but it's not 
centered around latest upstream kernel and it's also functionally based (not
reviewing dmesg for new kernel errors) so there are changes in 
expectations (viewed as regressions) as you find from time to time.

> Mario, could you please also
> check internally if the Dell firmware team is aware of the issues and
> can incorporate a fix. 

Sure I'll inquire internally.

> > Fixes & Enhancements
> > Fixes:
> > - Battery can't charge over 55%
> > - Incorrect Ctrl+Alt+Del log on message with HID Event filter driver
> > - Platform can't boot to the PXE boot environment in Legacy mode via DA300
> > - Correct the flash utility string typo
> > - PCIE Card error shows in Support Assist Tool
> > - Fail 'PCR1 changed' msg prompt in CMD during running TPM PCR cycles in OS
> > - The PCI-to-PCI Bridge will lost while connecting to Dell Thunderbolt Dock 
> > TB18
> > - Adjust fan speed
> > - Skips keys when typing fast
> >
> > Enhancements:
> > - None
> 
> It’ll take me up to some days to get my hands on the device again. But
> the update should be easy enough thanks to Dell supporting fwupd with
> UEFI Capsule and uploading their updates to the Linux Vendor Firmware
> Service [2].
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> [1]
> http://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverId=VF23P
> [2] https://fwupd.org/

N�r��yb�X��ǧv�^�)޺{.n�+{��^n�r���z���h�&���G���h�(�階�ݢj"���m��z�ޖ���f���h���~�m�

RE: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Mario.Limonciello


> -Original Message-
> From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> Sent: Wednesday, May 16, 2018 6:58 AM
> To: Greg KH; Paul Menzel
> Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; Limonciello, 
> Mario
> Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell 
> XPS 13
> 9370
> 
> Hi,
> 
> On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:
> > On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> > > Dear Greg,
> > >
> > >
> > > As always, thank you for the prompt response.
> > >
> > >
> > > On 05/15/18 18:00, Greg KH wrote:
> > > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> > >
> > > > > Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with 
> > > > > Debian
> > > > > Sid/unstable.
> > > > >
> > > > > ```
> > > > > [???]
> > > > > [0.440240] usb: port power management may be unreliable
> > > > > [0.441358] usbcore: registered new interface driver usb-storage
> > > > > [0.441367] usbcore: registered new interface driver 
> > > > > usbserial_generic
> > > > > [0.441369] usbserial: USB Serial support registered for generic
> > > > > [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 
> > > > > 0x2, got
> > > > > 0x0
> > > > > [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> > > > > [???]
> > > > > ```
> > > > >
> > > > > 1.  Are the ioremap and ucsi_acpi error related or is a separate 
> > > > > report
> > > > > needed?
> > > >
> > > > The ioremap error is what causes ucsi_acpi to fail the probe call (-12
> > > > is "out of memory".)
> > > >
> > > > > 2.  Do you know the reason for the ucsi_acpi error?
> > > >
> > > > the call to ioremap failed.
> > > >
> > > > Does this device really have a working typec connector?
> > >
> > > Just to avoid misunderstandings, no device was connected to the laptop
> > > during my test.
> > >
> > > But, from other boots, the Dell docking station TB16 kind of works with 
> > > it,
> > > so I???d say the USB Type-C connector is working.
> >
> > Ok, good, this might just be the acpi tables not set up properly for
> > this type of connection.  Odd that the tables show it should work,
> > Heikki should know more about this.
> 
> The firmware probable has not implemented UCSI on this board. I think
> Dell always supplies the ACPI device node for UCSI in their acpi
> tables. The _STA method in that device node is then used to inform the
> OS if the interface exists or not. The return value for _STA comes
> probable from BIOS, so this is most likely a BIOS problem.

Heikki,

I confirmed with internal team that UCSI is implemented on XPS 9370
and was confirmed to be working properly with Windows 10 RS2+.

The reason that _STA is responding on this device node now but wasn't
previously is it wasn't exposed in Linux until 4.16 when the Win 10 RS2
OSI string started to respond.

Intel should internally have some XPS 9370 you can remotely access if
you would like to poke around ACPI tables some.

> 
> Please note that UCSI will only supply status information to the
> operating system, so the USB Type-C ports will function normally even
> without it. The ports are handled in firmware on these platforms.
> 
> Paul, do you have the latest BIOS?
> 
> 
> > > > Does normal USB devices work with it?
> > >
> > > Sorry for being ignorant, but could you please tell me what normal USB
> > > devices are?
> >
> > If you plug a USB typeC device into this port, does it work?  A docking
> > station is a little bit "different" in that it usually uses the PCIe
> > connection, not the USB connectors.  Or at least that's how my Dell
> > docking station works last time I tried it[1]

I think the best description here is "Non-Thunderbolt" USB type C device.
Some examples:
There are Dell docking stations with Thunderbolt (TB16) or without (WD15).

You can also pick up little dongles for ethernet or combo dongles for
ethernet/VGA/HDMI/etc.

Anything non-Thunderbolt would satisfy what Greg was looking for.

> >
> > thanks,
> >
> > greg k-h
> >
> > [1] When the power supply for the docking station is bigger than the
> > laptop's power supply, you begin to wonder what is in that thing and
> > stop using it after a while...

Mostly to satisfy letting the docking station work with beefier machines and
still deliver power up to what USB PD will negotiate.
I think they can actually run with smaller power supplies but you will need
something "a little" bigger than regular system power supply to power the
dock and system both.

--
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: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Greg KH
On Wed, May 16, 2018 at 04:13:31PM +, mario.limoncie...@dell.com wrote:
> > > [1] When the power supply for the docking station is bigger than the
> > > laptop's power supply, you begin to wonder what is in that thing and
> > > stop using it after a while...
> 
> Mostly to satisfy letting the docking station work with beefier machines and
> still deliver power up to what USB PD will negotiate.
> I think they can actually run with smaller power supplies but you will need
> something "a little" bigger than regular system power supply to power the
> dock and system both.

Given the date of my docking station (2+ years old), I would be _amazed_
if it could do USB PD.  But I should go try it, my existing Dell laptop
doesn't support that, but I have an Acer here, along with some
chromebooks that do.

I guess I need to go get the latest Dell laptop, "just to test" with :)

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: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-17 Thread Heikki Krogerus
Hi,

On Wed, May 16, 2018 at 04:13:31PM +, mario.limoncie...@dell.com wrote:
> 
> 
> > -Original Message-
> > From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> > Sent: Wednesday, May 16, 2018 6:58 AM
> > To: Greg KH; Paul Menzel
> > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; Limonciello, 
> > Mario
> > Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell 
> > XPS 13
> > 9370
> > 
> > Hi,
> > 
> > On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:
> > > On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> > > > Dear Greg,
> > > >
> > > >
> > > > As always, thank you for the prompt response.
> > > >
> > > >
> > > > On 05/15/18 18:00, Greg KH wrote:
> > > > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> > > >
> > > > > > Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with 
> > > > > > Debian
> > > > > > Sid/unstable.
> > > > > >
> > > > > > ```
> > > > > > [???]
> > > > > > [0.440240] usb: port power management may be unreliable
> > > > > > [0.441358] usbcore: registered new interface driver usb-storage
> > > > > > [0.441367] usbcore: registered new interface driver 
> > > > > > usbserial_generic
> > > > > > [0.441369] usbserial: USB Serial support registered for generic
> > > > > > [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 
> > > > > > 0x2, got
> > > > > > 0x0
> > > > > > [0.441518] ucsi_acpi: probe of USBC000:00 failed with error -12
> > > > > > [???]
> > > > > > ```
> > > > > >
> > > > > > 1.  Are the ioremap and ucsi_acpi error related or is a separate 
> > > > > > report
> > > > > > needed?
> > > > >
> > > > > The ioremap error is what causes ucsi_acpi to fail the probe call (-12
> > > > > is "out of memory".)
> > > > >
> > > > > > 2.  Do you know the reason for the ucsi_acpi error?
> > > > >
> > > > > the call to ioremap failed.
> > > > >
> > > > > Does this device really have a working typec connector?
> > > >
> > > > Just to avoid misunderstandings, no device was connected to the laptop
> > > > during my test.
> > > >
> > > > But, from other boots, the Dell docking station TB16 kind of works with 
> > > > it,
> > > > so I???d say the USB Type-C connector is working.
> > >
> > > Ok, good, this might just be the acpi tables not set up properly for
> > > this type of connection.  Odd that the tables show it should work,
> > > Heikki should know more about this.
> > 
> > The firmware probable has not implemented UCSI on this board. I think
> > Dell always supplies the ACPI device node for UCSI in their acpi
> > tables. The _STA method in that device node is then used to inform the
> > OS if the interface exists or not. The return value for _STA comes
> > probable from BIOS, so this is most likely a BIOS problem.
> 
> Heikki,
> 
> I confirmed with internal team that UCSI is implemented on XPS 9370
> and was confirmed to be working properly with Windows 10 RS2+.

Just to double check: "UCSI was confirmed working properly", so not
"the Type-C ports were confirmed working properly"?

> The reason that _STA is responding on this device node now but wasn't
> previously is it wasn't exposed in Linux until 4.16 when the Win 10 RS2
> OSI string started to respond.

OK.

> Intel should internally have some XPS 9370 you can remotely access if
> you would like to poke around ACPI tables some.

I will try get access to XPS 9370, but with the acpi tables, if
somebody could just send me acpidump, that would be enough:

% acpidump -o xps9370_acpi.dump

> > Please note that UCSI will only supply status information to the
> > operating system, so the USB Type-C ports will function normally even
> > without it. The ports are handled in firmware on these platforms.
> > 
> > Paul, do you have the latest BIOS?
> > 
> > 
> > > > > Does normal USB devices work with it?
> > > >
> > > > Sorry for being ignorant, but could you please tell me what normal US

RE: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-17 Thread Mario.Limonciello
> -Original Message-
> From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> Sent: Thursday, May 17, 2018 4:00 AM
> To: Limonciello, Mario
> Cc: g...@kroah.com; pmenzel+linux-...@molgen.mpg.de; linux-
> u...@vger.kernel.org; linux-ker...@vger.kernel.org
> Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell 
> XPS 13
> 9370
> 
> Hi,
> 
> On Wed, May 16, 2018 at 04:13:31PM +, mario.limoncie...@dell.com wrote:
> >
> >
> > > -Original Message-
> > > From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> > > Sent: Wednesday, May 16, 2018 6:58 AM
> > > To: Greg KH; Paul Menzel
> > > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; Limonciello, 
> > > Mario
> > > Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on 
> > > Dell XPS 13
> > > 9370
> > >
> > > Hi,
> > >
> > > On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote:
> > > > On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote:
> > > > > Dear Greg,
> > > > >
> > > > >
> > > > > As always, thank you for the prompt response.
> > > > >
> > > > >
> > > > > On 05/15/18 18:00, Greg KH wrote:
> > > > > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote:
> > > > >
> > > > > > > Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with 
> > > > > > > Debian
> > > > > > > Sid/unstable.
> > > > > > >
> > > > > > > ```
> > > > > > > [???]
> > > > > > > [0.440240] usb: port power management may be unreliable
> > > > > > > [0.441358] usbcore: registered new interface driver 
> > > > > > > usb-storage
> > > > > > > [0.441367] usbcore: registered new interface driver 
> > > > > > > usbserial_generic
> > > > > > > [0.441369] usbserial: USB Serial support registered for 
> > > > > > > generic
> > > > > > > [0.441383] ioremap error for 0x3f799000-0x3f79a000, requested 
> > > > > > > 0x2,
> got
> > > > > > > 0x0
> > > > > > > [0.441518] ucsi_acpi: probe of USBC000:00 failed with error 
> > > > > > > -12
> > > > > > > [???]
> > > > > > > ```
> > > > > > >
> > > > > > > 1.  Are the ioremap and ucsi_acpi error related or is a separate 
> > > > > > > report
> > > > > > > needed?
> > > > > >
> > > > > > The ioremap error is what causes ucsi_acpi to fail the probe call 
> > > > > > (-12
> > > > > > is "out of memory".)
> > > > > >
> > > > > > > 2.  Do you know the reason for the ucsi_acpi error?
> > > > > >
> > > > > > the call to ioremap failed.
> > > > > >
> > > > > > Does this device really have a working typec connector?
> > > > >
> > > > > Just to avoid misunderstandings, no device was connected to the laptop
> > > > > during my test.
> > > > >
> > > > > But, from other boots, the Dell docking station TB16 kind of works 
> > > > > with it,
> > > > > so I???d say the USB Type-C connector is working.
> > > >
> > > > Ok, good, this might just be the acpi tables not set up properly for
> > > > this type of connection.  Odd that the tables show it should work,
> > > > Heikki should know more about this.
> > >
> > > The firmware probable has not implemented UCSI on this board. I think
> > > Dell always supplies the ACPI device node for UCSI in their acpi
> > > tables. The _STA method in that device node is then used to inform the
> > > OS if the interface exists or not. The return value for _STA comes
> > > probable from BIOS, so this is most likely a BIOS problem.
> >
> > Heikki,
> >
> > I confirmed with internal team that UCSI is implemented on XPS 9370
> > and was confirmed to be working properly with Windows 10 RS2+.
> 
> Just to double check: "UCSI was confirmed working properly", so not
> "the Type-C ports were confirmed working properly"?

UCSI was confirmed working 

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-17 Thread Heikki Krogerus
Hi Mario,

On Thu, May 17, 2018 at 01:01:20PM +, mario.limoncie...@dell.com wrote:
> > > Heikki,
> > >
> > > I confirmed with internal team that UCSI is implemented on XPS 9370
> > > and was confirmed to be working properly with Windows 10 RS2+.
> > 
> > Just to double check: "UCSI was confirmed working properly", so not
> > "the Type-C ports were confirmed working properly"?
> 
> UCSI was confirmed working properly.  FWIW it's a certification requirement
> in Windows.

OK, thank you for confirming that.

> > > The reason that _STA is responding on this device node now but wasn't
> > > previously is it wasn't exposed in Linux until 4.16 when the Win 10 RS2
> > > OSI string started to respond.
> > 
> > OK.
> > 
> > > Intel should internally have some XPS 9370 you can remotely access if
> > > you would like to poke around ACPI tables some.
> > 
> > I will try get access to XPS 9370, but with the acpi tables, if
> > somebody could just send me acpidump, that would be enough:
> > 
> > % acpidump -o xps9370_acpi.dump

I now have the XPS 9370 ACPI tables.


Br,

-- 
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