Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1238694ybi; Fri, 31 May 2019 16:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqarXR8B8Y3aNAGmnWVuTVE/zGkppobghJYrD/60lQL6XeqstbDtmT+PqRrszj3uNEG+Bv X-Received: by 2002:a63:4c1f:: with SMTP id z31mr12459027pga.334.1559345686893; Fri, 31 May 2019 16:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559345686; cv=none; d=google.com; s=arc-20160816; b=vUoNvTlRzWS5cLkLl1J1NnlcIEUrZEvQ+N8pePvOKta/77HQX3MKrcmEjYT9wfTs6Z osMhIC+TkxhPLvqi6G4JNAseIoQ4EGFe5EmI29qtUEU5UYkYY0OJ6zswc59qbosZSQEg GvBMQa0w6owCtCtZ4lHUTY0JEOLdq6nUWmTCgquyrZ06soRL0DSbXIGy7p539R9S+Luw 4o/RGc45n1pOIbHBg4sFJdXKK+pSFYlO1T7T2oi/DnL7dkrSlsQYhZ1eG9gVff6z+L52 6aeRLxsD3gDs47LEgOXamYBuxnNyBJqQ7zLCrrVDS/2B7vzcJ3ZZDE4eiCsQQ7fv5Ujh qSqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zzddG9Gjm8AXO9IHzYUM1VDR0CHwahQe8D71s9hFu/c=; b=FeXGRHg9u/+Sob8p+4+XQ7hl1URcgP6Of7h/nRXKbwJvM8Aqc1W0+uVBWyGw3FQasp uQCDl+YZvjDl7mt45IhcmGzjV+VAcSEPYLLCWcbS804JtOSJenjvWLz2ENboxOkwNBIt jPXYldPbltPnFIai8eOTBT4GbP2THM8VG5qowzYSgqwYuTdNAvRKc5e37REqH5nkSNlw yj4n0oCz27hV9mcWxnVftEBWrabFa4Q6Qq07A+FvIDlz1onfmxCECBTzL0E/qna/k0LP +QEDxD6jIF3D/MuXNM2H9U8xEGors2b3uh+JVDy77jXvrRwYWgKCKHz7KA86SW7neVi2 HnTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sUFNLE70; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188si9043121pfu.228.2019.05.31.16.34.31; Fri, 31 May 2019 16:34:46 -0700 (PDT) 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=@linaro.org header.s=google header.b=sUFNLE70; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbfEaXdM (ORCPT + 99 others); Fri, 31 May 2019 19:33:12 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43996 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbfEaXdK (ORCPT ); Fri, 31 May 2019 19:33:10 -0400 Received: by mail-pg1-f193.google.com with SMTP id f25so4845989pgv.10 for ; Fri, 31 May 2019 16:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zzddG9Gjm8AXO9IHzYUM1VDR0CHwahQe8D71s9hFu/c=; b=sUFNLE70qFuM1j32iqPxE2N82dVJJzFJaig1Wc2IOUGvkXLZBJWeWXEnUpoER7ZDH5 lmPoYejl4nkgIgnY4RVJpWC4DbOXHt4cuJn3rNDITsEMmuHlooOoGM8q0p6UsN22WV3r nsI1V8f9K77o0rjLcWUEgQj2DtJF5B2CAgykzgCf4yXUgSsJNINJozSXCUelfZYikR0t vY2DgytSi3PGwSkp748aqkLh23FuFSagcBfJmDMaSw1brMGuZAZXdz+2y75ZfA+d4Aqj UPpnZFpNufpYERlc5isr4RxlVC7tXskMUL9Rc1IH1UTus0aA98hA1TKSQvlLnNB7znCx 3pIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zzddG9Gjm8AXO9IHzYUM1VDR0CHwahQe8D71s9hFu/c=; b=lqABF520suDnh1Vm93zbtBTFglW98Dw43nCxlbAidJCoIasf6XvVLcUYLQFaORJ6rm xTWkN3ibQq6hA60IuCdTy3SgbjLRYkWZb7HclP2vE3vdkAhzSqjpSBKuF0isfAOZC6EB kjVJkyMONniarSSMCFpeTDuix+jryUU7JymGNScrix+QqrUKN89qz3Pb5a+7iTXsnMJb OUPLgxpkU8dtkXqJMNIAjZ0RJlx/pFhtSWNndAdZkZbHmWl/mPQxv4X5lAanugGI2IbM OYFhZ3QEjJczZei2sMKI79ntW0sRcIwV+oUrjXkKXiskDVubMGEnoVSRKKPxwe0OYd6T Fujw== X-Gm-Message-State: APjAAAU3OPgcU2v6B8vez8xOLcPK9KTFiGfiWmoh1GIlUI1Wlb0J64LC pKFgvpy4yZrH9ieS7a7jWGneIg== X-Received: by 2002:aa7:8b12:: with SMTP id f18mr13286126pfd.178.1559345589344; Fri, 31 May 2019 16:33:09 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id c17sm7733229pfo.114.2019.05.31.16.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 16:33:08 -0700 (PDT) Date: Fri, 31 May 2019 16:33:06 -0700 From: Bjorn Andersson To: Alex Elder Cc: Arnd Bergmann , Dan Williams , David Miller , Ilias Apalodimas , evgreen@chromium.org, Ben Chan , Eric Caruso , cpratapa@codeaurora.org, syadagir@codeaurora.org, Subash Abhinov Kasiviswanathan , abhishek.esse@gmail.com, Networking , DTML , Linux Kernel Mailing List , linux-soc@vger.kernel.org, Linux ARM , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver Message-ID: <20190531233306.GB25597@minitux> References: <20190531035348.7194-1-elder@linaro.org> <065c95a8-7b17-495d-f225-36c46faccdd7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 31 May 13:47 PDT 2019, Alex Elder wrote: > On 5/31/19 2:19 PM, Arnd Bergmann wrote: > > On Fri, May 31, 2019 at 6:36 PM Alex Elder wrote: > >> On 5/31/19 9:58 AM, Dan Williams wrote: > >>> On Thu, 2019-05-30 at 22:53 -0500, Alex Elder wrote: > >>> > >>> My question from the Nov 2018 IPA rmnet driver still stands; how does > >>> this relate to net/ethernet/qualcomm/rmnet/ if at all? And if this is > >>> really just a netdev talking to the IPA itself and unrelated to > >>> net/ethernet/qualcomm/rmnet, let's call it "ipa%d" and stop cargo- > >>> culting rmnet around just because it happens to be a net driver for a > >>> QC SoC. > >> > >> First, the relationship between the IPA driver and the rmnet driver > >> is that the IPA driver is assumed to sit between the rmnet driver > >> and the hardware. > > > > Does this mean that IPA can only be used to back rmnet, and rmnet > > can only be used on top of IPA, or can or both of them be combined > > with another driver to talk to instead? > > No it does not mean that. > > As I understand it, one reason for the rmnet layer was to abstract > the back end, which would allow using a modem, or using something > else (a LAN?), without exposing certain details of the hardware. > (Perhaps to support multiplexing, etc. without duplicating that > logic in two "back-end" drivers?) > > To be perfectly honest, at first I thought having IPA use rmnet > was a cargo cult thing like Dan suggested, because I didn't see > the benefit. I now see why one would use that pass-through layer > to handle the QMAP features. > > But back to your question. The other thing is that I see no > reason the IPA couldn't present a "normal" (non QMAP) interface > for a modem. It's something I'd really like to be able to do, > but I can't do it without having the modem firmware change its > configuration for these endpoints. My access to the people who > implement the modem firmware has been very limited (something > I hope to improve), and unless and until I can get corresponding > changes on the modem side to implement connections that don't > use QMAP, I can't implement such a thing. > But any such changes would either be years into the future or for specific devices and as such not applicable to any/most of devices on the market now or in the coming years. But as Arnd points out, if the software split between IPA and rmnet is suboptimal your are encouraged to fix that. Regards, Bjorn