Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1278453pxf; Fri, 2 Apr 2021 06:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd3TtAVzpnx5tqMzxZB7Rf72B+KVmn4pUS+PtZS6Qhvh5o2U9I66mOISaXNtGqcGZs0psA X-Received: by 2002:a17:906:2a50:: with SMTP id k16mr13560150eje.537.1617369588760; Fri, 02 Apr 2021 06:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617369588; cv=none; d=google.com; s=arc-20160816; b=Sih58D4xBa7wxdRT+YWbOTvwar/VpOP9CWQZOCM3iKKtXexlMwsG0xQBpnaEjKJXrc JHJrtm6X4i0ZjmLD1HSCRLH0UxLN3s1zL02ossSnC3SM0MqQ8krH+KnswdQb8of/yojE hVlC4lE3wAfv6EPaFHQ4mLYyvWYBxLW1ybMwiPrILNpbwYS/y/U7uwqwYhfuHuXKpGsE sENAEOMylNreg4WUdUz/V5EsxuxqM8gHXWf2tUFQjcn4Nff98bKXf2vIzhvvL9jAVG4y L2B7/CeS+yhcBCNaHT0KqmVLGwy89zTwQQ8j25QUcw38zH0DjvR8GJb8TTZAo0eILrN0 F4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zir3Tk3fhVQMj4SkJJ+IpaSvSI+U/Jr82e1uj7XE7lQ=; b=K6byYno3HNVFjrvdNTMMYBYzzf3fSm+gOB85UQisiCYNqOyKziIL+0hEBqpsmL1/+3 DGGCaoN7TbFCaYZURTa3jOOmRTiN2hj4zLcVDsfwHAkF0zWCWs+kbLzIJJSXBD3ISSYN yrG4R28yFYonbIduKnGrvE+u26ceHPB1gyfEwRtE/UsG8l0DD+XXOb4R9rMgpuFmhKOL eOj2VXySS4KcvYZvZdv+i7hqHQhLUgYQUrBfQi7woBwWMy4OymuzmG6WeqaVb/SRJGKj A5+0YuZ8Ncl6to29zHugPXIkkqpsRL5+DWyi28VGSaHnQf+b9J9pNyqGkkY7GEHE+ZYe 150w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AZ1HioHC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si6377402ejh.313.2021.04.02.06.19.24; Fri, 02 Apr 2021 06:19:48 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AZ1HioHC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235170AbhDBNQz (ORCPT + 99 others); Fri, 2 Apr 2021 09:16:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:33954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbhDBNQy (ORCPT ); Fri, 2 Apr 2021 09:16:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0285610F7; Fri, 2 Apr 2021 13:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617369413; bh=/BQ5h0ZVqbqSFxqV9m02WcLc6Z8/u/Dvvd8g8cm6jrk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AZ1HioHCyhOvKy6l8tgnDAaxxkekkKPJ2t4X9sKEgqFiVyqGfLgx2YTHHFg1Ljg1r UQtlNoH0hVgOd53joPR1v12rGxKuMjW2bzyU+ibaA1toVJUF+BlzT73Fmq4z4nJgUy +n6jDk4kP/xECaDRf5rcxJYgSjkgC50QwxdhRJXs= Date: Fri, 2 Apr 2021 15:16:50 +0200 From: Greg KH To: Longfang Liu Cc: mathias.nyman@intel.com, stern@rowland.harvard.edu, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kong.kongxinwei@hisilicon.com, yisen.zhuang@huawei.com Subject: Re: [PATCH] USB:ohci:fix ohci interruption problem Message-ID: References: <1617355679-9417-1-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617355679-9417-1-git-send-email-liulongfang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 02, 2021 at 05:27:59PM +0800, Longfang Liu wrote: > The operating method of the system entering S4 sleep mode: > echo disk > /sys/power/state > > When OHCI enters the S4 sleep state, the USB sleep process will call > check_root_hub_suspend() and ohci_bus_suspend() instead of > ohci_suspend() and ohci_bus_suspend(), this causes the OHCI interrupt > to not be closed. > > At this time, if just one device interrupt is reported. Since rh_state > has been changed to OHCI_RH_SUSPENDED after ohci_bus_suspend(), the > driver will not process and close this device interrupt. It will cause > the entire system to be stuck during sleep, causing the device to > fail to respond. > > When the abnormal interruption reaches 100,000 times, the system will > forcibly close the interruption and make the device unusable. > > Because the root cause of the problem is that ohci_suspend is not > called to perform normal interrupt shutdown operations when the system > enters S4 sleep mode. > > Therefore, our solution is to specify freeze interface in this mode to > perform normal suspend_common() operations, and call ohci_suspend() > after check_root_hub_suspend() is executed through the suspend_common() > operation. > After using this solution, it is verified by the stress test of sleep > wake up in S4 mode for a long time that this problem no longer occurs. > > Signed-off-by: Longfang Liu > --- > drivers/usb/core/hcd-pci.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) What changed from the previous version sent for this patch? Always properly describe the changes below the --- line, and also version your subject line as documented. Please fix up and resend. thanks, greg k-h