Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp313386rdb; Mon, 29 Jan 2024 03:11:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IERKGw+N3OotLHmcdC16BQ1o9EKBVmo2k3MiBGWVBbypCLNDORiDqCNDt9xzhxWJzGGrhDp X-Received: by 2002:a05:6402:3d2:b0:55f:1ec4:aa5e with SMTP id t18-20020a05640203d200b0055f1ec4aa5emr463330edw.4.1706526712727; Mon, 29 Jan 2024 03:11:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706526712; cv=pass; d=google.com; s=arc-20160816; b=ZbNCzcZRqINR/Zy9soW+UZRN/SePM+17anrLFMe18Rudd/4tg7NtD7nk9UuBEK2eIG YoL5ci2qFgD1qJwyMPeL7HoAGLu194hRwpJYCpDpy76ymZYDVeDqhaynkHAJV4a4qf5F Fu3gLzGctuG+8bk6xvahT93THal1w5ak56IRyA52gGrJDR6UgvucYILdA2mjg57CL0mt 7/k1yiijK83kk33GHEW+Hy/AWzvHQXoPu91YwFDVB6g/TyJyCo44aVtXPfUObKzmHvI+ OV7nranSjpL+1NuOI2+ZBqxB0rP2uqKt9mYsQipupXOehodbZoEvdqz4ZIJZ70uvnO6J weMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VViNKQmytjZMa9HQwAlRrm1lQV2U6Y/HrJkRvfH9jxI=; fh=RLFu5ErbI2EILPwalanGoo1f+fpDuTTr/Lm3tq6KjKs=; b=W3lBYf2tNJuAt5zUnuGLGK8GDr0jJtK1gIhUaJgax/WaBcfpiY27IKnVy0LeYup801 r9R3kqeGME9h5Ikrnx1RMqWRMsBk9anNInFFSa6Os6z6UiySFAfyet5mlwVs2X40rw85 jiIN6tqOg7UThODXonEgfCWTzZdmgC4sVgMZ3klYVjJSSkpQGDDc+Lei+GvgkY1IKP5t vjvommnz8O47v2u8R+W39xrZkmS5/ebWCZZWQZl7KIsfz3DosSAdJSbQaBAWlbtRdpYp 6RyeNMpIhvdZxyYRHQA7n6X/PbyAuz3PEZp/nvqvJ6j5fNXSnI48lQvN5VDGeEN8w1HU Ugsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f42a5kof; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ef8-20020a05640228c800b0055d0a061ef7si3416016edb.523.2024.01.29.03.11.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:11:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f42a5kof; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 56C541F20D3A for ; Mon, 29 Jan 2024 11:11:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FC91604D0; Mon, 29 Jan 2024 11:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="f42a5kof" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D38C55F879 for ; Mon, 29 Jan 2024 11:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706526644; cv=none; b=q6URiezwzvsW+lsCuQR4Fe7TWd8uv20L1iumr6WmJwKxhbhWZ3r7zF2P0ZKoCHWh1PvVMIft2PHXAIsuckn+tbF2bwOMjJrrp+q2adVNnBKfn24BxeyI9D+KseQgrZz5DBvf73XfHhDS0NrA45fb+OUv+F/aypANZ4wRNXFpviE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706526644; c=relaxed/simple; bh=iCt3ARyPFGaFcNNh6hPSDnvIq7kLiJZCIOO0G1SZ8xM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KrTwHHPi6bfGov8xE/iKWkY2JP2iH0LjmCuNNa0lUqHWg4iXlqIsBW6x/z3pw5kS3mGkDGD2prX11GSwdy41TfSkXWprPF4dkxqxYEr64aqv3QqvH6UnFWnTarT3nzRhVjE9UzsNT2TqkV2wj0cxOl+aHMXSSNPAOWmFu79AQOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=f42a5kof; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706526641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VViNKQmytjZMa9HQwAlRrm1lQV2U6Y/HrJkRvfH9jxI=; b=f42a5kofjjL76NJRQGCmjtK4L9TAU+IAF1vfgLjkMBDsj/Wr0gc+5sgarw2Ukcwy8EjSaV kBpTR/2R0Wrp+LQ/2iS0jIlEHULhgSJfCQuNxgS3tqgmOmx6LhFfFlIRsjbbafKxiqk/n7 pIa/Ehd/RzzUsKrvMjUyeYbY0kumV64= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-689-QWjqyMXzOLKKg4XhpytMSQ-1; Mon, 29 Jan 2024 06:10:40 -0500 X-MC-Unique: QWjqyMXzOLKKg4XhpytMSQ-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a30f9374db7so423101966b.0 for ; Mon, 29 Jan 2024 03:10:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706526639; x=1707131439; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VViNKQmytjZMa9HQwAlRrm1lQV2U6Y/HrJkRvfH9jxI=; b=ZI4FTvWguW3If6eG1jSsDXDwVMFnHyZ6M+wbfjBIZT5KWHKfXjF10Yhp9EA6+80fGm oxiWa6SVQp42brU2qIEZNrfdfZ1iZe0IzcrPxevqLpCvE+l+x30xOUA8Rh9/2vOrp5H/ gvEdYkNodTodUNd1omQL6Svfgvpq6E0QSUYNcqdjbL9YF24Qi36cTHy4qNLZuJl9hCgN LTDywdQxdWF8tyYo/aeLrLoFBnjVxWyHvNP+0k3nuYmiUsKpdn/f6skv47e2O/On+7A0 g/cQ2ssxjGQeHIY2CdDS0DpFz7ura4SoX79i/dbz0JoA+pDE9F2q70MrWFovnEVnJSgN uQ4Q== X-Gm-Message-State: AOJu0YwPsW/MkTUz8F0Bk9eoODuzWt2D65lc0kcVeKTPzTGpi2r8boDH LXKq9cryfQPfF5E9vNotl27xNm0jQrHO9zxzSZRK27Frm2j+P+hky4QMzBoEzSzTrzC8wGTsy+o BffYs2FjETTzCnarfspLx7QuiY8DLUYd9gheRjrN+2WrDCSa6dhW9SR5wMGMYHQ== X-Received: by 2002:a17:906:3691:b0:a2f:dae6:5987 with SMTP id a17-20020a170906369100b00a2fdae65987mr7350012ejc.33.1706526639095; Mon, 29 Jan 2024 03:10:39 -0800 (PST) X-Received: by 2002:a17:906:3691:b0:a2f:dae6:5987 with SMTP id a17-20020a170906369100b00a2fdae65987mr7349995ejc.33.1706526638797; Mon, 29 Jan 2024 03:10:38 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id cu2-20020a170906ba8200b00a35757cbd9esm1944925ejd.4.2024.01.29.03.10.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 03:10:37 -0800 (PST) Message-ID: <4c68a68f-5fc6-4906-b958-4e2bd8fcd25a@redhat.com> Date: Mon, 29 Jan 2024 12:10:37 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Flood of logitech-hidpp-device messages in v6.7 Content-Language: en-US, nl To: Jiri Kosina Cc: Oleksandr Natalenko , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, =?UTF-8?Q?Filipe_La=C3=ADns?= , Bastien Nocera , Benjamin Tissoires References: <3277085.44csPzL39Z@natalenko.name> <824573bb-ae01-41b9-8f97-a760ae8f3f18@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Jiri, On 1/17/24 20:01, Jiri Kosina wrote: > On Tue, 9 Jan 2024, Hans de Goede wrote: > >>> Jan 09 10:05:06 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: Disconnected >>> Jan 09 10:07:15 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: Disconnected >>> Jan 09 10:16:51 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: HID++ 4.5 device connected. >>> Jan 09 10:16:55 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 10:16:55 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 10:36:31 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: Disconnected >>> Jan 09 10:37:07 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: HID++ 4.5 device connected. >>> Jan 09 10:46:21 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: Disconnected >>> Jan 09 10:48:23 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: Disconnected >>> Jan 09 11:12:27 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: HID++ 4.5 device connected. >>> Jan 09 11:12:47 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 11:12:47 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 11:38:32 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: Disconnected >>> Jan 09 11:43:32 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: Disconnected >>> Jan 09 11:45:10 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: HID++ 4.5 device connected. >>> Jan 09 11:45:11 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 11:45:11 spock kernel: logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. >>> Jan 09 12:31:48 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: Disconnected >>> Jan 09 12:33:21 spock kernel: logitech-hidpp-device 0003:046D:4051.0006: HID++ 4.5 device connected. >>> ``` >>> >>> I've got the following hardware: >>> >>> * Bus 006 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver >>> * Logitech MX Keys >>> * Logitech M510v2 >>> >>> With v6.6 I do not get those messages. >>> >>> I think this is related to 680ee411a98e ("HID: logitech-hidpp: Fix connect event race"). >>> >>> My speculation is that some of the devices enter powersaving state after being idle for some time (5 mins?), and then wake up and reconnect once I touch either keyboard or mouse. I should highlight that everything works just fine, it is the flood of messages that worries me. >>> >>> Is it expected? >> >> Yes this is expected, looking at your logs I see about 10 messages per >> hour which IMHO is not that bad. >> >> I guess we could change things to track we have logged the connect >> message once and if yes then log future connect messages (and all >> disconnect messages) at debug level. >> >> Jiri, Benjamin, do you have any opinion on this ? > > Works for me, thanks. Do you plan to submit the patch implementing this? I was planning too, but I'm a bit swamped atm. I would not mind someone else implementing this suggestion and I would be happy to review and test. Regards, Hans