Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp152944pxb; Wed, 3 Nov 2021 01:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+0WssE2OleR3edpTv3z3irghy2zt8OgBhqBE/G+3yajU4vLu1mgubsAWu/DhZXV5soT2e X-Received: by 2002:a17:906:6b1a:: with SMTP id q26mr50389453ejr.185.1635928781644; Wed, 03 Nov 2021 01:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635928781; cv=none; d=google.com; s=arc-20160816; b=YauHXRdQlo0bN6Rmf+EjOR8ny79NvgBBDMPyGs2OhJ+XsofUVEunPlEil0Xjq3QhV3 SQ/HBP078ICD4MqhR9QjkL4KZ2K0XX4uxEDFrwFKG88ueiEc3OfJEAOmtZ27of9YwJfs 7tPpdnbpDfAo2VJDASRBPFLQ0Olk5WLb7l7a+cMYj7vDuXHdbT0SRvm2M+a/XwwyC2ip Zjq6XVYj7Yk2q68X9jQp133LxOeAYhXAQRfz4vqm1KGRbrzQlBWRngIcJkhUxx15P0hJ U/uEbHvR4zusZBa4ejQecumKNSJxC47FHkbPtfQZ/fHbcX2AcGkazIq+G+7cg971ae+A 1/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=15ksCWngunEdhY4feojS13JmB4MV1o4rS620yWbZDJc=; b=FWh6gaip4efXmPDJn2tL9eZXinaxQBOARNuFP5b+ht/CizpQQpuR52GbqC+kU7wQrO lVM0j6CM4F0gTA6T48F4pzwEsnKoFGtwR9oJEEU8xwTokfWYloqkYO0G9W0w7FLQyyjg Lp4ekQY8ixFDt6Eb/M3nxwFa/ZaUvsDz1epsMqywmtnZQva3PbwD6BdBGNRewRvR4sVm BfqBjyFohbHBggc7Tl2n8mgTQCMSBF89fo71TV81KDteB8/RDbuqmCJ78S3R+a17OMy1 CfYZ3kdjd9L4P5OTINQaczaAeBMeIdNK0ustJrtL7HUFecjeKim7UHEeRzcpzzVeQy0Y HMLQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2720248edo.4.2021.11.03.01.39.17; Wed, 03 Nov 2021 01:39:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231557AbhKCIhh (ORCPT + 99 others); Wed, 3 Nov 2021 04:37:37 -0400 Received: from mail.loongson.cn ([114.242.206.163]:58904 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230463AbhKCIhh (ORCPT ); Wed, 3 Nov 2021 04:37:37 -0400 Received: from [10.180.13.153] (unknown [10.180.13.153]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxf2ulSYJhOackAA--.58098S2; Wed, 03 Nov 2021 16:34:54 +0800 (CST) Subject: Re: [PATCH v1] usb: xhci: add LPM quirk for ensuring uPD720201 into D3 state after S5 To: Mathias Nyman , Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, zhuyinbo@loongson.cn, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1635751025-25906-1-git-send-email-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: <59c395bf-daac-9835-7063-5f8b6a9f3338@loongson.cn> Date: Wed, 3 Nov 2021 16:34:45 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID: AQAAf9Dxf2ulSYJhOackAA--.58098S2 X-Coremail-Antispam: 1UD129KBjvJXoW7WFW3CF45KF4fZF48tF1fZwb_yoW8Ww47pa yqg390gFn8GFn29r12kw10v3yfA3s5ZryDJry3A34DCrZrWr92v34UKr4DA3s7WFZavw1q 9F4jyr98uw4UZaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvm14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26r xl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7Mxk0xIA0c2IEe2xFo4CE bIxvr21lc2xSY4AK6svPMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI 8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AK xVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI 8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnU UI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/11/1 下午5:18, Mathias Nyman 写道: > 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? Yes, and I notice other xhci hc doesn't encounter this power consumption issue I think that xhci firmware may be set D3 after s5, but the xhci firmware code isn't visible,  in addition I find that test platform the _PS3 method wasn't implemented in acpi table which can make device into S3, Bios team didn't add it for some platform reason and I think xhci hcd to ensure device into D3 state after s5 that is appropriate > > 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 Hi Mathias, I had changed the quirk that replace XHCI_LPM_QUIRK with XHCI_LWP_QUIRK as v2 version patch. please view the v2 version patch. Thanks, Yinbo.