Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp400080rwd; Tue, 30 May 2023 23:10:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59zrolpqt7fG4Hi/RrVktQENftDDIWo5WlLzLfvYlbGTt6nS3Zl6SF8rbdlFxOUhYKJBmO X-Received: by 2002:a05:6808:1792:b0:38d:ed6f:536 with SMTP id bg18-20020a056808179200b0038ded6f0536mr3735810oib.42.1685513405974; Tue, 30 May 2023 23:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685513405; cv=none; d=google.com; s=arc-20160816; b=g1oSVCvdmRyVm0kttL3TdgsszRbCUssn5Gxm0ucodln8A7P81V1L9EJ+iTslb/vtHk IK6Jo2ktgwtuRD655hHmMYZxE0Dp1qvf9z94ZB7dbvEXc+qD3siAOC2AoXV6BA4B0+ic MTJFxK4f9UvfelQ5eiMd2iA9mYKPdpaz84YL/+dlbXnH1Ww3fu1IP8IAUCBRrDAdMaTZ lOYkz4yyh4oDep1J9vV3Kdjo3Gf2bP75/17hkF7bce6NU1bKiHn3cT/LKu4fa1pn3ryK bRakuH7y+h70YI+edexBrMc3vNaiaOsiH7qHsZaXazOWN1qU8ZtBp6pab1Hp7pahc3LC pZ/A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=MEiuWuG6gTEn0m0HgHZmOo8/XzenzBLwjCUUlmOQkUc=; b=wWoqSLf9IHqbkdfFK4xyx6xfQQy35ZVdGijpLMlH/bNX+kCBv3ceIcxOYaO10kv5dk brQ3sRmIMLB/ByfrrOq4Xr5RpSr08xcj9tqfoFTTnWQgvmg0jqSakJn9Mw+d/kRmxaz7 dy7pq35XIIjgSBrTOsJ85vEHpNpT85bVB/B4UAznZuXUnTljVz5DdfbniWHdFVprzFYf ZlBOGq/xLmaaEdi679mWXANrjEnADBHeNxlX/38OnoS9zwAq+hO9879tBjL4RJ8/fHdS TKQ6jINMSye18tU2vw17Eeuditcib1DQeW2e0YF6p/0as7WGno6B9u90JjSwA/QwXcX5 2VkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020a638c17000000b00534913980acsi357441pgd.854.2023.05.30.23.09.57; Tue, 30 May 2023 23:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234435AbjEaGI3 (ORCPT + 64 others); Wed, 31 May 2023 02:08:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232237AbjEaGIN (ORCPT ); Wed, 31 May 2023 02:08:13 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B49194 for ; Tue, 30 May 2023 23:07:49 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 34V67TsiC025696, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 34V67TsiC025696 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Wed, 31 May 2023 14:07:29 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 31 May 2023 14:07:43 +0800 Received: from [127.0.1.1] (172.21.69.188) by RTEXMBS04.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.2375.7; Wed, 31 May 2023 14:07:42 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 4/4] wifi: rtw89: 8851b: configure CRASH_TRIGGER feature for 8851B Date: Wed, 31 May 2023 14:07:13 +0800 Message-ID: <20230531060713.57203-5-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230531060713.57203-1-pkshih@realtek.com> References: <20230531060713.57203-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.188] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Zong-Zhe Yang RTL8851B firmware supports CRASH_TRIGGER feature from v0.29.41.0. After this is configured, debugfs fw_crash can support type 1 on RTL8851B to trigger firmware crash and verify L2 recovery through simulation. Signed-off-by: Zong-Zhe Yang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/fw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c index 4bb90d9e00d2c..65202f82e3bea 100644 --- a/drivers/net/wireless/realtek/rtw89/fw.c +++ b/drivers/net/wireless/realtek/rtw89/fw.c @@ -258,6 +258,7 @@ struct __fw_feat_cfg { static const struct __fw_feat_cfg fw_feat_tbl[] = { __CFG_FW_FEAT(RTL8851B, ge, 0, 29, 37, 1, TX_WAKE), __CFG_FW_FEAT(RTL8851B, ge, 0, 29, 37, 1, SCAN_OFFLOAD), + __CFG_FW_FEAT(RTL8851B, ge, 0, 29, 41, 0, CRASH_TRIGGER), __CFG_FW_FEAT(RTL8852A, le, 0, 13, 29, 0, OLD_HT_RA_FORMAT), __CFG_FW_FEAT(RTL8852A, ge, 0, 13, 35, 0, SCAN_OFFLOAD), __CFG_FW_FEAT(RTL8852A, ge, 0, 13, 35, 0, TX_WAKE), -- 2.25.1