Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp934436pxb; Wed, 3 Mar 2021 21:38:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyryhx+vUptHP00v72N4jAyofgWo18sHPrta3fuiU3mklMzdkS/EWms8gWWFU8w5OE0StUL X-Received: by 2002:a17:906:9bc8:: with SMTP id de8mr2364364ejc.470.1614836306838; Wed, 03 Mar 2021 21:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614836306; cv=none; d=google.com; s=arc-20160816; b=0ajnQJPSP891Myu+NZwSali2b+btItciioV+QIhNmy2YA43gnyYs99XmtvZmMT0XtG 5Mb3hOUcMREPt3HPKsI+YC5Zu811cw0bYwX9X7a+zHNmN9+e/KMEWxfzfnN4in90ftnr T9tCB5I7rfMu/6DXrGc+epfZNr66D4B9gUWISl4Z1cXlv8XW5ESqWGJuQbAWh7rgt7fZ QwI4Qyc8EF0Dv+3V4rBftgdtzY5LS9zit/tzgMxKWibq3V6gbxYp3xihjUqGcIXzF8so CvKZhqmcp8rK98UwGWwxfM6PFwemAh+Tea/SL8VajVsK4qI0uk4jmyLlMuZZO1Ao9z/c a+1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=HqdANY9y5AYuxPx3w0i4b01BDqKwut4FMsN/JKnUcuc=; b=UnIHPS2TX0ul71P1UAWpQaf/4dSUVdUrjmbPTzEYVEyZhtIoIocOSVy0HQLSxiMWFN 0Oee9CeelY32/HN6KSLb1nqLQCg/WxEkGI+i/Q18YvRhrD6MrYmuTl5r+cYNXi7IqIx4 i9qTNN4NYAPRUADaKrdopqdP/t0Ehz1AyEkzmiG54DUJ+gIpJ5XoG1JwJ4418BV2dhrd ue7eNgo8tP1ePH+BMCgSFnABYxRCNluWxYWCiuYElB8L8M+SOEZXcouLgbOfG4Qx1U8L aCt6zgsdHwgdT6w+QKer6RYpnW3BHW5+TUfezJL/rFVtpDZvGWKZfSvMrG2BP30TydRN H8Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=c8XyROxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx12si16388524edb.460.2021.03.03.21.38.04; Wed, 03 Mar 2021 21:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=c8XyROxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1576638AbhCBEbt (ORCPT + 99 others); Mon, 1 Mar 2021 23:31:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442770AbhCBCQF (ORCPT ); Mon, 1 Mar 2021 21:16:05 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688FAC061793 for ; Mon, 1 Mar 2021 18:05:00 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id g27so18712786iox.2 for ; Mon, 01 Mar 2021 18:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HqdANY9y5AYuxPx3w0i4b01BDqKwut4FMsN/JKnUcuc=; b=c8XyROxhXBKl6A8mXQRLlLxvJ0tuIYYMr/dShL9FDdsJKDJK/IZGqRn4rQXGWWzGrm I4ImzBkN7G1t4I9UedzctqyupAUYh+vEjM0gZUXLyU0GVpe9Xtj5YiUGxuHJNbZrKSD5 r0PKWZYDii0ZFrIg+qZZLTXmHynkl4SBDZ1Nw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HqdANY9y5AYuxPx3w0i4b01BDqKwut4FMsN/JKnUcuc=; b=boHQ9aD8d3FFNBa3dT29d0L20Ke9dn9HC6cNSobAjSW614a1b8ZC6It57t3mGkOBsu 13UX+4y5aDaW6Dee6/jQo1X+VRwdTGRayGQU9EvT3xYq+lwlljPfzI4+ledZE56kn5Y5 h7JLmaJ/3OiSm8s/elADztgAYsN1jSoaEAlK4n5ck2H8eyDnzQ7THjB+Y20kWt2HVCJA HamlWupsRGJ5JEa73L02HUMuhlwsooYnyjXLS4rWys4QNHrOddr9FE1CrnwDsmYtbIzA LXUyxS2t0QJUTtyV6qARmJHgBRhMWGO8CHy3t8CPfMJ32LgnLfKo+GsCPxmfP/pPjl7h atyg== X-Gm-Message-State: AOAM5335t3HGr2CB9VKU+61RjtyUZlrXiqwi9O2W5OzWzUVPKBlVD1GN p61jC4lerlfBcRkOtMyuQNN3OQ== X-Received: by 2002:a6b:6618:: with SMTP id a24mr4088209ioc.100.1614650699771; Mon, 01 Mar 2021 18:04:59 -0800 (PST) Received: from [172.22.22.26] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id k23sm11086143ior.12.2021.03.01.18.04.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Mar 2021 18:04:59 -0800 (PST) Subject: Re: [PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA To: AngeloGioacchino Del Regno , elder@kernel.org Cc: bjorn.andersson@linaro.org, agross@kernel.org, davem@davemloft.net, kuba@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, phone-devel@vger.kernel.org References: <20210211175015.200772-1-angelogioacchino.delregno@somainline.org> From: Alex Elder Message-ID: Date: Mon, 1 Mar 2021 20:04:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210211175015.200772-1-angelogioacchino.delregno@somainline.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > Hey all! > > This time around I thought that it would be nice to get some modem > action going on. We have it, it's working (ish), so just.. why not. > > This series adds support for IPA v3.1 (featuring GSI v1.0) and also > takes account for some bits that are shared with other unimplemented > IPA v3 variants and it is specifically targeting MSM8998, for which > support is added. It was more like "next month" rather than "next week," but I finally took some more time to look at this today. Again I think it's surprising how little code you had to implement to get something that seems is at least modestly functional. FYI I have undertaken an effort to make the upstream code suitable for use for any IPA version (3.0-4.11) in the past few months. Most of what I've done is in line with the things you found were necessary for IPA v3.1 support. Early on I got most of the support for IPA v4.5 upstream, and have been holding off trying to get other similar changes out for review for other versions until I've had more of a chance to test some of what's new in IPA v4.5. In the coming weeks I will start posting more of this work for review. You'll see that I'm modifying many things you do in your series (such as making version checks not assume only v3.5.1 and v4.2 are supported). My priority is on newer versions, but I want the code to be (at least) correct for IPA v3.0, v3.1, and v3.5 as well. What might be best is for you to consider using the patches when I send them out. I'll gladly give you some credit when I do if you like (suggested-by, reviewed-by, tested-by, whatever you feel is appropriate). Please let me know if you would like to be on the Cc list for this sort of change. > Since the userspace isn't entirely ready (as far as I can see) for > data connection (3g/lte/whatever) through the modem, it was possible > to only partially test this series. Yes we're still figuring out how the upstream tools need to interact with the kernel for configuration. > Specifically, loading the IPA firmware and setting up the interface > went just fine, along with a basic setup of the network interface > that got exposed by this driver. This is great to hear. > With this series, the benefits that I see are: > 1. The modem doesn't crash anymore when trying to setup a data > connection, as now the modem firmware seems to be happy with > having IPA initialized and ready; > 2. Other random modem crashes while picking up LTE home network > signal (even just for calling, nothing fancy) seem to be gone. > > These are the reasons why I think that this series is ready for > upstream action. It's *at least* stabilizing the platform when > the modem is up. > > This was tested on the F(x)Tec Pro 1 (MSM8998) smartphone. I unfortunately can't promise you you'll have the full connection up and running, but we can probably get very close. It would be very helpful for you (someone other than me, that is) to participate in validating the changes I am now finalizing. I hope you're willing. I'll offer a few more specific comments on each of your patches. -Alex > AngeloGioacchino Del Regno (7): > net: ipa: Add support for IPA v3.1 with GSI v1.0 > net: ipa: endpoint: Don't read unexistant register on IPAv3.1 > net: ipa: gsi: Avoid some writes during irq setup for older IPA > net: ipa: gsi: Use right masks for GSI v1.0 channels hw param > net: ipa: Add support for IPA on MSM8998 > dt-bindings: net: qcom-ipa: Document qcom,sc7180-ipa compatible > dt-bindings: net: qcom-ipa: Document qcom,msm8998-ipa compatible > > .../devicetree/bindings/net/qcom,ipa.yaml | 7 +- > drivers/net/ipa/Makefile | 3 +- > drivers/net/ipa/gsi.c | 33 +- > drivers/net/ipa/gsi_reg.h | 5 + > drivers/net/ipa/ipa_data-msm8998.c | 407 ++++++++++++++++++ > drivers/net/ipa/ipa_data.h | 5 + > drivers/net/ipa/ipa_endpoint.c | 26 +- > drivers/net/ipa/ipa_main.c | 12 +- > drivers/net/ipa/ipa_reg.h | 3 + > drivers/net/ipa/ipa_version.h | 1 + > 10 files changed, 480 insertions(+), 22 deletions(-) > create mode 100644 drivers/net/ipa/ipa_data-msm8998.c >