Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3002645pxb; Mon, 1 Nov 2021 06:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznuRlhFnlDG8F5TLMd8Q3cs57mWDEdfnBMNrnWXNOqdBiFzsQQzVb5nBHkzmhaOM2STsrS X-Received: by 2002:a17:907:96a3:: with SMTP id hd35mr35721708ejc.222.1635772228863; Mon, 01 Nov 2021 06:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635772228; cv=none; d=google.com; s=arc-20160816; b=yc62977mhFqNYvmM02r3M+ofEEL4IPnP0zOtkFu/FzCfNb8/JncEDn0Vio6cu4CNt5 h+dU1lfnwOclDsE1Dgb1MgB3QWGEMLOVs4KXx/c92CMflFkZguNZH2DyGFXxzIg4Udhr mIF4FQUkHj8kMXiohX2AGVJ2vKrdBhf+ESxC1zDt/+kwJIrTkzVoWeXoDFkNLxEAG/NA jCu8RPgEGYYDALigoWE4BP3pK+l3orluQBedVfZii1VUfDKmIdOnMG33QZc14LTJEY6Q 5AYmKfKZ1qpoH1yQ1BLVzZVA6SnrYKNEylIZl3tKfZGU3Vd/zYwCCAW8r9kg2qLt39gt Hntg== 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:dkim-signature; bh=zRpKn3LzMIjTLPNUgre7wLncbvtsNw0oitobYTpfvvU=; b=dS0tfLv+vdW0ZYwsKzmutYpF0K3VhBj47RRYRleaYSEf6kCGxEMgKnhjxr3Hz+8VB8 SMAN7O1G+bhSUJRPYfJvfqaO4nYWMqXighrG4loAUFSL5aIhQmP/lt9BDMTYyco1SBoC XxKd6+jBxPqDezEWr9Kr9SzRl1jSXMsTL4QlwbZL7gMuA6Y1Ud+0cUTHzni4xeKJ9UDW 08M2ZJVm2xZhQfeHgEZwaevKbB9DHbEsRd8jnw07HdJRLvH0V89Iu8DSFNDYbrkiUYZf BiZpJnM1jt44PwR1lxJaVdrRV+enc+1qiymnh82/PCWVJZQsTq5oGzsvtw+QM7v0kSJe cEGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0onbiNZ0; dkim=neutral (no key) header.i=@suse.de header.b=RNs4JMvC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si20163734edi.206.2021.11.01.06.10.12; Mon, 01 Nov 2021 06:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@suse.de header.s=susede2_rsa header.b=0onbiNZ0; dkim=neutral (no key) header.i=@suse.de header.b=RNs4JMvC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbhKANMg (ORCPT + 65 others); Mon, 1 Nov 2021 09:12:36 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:46914 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbhKANMf (ORCPT ); Mon, 1 Nov 2021 09:12:35 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4EE201FD29; Mon, 1 Nov 2021 13:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1635772201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zRpKn3LzMIjTLPNUgre7wLncbvtsNw0oitobYTpfvvU=; b=0onbiNZ0fm1gsWGqMSxvjrAccWrbeh66hZMFlRNKPGit9/GkFgHJVhO+o9fkM9AH8qGQER FFyzhMF6xEPlB4l9pSML5aOsIAizlG410n/pApov3ZZYwm9k/0sBNJUI89p/B98DCiqFdR xVmWP7wwlLQXK2Ccu0x4UXdPrrmPoiU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1635772201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zRpKn3LzMIjTLPNUgre7wLncbvtsNw0oitobYTpfvvU=; b=RNs4JMvCWmbaQHnJ5CULvGGskPINofRZXXxw4GXTYtj4drMIWtDdk9ElmjKtef/yxFpZgi NBIgqwYLdHwrYKCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DCA9513522; Mon, 1 Nov 2021 13:09:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jP28MSfnf2ENCQAAMHmgww (envelope-from ); Mon, 01 Nov 2021 13:09:59 +0000 Subject: Re: [PATCH v2 00/14] net: wwan: t7xx: PCIe driver for MediaTek M.2 modem To: Ricardo Martinez , netdev@vger.kernel.org, linux-wireless@vger.kernel.org Cc: kuba@kernel.org, davem@davemloft.net, johannes@sipsolutions.net, ryazanov.s.a@gmail.com, loic.poulain@linaro.org, m.chetan.kumar@intel.com, chandrashekar.devegowda@intel.com, linuxwwan@intel.com, chiranjeevi.rapolu@linux.intel.com, haijun.liu@mediatek.com, amir.hanania@intel.com, andriy.shevchenko@linux.intel.com, dinesh.sharma@intel.com, eliot.lee@intel.com, mika.westerberg@linux.intel.com, moises.veleta@intel.com, pierre-louis.bossart@intel.com, muralidharan.sethuraman@intel.com, Soumya.Prakash.Mishra@intel.com, sreehari.kancharla@intel.com, suresh.nagaraj@intel.com References: <20211101035635.26999-1-ricardo.martinez@linux.intel.com> From: Denis Kirjanov Message-ID: <1401e75b-a1de-90b7-af24-5d13b6f0aaac@suse.de> Date: Mon, 1 Nov 2021 16:09:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211101035635.26999-1-ricardo.martinez@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: ru Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 11/1/21 6:56 AM, Ricardo Martinez пишет: > t7xx is the PCIe host device driver for Intel 5G 5000 M.2 solution which > is based on MediaTek's T700 modem to provide WWAN connectivity. > The driver uses the WWAN framework infrastructure to create the following > control ports and network interfaces: > * /dev/wwan0mbim0 - Interface conforming to the MBIM protocol. > Applications like libmbim [1] or Modem Manager [2] from v1.16 onwards > with [3][4] can use it to enable data communication towards WWAN. > * /dev/wwan0at0 - Interface that supports AT commands. > * wwan0 - Primary network interface for IP traffic. That should be prefixed with net-next > > The main blocks in t7xx driver are: > * PCIe layer - Implements probe, removal, and power management callbacks. > * Port-proxy - Provides a common interface to interact with different types > of ports such as WWAN ports. > * Modem control & status monitor - Implements the entry point for modem > initialization, reset and exit, as well as exception handling. > * CLDMA (Control Layer DMA) - Manages the HW used by the port layer to send > control messages to the modem using MediaTek's CCCI (Cross-Core > Communication Interface) protocol. > * DPMAIF (Data Plane Modem AP Interface) - Controls the HW that provides > uplink and downlink queues for the data path. The data exchange takes > place using circular buffers to share data buffer addresses and metadata > to describe the packets. > * MHCCIF (Modem Host Cross-Core Interface) - Provides interrupt channels > for bidirectional event notification such as handshake, exception, PM and > port enumeration. > > The compilation of the t7xx driver is enabled by the CONFIG_MTK_T7XX config > option which depends on CONFIG_WWAN. > This driver was originally developed by MediaTek. Intel adapted t7xx to > the WWAN framework, optimized and refactored the driver source in close > collaboration with MediaTek. This will enable getting the t7xx driver on > Approved Vendor List for interested OEM's and ODM's productization plans > with Intel 5G 5000 M.2 solution. > > List of contributors: > Amir Hanania > Andriy Shevchenko > Chandrashekar Devegowda > Dinesh Sharma > Eliot Lee > Haijun Liu > M Chetan Kumar > Mika Westerberg > Moises Veleta > Pierre-louis Bossart > Chiranjeevi Rapolu > Ricardo Martinez > Muralidharan Sethuraman > Soumya Prakash Mishra > Sreehari Kancharla > Suresh Nagaraj > > [1] https://www.freedesktop.org/software/libmbim/ > [2] https://www.freedesktop.org/software/ModemManager/ > [3] https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/582 > [4] https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/523 > > v2: > - Replace pdev->driver->name with dev_driver_string(&pdev->dev). > - Replace random_ether_addr() with eth_random_addr(). > - Update kernel-doc comment for enum data_policy. > - Indicate the driver is 'Supported' instead of 'Maintained'. > - Fix the Signed-of-by and Co-developed-by tags in the patches. > - Added authors and contributors in the top comment of the src files. > > Chandrashekar Devegowda (1): > net: wwan: t7xx: Add AT and MBIM WWAN ports > > Haijun Lio (11): > net: wwan: t7xx: Add control DMA interface > net: wwan: t7xx: Add core components > net: wwan: t7xx: Add port proxy infrastructure > net: wwan: t7xx: Add control port > net: wwan: t7xx: Data path HW layer > net: wwan: t7xx: Add data path interface > net: wwan: t7xx: Add WWAN network interface > net: wwan: t7xx: Introduce power management support > net: wwan: t7xx: Runtime PM > net: wwan: t7xx: Device deep sleep lock/unlock > net: wwan: t7xx: Add debug and test ports > > Ricardo Martinez (2): > net: wwan: Add default MTU size > net: wwan: t7xx: Add maintainers and documentation > > .../networking/device_drivers/wwan/index.rst | 1 + > .../networking/device_drivers/wwan/t7xx.rst | 120 ++ > MAINTAINERS | 11 + > drivers/net/wwan/Kconfig | 14 + > drivers/net/wwan/Makefile | 1 + > drivers/net/wwan/t7xx/Makefile | 24 + > drivers/net/wwan/t7xx/t7xx_cldma.c | 277 +++ > drivers/net/wwan/t7xx/t7xx_cldma.h | 168 ++ > drivers/net/wwan/t7xx/t7xx_common.h | 76 + > drivers/net/wwan/t7xx/t7xx_dpmaif.c | 1524 +++++++++++++++ > drivers/net/wwan/t7xx/t7xx_dpmaif.h | 168 ++ > drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 1663 +++++++++++++++++ > drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 156 ++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c | 638 +++++++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif.h | 279 +++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c | 1562 ++++++++++++++++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.h | 117 ++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c | 842 +++++++++ > drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.h | 82 + > drivers/net/wwan/t7xx/t7xx_mhccif.c | 124 ++ > drivers/net/wwan/t7xx/t7xx_mhccif.h | 35 + > drivers/net/wwan/t7xx/t7xx_modem_ops.c | 747 ++++++++ > drivers/net/wwan/t7xx/t7xx_modem_ops.h | 92 + > drivers/net/wwan/t7xx/t7xx_monitor.h | 147 ++ > drivers/net/wwan/t7xx/t7xx_netdev.c | 545 ++++++ > drivers/net/wwan/t7xx/t7xx_netdev.h | 63 + > drivers/net/wwan/t7xx/t7xx_pci.c | 789 ++++++++ > drivers/net/wwan/t7xx/t7xx_pci.h | 121 ++ > drivers/net/wwan/t7xx/t7xx_pcie_mac.c | 277 +++ > drivers/net/wwan/t7xx/t7xx_pcie_mac.h | 36 + > drivers/net/wwan/t7xx/t7xx_port.h | 163 ++ > drivers/net/wwan/t7xx/t7xx_port_char.c | 424 +++++ > drivers/net/wwan/t7xx/t7xx_port_ctrl_msg.c | 150 ++ > drivers/net/wwan/t7xx/t7xx_port_proxy.c | 829 ++++++++ > drivers/net/wwan/t7xx/t7xx_port_proxy.h | 102 + > drivers/net/wwan/t7xx/t7xx_port_tty.c | 191 ++ > drivers/net/wwan/t7xx/t7xx_port_wwan.c | 281 +++ > drivers/net/wwan/t7xx/t7xx_reg.h | 398 ++++ > drivers/net/wwan/t7xx/t7xx_skb_util.c | 362 ++++ > drivers/net/wwan/t7xx/t7xx_skb_util.h | 110 ++ > drivers/net/wwan/t7xx/t7xx_state_monitor.c | 627 +++++++ > drivers/net/wwan/t7xx/t7xx_tty_ops.c | 205 ++ > drivers/net/wwan/t7xx/t7xx_tty_ops.h | 44 + > include/linux/wwan.h | 5 + > 44 files changed, 14590 insertions(+) > create mode 100644 Documentation/networking/device_drivers/wwan/t7xx.rst > create mode 100644 drivers/net/wwan/t7xx/Makefile > create mode 100644 drivers/net/wwan/t7xx/t7xx_cldma.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_cldma.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_common.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_dpmaif.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_dpmaif.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_cldma.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_cldma.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_mhccif.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_mhccif.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_modem_ops.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_modem_ops.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_monitor.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_netdev.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_netdev.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_pci.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_pci.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_pcie_mac.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_pcie_mac.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_port.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_char.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ctrl_msg.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_proxy.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_proxy.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_tty.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_port_wwan.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_reg.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_skb_util.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_skb_util.h > create mode 100644 drivers/net/wwan/t7xx/t7xx_state_monitor.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_tty_ops.c > create mode 100644 drivers/net/wwan/t7xx/t7xx_tty_ops.h >