Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp741001lqd; Wed, 24 Apr 2024 15:59:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhm1JxawwfXSxlWiKopyJ+gScPOyJdm3wpdBUpoByvydR2wk1o1esuZBblpFd7ZKV0B3OIjRVe998A/RZ6VJ/IVWVXhK85qbnwdugHqw== X-Google-Smtp-Source: AGHT+IHCMKssERz1WC11UtdxMGHixAlxMzFukXFN8KQlSljxM7K4uN2s2Xxqws92R+lpYiSZ/qak X-Received: by 2002:a05:620a:8419:b0:78f:6bd:15d3 with SMTP id pc25-20020a05620a841900b0078f06bd15d3mr1840193qkn.21.1713999591982; Wed, 24 Apr 2024 15:59:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713999591; cv=pass; d=google.com; s=arc-20160816; b=WFENj/ciapoTY3KoaI+RXp9tKMq7LBe+oE53x/dR2+Mym4A9yhqn+cK9ColrNjPYjw 3r1RXLGQYFCqMtSn05GgmjXe2k3Zf5+hsvTL2e8C4e+pohbOADwYu87Y34yjni/kV8AO dhViScpIAFuH3HLl3e1X4b/4YUOqjS3MAM3fnF5copeqE3mvtbx8Ih2R4OnA/UbvGcRx ppmFAIDRZwswJ6Z3yaOcmqZNqUbSvSqzdpX2JUOuqSu1l3EdaP8xIuF/qcrGeeun/tyS t99PkAjOizsLsMvMHFK65PGOWZ41P7nuOt9WAkUKGHrCuMZMK0hZTfhjEXZ+GEwlDuVJ lRfA== 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=qrHIvTMhZKru6VMpwqyvF3yCr/0CzPX1v0J6Prvp98A=; fh=2LXKFA9kvHeq7ZnD2R78eWRzO+kHvCIVtEY6iK/SnHY=; b=msalDvIprZYdeyD43+u1FmuH/nepBuoKBpnhm+GGhqnljZ8oaV/w50wkl+779B2m6G R0gYkohTR+QQtaPGTp5En6lJlQkYSMIYXcJtS1oRjLszJKxlBdFnAkzuosdN+kHn0wVQ 0g21Q5WAlK+81gDzSGL9Cjj6xlvXrA7KgCO+X0jIzRMgPyptV9Av3pjGdRLPi5hsOtCD /9c1o6bjn6mJsLHdeBBzwTzqiCyPvjL1/lT9ajWDxNnaCAyAwJin8v2SV8YO0x8SKZwO CyWBfNoW4jfrbQfJVy17PdX665dJbiDcMMYczQIdsoU/opA3aCuAIFAPntvWyTUMaG6W t+Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FufFf1N1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157817-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g25-20020a05620a109900b0079068cef4b0si10001156qkk.558.2024.04.24.15.59.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:59:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FufFf1N1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157817-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 0C1311C24F3E for ; Wed, 24 Apr 2024 22:59:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5C5F16EC17; Wed, 24 Apr 2024 22:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FufFf1N1" Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 7D733157465; Wed, 24 Apr 2024 22:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999580; cv=none; b=Uh/kYo1I5jNe5p8la93pujZN3PQ6Uf1UwWFw7neK7GpUBkvgftHXqR0mPxd+k94i8NiqvKvsVFvYlsZlXyMUZjr6WHhdvqYc5szYQojqAVzG4d9atteFsaOGfhz9Qh2W94HfiiArbVOixrULlMf6HTLXQseZYvx7SZaxU30Uve0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999580; c=relaxed/simple; bh=TUPqPpdBn1SWgpFfIfffbMTiilIpsXJXS3hXQQIU+2g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eJcQBmFO4CympGuiiTwOgl8463D6pVFsZToug2CZ2HfhYd/1TuQFmpIt9qsurHS1uvaP2iC5bUu7qsfogNsJA7A7cIKE9RLfxv2/LrcKMGQ196FOoGurSIR1+LO3SxlMpeUtFB6LOUgwhhE+/LGjNe2YdVYA4dR03ViGwXJHIXk= 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=FufFf1N1; arc=none smtp.client-ip=209.85.215.169 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-pg1-f169.google.com with SMTP id 41be03b00d2f7-5dcc4076c13so331972a12.0; Wed, 24 Apr 2024 15:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713999579; x=1714604379; 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=qrHIvTMhZKru6VMpwqyvF3yCr/0CzPX1v0J6Prvp98A=; b=FufFf1N11R0mZyq2tdcR2u8+xiHtvJpQ1df1c3X1+WSKhzKPg1w1BmCLVFKLSIzMAz oFFUloG8Lfwb5YRciGfvRDIdwBCFNH0PygCeiPtLST+ThHxxf5cbYbQWGH4hcKmZIdVh hntTtb88lVG4izzKrTN0Uo2qmg8/MueTyCORWdTNDePyhSFXhky6brEGY6feHXDR4o8T JPO5pViB92xPa06u8uyWevdL7ArP364a0F/Cd9jvZ+e7zXKkrZBA9g7wyII/EusNykvL ekPwlAZWL2JKsNL7wW/Fnm64zh0eabmx0RnpyPdGa725vY2KCwvBsvspziB8RWIEXeLp JMPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713999579; x=1714604379; 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=qrHIvTMhZKru6VMpwqyvF3yCr/0CzPX1v0J6Prvp98A=; b=A/he1L3QdJMnXuOpxCJfUg9/QZu/zKdbdT42zCGSIvAs1vFwtLNJsubzYaNCZpgsIg SikEnV+/kNtteTc1/4EV/5oCYzqkKANAkdl8Nj2+04hv6mbNw5MZnM6n7Sz96lYBUlaP NviIBp/nPRimtd4xAsl+0uSeKVv4PdLnvjzSocYCzTfl2c7FiE5suvhEkbOLnalF68At FEIn7X0CAaVq8TVhAf83qQDapXi4LIQkmZGQr8m+6PehccI8YkaYh4KGPrTzT1xnOUM1 MVq3BbJ3pHGkRKNOY+6EgVuQEgjb1DSoca3sKsRzghvTk4BX263aEMyzEh23FCbQqsSa ZCag== X-Forwarded-Encrypted: i=1; AJvYcCU4Gsy5DWrFHxHmUyGHPhniRntmPcf8a+OdIm8goyJ9V/haiWG8p2/iqDpsoeGBzlWme0xByw3O2YDBxOWNEOZI9rMhAaPV8EhEOwpU X-Gm-Message-State: AOJu0YxEPectHk/Gg/sJuZWT8gTCa2Ygmt4cjlc17UQi761gwPoeoZTl 3WwQEQL72p3oIWVCKx9hWV2QuTXPCpaoOJ8zH20P4BLxaD0l1jTK X-Received: by 2002:a05:6a20:d48f:b0:1a7:48de:b2a4 with SMTP id im15-20020a056a20d48f00b001a748deb2a4mr1935336pzb.6.1713999578699; Wed, 24 Apr 2024 15:59:38 -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 h6-20020a056a00170600b006e6b180d87asm11948597pfc.35.2024.04.24.15.59.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 15:59:38 -0700 (PDT) Sender: Guenter Roeck Message-ID: <9b9599c8-2689-48be-a569-660e5f51b329@roeck-us.net> Date: Wed, 24 Apr 2024 15:59:36 -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: Greg Kroah-Hartman , Alan Stern Cc: 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> <2024042441-salutary-finishing-f54d@gregkh> 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+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2NvdW50KSA8bGludXhAcm9lY2st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of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <2024042441-salutary-finishing-f54d@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/24/24 15:49, Greg Kroah-Hartman wrote: > 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. Thanks! Guenter