From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99368C48BD6 for ; Wed, 26 Jun 2019 17:48:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6437C21726 for ; Wed, 26 Jun 2019 17:48:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbfFZRsy (ORCPT ); Wed, 26 Jun 2019 13:48:54 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:46802 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfFZRsx (ORCPT ); Wed, 26 Jun 2019 13:48:53 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hgC2C-0007vw-Ho; Wed, 26 Jun 2019 19:48:40 +0200 Message-ID: <9e46f95b8727c8b95aedb144970986a21266983c.camel@sipsolutions.net> Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver From: Johannes Berg To: Arnd Bergmann , Alex Elder Cc: Dan Williams , Subash Abhinov Kasiviswanathan , abhishek.esse@gmail.com, Ben Chan , Bjorn Andersson , cpratapa@codeaurora.org, David Miller , DTML , Eric Caruso , evgreen@chromium.org, Ilias Apalodimas , Linux ARM , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , linux-soc@vger.kernel.org, Networking , syadagir@codeaurora.org Date: Wed, 26 Jun 2019 19:48:38 +0200 In-Reply-To: (sfid-20190626_155908_107021_A3066824) References: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> <36bca57c999f611353fd9741c55bb2a7@codeaurora.org> <153fafb91267147cf22e2bf102dd822933ec823a.camel@redhat.com> (sfid-20190626_155908_107021_A3066824) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-3.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-06-26 at 15:58 +0200, Arnd Bergmann wrote: > > > The IPA hardware is actually something that sits *between* the > > AP and the modem. It implements one form of communication > > pathway (IP data), but there are others (including QMI, which > > presents a network-like interface but it's actually implemented > > via clever use of shared memory and interrupts). > > Can you clarify how QMI fits in here? Do you mean one has to > talk to both IPA and QMI to use the modem, or are these two > alternative implementations for the same basic purpose? I'm not going to comment on QMI specifically, because my understanding might well be wrong, and any response to your question will likely correct my understanding :-) (Thus, you should probably also ignore everything I ever said about QMI) > My previous understanding was that from the hardware perspective > there is only one control interface, which is for IPA. Part of this > is abstracted to user space with ioctl commands to the IPA driver, > and then one must set up rmnet to match these by configuring > an rmnet device over netlink messages from user space, but > rmnet does not have a control protocol with the hardware. Right so this is why I say it's confusing when we just talk about "control interface" or "path". I see multiple layers of control * hardware control, which you mention here. This might be things like "enable/disable aggregation on an rmnet channel" etc. I guess this type of thing would have been implemented with ioctls? Not the aggregation specifically, but things that affect how you set up the hardware. * modem control, which we conflate, but can be like AT commands or MBIM. From the kernel driver POV, this is actually just another channel it provides for userspace to talk to the modem. johannes