Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3595015pxk; Tue, 29 Sep 2020 00:41:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw06h4KzgsSdhy2yNwveMF2Gyz3NUd7mwHSIIpuzbsdYYhmtOXEEW0XXLZaBLQRMqUmPOri X-Received: by 2002:a17:906:2c14:: with SMTP id e20mr2648630ejh.205.1601365294281; Tue, 29 Sep 2020 00:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601365294; cv=none; d=google.com; s=arc-20160816; b=ZjlmyKd4NEI+UU/v+Lt3KEBkDbvLW0IdkspLPBh3kegL77OmQIK+SqfcsspxzCqGfr ev1WFwM1JEa6ZNVRQMH1R1xuMoTjiWgbre1XatG5irk3j6y+oZHRbsqF2VdNUBCztgxo YBUv3OyNsc74/WMO/hgHDZTlhhjP03mORYuPuVOkJGS6eRxHhUq9Sr//4+eugPoUtdn6 SAJI8sBRtXuVDFHsnXM5ygVGVnmKG5i82yFpERi77bZSvrDVb109W/GiR+R28K2dJzL4 9x9KYHaZ7FRukyXObG7aST9TMgzZB2phmeomqBTNf8fAUXa4y3J2s81E9eBXG80quUZR zlkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=7dlh5Xjic9sbQKrKPq2gG4VJvVNRazuwsTm+xMom9Iw=; b=laNx/npDUoiZGrWgU0q0M13ZEDHuGtMk8nXekFQ3rXPxfgGKoBzAaiigRe/GElCle/ jzP7zvPAGlowrS2AwlvXhnJZeu7Yz/g+KOkdb/IkFG7IWNNViWH9P8rrqxeZgTZKINBX LghPxBgI/R5AZZNHBTP/kw33drqXRHrA0gRAvMEb97mr+XVF4rUKjXon4UKGlZlwXI0N 2aE+XDNiMHo4xAqJl+clyGhsTICupWBnBqo3+3p76ToyucrLsvoOOnwsZI1yRX5ac0BS V1lGQBDubn1oxT0qCmcc89+pn71gNz49X1uIPYVxPrRKUcTw+eJ4SlInPP2sElETVIN7 O09A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da18si2135866edb.466.2020.09.29.00.41.11; Tue, 29 Sep 2020 00:41:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727677AbgI2Hjc convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Sep 2020 03:39:32 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53152 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgI2Hjb (ORCPT ); Tue, 29 Sep 2020 03:39:31 -0400 Received: from mail-pg1-f197.google.com ([209.85.215.197]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kNAES-00057w-N6 for linux-kernel@vger.kernel.org; Tue, 29 Sep 2020 07:39:28 +0000 Received: by mail-pg1-f197.google.com with SMTP id r4so2448196pgl.20 for ; Tue, 29 Sep 2020 00:39:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FaS4Msu62B2hZhVAHv5KDuf0HZsqaYRRgWIx2cKWtok=; b=IHh3TfnZqbJPFwJCbRnxtxZ/5tyo/J/dW0OBRgwRl4f350z0xdadXnE8y1G3YqRU7g 7zfaX1hD3OYZ5yFkswokt9CnMdeWMNSwYwxecdBTNToxNoue7hucTSKYeZyl4Lg/jaUo BXlKSmikP927dWF0kEe7eeZdo1QqpvFzuWvAXEjFtnWflPvnr2NYxaa9a4CN9vRcAWUf 1bQPlGPwU2hVHTVfAJ3C78Ko6KcwCuv/5w5jyWC/AArsAVeaoKbDsAkZB37iGIjI/ldN FOwEaLbC/TDRvCOQze9RFzmw2nkZ9ojwgDFxMmw8ZDyjtjqJDf06LucWUgGXlis3bf+7 C3fA== X-Gm-Message-State: AOAM533JA9qBAcotrTC4pRbDESV7ztUx72CX4YwJqJHA4r81G6giYf95 /Atc6yAHhbS0jtIJuSpOiVEE6CeFyePkW6jl5J+KsKP7WjwQcEeM4e4ZSw46XrtguJRFHHRGSKG /rcyfQIPxWnPo6vtLvrNqTTMlWRUQ+01Nzy2n57evAQ== X-Received: by 2002:a62:7b55:0:b029:13e:7367:2b2e with SMTP id w82-20020a627b550000b029013e73672b2emr2888499pfc.7.1601365167188; Tue, 29 Sep 2020 00:39:27 -0700 (PDT) X-Received: by 2002:a62:7b55:0:b029:13e:7367:2b2e with SMTP id w82-20020a627b550000b029013e73672b2emr2888469pfc.7.1601365166777; Tue, 29 Sep 2020 00:39:26 -0700 (PDT) Received: from [192.168.1.208] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id a3sm4163130pfl.213.2020.09.29.00.39.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2020 00:39:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: [PATCH v3] xhci: Prevent runtime suspend on Etron EJ168 From: Kai-Heng Feng In-Reply-To: <8d913b15-a7e4-5e35-a137-355d222ccf1f@linux.intel.com> Date: Tue, 29 Sep 2020 15:39:23 +0800 Cc: Mathias Nyman , Greg Kroah-Hartman , "open list:USB XHCI DRIVER" , open list Content-Transfer-Encoding: 8BIT Message-Id: References: <20200504171642.26947-1-kai.heng.feng@canonical.com> <0F26EE78-D4F4-4CCB-892B-999E203BF515@canonical.com> <14291E1B-6580-4C69-9EF8-3B30BC78B8D0@canonical.com> <8d913b15-a7e4-5e35-a137-355d222ccf1f@linux.intel.com> To: Mathias Nyman X-Mailer: Apple Mail (2.3608.120.23.2.4) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 29, 2020, at 05:42, Mathias Nyman wrote: > > On 28.9.2020 12.10, Kai-Heng Feng wrote: >> >> >>> On Jun 8, 2020, at 11:56, Kai-Heng Feng wrote: >>> >>> >>> >>>> On May 5, 2020, at 01:16, Kai-Heng Feng wrote: >>>> >>>> Etron EJ168 USB 3.0 Host Controller stops working after S3, if it was >>>> runtime suspended previously: >>>> [ 370.080359] pci 0000:02:00.0: can't change power state from D3cold to D0 (config space inaccessible) >>>> [ 370.080477] xhci_hcd 0000:04:00.0: can't change power state from D3cold to D0 (config space inaccessible) >>>> [ 370.080532] pcieport 0000:00:1c.0: DPC: containment event, status:0x1f05 source:0x0200 >>>> [ 370.080533] pcieport 0000:00:1c.0: DPC: ERR_FATAL detected >>>> [ 370.080536] xhci_hcd 0000:04:00.0: can't change power state from D3hot to D0 (config space inaccessible) >>>> [ 370.080552] xhci_hcd 0000:04:00.0: AER: can't recover (no error_detected callback) >>>> [ 370.080566] usb usb3: root hub lost power or was reset >>>> [ 370.080566] usb usb4: root hub lost power or was reset >>>> [ 370.080572] xhci_hcd 0000:04:00.0: Host halt failed, -19 >>>> [ 370.080574] xhci_hcd 0000:04:00.0: Host not accessible, reset failed. >>>> [ 370.080575] xhci_hcd 0000:04:00.0: PCI post-resume error -19! >>>> [ 370.080586] xhci_hcd 0000:04:00.0: HC died; cleaning up >>>> >>>> This can be fixed by not runtime suspend the controller at all. >>>> >>>> So disable runtime suspend for EJ168 xHCI device. >>>> >>>> Signed-off-by: Kai-Heng Feng >>> >>> A gentle ping... >> >> Another gentle ping... > > Thanks, somehow I didn't notice this earlier. > > Was the rootcause ever investigated? > Preventing runtime suspend looks like a quick fix to get rid of the issue, but > possibly just hides some other underlying power management problem I tried different angles but didn't find any useful solution. Eventually I found out that the device stays at D0 under Windows, so this is the approach I take. Kai-Heng > > -Mathias