Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1471211lqe; Mon, 8 Apr 2024 09:44:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq8BzLUWqjyi+/iiyMMCPO+RzSUfIajqvA9hE0R0TyrMJe9oIGDnF6o0d8zZVKlhuDMbSvkOARvw9dMJfblVspQmsJQ+lan3mkf5AyhA== X-Google-Smtp-Source: AGHT+IEYX6gMKaxkEewJeSaaTCde35d9F22xDnIPbFWNMYDABTCTTW8dbYMnIrLrUwTmVLRCWD4C X-Received: by 2002:a05:6359:5081:b0:183:6350:bfba with SMTP id on1-20020a056359508100b001836350bfbamr9973826rwb.2.1712594641420; Mon, 08 Apr 2024 09:44:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712594641; cv=pass; d=google.com; s=arc-20160816; b=ROsfMhO/KAUR1+1yNxCfhvauAKL6jX4rUSva+YjwHCEqjz/b6Wmj5dlEsK7pv3LZg8 yKhX9WuCSZJ01ytCPDj7g+/l9FVpm8loEws7HUpxUrmFBolXEcpNSWJArwTrFeTzSQ+d Ei1LPOd8qK+V/JRBNRcXz6k8nMWdMusuQz2cNgu/Woc+E7a+85rDzYspmJE/mTHz6A/w 2S8QtmuiWIUj5tVBywpLNFTbkAbjt+EadvcJt2vMtBT/xf6Dve+esoR6DQp6kdnYOfum aYOJZ3YrfHCxvQ+60aGt59HIY0iJnUenN1ZovqzXJhFiwi0tjiB8+8xqsiiqnDccp6CX jJtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=QF4BoyINwloCjehtFtIzdPK+JdU/rIKVWWY/ChhqF24=; fh=pL65WHCav4DYzdcAgaLJa0nGc66kwX8nb8ZPsLgLw0M=; b=0r16xWBIt3UvLseNl3DpAjAGBRz10kLg+jOueGEc/d22GaTmQV695TX1MBilLHCSFa etv7IbDb+Clp4a/p6fA6znemtcmwfsRcRbvgYG77zT2DysxoFIC1DEPYJ5IITWWwJ5mU M871fSs9DDcxO8tFiXtnL+4EsibM1U2VsR3zn9N2HPTUfoyerDnQnleN6jq7uuiZ4p1r OcVNkcl21xZlaWit9J+8SzPs9LoA01t5AQ7Y9Nwo/c3FMWnWHhHd7IQQFcJZGJzoTHBo ue8/CQCcUXUocVjDHcaqnzVGMnOmenwa3ZVEPJu9jLgAIwcnd8lljLXHm5JN3HWHhJJf PbVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-135703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135703-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l130-20020a633e88000000b005d3f4474fddsi6776878pga.167.2024.04.08.09.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 09:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-135703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135703-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2FE9C28A783 for ; Mon, 8 Apr 2024 16:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4361142914; Mon, 8 Apr 2024 16:42:53 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (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 7A5431E4AF; Mon, 8 Apr 2024 16:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594573; cv=none; b=a2vOwy9FzXzrmZLCia9cCSQGQ0byhcciZGhWMZNubBmTi2v+Vaik5l0lc/t9CP9sAplIJR9PedwlsI2ntgaALCt1hdaaNoz5pRPra22zTX7pSRsOuCrf2Rm6L4VZThNZoWNCAlLKUnS34evVhsrMmqTjLpa/zqCfCc4w+EN29l8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594573; c=relaxed/simple; bh=3cfCGhGo+1bKCCJHCSF579dUEsohJffhuL/JLhHgU0k=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=aiPFCYZiOGy/pB9MxOBNa3dqMN2NX7bRarlWCnOtUKklJXXbBw20pJw2S12B3hytMaN7yon36t+Frp+TgTH4z2/lX6ouFtqvS/5TQd84XXLqarvJw5fNx5NziNua4EWIgzi6xBEGjWINA+8D0hmac4S4nvZDFQg/PzBOQEcODUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.2] (ip5f5af0ad.dynamic.kabel-deutschland.de [95.90.240.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id C980F61E5FE01; Mon, 8 Apr 2024 18:42:33 +0200 (CEST) Message-ID: <913ed06e-56d0-4504-8af5-26ebac291d07@molgen.mpg.de> Date: Mon, 8 Apr 2024 18:42:32 +0200 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: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1 From: Paul Menzel To: Mathias Nyman , =?UTF-8?Q?Micha=C5=82_Pecio?= Cc: Mathias Nyman , linux-usb@vger.kernel.org, LKML References: <58bca6f2-797a-4e20-a476-2294309afdd5@molgen.mpg.de> <20240405113247.743e34b2@foxbook> <7090d3af-18ce-40e1-8ac2-bf18152e5c4a@molgen.mpg.de> <20240406183659.3daf4fa0@foxbook> <20240407142542.036fb02f@foxbook> <1f64af9a-0618-a7da-4acc-f043b6580308@linux.intel.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit [one addition] Am 08.04.24 um 18:37 schrieb Paul Menzel: > Dear Mathias, dear Michał, > > > Thank you very much for your assistance. > > > Am 08.04.24 um 09:17 schrieb Mathias Nyman: >> On 7.4.2024 15.25, Michał Pecio wrote: >>> This (and the absence of any earlier errors on the endpoint) looks >>> like the hardware may be confirming a "successful" transfer twice or >>> the driver may be processing one such confirmation twice. >> >> It's also possible this TD/TRB was cancelled due to the disconnect. >> Could be that even if driver removes the TD from the list and cleans >> out the TRB from the ring buffer (turns TRB to no-op) hardware may >> have read ahead and cached the TRB, and process it anyway. >> >>> [   94.088594] usb 1-2: USB disconnect, device number 8 >>> [   94.089370] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1 >>> [   94.089403] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001250310f0 trb-start 0000000125031100 trb-end 0000000125031100 seg-start 0000000125031000 seg-end 0000000125031ff0 >>> [   94.089427] xhci_hcd 0000:00:14.0: last xhci_td_cleanup: first_dma 1250310f0 last_dma 1250310f0 status -115 from finish_td >>> >>> (I say "successful" but it really isn't - the device is no longer >>> listening. But there is no delivery confirmation on isochronous OUT >>> endpoints so the xHC doesn't suspect anything.) >>> >>> Could you try again with this updated debug patch to get more info? >> >> Would also be helpful to add xhci dynamic debug and xhci tracing (two >> separate logs). These will show in detail everything that is going on. >> >> Steps: >> >> mount -t debugfs none /sys/kernel/debug >> echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control >> echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control >> echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb >> echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable >> echo 1 > /sys/kernel/debug/tracing/tracing_on >> < Reproduce issue > >> Send output of dmesg >> Send content of /sys/kernel/debug/tracing/trace >> >> please copy the /sys/kernel/debug/tracing/trace file somewhere as soon >> as possible after reproducing the issue. It grows fast. > > For posterity I created Linux Kernel Bugzilla issue #218695 [1], and > attached the files there. Hopefully everything was captured, that you > need. The discussion could continue on this list, but do as it suits you > best. Just to clarify, although there are six error log lines I only plugged and unplugged the USB headset once. > Kind regards, > > Paul > > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218695