Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9853320imu; Wed, 5 Dec 2018 11:22:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uag9DcOUtsqfeYCX/6oa3h59deSIP9Zddeemr2K+VngmoSlS1C6j/BzF4IeIcvxkQnBH+k X-Received: by 2002:a65:57cb:: with SMTP id q11mr21675056pgr.60.1544037763994; Wed, 05 Dec 2018 11:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544037763; cv=none; d=google.com; s=arc-20160816; b=zg8m6bhZ/FilWONcxiYGsbXkJWDGqSMdFmWATvlGabVBuQCU5YHx+2sJcZV1gKPP7E U8UMM5bTPXdONROrtY3oH1Q+tgf2Z6Ed5nAozBq4Xidu1T3sBEMAcRa1toiPZRDjy8Q3 JKUHfO8sEBh2K8aHqYIG8pyyvk8K+PigWZhE9cSMg3riJ6WYAyyelndqXt6aUr6fKvRT 0CyChcbwPhMXyxmhwyvakM7xSNWCGUMptTm0qKNI6xodG7xmLEuUIwlOAmBtXp9o4BH+ boW7QcS1n+Pgm6zRWYf/p6iD02AfimnhvPHFQAs7xAf4JXRVUMn4nuAnae2wmUhCBIWK Zmsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rwZCDFybXzSM1DPcpuZEZjxRuJoyHY6ouGOxYGHg9hs=; b=K7VnLe06biL125DHVxzXhNgWHZ7++2RYB6Dq8eWLM/zWualKIp7IZKFQOCEQA3e2Pw UnkiFczKFG7Hsl3WzsyOP8isndL1G3YErWrBX/Ci0/TlLvSb0bVT4DdMXH69Cttahoyj QihLxxmcij+03+N0eWgVOx3DRullb4MUahKGxTLziBIAIwa3bPs5NE6WIahvIemkpGBj CTnROl9NjzoQcIqVHwG2OiPq7Sznkyob5J2bBHxJ/T6JUjFxP775HwrIEVbXX29z799K h59XkXGzGOfjK91hhPLHEjdFnIbpEIb0LA1f9ZriNHaddte5R4O5nx3+yJHhrI+Abyt1 N8Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wvXoBcef; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89si21628781pfr.242.2018.12.05.11.22.28; Wed, 05 Dec 2018 11:22:43 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=wvXoBcef; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728320AbeLETUj (ORCPT + 99 others); Wed, 5 Dec 2018 14:20:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:43118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbeLETUj (ORCPT ); Wed, 5 Dec 2018 14:20:39 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CCE62082D; Wed, 5 Dec 2018 19:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544037638; bh=IIF+FDb4M2ugIZteTEiIq8WRbXlKjHALYOz1o1D1gR8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wvXoBcefGGQqPtngRmgLnb/qyQ7lsegEHQ+9VcLk0+3GS6j6Ea0y70hsYf6Ixmef2 z27mmOUBVJfcjl1Wv1SpzSEH3ukgkA5DNE/Gor5twi1KHw/cLZIe1DhZjTlWTr4LVf OtKzdJL8lP7+76R/J/YuDSBC2PnSgfKGOtrqvWqI= Date: Wed, 5 Dec 2018 20:20:36 +0100 From: Greg Kroah-Hartman To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: linux-bluetooth@vger.kernel.org, Dmitry Torokhov , Marcel Holtmann , Kay Sievers , Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= , systemd-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 BlueZ] hid2hci: Fix udev rules for linux-4.14+ Message-ID: <20181205192036.GB434@kroah.com> References: <20180620164240.6535-1-ville.syrjala@linux.intel.com> <20181204204117.14964-1-ville.syrjala@linux.intel.com> <20181205070621.GE16346@kroah.com> <20181205154032.GT9144@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181205154032.GT9144@intel.com> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 05:40:32PM +0200, Ville Syrj?l? wrote: > On Wed, Dec 05, 2018 at 08:06:21AM +0100, Greg Kroah-Hartman wrote: > > On Tue, Dec 04, 2018 at 10:41:17PM +0200, Ville Syrjala wrote: > > > From: Ville Syrj?l? > > > > > > Since commit 1455cf8dbfd0 ("driver core: emit uevents when > > > device is bound to a driver") the kernel started emitting > > > "bind" and "unbind" uevents which confuse the hid2hci > > > udev rules. > > > > > > The symptoms on an affected machine (Dell E5400 in my case) > > > include bluetooth devices not appearing and udev hogging > > > the cpu as it's busy processing a constant stream of these > > > "bind"+"unbind" uevents. > > > > What is causing a "stream" of bind and unbind events? This only happens > > when a device is attached to a driver or removed from a driver, which is > > caused by something else happening. > > Not sure if it's just due to this thing causing devices to > appear/disappear during bind/unbind events or what. Someone has to be telling the kernel to bind/unbind from a driver to a device, it doesn't do it on its own. Look at your other rules/scripts for that. Also note that the kernel has been doing this for over a year now (since 4.l4), what just happened in 4.19 to cause this to be an issue? > > This should not be a normal > > occurance, unless something odd is happening to your hardware? > > It's not specific to my hardware. Lot's of people are affected. > See eg. > https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1759836 > > Acutally looking through that bug it seems someone else noticed > hid2hci failing lot in the logs. So maybe it's just that we already > switched the mode during "add", and then we try to redo the same > thing during "bind" which fails, and that then causes and unbind? You have to manually unbind the device, the kernel does not do that. So perhaps you have a broken udev rule somewhere else that would do something odd like unbind/bind? I don't see this happening on my systems, but hey, I know better than to run Ubuntu :) thanks, greg k-h