Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp873556pxk; Thu, 24 Sep 2020 23:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztE5dJEXdiMHRixWxaHdGcycYdSZiJih4xGna0OAeu1vA1BljPRws+nhhRt12bhO/REaCS X-Received: by 2002:aa7:c419:: with SMTP id j25mr2365105edq.109.1601014875528; Thu, 24 Sep 2020 23:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601014875; cv=none; d=google.com; s=arc-20160816; b=k7Lq+ztN3jdTuE/UylaS0r8Z+yqvfGFO3cElqPKPsv8PMEzST8Rx3QHqvq36JuNq2g DH0hx92AA9wTgqKY1MH7GB/vWpDsZ7elltrNIQjRWxwaqXn3SDU9HppEc8QeV6O8cT55 y6r+v6SrDR8BTW5ST0nIcRUaMutTEWoBgBxl8bFHkyUc5hrzgPNGq7F+n39WHbMWvL1J Js2kr8djA7PJtdmxlL2rBrszo5+jLqVG5iEfLWbIpBv1qjLHTPMTWGfHjPMta71NP7U5 LOJ64pCeAHAiVRunzrQbjw62LyglRipRY3lL6LwS+96wYL0gLaH+WoEyPuYbtntkm+Il lxJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=B2J+n8GXDe3D09qNHSZJcDIFiQpudZYlVXILeNsAbLM=; b=KJs1Zh0KjpSNmwov8j/etCOC2ycTi5Y+RiHiIfZ5I1O69EjvcTGK54cJKQ9Chl1+WK 6OZx3K2s9aWYKWpbj4Lj0oFTDUZmKNo8Demr3a2hqQScP3hz6GXoBIxmLWiyyZY5KFUr 7xXN/AZjVD+cL0bIT+qiFqHmknvDU7QYdguIG5NOAryjYt11LWbVlW8rM6N1nBHmcpPv U/WLyjYuz/yJeQEFEBonzg3hR904rVi+6jUtHXPA9iYhxF/Jng9BRVivZAauj4Xkic3R irEOMCUPy/a0JOek4fvGUS3OJVfhlIo6mUn1byelMhms8wYJkDKR1vDR8NmineaL9j4K Ku1A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si1114660edq.257.2020.09.24.23.20.51; Thu, 24 Sep 2020 23:21:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbgIYGTa (ORCPT + 99 others); Fri, 25 Sep 2020 02:19:30 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:39821 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgIYGTa (ORCPT ); Fri, 25 Sep 2020 02:19:30 -0400 X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 08P6CMOb8010468, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb04.realtek.com.tw[172.21.6.97]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 08P6CMOb8010468 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 25 Sep 2020 14:12:22 +0800 Received: from localhost.localdomain (172.21.69.222) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Fri, 25 Sep 2020 14:12:22 +0800 From: To: , CC: Subject: [PATCH 0/5] rtw88: add firmware crash recovery and some fixes Date: Fri, 25 Sep 2020 14:12:14 +0800 Message-ID: <20200925061219.23754-1-tehuang@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.69.222] X-ClientProxiedBy: RTEXMB05.realtek.com.tw (172.21.6.98) To RTEXMB04.realtek.com.tw (172.21.6.97) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Tzu-En Huang When firmware crashes, it inturrupts the driver, then driver will save its association state, restart the chip and call ieee80211_restart_hw(). The size of the rx buffer and the declared VHT capability are unmatch, which may lead to rx buffer overflow. Add regulatory information in the tramit power table. Tzu-En Huang (5): rtw88: increse the size of rx buffer size rtw88: handle and recover when firmware crash rtw88: add dump firmware fifo support rtw88: add dump fw crash log rtw88: show current regulatory in tx power table drivers/net/wireless/realtek/rtw88/debug.c | 26 ++- drivers/net/wireless/realtek/rtw88/fw.c | 86 ++++++-- drivers/net/wireless/realtek/rtw88/fw.h | 18 +- drivers/net/wireless/realtek/rtw88/mac80211.c | 81 ++------ drivers/net/wireless/realtek/rtw88/main.c | 193 ++++++++++++++++++ drivers/net/wireless/realtek/rtw88/main.h | 32 +++ drivers/net/wireless/realtek/rtw88/pci.c | 3 + drivers/net/wireless/realtek/rtw88/pci.h | 4 +- drivers/net/wireless/realtek/rtw88/reg.h | 5 + drivers/net/wireless/realtek/rtw88/rtw8822b.c | 3 + drivers/net/wireless/realtek/rtw88/rtw8822c.c | 3 + drivers/net/wireless/realtek/rtw88/util.h | 2 + 12 files changed, 372 insertions(+), 84 deletions(-) -- 2.17.1