Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2357592pxb; Thu, 11 Feb 2021 10:16:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+NUMdsV2+2weiSTpxWEM/C8mxpP2DLNz4dzWQ08N/IUmt5QvVixbC2TEqFVi8uYd8AowQ X-Received: by 2002:a50:e0c1:: with SMTP id j1mr9460803edl.253.1613067373232; Thu, 11 Feb 2021 10:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613067373; cv=none; d=google.com; s=arc-20160816; b=ZfHWWVvRhMjGgP10fZ8wlxyhebHmQWqZY9oOFauJtENiaPfTnBsgsdgEWssWZRFN8g rMFbSuc9La2YEusZTJBfIDNfzbZt+qgzLhSO2I+1GgCHoRTH+i3dCd6wsWQ2stCiDGOg l6/Jqft/Mp6EJGAolIStKixWiJETSv+ksZWeMueXNEWVLYLtd08hEPqPgdfDRtjksceO 9uqk1SMukTJKP292e3H3T1fPC0ICd/CJThXlZL00s8zdFkApDj2s8hGO4sDUh8aPSpk7 IgZwgBnYQG51ds/TULe2b7xkjLDV3BiCljvtUPuPhYFfCwoSbseVuzeYitLvUHUNiXUo ab/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1DXLUpaabaZdlYPbrpqAPuKvp+VFb/9C5C7RzpPVHLE=; b=L06tbzPs9+zF5DU4xFopFSZLrjMzr/3kLwta+VIS+SjeXdv4RuOxvhWzvSn776l74+ gAJbEoJn6ZWPwWMcTsVkyrR14bpZd1zrWRS0cqKeocIxApJd5mLqtytCMVQzaUb1gkCE muUQPqQKvK2H0MoGbBQyMFezzQSkrcK3XKjmq7Vxk/QSisIg6+rVFmG/Z7kn3hpFGVh4 kqL3Y6Q2+16AQJGfUaK2elJIwTOIptVkFpUgDyhc06UGYk3flJIgQGTarYIGOrZbSgj0 9XHJ/MU1A/Wd8TOYpGfQp8mgxmHedywMLhf2Uu8W2P47u/kgqzu9oBZaMKa9XjsI4Fwg rP2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si4230716ejg.478.2021.02.11.10.15.44; Thu, 11 Feb 2021 10:16:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231794AbhBKSO5 (ORCPT + 99 others); Thu, 11 Feb 2021 13:14:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231905AbhBKRwm (ORCPT ); Thu, 11 Feb 2021 12:52:42 -0500 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3FEC061786; Thu, 11 Feb 2021 09:50:21 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 4A7001F4EA; Thu, 11 Feb 2021 18:50:17 +0100 (CET) From: AngeloGioacchino Del Regno To: 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, AngeloGioacchino Del Regno Subject: [PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA Date: Thu, 11 Feb 2021 18:50:08 +0100 Message-Id: <20210211175015.200772-1-angelogioacchino.delregno@somainline.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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. 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. 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 -- 2.30.0