Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2813407pxb; Mon, 1 Nov 2021 02:19:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI38M4dgWSc8F7cjXQyGPBYwQJrhdDv/XCWksfHBnPnnZPUQQBt7rymspXPgfBJQ9rD+k/ X-Received: by 2002:a05:6602:2c95:: with SMTP id i21mr7634662iow.60.1635758342664; Mon, 01 Nov 2021 02:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635758342; cv=none; d=google.com; s=arc-20160816; b=SAdJXMgkRpdBbTBHQzF3XN0xYaG1UzpyPjlw/NGggxaTFl0L1bAJoY9v4WhE1/cKEA 2YGJ21AXNUyyFmeGhvQr9NawG9DcLlrIiv2Hu0qTTwesJsePLlvRvThlCzTCx2Mt/B4W Uvc9UM3uQ8RY99j05B9fY9dnEyRkTzR2rY+IoO6bCAjgyiCGO4fQErG1mcBkTJ/5ceEK 1B0+s4XpM5mKKcOQfc154bBrSUJbw41g/L8o8r75wTYeza27WChxHDFy3jnvRQFRP6xe 7Pqd4s+CicgtsRTM4xbkDLkZ8xnxB/4yhGoW7za1ktBEVHD2N9ZrVdiu6YjlIzf4pdbL /yjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:to; bh=f48R6xJ2mo9OCkhPYIVfw16iILoG6GqVaYmf26SdWWw=; b=x9l5PxVgx9Zicc3yeyff5PhVYesyyPKDUsTTI6jY9yjFqmKcTxa4p+Akw97c1/q557 W2kfU3qm1OpBW2eR2CdR6ku29tz2cM98VNnhH+odua5chzcNisyQOBat+Yk6S0i2v7TI vDjDB2H7Fcq1Nx0sjdma1W6E2zOJ2kxWw+O5VwPVIfhqzayQdnD5uAOiVztZHDp0sZWe j0Xige3/3XPK+lKqVcQVkvQ5rQrD9LM3z85BhNf8O2MABmaoQDA7/4L0jPgIIYoSBoGq Ivj1qQ64spFGgHCI7WYO0Ta0uGtJ8gSuVi0shaGV8KrcV02XMS2bvg0Cg3VBdPf4XUKu fsKw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si16529416jaj.77.2021.11.01.02.18.50; Mon, 01 Nov 2021 02:19:02 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231755AbhKAJTy (ORCPT + 99 others); Mon, 1 Nov 2021 05:19:54 -0400 Received: from mga17.intel.com ([192.55.52.151]:27777 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231284AbhKAJTt (ORCPT ); Mon, 1 Nov 2021 05:19:49 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10154"; a="211745161" X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="211745161" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 02:17:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="637726765" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.199]) ([10.237.72.199]) by fmsmga001.fm.intel.com with ESMTP; 01 Nov 2021 02:17:14 -0700 To: Yinbo Zhu , Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1635751025-25906-1-git-send-email-zhuyinbo@loongson.cn> From: Mathias Nyman Subject: Re: [PATCH v1] usb: xhci: add LPM quirk for ensuring uPD720201 into D3 state after S5 Message-ID: Date: Mon, 1 Nov 2021 11:18:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1635751025-25906-1-git-send-email-zhuyinbo@loongson.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 1.11.2021 9.17, Yinbo Zhu wrote: > After S5, any pci device should into D3 state that if supported, but the > uPD720201 was not and it may be the cause of xhci firmware and cause > OSPM power consumption is more higher that S5 than S4. I think xhci HCD > can add a quirk ensure it into D3 state after S5 that is appropriate > and this patch was to add LPM quirk and set PCI_D3hot to uPD720201 pmsc > register in xhci_pci_shutdown to fix xhci power consumption issue. > > Signed-off-by: Yinbo Zhu I think we need a better understanding of the underlying issue before adding a quirk like this. Is this a known issue with the uPD720201 controller firmware? or is it an issue with ACPI table entries not supporting the proper D state in BIOS on the tested platform, or something completely different? Also, LPM usually refers to "Link Power Management" in the xHCI spec. This is about the U1 and U2 link states for the connected USB device. If we end up needing a new xhci quirk it will need a new name. Thanks -Mathias