Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1549603pxb; Wed, 10 Feb 2021 10:52:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtxQT1KUO7dzvOgCcFlBwOWAgzbUf5YAqP8jq0noselDzftj65H+sgXtwKWYAOmB/qNTGC X-Received: by 2002:a50:ec8f:: with SMTP id e15mr4509725edr.79.1612983158651; Wed, 10 Feb 2021 10:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612983158; cv=none; d=google.com; s=arc-20160816; b=GqJb9pE3HV7TpYqp6Lpn0ozpgt3/hD1lbOoJKC7AMJ2hvZwqbB/mXd37ljAYYuneFf /qN0JvqWgk1hRYWqLmSI6H96QTzSEIuVx2oi8MYj+yAyITdSBkIyYHCA9zoY2U/txz4M 0h8lr92zqVZmFMgaI5OPi9WFQIvEDQDz8jJdUrFgzc7NZX10+9jg6ZkvZy1Hgf3G4oy8 IPRNuAl8BYUL+ubWZJvvcKdkAX5KFFEX7wfhhqup8arsSWh1W7uFtvhN+A7R8D2yrRfF bTXMz1+t4/HBPMbILhLifV2UE3WbE8q5bQaAUa31EaibViXBmL/7ue5EwaHI5ckTQKHK 4hGw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=hbH5XPSjjkyF1OtXKo2eLkyLkBMfDjq5L7Mpt68YzHY=; b=eiQeF3LTRrSPuMmdjO0t6KZcrLMK+VmIugJvi2QYbMw9jj83dvN0epz+FUTg81Yd4z TXwIz+BlYpfLSBtW2nzajhthWTDNLazyYLZ5fbvamfV3yTNR1CKeeDXh3EZ/PPq11wrm JW+ItWL8tD0m2GzE3BfyaZUFEOnlTAnTGQNQrjuiazbkhnEPvfLnp4/we/jwuzxVekRx g7UYhf7dk+a+MS+jlQzRXALRFR2B+8YiOp2agbwtf5sHos5/vmZ8D6PB3dKA08WW7ebQ dB9cOgUbSBb/sPsWWEP4yJc3gIfbs7c3Fqyo3m1ma5I7SCt1uD2iUxMWhtHwXmlPA14B zuQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEFkVIa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id kw2si1888247ejc.366.2021.02.10.10.52.15; Wed, 10 Feb 2021 10:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEFkVIa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234227AbhBJStX (ORCPT + 99 others); Wed, 10 Feb 2021 13:49:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:53678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbhBJSmK (ORCPT ); Wed, 10 Feb 2021 13:42:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 919AD64E16; Wed, 10 Feb 2021 18:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612982490; bh=XgP03GM5rkGUCwpgxJpGaI0tT3DNsJVXchGDzh6j1hE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MEFkVIa6UfYMXfntzDOMuVFmJrM7E5ceftlVeGUdxE41afIlXmWt7/kcRx73hl83J wYYuJNInXpScSjwW4bBQhpPW7Hp2KGIb/B0DG1ouWcjpA8NUDwRBXLe614zWDOea1P jmUquVg0xO4R6ubhx+c5h5cVOlhjL8zXvtnlDs9CZ918TRTgzdnfUeHlWX/3yQGmxD f75dTDNFKEefws7zXFbXqq6k2Kh8LA32G/JPOCQI1W5iWvB/bH3No5rhfYMbvhqsQy fp0Jrfn6WhtKH38ZVuH/9i4CiHf6a5Bn+JbvB/Kgpv72JXErDsYpJWOFxV0tPT8kg+ 9cjpt4Pnx3thg== Date: Wed, 10 Feb 2021 10:41:28 -0800 From: Jakub Kicinski To: Manivannan Sadhasivam Cc: Aleksander Morgado , Loic Poulain , Greg KH , David Miller , linux-arm-msm , open list , Jeffrey Hugo , Bhaumik Bhatt , Network Development Subject: Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver Message-ID: <20210210104128.2166e506@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210210062531.GA13668@work> References: <20210201121322.GC108653@thinkpad> <20210202042208.GB840@work> <20210202201008.274209f9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <835B2E08-7B84-4A02-B82F-445467D69083@linaro.org> <20210203100508.1082f73e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210203104028.62d41962@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210209081744.43eea7b5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210210062531.GA13668@work> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Feb 2021 11:55:31 +0530 Manivannan Sadhasivam wrote: > On Tue, Feb 09, 2021 at 08:17:44AM -0800, Jakub Kicinski wrote: > > On Tue, 9 Feb 2021 10:20:30 +0100 Aleksander Morgado wrote: > > > This may be a stupid suggestion, but would the integration look less a > > > backdoor if it would have been named "mhi_wwan" and it exposed already > > > all the AT+DIAG+QMI+MBIM+NMEA possible channels as chardevs, not just > > > QMI? > > > > What's DIAG? Who's going to remember that this is a backdoor driver > > a year from now when Qualcomm sends a one liner patches which just > > adds a single ID to open another channel? > > I really appreciate your feedback on this driver eventhough I'm not > inclined with you calling this driver a "backdoor interface". But can > you please propose a solution on how to make this driver a good one as > per your thoughts? > > I really don't know what bothers you even if the userspace tools making > use of these chardevs are available openly (you can do the audit and see > if anything wrong we are doing). What bothers me is maintaining shim drivers which just shuttle opaque messages between user space and firmware. One of which definitely is, and the other may well be, proprietary. This is an open source project, users are supposed to be able to meaningfully change the behavior of the system. What bothers me is that we have 3 WWAN vendors all doing their own thing and no common Linux API for WWAN. It may have been fine 10 years ago, but WWAN is increasingly complex and important. > And exposing the raw access to the > hardware is not a new thing in kernel. There are several existing > subsystems/drivers does this as pointed out by Bjorn. Moreover we don't > have in-kernel APIs for the functionalities exposed by this driver and > creating one is not feasible as explained by many. > > So please let us know the path forward on this series. We are open to > any suggestions but you haven't provided one till now. Well. You sure know how to aggravate people. I said clearly that you can move forward on purpose build drivers (e.g. for WWAN). There is no way forward on this common shim driver as far as I'm concerned.