Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1260329ybi; Fri, 31 May 2019 17:01:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyydi2PS85lNv2FRz2AZE3NGNDdNk+9XEc6h7iDqSr5ho9aWNxZVfmtszNJlY6EfTuGvz3E X-Received: by 2002:a63:2a89:: with SMTP id q131mr12458360pgq.359.1559347270731; Fri, 31 May 2019 17:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559347270; cv=none; d=google.com; s=arc-20160816; b=DmvjAyuo5nLO54gdTqro67EJolWhaMBTKNDA9Lsw7XlJCiBbiOOjjRMG63RfiZUMoA fimy6Q31B8o7loUqgCFvi+4Eo1MqYMsYziTP5ZVQJ1KMCDI69u3DCHtLMvLZCb5/eX2p kOi5mEQ8fxVahxSuBbmvl643x7SUIvuc0CO0Gz6l19uFadWAKn85jEMFqlA8ewsVcvYv Vgej4X7QCAfomtZ30kOz4yUERZc69sEezBWWOG25uxreFht9PWjhgCyw61bY3GH6Ta9d XmMBj4DtvEdQULilwEZx4KtBWZU3UAF3335dDY9udOijpPA+yXf79rUQBushNTkfo20I myFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=inf3+u6Q7jaECUKQ1kMhDucziLqgVugmATjt2Wzk44c=; b=E8cF1XCaKTrjprUu15417r7K7tBMjc68wDze7f4OXm6BPtLcpTsJCwkiCjN8qecr1y Z0E2tgdzt+6bYeFtD/F0tkDm2DS2czsltri/PtVSUG9OCPHwTEUcSmqa/70wwBBDNrhG jQDyEl9lTl2V5pw4PN2rn82rWe752UKpTtCW9518s0Sor3kfAwGB2xKXxfN9zuBCYLT9 ViCEB3YLcQYsqBvPpLTezAYgN1hOldLswXngEGEdL/Fi+K/RbIfGWvA9Ut8gPJfWR3pe GCBoc49MLeP/Dh9tPAwFU36Dpssgvz9nJjj7JJLVbbTdrEpZ4h+u3OliuQFisIYqc7AE 29Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DrR5If3b; dkim=pass header.i=@codeaurora.org header.s=default header.b=JhHqfqgm; 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 f12si7948568pgi.484.2019.05.31.17.00.54; Fri, 31 May 2019 17:01:10 -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=@codeaurora.org header.s=default header.b=DrR5If3b; dkim=pass header.i=@codeaurora.org header.s=default header.b=JhHqfqgm; 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 S1726832AbfEaX7q (ORCPT + 99 others); Fri, 31 May 2019 19:59:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34120 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbfEaX7p (ORCPT ); Fri, 31 May 2019 19:59:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7B0C36070D; Fri, 31 May 2019 23:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559347184; bh=tJJKl5ehmjDb2KK6XeMOmnd1rblvf2TEFa0oPKfTx5A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DrR5If3bSV4UtULQl7DoeUdYH0qFStHS2EZNSIBc+cRSxZWIZArUiSxyvoPNOcyc+ BV1zFF3oNDbjY01hii7pjCDzqV2bQY+v6PFLeGPMvyWpdx0LSzd0kKC/qtsqXQKFE2 F9xYliUcplczYufvnmMhN9ZUuMk3PlzArFyOZXIM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 2C6286070D; Fri, 31 May 2019 23:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559347183; bh=tJJKl5ehmjDb2KK6XeMOmnd1rblvf2TEFa0oPKfTx5A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JhHqfqgmdNVqLrmRdouTw0Seluy99Trhgv3NmXlFn69xRxPpycBc/Q+DRSfAeVwu4 JTEboKLfLKX0c13lS4DlpcSurxqakUSwUHvxF/LXUHDnPuoHKctksui16YqOi10b83 IBD+oLcK1w2+MnQzgPq0KGIsSeRbdNA1g0f1wxfU= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 31 May 2019 17:59:43 -0600 From: Subash Abhinov Kasiviswanathan To: Bjorn Andersson Cc: Alex Elder , Arnd Bergmann , Dan Williams , David Miller , Ilias Apalodimas , evgreen@chromium.org, Ben Chan , Eric Caruso , cpratapa@codeaurora.org, syadagir@codeaurora.org, 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 In-Reply-To: <20190531233306.GB25597@minitux> References: <20190531035348.7194-1-elder@linaro.org> <065c95a8-7b17-495d-f225-36c46faccdd7@linaro.org> <20190531233306.GB25597@minitux> Message-ID: X-Sender: subashab@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-05-31 17:33, Bjorn Andersson wrote: > 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 The split rmnet design was chosen because we could place rmnet over any transport - IPA, PCIe (https://lkml.org/lkml/2018/4/26/1159) or USB. rmnet registers a rx handler, so the rmnet packet processing itself happens in the same softirq when packets are queued to network stack by IPA. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project