Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9853319imu; Wed, 5 Dec 2018 11:22:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/XTkjk+oAHfAudFum9nFyDH9Z5Dms+attNNKb2bBY0W3R0VyXiJR8DRk8qLxmginkGrHcSK X-Received: by 2002:a63:4456:: with SMTP id t22mr22098759pgk.0.1544037763997; 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=qJlGdcscMQ6xLyhnC9Nn54A44QoqyV3BvMnmlScijzVA7yKxjSgrbvIViSNI0jXZUq B9ehQWm7T9zMTLVpS+1CA37Y57H/I/pe+uiTUJgiEHha6Z4S0doUMll73Nz+eBJbh5TU tukdhWIrp17BOYpQ0V3iauzjQRW+fsd+0ozXJODoMSRqRUVug/WphY0/N6ns7tevUGLi 2B9hT667QasW6Gbt76aYcvx/6L57Lm0LIfLAmQwPgE7dmLxnw8WaBVHKqBEpvymA1Fx3 8H7o1wh0mY9i0imr08Ih9CCHuRtEoipFfRFIUEI/R6CsFl7XZ7ceJqk765rDt0iKEaTR efhg== 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=3kgsWQnhlpGiDILf35Mvlbo4C/HFtnhUuyHrruOVhp8=; b=gv06ZJ4V9RPxn4eG5Uf+vCLL++4CFNIlZhwWr4yC/kxEPJm+hdjbulg9kaSGYs1CtB weh8JmGD502Btz0+lImUFNhdqDCQJGQo5qjY+WcvJRZjFMGz58C3mCwHy7fF4A6CC59C SClhbHGDqwb6k9Ax95GeLL9Wbi17C8xlfufPQDBcp1Oq6nzT4VkASBdWCJPLycIMmBo6 kQKotCcCPGI8x2ndebXGo/6uIIujBoT7wsHOvOnrnFH5i5PtfBrQzd++sxUH3ypIMoeo fLpi4SoJht7J4sr7y2GhKVPAYTZqX8pj6lrTJflN5HylrtpMZk5pqTxNhxDbPKoVuVXc Kpyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UZi2abCj; 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 g10si23263363plm.1.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=UZi2abCj; 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 S1727349AbeLETVt (ORCPT + 99 others); Wed, 5 Dec 2018 14:21:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbeLETVt (ORCPT ); Wed, 5 Dec 2018 14:21:49 -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 93E822082D; Wed, 5 Dec 2018 19:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544037708; bh=f4fEzsQka7d0wlsvHtxzOszwgJSnuOy3W4rjne0azAs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UZi2abCjlgBo2zcUaUsSJq7nAYvrGXYZcMHCwqRoO5rDajtHd4kC+58mdGJURSpPk mLURIoDXSgA5ZHu2AeGOv47E0HgeB81tZEKPKYIZtzJsEc6Qz7sUZ8m6Vzy5qjaNcp twYnynWgOdGnm6yt2cSnExSBWiqGprBClmMfLSdI= Date: Wed, 5 Dec 2018 20:21:45 +0100 From: Greg Kroah-Hartman To: Dag B Cc: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , 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: <20181205192145.GC434@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: 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 08:09:35PM +0100, Dag B wrote: > > > On 05.12.2018 16:40, 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. > > > > > 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? > > Dunno, udev is beyond me. > > > > > There is another bluetooth scenario where a cpu core peaks at 100%. > This is when a bluetooth keyboard goes out to lunch/suspends/disappears. > No idea if this is related to the original issue, asking forgiveness if it > is not. I have bluetooth keyboards working just fine here, again, more specifics would be good to have. > I have found it challenging to attract any attention to the problem, despite > it not being an entirely new or uncommon occurence. > > Google the following terms: bluetooth keyboard bluetoothd linux 100% cpu > > > > By chance, I discovered a supposed fix for this on github today. I have not > had the chance to test it (or if it even applies) yet: > > https://github.com/peak3d/bluez/commit/9cc3c1afd793e40b1a0cdc4a13e08b5e2575759e > > Could someone please shine a light on the sanity of this patch? That's a userspace bluez patch, I think you are asking on the wrong list, sorry. greg k-h