Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp921175rdb; Fri, 20 Oct 2023 03:32:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlt9bIgXeaKnWK5k9Io2Jo6+iYD4NYzDjh+cNzyY0bmE418e3fVJBUGG90USHEfb2/VG70 X-Received: by 2002:a05:6a21:7983:b0:14b:f9b2:eb7 with SMTP id bh3-20020a056a21798300b0014bf9b20eb7mr1161583pzc.59.1697797935571; Fri, 20 Oct 2023 03:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697797935; cv=none; d=google.com; s=arc-20160816; b=bwTw2WvZuaKxPL6jiaRXGwCVNJvEdioYCBDo91mW2IJpzwZocakoQGC5H3Hn4PFBg4 5b3yYXHGxL80lXrnqMHY00drSDLc+lc9V2Ne/AmiBg2zukTYoQhdVLht1QDFsDxlWZRr OhFvYUXa0MgjNMsG+EEt9F/gMYqLMHhmrGp+hIpWzdWely37Gak17CorZuMPUshcZq2K TIHytn6aA2vMntDV8D5emzd25yGPZlL6VKYQu+mJRuQ0CbFvbMWzdrWbOQ9+2UNM8ZvM TDiLBSIYW5jquA8ncF3wdqgbvuYmcJEcEQMn+AknGktwkDTScbc+vUSl/3+fzw0J9SZb eELQ== 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:dkim-signature; bh=phX7zoNmQ4vjkVmy9mNoa9A7qxze2JuzGhv7Ze0dzzs=; fh=Ku4rpZluzJB+G9vQVPu7qAagHLleNx84zz+BPW6AE7g=; b=jKhQUQ4knTzl5+ki7o1wRvCtZxkGgMckIwOxBJWiimrLNdKxmCYSRJxmqM4CkFGFO0 FYcSJBrE/LHUpwOuXTq5eoTVE8nwmQrCO8TaJoZatYG02QiziB1l0+NKd1E0+6yAu/aE MQ4MwCchAzfj9VW5ZxoEDc+SRAwSg0cv87p1VuuTMqf3a8XQ+pLA5V2aYZisqCNQ2fJT aRSifkvVwAC6xkDxaMwwW1MfWAWpemyR1M/IGMo23Po54q7/WSe7N8ccgGxW4DAeJ17k a7x5oSuRYjPkThLNn2YjEDdKfC5MnBIRGxXLTvaxVVQYUtoC1igrcf+fGz7urguipSwk bv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=doOaSRLp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b3-20020a17090a12c300b0027d33155aefsi1657478pjg.99.2023.10.20.03.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=doOaSRLp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 18A7F817DD02; Fri, 20 Oct 2023 03:31:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376720AbjJTKbY (ORCPT + 52 others); Fri, 20 Oct 2023 06:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376854AbjJTKbW (ORCPT ); Fri, 20 Oct 2023 06:31:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3952D69 for ; Fri, 20 Oct 2023 03:31:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4398DC433C8; Fri, 20 Oct 2023 10:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697797880; bh=QG0eqApJv057ZhUcrZWheMwZD0XE0lTlkrDwaucJpqk=; h=From:To:Cc:Subject:Date:From; b=doOaSRLpZMJzggL6jVoa8LczUhdPDxKgghOhWEAAEQ6N9cIx+6JPLuagVPdgniFDf Mv2ROcU+avVJQyrW+SFw2zv7hT7Y+XWH9iR6QHi1SE1flpQsiMcjDXuEaEVxTepaAY v195HEop5kBSf6Y6JpZaOLZn2IDmMmoEtLwTkLQ8tKlwMQIjXaa6rMzDO9P3OHNBOm p3v/MyaPS3N/B2IM0jLnEnUSCe47WBtAKQbC8E0gJx36AcfPkvGqMwB+Q5dMCFROsn 9Ap2HGu2T8x+zGMVfKjwqK5ApijAfdpy1RZesDg+LYDDKnIYciTmWh11nrXUu55+Bl oh2UJC1WjV95A== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, evelyn.tsai@mediatek.com, shayne.chen@mediatek.com, Bo.Jiao@mediatek.com, sujuan.chen@mediatek.com, linux-mediatek@lists.infradead.org Subject: [PATCH v3 00/13] wifi: mt7996: add wed support Date: Fri, 20 Oct 2023 12:30:47 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:31:45 -0700 (PDT) Similar to MT7915, introduce Wireless Ethernet Dispatcher (WED) support for MT7996 driver to offload transmitted/received traffic. Changes since v2: - fix compilation errors if wed is not enabled - add RRO garbage collector patch to the series Changes since v1: - add wed reset support - unmap rro buffer on module unload - check ind reason to check if the rx buffer must be discarded Bo Jiao (1): wifi: mt76: mt7996: add wed rx support Lorenzo Bianconi (11): wifi: mt76: mmio: move mt76_mmio_wed_{init,release}_rx_buf in common code wifi: mt76: move mt76_mmio_wed_offload_{enable,disable} in common code wifi: mt76: move mt76_net_setup_tc in common code wifi: mt76: introduce mt76_queue_is_wed_tx_free utility routine wifi: mt76: introduce wed pointer in mt76_queue wifi: mt76: increase MT_QFLAG_WED_TYPE size wifi: mt76: dma: introduce __mt76_dma_queue_reset utility routine wifi: mt76: mt7996: use u16 for val field in mt7996_mcu_set_rro signature mt76: move wed reset common code in mt76 module mt76: mt7996: add wed reset support wifi: mt76: mt7996: add wed rro delete session garbage collector Sujuan Chen (1): wifi: mt76: mt7996: add wed tx support drivers/net/wireless/mediatek/mt76/dma.c | 246 +++++++++++----- drivers/net/wireless/mediatek/mt76/dma.h | 52 ++++ drivers/net/wireless/mediatek/mt76/mac80211.c | 19 +- drivers/net/wireless/mediatek/mt76/mmio.c | 105 +++++++ drivers/net/wireless/mediatek/mt76/mt76.h | 96 +++++- .../net/wireless/mediatek/mt76/mt7603/dma.c | 9 +- .../net/wireless/mediatek/mt76/mt7615/dma.c | 6 +- .../net/wireless/mediatek/mt76/mt76_connac.h | 3 +- .../wireless/mediatek/mt76/mt76_connac_mac.c | 5 +- .../wireless/mediatek/mt76/mt76_connac_mcu.h | 1 + .../net/wireless/mediatek/mt76/mt76x02_mmio.c | 5 +- .../net/wireless/mediatek/mt76/mt7915/dma.c | 46 +-- .../net/wireless/mediatek/mt76/mt7915/main.c | 16 +- .../net/wireless/mediatek/mt76/mt7915/mmio.c | 116 +------- .../net/wireless/mediatek/mt76/mt7921/pci.c | 2 +- .../net/wireless/mediatek/mt76/mt7925/pci.c | 2 +- .../net/wireless/mediatek/mt76/mt7996/dma.c | 276 ++++++++++++++++-- .../net/wireless/mediatek/mt76/mt7996/init.c | 256 +++++++++++++++- .../net/wireless/mediatek/mt76/mt7996/mac.c | 122 +++++++- .../net/wireless/mediatek/mt76/mt7996/main.c | 42 +++ .../net/wireless/mediatek/mt76/mt7996/mcu.c | 115 +++++++- .../net/wireless/mediatek/mt76/mt7996/mcu.h | 37 +++ .../net/wireless/mediatek/mt76/mt7996/mmio.c | 245 ++++++++++++++-- .../wireless/mediatek/mt76/mt7996/mt7996.h | 79 ++++- .../net/wireless/mediatek/mt76/mt7996/pci.c | 61 ++-- .../net/wireless/mediatek/mt76/mt7996/regs.h | 78 ++++- 26 files changed, 1695 insertions(+), 345 deletions(-) -- 2.41.0