Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1842165pxm; Thu, 24 Feb 2022 10:21:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXzSl6S7Fzo93sJ7OL99PyqkqyqH63pBXG5i+GtydSowhKZPwWzyctnpFyz3o/nGzDmB0B X-Received: by 2002:a05:6402:5cd:b0:412:d3fe:843d with SMTP id n13-20020a05640205cd00b00412d3fe843dmr3651196edx.97.1645726862566; Thu, 24 Feb 2022 10:21:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645726862; cv=none; d=google.com; s=arc-20160816; b=A4GW8cH0wlrlOJ8RcgMcjdXaMVd6p1YA6J+t4oc6FePnm/g60Bik8BVkWHX8M4i78Z Jp7U2ZS/JrwIi43lBk4Qr80uli1pBdey+aC9unGY6+Uth+kCXAwPQhH2I9zBclCLVLR0 iAI4i0l+GfcDbIYlnQjyjbiRumJqrpRx4wKGzLSMYQZWQGn2AtlwqxGmhSfnLXcR6Mb/ Mp0WUcQaXWwIYgbibDAWMAMo/+/KPRM2KS+CkYdMwwaBfvNYoDle36Fow+wC4aThEwgs zOnnBFOHLD3MmgfmUflyDyhgWBKKXYh4T8fTkraAFFOC0s652XA6XQpZkyidjR/Imoz1 /3CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=gok3zrz4sF4tTj3b0sOTcKONx4GztwruhBWctwkyPXo=; b=zLgQiYtK7iS/F3eOZM00c05xC2FFd5Ny1iYpVM1TGNDRhCL9h+xa7UyjSxIsmiDVpj /Efzxp2q2JfgMXpyJ9kxcUFgqHVzwVWdzKFg5eO9iR2tKFtEj5thsEy6ZRnrxwV61fTS bjK+4YPLpRdNhQEe4vZf8dlFEp4FWYhiq98Bfd9aP1uDzzCutZJ+o5AosZWGPqCXHaGt mfbmP0eto/aZEEtpWXUXiJaFf+sADEeGU51T8heybEY2arncuDHsXiM8CS5+jSwx/4Mc tLb3sYwVUiplQ29lFuoUDB4aWRdpyU/Nc2C+Sa69QAhA16a26IOo5DB2yLsuEXXBbSiv OIuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170906780100b006d0aafc2f35si79265ejm.331.2022.02.24.10.20.39; Thu, 24 Feb 2022 10:21:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231834AbiBXSBp (ORCPT + 99 others); Thu, 24 Feb 2022 13:01:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiBXSBn (ORCPT ); Thu, 24 Feb 2022 13:01:43 -0500 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91AAB2556DD; Thu, 24 Feb 2022 10:01:12 -0800 (PST) Received: from relay5-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::225]) by mslow1.mail.gandi.net (Postfix) with ESMTP id A3CB6CCFC0; Thu, 24 Feb 2022 17:41:27 +0000 (UTC) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 8C7601C007E; Thu, 24 Feb 2022 17:41:19 +0000 (UTC) Message-ID: Subject: Re: [PATCH bpf-next v1 0/6] Introduce eBPF support for HID devices From: Bastien Nocera To: Greg KH , Benjamin Tissoires Cc: Jiri Kosina , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Dave Marchevsky , Joe Stringer , Tero Kristo , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Date: Thu, 24 Feb 2022 18:41:18 +0100 In-Reply-To: References: <20220224110828.2168231-1-benjamin.tissoires@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-02-24 at 12:31 +0100, Greg KH wrote: > On Thu, Feb 24, 2022 at 12:08:22PM +0100, Benjamin Tissoires wrote: > > Hi there, > > > > This series introduces support of eBPF for HID devices. > > > > I have several use cases where eBPF could be interesting for those > > input devices: > > > > - simple fixup of report descriptor: > > > > In the HID tree, we have half of the drivers that are "simple" and > > that just fix one key or one byte in the report descriptor. > > Currently, for users of such devices, the process of fixing them > > is long and painful. > > With eBPF, we could externalize those fixups in one external repo, > > ship various CoRe bpf programs and have those programs loaded at > > boot > > time without having to install a new kernel (and wait 6 months for > > the > > fix to land in the distro kernel) > > Why would a distro update such an external repo faster than they > update > the kernel?  Many sane distros update their kernel faster than other > packages already, how about fixing your distro?  :) > > I'm all for the idea of using ebpf for HID devices, but now we have > to > keep track of multiple packages to be in sync here.  Is this making > things harder overall? I don't quite understand how taking eBPF quirks for HID devices out of the kernel tree is different from taking suspend quirks out of the kernel tree: https://www.spinics.net/lists/linux-usb/msg204506.html