Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp617714rdb; Fri, 17 Nov 2023 08:03:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe7nUDlPVGonIL7ffvBEVPzKbD1CpZyxwg6+fYX2sFBUP+PQFTkuXd3/bub9JayjRH2p7F X-Received: by 2002:a05:6602:2ac5:b0:7b0:1caf:33fc with SMTP id m5-20020a0566022ac500b007b01caf33fcmr24264407iov.14.1700236995459; Fri, 17 Nov 2023 08:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700236995; cv=none; d=google.com; s=arc-20160816; b=Vnd9y7Nxoi6lTXpt8aGsVP1irgF8gpFQp3VkuP+F3pdJim+C6Pn7/mJNa9U0zIMiXO PeSMcv9qTZgbL/kGT9lmWPb2/PaPoJB/FjUg1ztDZ+SSi7ZBp9qwc2BxJIniFWmn20Wh G7Jo9bJAVYKzE363sKtv74IHCzQXX4tMEIXVQxNqnayrqZktokgkYVn/w4U+NqLNTQcY b57mRUjShZfkPnpHTTkPhAVDorD1ryJy8+xL5t+jhIetrTKASxioTiCjxjpm7MUlvt3X c/TkhOaLrIjHp72osRw8eqn2IdHc2msuGbCUl7iGq173oqxgxMtiUK0mjkJk7ljWIOXE 5V0g== 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; bh=gwpHXy/uzBwqH0Oj7C+T7JfruHCVO+Z7lvVWNKlEFQ0=; fh=pI4U92+aLevC1rpDSGeQQBABQ4W3zQ9OGNTBIcv4uP0=; b=o1LhJlqXymazYe7P4HLcp2bRHbNpDi4kPIemPqFwwDAf3NZKYaD7QUdWJpo+1CEgGP yz3hIavrFfNO2lm2Y1m9llhXFq6TjFNrfEvH/AKDQ0oOwwxou2qdGd+m9P1gtLOj8xTo 17Mjo0Mlba/gnukNi6qY9r9Fn5AmzMFvoZn/10oBWlTsl/jElxEUI7lcdRv/ITwS9UMt uc3pkVlx7AFqjVa7h7QqsJgmjdBjDFw/PQrNSBYvSaLWdjVXSAEdhGtD75il335awKUJ hPl/uesCRwr9CnHVRxQgCbl6AoQ/+iugjPZzwbdQf9/IGDPstwfATMh9rJTH/Vb1UAik 8lig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l11-20020a05660227cb00b007a27d544b6csi943585ios.12.2023.11.17.08.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:03:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 97EB48316E83; Fri, 17 Nov 2023 08:03:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbjKQQC5 (ORCPT + 99 others); Fri, 17 Nov 2023 11:02:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjKQQC4 (ORCPT ); Fri, 17 Nov 2023 11:02:56 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 0789690 for ; Fri, 17 Nov 2023 08:02:52 -0800 (PST) Received: (qmail 1359927 invoked by uid 1000); 17 Nov 2023 11:02:52 -0500 Date: Fri, 17 Nov 2023 11:02:52 -0500 From: Alan Stern To: Paul Menzel Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hayes Wang , =?iso-8859-1?Q?Bj=F8rn?= Mork , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: r8152 logs error `can't resubmit intr, status -1` Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 08:03:11 -0800 (PST) On Thu, Nov 16, 2023 at 03:59:31PM +0100, Paul Menzel wrote: > Dear Linux folks, > > > On the Dell XPS 13 9360/0596KF, BIOS 2.21.0 06/02/2022, with a USB-C Dell > DA300 adapter attached to the only USB-C port on the left, Linux 6.5.10 > logged the message below: > > r8152 4-1.2:1.0 enx18dbf22dccf3: can't resubmit intr, status -1 > > As this is error log level, how can I fix it? > > Trying to understand the code, does `-1` mean `NOPERM`? > > $ git grep EPERM include/uapi/asm-generic/errno-base.h > #define EPERM 1 /* Operation not permitted */ > > Skimming the code this is returned by `usb_submit_urb()`, which in turn > returns the return value of `usb_hcd_submit_urb()`. That's right. This error code is returned by usb_hcd_link_urb_to_ep() when a driver tries to resubmit an URB that is being killed and therefore is not currently available for reuse. I have no idea why the r8152 driver tries to resubmit an interrupt URB that has been killed. It may be something innocuous, and the error message in the log may be unnecessary. You'll have to speak about this with the driver's maintainer. > Do you have some > debugging hints how to for example print the call trace for this case or > enable more debug messages to understand the issue? You can add a "dump_stack();" call to the section of usb_hcd_link_urb_to_ep() that returns the -EPERM error code. However it may not give you any information you couldn't already get by reading the source code for the r8152 driver. Alan Stern