linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeffrey Hugo <jhugo@codeaurora.org>
To: Jakub Kicinski <kuba@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Aleksander Morgado <aleksander@aleksander.es>,
	Loic Poulain <loic.poulain@linaro.org>,
	Greg KH <gregkh@linuxfoundation.org>,
	David Miller <davem@davemloft.net>,
	linux-arm-msm <linux-arm-msm@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	Bhaumik Bhatt <bbhatt@codeaurora.org>,
	Network Development <netdev@vger.kernel.org>
Subject: Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver
Date: Wed, 10 Feb 2021 12:18:37 -0700	[thread overview]
Message-ID: <4067f57b-f229-24c7-5a92-030fb67bd785@codeaurora.org> (raw)
In-Reply-To: <20210210104128.2166e506@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>

On 2/10/2021 11:41 AM, Jakub Kicinski wrote:
> 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.

Interesting.  So, based on that, the TCP/IP stack is going to be ripped 
out of Linux?  I can write a proprietary userspace application which 
uses the TCP/IP stack to shuttle opaque messages through the kernel to a 
remote system, which could be running Windows (a proprietary OS with 
typically proprietary applications).  I've infact done that in another 
life.  Proprietary talking to proprietary with the Linux kernel in the 
middle.  I suspect you'll have an aggressively different opinion, but at 
this simplified level, it's really no different from the proposed 
mhi_uci driver here, or any of the numerous other examples provided.

The Linux kernel does not get to say everything must be open.  There is 
an explicit license stating that - 
LICENSES/exceptions/Linux-syscall-note  Yes, it's ideal if things are 
open, but it seems contradictory to espouse wanting choice, but then 
denying certain choices.
Frankly, folks have pointed out open source applications that wish to 
use this, so no, it's not all closed.

Put another way, you keep going in circles (I know you've argued the 
same for others in the discussion) - why is this specifically different 
from the other "shim drivers" which "shuttle proprietary messages" which 
already exist and are maintained in Linus' tree today?  All I'm seeing 
is "I don't like it" which is not a technical reason, and "proprietary 
is bad" which frankly, I think the horses were let out of the barn back 
in 1991 when Linus first created Linux.

> 
> 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.
> 


-- 
Jeffrey Hugo
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

  reply	other threads:[~2021-02-10 19:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 18:44 [RESEND PATCH v18 0/3] userspace MHI client interface driver Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 1/3] bus: mhi: core: Move MHI_MAX_MTU to external header file Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 2/3] docs: Add documentation for userspace client interface Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 3/3] bus: mhi: Add userspace client interface driver Hemant Kumar
2021-01-13 15:26 ` [RESEND PATCH v18 0/3] userspace MHI " Manivannan Sadhasivam
2021-01-19  9:42   ` Manivannan Sadhasivam
2021-01-19 10:28     ` Greg KH
2021-01-27 15:15   ` Greg KH
2021-01-27 16:24     ` Bjorn Andersson
2021-02-01 10:55     ` Manivannan Sadhasivam
2021-02-01 11:15       ` Greg KH
2021-02-01 12:13         ` Manivannan Sadhasivam
2021-02-02  4:22           ` Manivannan Sadhasivam
2021-02-03  4:10             ` Jakub Kicinski
2021-02-03  4:15               ` Manivannan Sadhasivam
2021-02-03 18:05                 ` Jakub Kicinski
2021-02-03 18:28                   ` Loic Poulain
2021-02-03 18:40                     ` Jakub Kicinski
2021-02-04  4:07                       ` Manivannan Sadhasivam
2021-02-04  5:53                       ` Bjorn Andersson
2021-02-09  9:20                       ` Aleksander Morgado
2021-02-09 16:17                         ` Jakub Kicinski
2021-02-09 16:49                           ` Aleksander Morgado
2021-02-10  6:25                           ` Manivannan Sadhasivam
2021-02-10 18:41                             ` Jakub Kicinski
2021-02-10 19:18                               ` Jeffrey Hugo [this message]
2021-02-10 22:08                               ` Bjorn Andersson
2021-02-11  9:26                               ` Aleksander Morgado
2021-02-28 14:12                             ` Aleksander Morgado
2021-02-28 15:52                               ` Manivannan Sadhasivam
2021-02-03 18:34                   ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4067f57b-f229-24c7-5a92-030fb67bd785@codeaurora.org \
    --to=jhugo@codeaurora.org \
    --cc=aleksander@aleksander.es \
    --cc=bbhatt@codeaurora.org \
    --cc=davem@davemloft.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).