Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp737772lqd; Wed, 24 Apr 2024 15:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWD+AIlYaeu5eCp0r1Nomc7upgDOXTUDAX1KgLH9tk3j1JYRdLSKs+VRPlOaFd73X94eEPGHf1yY6uQ10YLe3/8cSrpIlwpUGs7iHEmrw== X-Google-Smtp-Source: AGHT+IHfwKvSx5tu4W3fa7KZPGAcZr4lhEgneeD+RnWDyAZXjTDJD+pGqEN6Q9bcR0i8KhVQKUOJ X-Received: by 2002:a50:a445:0:b0:56c:5a7b:5dbd with SMTP id v5-20020a50a445000000b0056c5a7b5dbdmr2417902edb.15.1713999012772; Wed, 24 Apr 2024 15:50:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713999012; cv=pass; d=google.com; s=arc-20160816; b=ncnDhv6zKb3VWOHunbwdfXjJU0F6VfCtyb1YxmASIivtEf09D6DMfNJM2EeaFeKsVx PcW5j3c+HMW+J2S2FK3JKgjAEBjT4GHoUbGf6H8W/wmuGT0V1XE5sns2qRLFZYEY8gWJ 1SrBMo5iKqxgeHkisqBAOokk8VGlTjNa5vtRhDP/giJYHIv+3WacO6F5lplQwg9IqeTh fCA8aCmoNcCs/RB/AhO/0Fymy1hruWyvybRkX6zv3TA4NZtipr72QPioCS447vNP7s3S xGQXzg+WKBQWFXnDqI0iSxOs/YC+WHDGm8NzQ2OrJD7NPdk+Rw7Bs8lL+ksCZacjKfWr hMSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wtXTpxVQbCAdeNQxOoOKP7duk/ZMwNmHVjPv33sOPjA=; fh=pZiXKflVBMIWTLkODM3jN1CMmXNY3YaxSgPU4aq9irM=; b=kVDktPm0UbNb6qhTGiJRjDiIU4A1XBPe5KKtvUnE3lcqcrGMThPXkDtaeRrysda3ri OuW4k8s0pNpLy8NT90dKFrS0fswobIGciYm4X6mpHIj1ZQ9wJAjU8WbdcjgCrCvpeshn p9NjeGY0caXuBlfcHqCX/KjlRUP81ChL9+JHL1g+FPFNyH4fNGJtLL6gMVtQpxB3sCqG rIWz6Oo/7zzQEIHMkWvSYKD8AKmcOep+L1RFg89xnvF5rb2w114rqSEyEKrrPFZNG1wa u6KKqwSDIaxLNo9miD88PpkJhDa8JDm75Y/LKPFOExqUVCwqXw4jBBDXwhv1zhR3cLd5 Zr5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sfZB61Ro; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-157803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q1-20020a50aa81000000b005721f484537si2977963edc.5.2024.04.24.15.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sfZB61Ro; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-157803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7F0BE1F24468 for ; Wed, 24 Apr 2024 22:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A94FC16EBE7; Wed, 24 Apr 2024 22:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sfZB61Ro" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6ED9155A50; Wed, 24 Apr 2024 22:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713998999; cv=none; b=RaDsT3dVju0k/QvDF8NunMxkH5/s2cUp7wcqqymr6b9Q3jmAzcfvk15wHY9V/wfwq7TII5IEBXt0Aro1rThtRCGtJxGpEefU3WVuhlc0sjM5OrtwdUstTzs9BGgHQYnk6tjebp+djYrOvLW8p+5LgEUNLOpuNkCO8RU6guTRURk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713998999; c=relaxed/simple; bh=W5ohCgmJVkWl9zcBgvtQXRpF+AE5gPvRcpMsUWtmR7E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LIYJYVYlVlG9sDLddv2Hu6KJgBUJqYg51Y1wLXpT8vu0KB4R2ogoCE1nGcV4dB4yiQ+X4mICll1J3yuc5SCQzNi75u3vHtJiu6xql9KWXqhd1vnjbTo69zNSng1nwY/fyjmCdFUaGrc2g4m0h0y5F45pb4OiTD/+cKDmm/2OzMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sfZB61Ro; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26AF7C113CD; Wed, 24 Apr 2024 22:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713998999; bh=W5ohCgmJVkWl9zcBgvtQXRpF+AE5gPvRcpMsUWtmR7E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sfZB61Roxjh0IGI0V5/i3GHMVS3OWunHEtCGm0eysMyJFZM6TmsoGFOsfhNz07w/h w12XAhbav5hrlL+K4dP8/Oybe+REP64j8slv+ECTjpE4hgaoI9g0vtRVBHZ7M3+bX1 DI8SIUFdi8LXrT5/p6AGCvnTTfugR+k2B1ZsMftU= Date: Wed, 24 Apr 2024 15:49:50 -0700 From: Greg Kroah-Hartman To: Alan Stern Cc: Guenter Roeck , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Gerd Hoffmann Subject: Re: [PATCH v2] usb: ohci: Prevent missed ohci interrupts Message-ID: <2024042441-salutary-finishing-f54d@gregkh> References: <20240424195951.3749388-1-linux@roeck-us.net> <0a29cc85-a79e-476d-aae6-0a054aad2e90@rowland.harvard.edu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a29cc85-a79e-476d-aae6-0a054aad2e90@rowland.harvard.edu> On Wed, Apr 24, 2024 at 06:30:06PM -0400, Alan Stern wrote: > On Wed, Apr 24, 2024 at 12:59:51PM -0700, Guenter Roeck wrote: > > Testing ohci functionality with qemu's pci-ohci emulation often results > > in ohci interface stalls, resulting in hung task timeouts. > > > > The problem is caused by lost interrupts between the emulation and the > > Linux kernel code. Additional interrupts raised while the ohci interrupt > > handler in Linux is running and before the handler clears the interrupt > > status are not handled. The fix for a similar problem in ehci suggests > > that the problem is likely caused by edge-triggered MSI interrupts. See > > commit 0b60557230ad ("usb: ehci: Prevent missed ehci interrupts with > > edge-triggered MSI") for details. > > > > Ensure that the ohci interrupt code handles all pending interrupts before > > returning to solve the problem. > > > > Cc: Gerd Hoffmann > > Fixes: 306c54d0edb6 ("usb: hcd: Try MSI interrupts on PCI devices") > > Signed-off-by: Guenter Roeck > > --- > > v2: Only repeat if the interface is still active > > Reviewed-by: Alan Stern > > Greg might insist that the patch be CC'ed to stable@vger.kernel.org since > it contains a Fixes: tag. I'll add that by hand, no worries.