Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1864723ybv; Fri, 21 Feb 2020 04:49:34 -0800 (PST) X-Google-Smtp-Source: APXvYqw8W3fBi9Z31SgdTZEtLK1Xc/Gpx8qc0QA0bkqvPi0jw+cwyn2n/heL5a7tK8+rPerHeDx/ X-Received: by 2002:aca:bc0a:: with SMTP id m10mr1846878oif.77.1582289373915; Fri, 21 Feb 2020 04:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582289373; cv=none; d=google.com; s=arc-20160816; b=htowYuFWxvP+AU4JLHs8HJ5PMHuEHBnOFjN7OEIstGTr5FrY1WmpHDBkIeYjyZ6JFk rlLgZdB3BVGf6VDouiEDjVQVLgDsqJyarzChSUzMkuJV3FFNl90DjRFRYO7TvL2y7LFC NTeerUTkbB3x93VwARZrF/w22TE4PXyeKhels4S9H318H29GxY1L6R/PZ58hUdcW8vyF h/nDMbkfKB9M9RkeuN6Gkv4vNHLsI6jSqjhE1Yz28uB9q4Dg7/7n8GXpHej7OWfu4iHo xO7iSCc6Cc4aZED2nYFIqhch54sMQ0YlMpgq2pJhz6Nc7T7dBGnGWfDGj766I6RH51BT qtoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Jdus3Gfozo2YzxDeN+WA8VXRUM4lXsvOlt423aQCfJQ=; b=X1XVtfihOAW2KtOfZ2N8DE87dO/+xsrQyDiUn4tG5QCEthMu5djZ+5qTwOuTRCBx6N kh6AyK89wGfDTBIfGI0PvLuCIzfnwTLPWIUKEhOcn18QUs5CzbUSRSiegJN1lf4Fm+t2 eCC0WyJ33iG1Q+agqwRvvYB0eCUKPSBlO4GPwiLYxCaYlG8tUfTEg+ZmXJdAq8TyQnAU QQ3tf1rhhuDdEY3JdqZESqz4Rk3gcuvnl+iJUiTaaY0ypIfUS78WovVfMSDQkAJS5vux 0kZESP3Cj03ty9HgMi+EGx2MaRohhTsL7IjJV9G9tQk1UUFNghuO/ybFvGxvdxtzuHsc nLXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yN0iLx15; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si724918oij.242.2020.02.21.04.49.20; Fri, 21 Feb 2020 04:49:33 -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=yN0iLx15; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbgBUMry (ORCPT + 99 others); Fri, 21 Feb 2020 07:47:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:36140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbgBUMrv (ORCPT ); Fri, 21 Feb 2020 07:47:51 -0500 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (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 D01532073A; Fri, 21 Feb 2020 12:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582289270; bh=IjGS++0eyMo56akWPTSH0jQLlkTZPME/xQRqFwkYxEU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=yN0iLx15+zPqqBUBgZMkMjooRfOh33CVkPjS/hK2tYcHXIz7cqVO5MIdFReWGEA8X shVPME33fsj4D3VFw5+Rz9CXkTI7y6N/VC5MtHhlSiYqAkOL91/pVuxwVJVuu8Muos ioP3HK5GesdNg5E85FBKy66nEGqnT8/zrMcjzJfQ= Date: Fri, 21 Feb 2020 13:47:38 +0100 (CET) From: Jiri Kosina To: "Shah, Nehal-bakulchandra" cc: Benjamin Tissoires , Srinivas Pandruvada , Hans de Goede , Sandeep Singh , lkml , "open list:HID CORE LAYER" , Jonathan Cameron , linux-iio@vger.kernel.org, Shyam-sundar.S-k@amd.com Subject: Re: [PATCH v3 0/5] SFH: Add Support for AMD Sensor Fusion Hub In-Reply-To: <79506ad3-5172-be36-cecc-19d97bfa8b36@amd.com> Message-ID: References: <1581476197-25854-1-git-send-email-Sandeep.Singh@amd.com> <1ce6f591-1e8b-8291-7f18-48876fd70e10@redhat.com> <719b929927ce76dd7dda3a48319b5798aced591a.camel@linux.intel.com> <7a9b6f51-ef50-9078-325c-28e8cd17c182@amd.com> <79506ad3-5172-be36-cecc-19d97bfa8b36@amd.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Feb 2020, Shah, Nehal-bakulchandra wrote: > > 2 problems here: > > - patch 3/5 references this debugfs interface which is only added in 4/5. > > - you are creating a new sysfs set of file for debug purpose only, but > > as soon as we start shipping those, some other people will find it > > more convenient to use that directly instead or IIO, and you won't be > > able to change anything there. > > > > So I would strongly advocate against having this debugfs, and suggest you to: > > - either keep this debugfs as a downstream patch > > - either play with eBPF or kprobes to retrieve the same information > > without changing the kernel. > > > > For reference, I recently tried to replicate the hidraw functionality > > with eBPF[0] without changing the kernel code, and it was working. > > Well, there was no filtering on the source of the HID event, but > > still, I got the same data directly from the kernel just by adding > > instrumentation in a couple of functions. Wow. Complete eBPF supremacy is really coming shortly apparently :) > If Jiri is Ok, then we will push the next patch as per suggestion here > i.e. taking out debugfs. I agree with that. Thanks, -- Jiri Kosina SUSE Labs