Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4129083ybi; Tue, 11 Jun 2019 01:14:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/+Iph5Ir9Yio+gRtcTOR+BQ9UN7/Yeu1s85vT5vZlG9jBN3d+UCDTj5Y1mcLm9UTeJR9M X-Received: by 2002:a17:90a:a10f:: with SMTP id s15mr26069231pjp.30.1560240884229; Tue, 11 Jun 2019 01:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560240884; cv=none; d=google.com; s=arc-20160816; b=gA+RPQ3Zkk0C/sOLjnAKo3EiYaRC6bQIrOYvZDb8IAzsx9nKKDSFCSTLtrRQD3hDvw ryvJENXEbj7gFPPDuff+Zb/3ELZ+Zo0JYGQJZdi4eQBiAWcVJXnDHTQJF0MXobSSy+Vv 7SKFt5A9tz3/Qp/Gd2IZ05/pL/V90BV80Wyx2XdUyzIQ2Jqx6ntijnoSA2WADE0r2itB eAa+36lW459dWBoP9tTgJGIkfXt8gFHlSVzZwqJ0S3RU+1ZiNBDJ72qx3LZAPs26luXM 1062RL9gi28u5B4bV4AePyD5mEb0NZOx4JnfmRNw2MaT8JtrdishplUF6Rd0z7uWCbub 0o5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :in-reply-to:date:cc:to:from:subject:message-id; bh=T8Oj5EYtUHHAVeZcI0K38pCCw85YO8Wnkwr2pKqWZQY=; b=w3h2ODYgKu2ZTQk57HoFFmOyeHH3eKkJWT7/y0O+I8M1tpLDqTlJe757wtsUdOyNzO TsU6jYcuhgJBjG+STm6I71hupQpraoNfMRLQjLtD/t2ZL3ws0X4qZ5VOTKPMiik/OxRw fqX4u2/4w30dehXB+4xtwlclS/2p8nnCr54tVfouGZo9D7hbsCRfJASA1pRauou7CrOa Y+C2zM/DfMWFrBh24VIEblFvETgDv1acU0nbamTDqaXZvI1U3YlBm19AWqPXcH99XVj6 6eaAhB4l9XYG72SKu5O2q7RzQkJcAp7xapNoaHJuu9P1dcY4TSSz8O97syChsigJzowj usYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si1987168pjg.50.2019.06.11.01.14.29; Tue, 11 Jun 2019 01:14:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404692AbfFKINF (ORCPT + 99 others); Tue, 11 Jun 2019 04:13:05 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:41602 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404512AbfFKIND (ORCPT ); Tue, 11 Jun 2019 04:13:03 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1habtd-00061s-L7; Tue, 11 Jun 2019 10:12:45 +0200 Message-ID: Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver From: Johannes Berg To: elder@linaro.org Cc: abhishek.esse@gmail.com, arnd@arndb.de, benchan@google.com, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, davem@davemloft.net, dcbw@redhat.com, devicetree@vger.kernel.org, ejcaruso@google.com, evgreen@chromium.org, ilias.apalodimas@linaro.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, netdev@vger.kernel.org, subashab@codeaurora.org, syadagir@codeaurora.org Date: Tue, 11 Jun 2019 10:12:43 +0200 In-Reply-To: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.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 Hi Alex, all, > > Exactly correct. This is what Johannes is discussing in his "cellular > > modem APIs - take 2" thread about how this should all be organized at > > the driver level and I think we should figure that out before we commit > > to IPA-with-a-useless-netdev that requires rmnets to be created on top. > > That may end up being the solution but let's have that discussion. > > I looked at Johannes' message and the follow-on discussion. Thanks :-) Sorry also, Dan had pointed me to this thread and the discussion, but I was travelling last week and not very reachable. > As I've > made clear before, my work on this has been focused on the IPA transport, > and some of this higher-level LTE architecture is new to me. But it > seems pretty clear that an abstracted WWAN subsystem is a good plan, > because these devices represent a superset of what a "normal" netdev > implements. I'm not sure I'd actually call it a superset. By themselves, these netdevs are actually completely useless to the network stack, AFAICT. Therefore, the overlap with netdevs you can really use with the network stack is pretty small? > HOWEVER I disagree with your suggestion that the IPA code should > not be committed until after that is all sorted out. In part it's > for selfish reasons, but I think there are legitimate reasons to > commit IPA now *knowing* that it will need to be adapted to fit > into the generic model that gets defined and developed. Here > are some reasons why. I can't really argue with those, though I would point out that the converse also holds - if we commit to this now, then we will have to actually keep the API offered by IPA/rmnet today, so we cannot actually remove the netdev again, even if we do migrate it to offer support for a WWAN framework in the future. > Second, the IPA code has been out for review recently, and has been > the subject of some detailed discussion in the past few weeks. Arnd > especially has invested considerable time in review and discussion. > Delaying things until after a better generic model is settled on > (which I'm guessing might be on the order of months) I dunno if it really has to be months. I think we can cobble something together relatively quickly that addresses the needs of IPA more specifically, and then extend later? But OTOH it may make sense to take a more paced approach and think about the details more carefully than we have over in the other thread so far. > Third, having the code upstream actually means the actual requirements > for rmnet-over-IPA are clear and explicit. This might not be a huge > deal, but I think it's better to devise a generic WWAN scheme that > can refer to actual code than to do so with assumptions about what > will work with rmnet (and others). As far as I know, the upstream > rmnet has no other upstream back end; IPA will make it "real." Is that really true? I had previously been told that rmnet actually does have use with a few existing drivers. If true though, then I think this would be the killer argument *in favour* of *not* merging this - because that would mean we *don't* have to actually keep the rmnet API around for all foreseeable future. > I support the idea of developing a generic WWAN framework, and I > can assure you I'll be involved enough to perhaps be one of the > first to implement a new generic scheme. Thanks! johannes