2021-06-10 11:43:58

by Felix Fietkau

[permalink] [raw]
Subject: pull request: mt76 2021-06-10

Hi Kalle,

here's my first pull request for 5.14

- Felix

The following changes since commit 080f9c10c773df39ccebe8dc414179d9179005a9:

ipw2x00: Minor documentation update (2021-06-03 12:33:55 +0300)

are available in the Git repository at:

https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-06-10

for you to fetch changes up to c3dfa83c3e625e111874295076557b7dddadda13:

mt76: mt7915: drop the use of repeater entries for station interfaces (2021-06-10 13:39:41 +0200)

----------------------------------------------------------------
mt76 patches for 5.14

* mt7915 MSI support
* disable ASPM on mt7915
* mt7915 tx status reporting
* mt7921 decap offload
* driver fixes
* cleanups
* mt7921 runtime power management improvements
* testmode improvements/fixes

----------------------------------------------------------------
Dan Carpenter (1):
mt76: mt7915: fix a signedness bug in mt7915_mcu_apply_tx_dpd()

Deren Wu (4):
mt76: connac: update BA win size in Rx direction
mt76: mt7921: introduce mac tx done handling
mt76: mt7921: update statistic in active mode only
mt76: mt7921: enable random mac address during sched_scan

Evelyn Tsai (1):
mt76: mt7915: fix tssi indication field of DBDC NICs

Felix Fietkau (14):
mt76: mt7915: add MSI support
mt76: mt7915: disable ASPM
mt76: mt7915: move mt7915_queue_rx_skb to mac.c
mt76: mt7615: fix fixed-rate tx status reporting
mt76: mt7615: avoid use of ieee80211_tx_info_clear_status
mt76: mt7603: avoid use of ieee80211_tx_info_clear_status
mt76: intialize tx queue entry wcid to 0xffff by default
mt76: improve tx status codepath
mt76: dma: use ieee80211_tx_status_ext to free packets when tx fails
mt76: mt7915: rework tx rate reporting
mt76: mt7915: add support for tx status reporting
mt76: mt7915: improve error recovery reliability
mt76: mt7921: enable VHT BFee capability
mt76: mt7915: drop the use of repeater entries for station interfaces

Lorenzo Bianconi (30):
mt76: move mt76_rates in mt76 module
mt76: mt7921: enable rx hw de-amsdu
mt76: connac: add missing configuration in mt76_connac_mcu_wtbl_hdr_trans_tlv
mt76: mt7921: enable rx header traslation offload
mt76: mt7921: enable rx csum offload
mt76: fix possible NULL pointer dereference in mt76_tx
mt76: mt7615: fix NULL pointer dereference in tx_prepare_skb()
mt76: mt76x0: use dev_debug instead of dev_err for hw_rf_ctrl
mt76: mt7615: free irq if mt7615_mmio_probe fails
mt76: mt7663: enable hw rx header translation
mt76: mt7921: enable runtime pm by default
mt76: mt7921: return proper error value in mt7921_mac_init
mt76: mt7921: do not schedule hw reset if the device is not running
mt76: mt7921: reset wfsys during hw probe
mt76: mt7615: remove useless if condition in mt7615_add_interface()
mt76: testmode: fix memory leak in mt76_testmode_alloc_skb
mt76: testmode: remove unnecessary function calls in mt76_testmode_free_skb
mt76: testmode: remove undefined behaviour in mt76_testmode_alloc_skb
mt76: allow hw driver code to overwrite wiphy interface_modes
mt76: mt7921: set MT76_RESET during mac reset
mt76: mt7921: enable hw offloading for wep keys
mt76: mt7921: remove mt7921_get_wtbl_info routine
mt76: connac: fix UC entry is being overwritten
mt76: connac: add mt76_connac_power_save_sched in mt76_connac_pm_unref
mt76: mt7921: wake the device before dumping power table
mt76: mt7921: make mt7921_set_channel static
mt76: connac: add mt76_connac_mcu_get_nic_capability utility routine
mt76: reduce rx buffer size to 2048
mt76: move mt76_get_next_pkt_id in mt76.h
mt76: connac: check band caps in mt76_connac_mcu_set_rate_txpower

Ryder Lee (12):
mt76: mt7915: cleanup mt7915_mcu_sta_rate_ctrl_tlv()
mt76: mt7915: add .set_bitrate_mask() callback
mt76: mt7915: add thermal sensor device support
mt76: mt7915: add thermal cooling device support
mt76: mt7615: add thermal sensor device support
mt76: mt7915: add .offset_tsf callback
mt76: mt7615: add .offset_tsf callback
mt76: mt7615: fix potential overflow on large shift
mt76: mt7915: use mt7915_mcu_get_mib_info() to get survey data
mt76: mt7915: setup drr group for peers
mt76: mt7615: update radar parameters
mt76: mt7915: fix MT_EE_CAL_GROUP_SIZE

Sean Wang (12):
mt76: mt7921: fix mt7921_wfsys_reset sequence
mt76: mt7921: Don't alter Rx path classifier
mt76: connac: fw_own rely on all packet memory all being free
mt76: mt7921: fix reset under the deep sleep is enabled
mt76: mt7921: enable deep sleep at runtime
mt76: mt7921: add deep sleep control to runtime-pm knob
mt76: mt7921: consider the invalid value for to_rssi
mt76: mt7921: add back connection monitor support
mt76: mt7921: avoid unnecessary consecutive WiFi resets
mt76: mt7921: fix invalid register access in wake_work
mt76: mt7921: fix OMAC idx usage
mt76: connac: fix the maximum interval schedule scan can support

Shayne Chen (4):
mt76: mt7915: use mt7915_mcu_get_txpower_sku() to get per-rate txpower
mt76: mt7915: read all eeprom fields from fw in efuse mode
mt76: testmode: move chip-specific stats dump before common stats
mt76: mt7915: fix rx fcs error count in testmode

YN Chen (2):
mt76: connac: fix WoW with disconnetion and bitmap pattern
mt76: connac: add bss color support for sta mode

drivers/net/wireless/mediatek/mt76/dma.c | 19 ++--
drivers/net/wireless/mediatek/mt76/mac80211.c | 49 ++++++++---
drivers/net/wireless/mediatek/mt76/mt76.h | 36 +++++++-
drivers/net/wireless/mediatek/mt76/mt7603/init.c | 32 +------
drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 20 -----
drivers/net/wireless/mediatek/mt76/mt7615/dma.c | 13 +--
drivers/net/wireless/mediatek/mt76/mt7615/init.c | 85 +++++++++++-------
drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 31 +++----
drivers/net/wireless/mediatek/mt76/mt7615/main.c | 42 +++++++--
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 91 +++++++++++++------
drivers/net/wireless/mediatek/mt76/mt7615/mmio.c | 11 ++-
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h | 10 ++-
drivers/net/wireless/mediatek/mt76/mt7615/pci_init.c | 10 ++-
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c | 5 +-
drivers/net/wireless/mediatek/mt76/mt7615/regs.h | 2 +
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c | 11 +--
drivers/net/wireless/mediatek/mt76/mt76_connac.h | 16 +++-
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | 6 ++
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 184 ++++++++++++++++++++++++++++++++++----
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 55 +++++++++++-
drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 16 ++--
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 63 ++-----------
drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 45 ++--------
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c | 44 +++++----
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h | 13 +--
drivers/net/wireless/mediatek/mt76/mt7915/init.c | 160 ++++++++++++++++++++++++++-------
drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 340 ++++++++++++++++++++++++++++++++++++++++------------------------------
drivers/net/wireless/mediatek/mt76/mt7915/mac.h | 56 ++++++++++++
drivers/net/wireless/mediatek/mt76/mt7915/main.c | 103 ++++++++++++++++++----
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 470 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
drivers/net/wireless/mediatek/mt76/mt7915/mcu.h | 51 ++++++++++-
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 33 ++++---
drivers/net/wireless/mediatek/mt76/mt7915/pci.c | 41 +++++++--
drivers/net/wireless/mediatek/mt76/mt7915/regs.h | 27 +-----
drivers/net/wireless/mediatek/mt76/mt7915/testmode.c | 21 ++++-
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c | 21 +++++
drivers/net/wireless/mediatek/mt76/mt7921/dma.c | 22 ++---
drivers/net/wireless/mediatek/mt76/mt7921/init.c | 92 +++++++------------
drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 206 ++++++++++++++++++++++++++++---------------
drivers/net/wireless/mediatek/mt76/mt7921/mac.h | 14 +++
drivers/net/wireless/mediatek/mt76/mt7921/main.c | 129 +++++++++++++--------------
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 161 ++++++++++++++++++---------------
drivers/net/wireless/mediatek/mt76/mt7921/mcu.h | 143 ++++++------------------------
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h | 10 ++-
drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 25 ++++--
drivers/net/wireless/mediatek/mt76/sdio.c | 1 +
drivers/net/wireless/mediatek/mt76/testmode.c | 35 ++++----
drivers/net/wireless/mediatek/mt76/tx.c | 82 ++++++++++-------
drivers/net/wireless/mediatek/mt76/usb.c | 1 +
51 files changed, 2031 insertions(+), 1126 deletions(-)


2021-06-17 14:36:10

by Kalle Valo

[permalink] [raw]
Subject: Re: pull request: mt76 2021-06-10

Felix Fietkau <[email protected]> writes:

> Hi Kalle,
>
> here's my first pull request for 5.14
>
> - Felix
>
> The following changes since commit 080f9c10c773df39ccebe8dc414179d9179005a9:
>
> ipw2x00: Minor documentation update (2021-06-03 12:33:55 +0300)
>
> are available in the Git repository at:
>
> https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-06-10
>
> for you to fetch changes up to c3dfa83c3e625e111874295076557b7dddadda13:
>
> mt76: mt7915: drop the use of repeater entries for station interfaces (2021-06-10 13:39:41 +0200)
>
> ----------------------------------------------------------------
> mt76 patches for 5.14
>
> * mt7915 MSI support
> * disable ASPM on mt7915
> * mt7915 tx status reporting
> * mt7921 decap offload
> * driver fixes
> * cleanups
> * mt7921 runtime power management improvements
> * testmode improvements/fixes
>
> ----------------------------------------------------------------

I updated wireless-drivers-next this morning to latest net-next and
there are now few conflicts:

$ git pull https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-06-10
From https://github.com/nbd168/wireless
* tag mt76-for-kvalo-2021-06-10 -> FETCH_HEAD
Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
CONFLICT (content): Merge conflict in drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/main.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/mac.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/init.c
CONFLICT (content): Merge conflict in drivers/net/wireless/mediatek/mt76/mt7921/init.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt7615/mac.c
Auto-merging drivers/net/wireless/mediatek/mt76/mt7615/init.c
Auto-merging drivers/net/wireless/mediatek/mt76/mac80211.c

I can fix those but having instructions how to solve them will help.

With GCC 11.1 I see a new warning:

drivers/net/wireless/mediatek/mt76/mt7915/init.c: In function 'mt7915_thermal_init':
drivers/net/wireless/mediatek/mt76/mt7915/init.c:138:17: warning: ignoring return value of 'sysfs_create_link' declared with attribute 'warn_unused_result' [-Wunused-result]
138 | sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139 | "cooling_device");
| ~~~~~~~~~~~~~~~~~

Also two problems with commit logs:

In commit

a4777798a401 ("mt76: connac: fix WoW with disconnetion and bitmap pattern")

Fixes tag

Fixes: ffa1bf97425 ("mt76: mt7921: introduce PM support")

has these problem(s):

- SHA1 should be at least 12 digits long
Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11
or later) just making sure it is not set (or set to "auto").

Commit

34bd6f5f1e24 ("mt76: move mt76_rates in mt76 module")

is missing a Signed-off-by from its committer.


--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

2021-06-17 14:49:53

by Felix Fietkau

[permalink] [raw]
Subject: Re: pull request: mt76 2021-06-10


On 2021-06-17 15:58, Kalle Valo wrote:
> Felix Fietkau <[email protected]> writes:
>
>> Hi Kalle,
>>
>> here's my first pull request for 5.14
>>
>> - Felix
>>
>> The following changes since commit 080f9c10c773df39ccebe8dc414179d9179005a9:
>>
>> ipw2x00: Minor documentation update (2021-06-03 12:33:55 +0300)
>>
>> are available in the Git repository at:
>>
>> https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-06-10
>>
>> for you to fetch changes up to c3dfa83c3e625e111874295076557b7dddadda13:
>>
>> mt76: mt7915: drop the use of repeater entries for station interfaces (2021-06-10 13:39:41 +0200)
>>
>> ----------------------------------------------------------------
>> mt76 patches for 5.14
>>
>> * mt7915 MSI support
>> * disable ASPM on mt7915
>> * mt7915 tx status reporting
>> * mt7921 decap offload
>> * driver fixes
>> * cleanups
>> * mt7921 runtime power management improvements
>> * testmode improvements/fixes
>>
>> ----------------------------------------------------------------
>
> I updated wireless-drivers-next this morning to latest net-next and
> there are now few conflicts:
>
> $ git pull https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-06-10
> From https://github.com/nbd168/wireless
> * tag mt76-for-kvalo-2021-06-10 -> FETCH_HEAD
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
> CONFLICT (content): Merge conflict in drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/main.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/mac.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7921/init.c
> CONFLICT (content): Merge conflict in drivers/net/wireless/mediatek/mt76/mt7921/init.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7615/mac.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mt7615/init.c
> Auto-merging drivers/net/wireless/mediatek/mt76/mac80211.c
>
> I can fix those but having instructions how to solve them will help.
>
> With GCC 11.1 I see a new warning:
>
> drivers/net/wireless/mediatek/mt76/mt7915/init.c: In function 'mt7915_thermal_init':
> drivers/net/wireless/mediatek/mt76/mt7915/init.c:138:17: warning: ignoring return value of 'sysfs_create_link' declared with attribute 'warn_unused_result' [-Wunused-result]
> 138 | sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 139 | "cooling_device");
> | ~~~~~~~~~~~~~~~~~
>
> Also two problems with commit logs:
>
> In commit
>
> a4777798a401 ("mt76: connac: fix WoW with disconnetion and bitmap pattern")
>
> Fixes tag
>
> Fixes: ffa1bf97425 ("mt76: mt7921: introduce PM support")
>
> has these problem(s):
>
> - SHA1 should be at least 12 digits long
> Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11
> or later) just making sure it is not set (or set to "auto").
>
> Commit
>
> 34bd6f5f1e24 ("mt76: move mt76_rates in mt76 module")
>
> is missing a Signed-off-by from its committer.
Sorry about that. I will rebase and send a new one.

- Felix