Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2194220imm; Wed, 16 May 2018 09:14:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoVLL/rsYSIpa/4Y1weKhCykAzKPFl+uKpHNvD4yuvByza08dwSIPwnLTPquWxb9Txwg+3/ X-Received: by 2002:a17:902:aa98:: with SMTP id d24-v6mr1521079plr.185.1526487260562; Wed, 16 May 2018 09:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487260; cv=none; d=google.com; s=arc-20160816; b=cdUQfK/3eAV6os7GI1+TtLwMlTjlKQ6v86CPMbEXMnU4H+OwQVu+F/PzI6Vy4c9fvV kz1X/WJxtdKRR5TyvaPC0xgtvyYldrzBQJM/zfmO5r5xVTS3LxrL144ArQS1449JrJB2 ENV3X2B0vJHCQku5gMDrUcUaVVOZclFuHALo8luXDRuUSnbJ0jV76ku7GXQeBtHimamD Mqa5gBm2JwesrSW76i2xqTvbzKE+WsjZajg4MRwyNMnAa+QIFqY9jF3HoPALsCxfg5CA IolzqcRpzckySqTM2MOUH6aYVx5Q0cA9ja3v9S+DtYWOLkcHVLfpKApPnKkBQ/tA9lIe fyUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=FSSoj38uie2ojoP7pDKO4YZy6WCAwCD9hOUhqvKK/Xk=; b=QomlxwPA3VVMhf4wme3ANA4BDK5wlF77BINnZ0g7MfwOx+S5Svpu3vwriMzmpopq1+ 8p0WlnjxfKQdRCzt2JG5j6r3NLCi12pStXWVxAJAsMTJxlTY9IyfhWEJ4T145rIN0Vjv qu993urq5A7Id9BboZw2e1VQC3TeNJ29gsrWI4gy90v0tAtLvwLVKt1O3UX47ZWloOBR rxqXMYbq5UzBcM1Ti4pqRr4a8OVKlXL701pyb9lkYeB5do9ZAgQ1zGPj93RwFvt8kSYD o9alYdcKdNQJzYoU5fxdX1yfaMK0IlqAcPtPXOxQ9IrO5OPaXXo8AcBzrAVw2LDFrrKt 5ffA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=ogO28Xs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si2931193plf.308.2018.05.16.09.14.05; Wed, 16 May 2018 09:14:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=ogO28Xs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbeEPQNy (ORCPT + 99 others); Wed, 16 May 2018 12:13:54 -0400 Received: from esa2.dell-outbound.iphmx.com ([68.232.149.220]:61013 "EHLO esa2.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953AbeEPQNw (ORCPT ); Wed, 16 May 2018 12:13:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1526487232; x=1558023232; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=7H+89CqBN7J57isq8kaFzZ2M3gjwNNCHTwjFUwuue5s=; b=ogO28Xs6cukgLZaF2uKchcL/bbIyaRVZ7IZqJkjfiJiRnDrRehShzong GGkZDYk89EB11mkx1YNhKajudaS/E9TTWdwsD7orqrLlMogKiagW4tA0o xLnN5c6K/Ubw4drpBLKV1PvtHkvHQoBsn9zu5yfOo6vBs23Hshx5mggKh k=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GOAACTT/xah2Oa6ERcGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYUhKAqLbox0gXmBD5MyFIFkC4RsAoMgITQYAQIBAQEBAQECAQE?= =?us-ascii?q?CEAEBAQoLCQgoL4I1IoJTAQEBAwE6PwwEAgEIEQQBAQEeCQdGAwEFCAIEAQ0FC?= =?us-ascii?q?BaDBYF5CKx6iESCJ4gnghOBD4MMgUGCehwIhWgChxoZLIVdiwUHAoZWh3WBP4N?= =?us-ascii?q?qh1YrhUuKeIElHIILcIMTgiAOCY4XbwGMR4EtgRgBAQ?= X-IPAS-Result: =?us-ascii?q?A2GOAACTT/xah2Oa6ERcGQEBAQEBAQEBAQEBAQcBAQEBAYU?= =?us-ascii?q?hKAqLbox0gXmBD5MyFIFkC4RsAoMgITQYAQIBAQEBAQECAQECEAEBAQoLCQgoL?= =?us-ascii?q?4I1IoJTAQEBAwE6PwwEAgEIEQQBAQEeCQdGAwEFCAIEAQ0FCBaDBYF5CKx6iES?= =?us-ascii?q?CJ4gnghOBD4MMgUGCehwIhWgChxoZLIVdiwUHAoZWh3WBP4Nqh1YrhUuKeIElH?= =?us-ascii?q?IILcIMTgiAOCY4XbwGMR4EtgRgBAQ?= Received: from esa6.dell-outbound2.iphmx.com ([68.232.154.99]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 11:13:51 -0500 From: Received: from ausxipps310.us.dell.com ([143.166.148.211]) by esa6.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 22:13:51 +0600 X-LoopCount0: from 10.166.132.198 X-IronPort-AV: E=Sophos;i="5.49,406,1520917200"; d="scan'208";a="188900518" X-DLP: DLP_GlobalPCIDSS To: , , CC: , Subject: RE: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370 Thread-Topic: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370 Thread-Index: AQHT7FnacruSscNvFUKixxVl6UQN9aQxRuSAgAANFYCAAP+ZAIAAQeIA///t/DA= Date: Wed, 16 May 2018 16:13:31 +0000 Message-ID: References: <9365397f-7206-728e-ee76-146629bfd186@molgen.mpg.de> <20180515160047.GB26720@kroah.com> <69da4aa4-3d4b-0ffc-81ce-500713cd3743@molgen.mpg.de> <20180516080226.GC3536@kroah.com> <20180516115814.GB11469@kuha.fi.intel.com> In-Reply-To: <20180516115814.GB11469@kuha.fi.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Heikki Krogerus [mailto:heikki.krogerus@linux.intel.com] > Sent: Wednesday, May 16, 2018 6:58 AM > To: Greg KH; Paul Menzel > Cc: linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; Limonciello,= Mario > Subject: Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on De= ll XPS 13 > 9370 >=20 > Hi, >=20 > 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-stora= ge > > > > > [ 0.441367] usbcore: registered new interface driver usbserial= _generic > > > > > [ 0.441369] usbserial: USB Serial support registered for gener= ic > > > > > [ 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 lapto= p > > > during my test. > > > > > > But, from other boots, the Dell docking station TB16 kind of works wi= th 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. >=20 > 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. >=20 > 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. >=20 > Paul, do you have the latest BIOS? >=20 >=20 > > > > Does normal USB devices work with it? > > > > > > Sorry for being ignorant, but could you please tell me what normal US= B > > > 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 an= d > > stop using it after a while... Mostly to satisfy letting the docking station work with beefier machines an= d 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.