Patch "wifi: rtw89: 885xb: reset IDMEM mode to prevent download firmware failure" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: rtw89: 885xb: reset IDMEM mode to prevent download firmware failure

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-rtw89-885xb-reset-idmem-mode-to-prevent-downloa.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 64a1c6dfbc3d1aaad9ec85287a6d09d10fc4d9d5
Author: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
Date:   Wed Jul 24 13:26:25 2024 +0800

    wifi: rtw89: 885xb: reset IDMEM mode to prevent download firmware failure
    
    [ Upstream commit 80fb81bb46a57daedd5decbcc253ea48428a254e ]
    
    For different firmware type, it could change IDMEM mode, so reset it to
    default to avoid encountering error for RTL8851B/RTL8852B/RTL8852BT
    if that kind of firmware was downloaded before.
    
        rtw89_8851be 0000:02:00.0: Firmware version 0.29.41.3, cmd version 0, type 5
        rtw89_8851be 0000:02:00.0: Firmware version 0.29.41.3, cmd version 0, type 3
        rtw89_8851be 0000:02:00.0: MAC has already powered on
        rtw89_8851be 0000:02:00.0: fw security fail
        rtw89_8851be 0000:02:00.0: download firmware fail
        rtw89_8851be 0000:02:00.0: [ERR]fwdl 0x1E0 = 0x62
        rtw89_8851be 0000:02:00.0: [ERR]fwdl 0x83F2 = 0x8
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f51c
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f524
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f51c
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f500
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f51c
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f53c
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f520
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f520
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f508
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f534
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f520
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f534
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f508
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f53c
        rtw89_8851be 0000:02:00.0: [ERR]fw PC = 0xb892f524
        rtw89_8851be 0000:02:00.0: failed to setup chip information
        rtw89_8851be: probe of 0000:02:00.0 failed with error -16
    
    Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
    Link: https://patch.msgid.link/20240724052626.12774-4-pkshih@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
index 9a4f23d83bf2a..5c07db4f471d6 100644
--- a/drivers/net/wireless/realtek/rtw89/mac.c
+++ b/drivers/net/wireless/realtek/rtw89/mac.c
@@ -3788,7 +3788,7 @@ static int rtw89_mac_enable_cpu_ax(struct rtw89_dev *rtwdev, u8 boot_reason,
 
 	rtw89_write32(rtwdev, R_AX_WCPU_FW_CTRL, val);
 
-	if (rtwdev->chip->chip_id == RTL8852B)
+	if (rtw89_is_rtl885xb(rtwdev))
 		rtw89_write32_mask(rtwdev, R_AX_SEC_CTRL,
 				   B_AX_SEC_IDMEM_SIZE_CONFIG_MASK, 0x2);
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux