Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8917076ybi; Thu, 6 Jun 2019 23:43:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbQXFOGTbWhnsOtIHjO1aZPor8FqfD+rvLFcubVWSn58ivFR9pTAGgfaJ6uVrWeskqQrc4 X-Received: by 2002:a17:90a:2648:: with SMTP id l66mr3745051pje.65.1559889800536; Thu, 06 Jun 2019 23:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559889800; cv=none; d=google.com; s=arc-20160816; b=mAT5KPfUVkJKQSFpbpIjoEX6yOU4Tb5de1RIw5uRMrdp1TEkfzpmPYm63L9tFL1ANj dulch9BgcD4SzHjGo29Pw3sdL7lUJB1c486mwy9RVE6aCY6fJ38ut9Zfhxd7ETG4aBg4 p8Amu7OdpTdvpZCyHz7Dyb7cCUPUnnbh5Gg+nBPnMk5ElC/cPouWcUxX63h+Ioa5Sgq0 tZ/d6+tfGF44FwqFxrLuxnmaDNtVdHAWwcqPnts8//1cPLQUZJ/kX3k3Fk0HdU3Y/txW 8u3FB2p+/YNZMAZIxdDQJ07HJPboIR+ntoGEqDPhQVE4g8aEXIPeDH8e7EMhhO0rPUON A+Dg== 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=FsJ/sMv17v3bcAPzFNDmxWcW0UV8u15NDxubbHsjgrw=; b=gX4KvV+gI51dxKjq1AeHf8Q3nJelLkTqXAzUXSNwgqVGbSW1PCKCPaWlj7TjdvfpzM uGirRp1+1Q2LvxIYxo9b0ikbb3DFeJsP2gx8UZRWEhybVaiOsICn1N8OiP0KAK6jfXvS /Tf6hmlroxpzOH/uVkHshDpQcy3OLU0HlWgM5C+keD2P2EFDvoyQGaeW/BfLp3gjl2hY o6AexR8ERJ0YgYulrGJrTMPPMEIUvww+53vYehG5cgx4m5yODXCaStrMO1AV+LrU4dQn YQ7TTJrqPQ3KXTca5vrkl9pcVcIIjDlTIsMsT6ZuHemlMRL5v41m1yZTzk5/Q81svhbS frnQ== 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 65si1137427ple.240.2019.06.06.23.43.04; Thu, 06 Jun 2019 23:43:20 -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 S1727332AbfFGGlF (ORCPT + 99 others); Fri, 7 Jun 2019 02:41:05 -0400 Received: from mga02.intel.com ([134.134.136.20]:49807 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfFGGlE (ORCPT ); Fri, 7 Jun 2019 02:41:04 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2019 23:41:03 -0700 X-ExtLoop1: 1 Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by orsmga008.jf.intel.com with ESMTP; 06 Jun 2019 23:41:00 -0700 From: Felipe Balbi To: Greg Kroah-Hartman , Alan Stern Cc: 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: <20190606153150.GB28997@kroah.com> References: <20190606143306.GA11294@kroah.com> <20190606153150.GB28997@kroah.com> Date: Fri, 07 Jun 2019 09:40:56 +0300 Message-ID: <87imthdhjb.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Greg Kroah-Hartman writes: > On Thu, Jun 06, 2019 at 10:55:24AM -0400, Alan Stern wrote: >> On Thu, 6 Jun 2019, Greg Kroah-Hartman wrote: >>=20 >> > On Thu, Jun 06, 2019 at 10:24:18AM -0400, Alan Stern wrote: >> > > On Thu, 6 Jun 2019, David Howells wrote: >> > >=20 >> > > > Add a USB subsystem notification mechanism whereby notifications a= bout >> > > > hardware events such as device connection, disconnection, reset an= d I/O >> > > > errors, can be reported to a monitoring process asynchronously. >> > >=20 >> > > USB I/O errors covers an awfully large and vague field. Do we really >> > > want to include them? I'm doubtful. >> >=20 >> > See the other patch on the linux-usb list that wanted to start adding >> > KOBJ_CHANGE notifications about USB "i/o errors". >>=20 >> That patch wanted to add notifications only for enumeration failures >> (assuming you're talking about the patch from Eugeniu Rosca), not I/O >> errors in general. > > Yes, sorry, I was thinking that as a "I/O failed in enumeration" :) > >> > 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. >>=20 >> Then what counts as a "severe" issue? Anything besides enumeration=20 >> 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=20an 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. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlz6BvgACgkQzL64meEa mQbHWA//alAxWfE7N7D+w/lSXSIZSiBqlrME+vIZMZvLXt1L3QgGugGyks7F0vZg GaYpsclw6LHhR0Nxjnb4h4zEEKidtzSGjPFEW0ghtmTOC+vPzqyxuiHuKIXUFFyJ 7PSoe583uk8sEpPMPi9+imXjjBlgCylCHsI/7JIVNFPx+fZEpJXXffJQZsnELoib F6DI9+uaDCSqCpduSOwxEqx28bE7SKMugJV3CjHSFKLY8n+u1PBFlMJEgulNUCro Lum8WN98AnNfUVtinU4mUONIW2dZGaxxIhVdrKMluixEn9+O3zal0Ot2YAnLruvf mG4d+zsKaPojOB4Trze7F9FQQgaDprzqLg6BgRS3rZTiHBYgwcblPuBZosLeGttC T/mI4bp+4zqJ36cl9hXh4w2VbyN1qwlqvZ3qwQJahcuTYGVIne/JIz+4T8A2uf+v FRUmw1gZxjVBC/KI/VGUY0raq7DAbk55YfXLF2tnYc6sG9a51VQn0xy7L/rtouL/ VQygKOay7wPw1k9lEUpJzgqwBg2s1Xv+5Hj4CeE91sboglzhRXl62MPg7B4KUFfM paMco4/bCwZ5kc/4N2SZd0SgKFGGbyDVg+uvB610vU6cu0V0WaQLQ6W3WCnxvUel 04A0dGEf9E7/A/m8OLiv0ARjWfmc7BIVCLSAoGw5Gkv6MGxsrKA= =Dh4b -----END PGP SIGNATURE----- --=-=-=--