Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5389049ybi; Wed, 12 Jun 2019 01:31:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSgYFmT1dOd8mAPUAMhx+SZzTKNsXcWNv+W++1cMCPgeq69Am6yAoYTknBL36PobrxYvFC X-Received: by 2002:a17:902:20ec:: with SMTP id v41mr1057736plg.142.1560328302596; Wed, 12 Jun 2019 01:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328302; cv=none; d=google.com; s=arc-20160816; b=Dk3Ju8Jm7EfD/xAAUNlRm1Mzh9OSF82/a4I15Fx55XE1fl0KvNZqr9lyMJBZAZDURW tw8LR5BetcJNMVx51JgxQqsu/8RWjNx8L/p4WVE0E4K6396SB8oyvNAnUegv7l5GSAvj WCUC96TMstbd6j4ep5jT/kcFfFTmLMPhymFxjIsjxS88fvMUFyP8OzBJLW1FHo5dewZi UcIC+RIpPhOG8D6IBKrmR/cikjMuSJRWSMxQ3bj+3WQRZfunN+YTcI1pGTlG2J6z3fFg cLAbdll3cBQo80swrSIKH9x0Kyx1OziZdWRRdndMej+4V5fwE8suDMriBdofGFd4zPPk qaiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=RyEbzEd8V/Hhjd8LuL3NPnlgK3OhtamHGaXLesW+Bws=; b=YN10CHQ0jQ3TnYjeuBsBlqCQP32YLPREk2fMZiELlGRJuIRebPQAR6BHfmjetAyKMM eBbt4YaSTdTWj6cmzFRPv172Ybt5mD75FF26z+uN9nIHYYHBf95qefq4D0mANw/ZT7JK 0/4YuqLWSDrpxarvksCuTOoCcxdbhEVwlY5OASEhoJkUvN2EHxwR5MyDIsmklEL05W5V 3gbwnU1DCmcGUFlcpMjO9VQS45ZNLItccGGa0lZIwZI0XTPwKUQ0hT4KoIIjgRLuvltA Hb5W1HyCy7ofiSrhvxGRhj8dFew9hR8e6HAV3hLka7L9eRSS5ZucO+CWCrg0ccZ55OZE 89yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si4775540pjq.79.2019.06.12.01.31.26; Wed, 12 Jun 2019 01:31:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407736AbfFLG6i (ORCPT + 99 others); Wed, 12 Jun 2019 02:58:38 -0400 Received: from mga01.intel.com ([192.55.52.88]:45279 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390376AbfFLG6i (ORCPT ); Wed, 12 Jun 2019 02:58:38 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2019 23:58:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,363,1557212400"; d="scan'208";a="184148897" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga002.fm.intel.com with ESMTP; 11 Jun 2019 23:58:34 -0700 From: Felipe Balbi To: Alan Stern Cc: Mathias Nyman , Greg Kroah-Hartman , David Howells , viro@zeniv.linux.org.uk, linux-usb@vger.kernel.org, raven@themaw.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/10] usb: Add USB subsystem notifications [ver #3] In-Reply-To: References: Date: Wed, 12 Jun 2019 09:58:33 +0300 Message-ID: <87h88v1e92.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Alan Stern writes: > On Tue, 11 Jun 2019, Felipe Balbi wrote: > >> >> >> > So for "severe" issues, yes, we should do this, but perhaps not for all >> >> >> > of the "normal" things we see when a device is yanked out of the system >> >> >> > and the like. >> >> >> >> >> >> Then what counts as a "severe" issue? Anything besides enumeration >> >> >> failure? >> >> > >> >> > Not that I can think of at the moment, other than the other recently >> >> > added KOBJ_CHANGE issue. I'm sure we have other "hard failure" issues >> >> > in the USB stack that people will want exposed over time. >> >> >> >> From an XHCI standpoint, Transaction Errors might be one thing. They >> >> happen rarely and are a strong indication that the bus itself is >> >> bad. Either bad cable, misbehaving PHYs, improper power management, etc. >> > >> > Don't you also get transaction errors if the user unplugs a device in >> > the middle of a transfer? That's not the sort of thing we want to sent >> > notifications about. >> >> Mathias, do we get Transaction Error if user removes cable during a >> transfer? I thought we would just get Port Status Change with CC bit >> cleared, no? > > Even if xHCI doesn't give Transaction Errors when a cable is unplugged > during a transfer, other host controllers do. Sometimes quite a lot -- > they continue to occur until the kernel polls the parent hub's > interrupt ep and learns that the port is disconnected, which can take > up to 250 ms. my comment was specific about XHCI. It even started with "From an XHCI standpoint" :-) -- balbi