Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp738106lqd; Wed, 24 Apr 2024 15:51:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRDuO74tTw2E5fLBJoguau6QHfgwQsP11M3qWNJrmm2WazJ8rMN+mP1iWtVP/C3nLyi4Pt7NjOiewc4myhbxA6r0hq4qjAjzMkPvTDxw== X-Google-Smtp-Source: AGHT+IHLxNZQHX+5TfE416RgiGx/MSuY7c2YGdGiYfMm2Oe9hhhhCSYRwE5OYixSOkdcQpS8mKBj X-Received: by 2002:a05:620a:5372:b0:78d:766a:d695 with SMTP id op50-20020a05620a537200b0078d766ad695mr4596368qkn.77.1713999069033; Wed, 24 Apr 2024 15:51:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713999069; cv=pass; d=google.com; s=arc-20160816; b=jcmtTPz2BpkUNr/bKXpM9SFH+rDDPr7VXFJaAC6f1XGrseyy/xGY7nUsapw1Eg9UUo qOJpND2PpHFfhr9imhSikNU5yn6Rh3uI7CgTeLcMnqdN6u+xK9+aSIx417Du3Lf3Wpm6 Q3Cc8cJpJMEKQHhy3Q722VI4wWo4ex9/Ulp4ep3fxW/CV/gEgU3Vou+p/TjI2cnthSV2 Z0QPT1VN/8RduxTETOGPO6aep7V1WjqN2jt8hfB9JcpwImMgZvdbOro7hncugQDiSebz L9/NJH5Q9fIkUKz4wBgu156qH1yARrAfdB/80oU3j+r1UlSX8Quu6YrQnQHJkVTBOd9T JgOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=Q2ABtMQID9pHiN7MdMijywVVKrrWz6KRhscU6sKi0tY=; fh=XOG8jlokA5+QGxWhH4OyP7pkeqkLHVieTiw0a6b79f8=; b=vJCaGS1KujT1vw+XXKrk6ds1gqOU3eq25OLJweZ65PLBoSF6ge0PUtTPxc8cTempcE lV2WEyiSRWGYHj3M1wCssv3mOFeGtYZ2OHyP/kuKDfVj/uWs/LCfow4bIGFNgqrMW/MW hkWtjV0hhoupvy85pd3nFJSXPLq1VIWdPnj86gU4uHeq8Vu6rTKXEDChOD8u9KdPMFD+ xFt4WDJzjAVUYNKslYJDfjKKQwzdJOxWf/aZoECAksjQSsH3el1NGIsBxRGYiOMdhD3H JwmSt1U9Hfrm6xf/TEIAoOdTeMOEmgHMa/Dj8gHaIBggre5QNEheceExJvxNNpGZQVKj mSwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h1I3OVeZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157804-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h24-20020a37de18000000b00790636a4436si11135901qkj.374.2024.04.24.15.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h1I3OVeZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157804-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AFF771C238F0 for ; Wed, 24 Apr 2024 22:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49A6E16EBEF; Wed, 24 Apr 2024 22:50:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h1I3OVeZ" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAB5E155A50; Wed, 24 Apr 2024 22:50:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999057; cv=none; b=p9QndaSBpCKjFmXiKaBHw+e9sSfnD0NNrFFe4C3PMynxAYZk/0SXg3pgWhNuGwuU4SsB/X7TjQdwRe/m/OlzHDlX+2cH0KetrTod5cLwuUWcsBuJU7ATN95yo6pX+Lf7V1jtAps5X7/NuP+WTnKvd7N5r3v4d10HpHMNKUgzqs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999057; c=relaxed/simple; bh=Ox2MB4MghcFgvvTU8MNU/H0/Uh51SmnpR/MUHfC8VJI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o1HpnIzNBr4x8MIjFdp8haYEO0nrKXqTI8hR+9hlyD29IzXkdeFe+itjVfDE6mjbuZOfzS31smclh1HhBpnPvDuqNUkPWbjnLS9Yxksr+T+SNk3Rf5MUzJoankM2xWeI5QcDSkW6hi8W4cequG2yeoJwL4XbcsyExZzzLC9HEyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h1I3OVeZ; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6eced6fd98aso436418b3a.0; Wed, 24 Apr 2024 15:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713999055; x=1714603855; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=Q2ABtMQID9pHiN7MdMijywVVKrrWz6KRhscU6sKi0tY=; b=h1I3OVeZS97+P73E3Uo/Jd7PrBTkTmZA2u6qv4FWIEUd7K3f0UHU4KJKwI10Gws0Fx qiCNBi2+tNU96MUX7UR8fEceQAmBtI0jQZr0VHe7j90v1aL3SwdNoglkKkFpgPRo3WR2 tYm+/eyvB7/PDdpzgUxUm903GnQL92QVAwG2LEq7zj+OcplzSnl7XsQEGoa95+TmMdLL vTcaM3iwNfM0NA+VoW96S4n2kYu19o8SUB1qPpEGiCrlm+pZto517kcU/1JMlcSKQx1W kQ6wo4nr0jP7k2Hw7QHmnRtRqkP3DTYHdCOAmRD4UPtcAVGraqoTjl89stE3Bw3m1UMj TTNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713999055; x=1714603855; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Q2ABtMQID9pHiN7MdMijywVVKrrWz6KRhscU6sKi0tY=; b=jvvhChr5dvSdohiPQRM0CNQcbatKMUGxQYWmTIoAttKSkaJkPSEg6iwZQwZtxPJp/a hCbkwTtHLBsE/A2QatHvR6HiDsiYUSwRo2g44+MYCSCphbqFOcrOz2LleisxENaflu2v 3/mwrrnfvpdwpumBBb1sMZNaVKD3Z8y8hj5ngEQKG9D5wsZeSQbBAbQildG/HubvpvJ2 Yu7Hmho0o4pRXTqDt9NrXxP3ms1aRXsk1ku/hbu9tqF4+TrKm5Q6sfnY239G0bWh1WgV 1quGHUeuZumjCcSXGH38TnLnIguxyZlL2dsHRdJtPntOMkeFdAZxUljyyydt1IHLJXk1 LNYA== X-Forwarded-Encrypted: i=1; AJvYcCV2ZIGQLSXI2Pi1+e5gRnnR/i5JTpHBvEaOQHgh8aWiNDgZ61h472UPUyfniBA6lOnUIVUuVQtvPy2rhlsRvZM3NQP0ZBF1fD2b4kgYAJzA0kNIFTWzAmqUidWV1GfokVKh8hV2aN7/ X-Gm-Message-State: AOJu0YwvbFtbYtBZnHLHxKCtJMpqPp7dB6oaHmlvR3bIm9pcmHpzJNke AAdQLLIJZyOhG+6UCX5YkfTchVrAqTiTDZlIJY8uQsdnXVmHzHFA X-Received: by 2002:a05:6a00:2e1a:b0:6ea:e841:5889 with SMTP id fc26-20020a056a002e1a00b006eae8415889mr6050205pfb.33.1713999055300; Wed, 24 Apr 2024 15:50:55 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b13-20020a056a000ccd00b006e6c61b264bsm11934743pfv.32.2024.04.24.15.50.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 15:50:54 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Wed, 24 Apr 2024 15:50:53 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] usb: ohci: Prevent missed ohci interrupts To: Alan Stern Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Gerd Hoffmann References: <20240424195951.3749388-1-linux@roeck-us.net> <0a29cc85-a79e-476d-aae6-0a054aad2e90@rowland.harvard.edu> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARA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kynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <0a29cc85-a79e-476d-aae6-0a054aad2e90@rowland.harvard.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/24/24 15:30, 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. > Sure, I'll be happy to send v3 and add it if he wants me to do that. I never know if I should add it myself or if this is supposed to be a maintainer privilege. Thanks, Guenter