linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Ping-Ke Shih <pkshih@realtek.com>
Subject: Re: [PATCH rtw-next v2 14/14] wifi: rtw89: Enable the new USB modules
Date: Tue, 10 Jun 2025 19:55:52 +0800	[thread overview]
Message-ID: <202506101956.cNXM2Qvb-lkp@intel.com> (raw)
In-Reply-To: <663044d3-0816-4b1b-874d-776835e774e9@gmail.com>

Hi Bitterblue,

kernel test robot noticed the following build errors:

[auto build test ERROR on wireless-next/main]
[also build test ERROR on wireless/main linus/master v6.16-rc1 next-20250610]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Bitterblue-Smith/wifi-rtw89-8851b-Accept-USB-devices-and-load-their-MAC-address/20250610-033543
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/663044d3-0816-4b1b-874d-776835e774e9%40gmail.com
patch subject: [PATCH rtw-next v2 14/14] wifi: rtw89: Enable the new USB modules
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250610/202506101956.cNXM2Qvb-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250610/202506101956.cNXM2Qvb-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506101956.cNXM2Qvb-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/wireless/realtek/rtw89/rtw8851b.c:523:47: error: use of undeclared identifier 'B_AX_SOP_EDSWR'
     523 |                 rtw89_write32_clr(rtwdev, R_AX_SYS_PW_CTRL, B_AX_SOP_EDSWR);
         |                                                             ^
   1 error generated.


vim +/B_AX_SOP_EDSWR +523 drivers/net/wireless/realtek/rtw89/rtw8851b.c

31df6df89f9394 Ping-Ke Shih     2023-05-12  477  
31df6df89f9394 Ping-Ke Shih     2023-05-12  478  static int rtw8851b_pwr_off_func(struct rtw89_dev *rtwdev)
31df6df89f9394 Ping-Ke Shih     2023-05-12  479  {
31df6df89f9394 Ping-Ke Shih     2023-05-12  480  	u32 val32;
66595e31988626 Ping-Ke Shih     2024-10-09  481  	int ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  482  
31df6df89f9394 Ping-Ke Shih     2023-05-12  483  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, XTAL_SI_RFC2RF,
31df6df89f9394 Ping-Ke Shih     2023-05-12  484  				      XTAL_SI_RFC2RF);
31df6df89f9394 Ping-Ke Shih     2023-05-12  485  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  486  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  487  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, 0, XTAL_SI_OFF_EI);
31df6df89f9394 Ping-Ke Shih     2023-05-12  488  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  489  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  490  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, 0, XTAL_SI_OFF_WEI);
31df6df89f9394 Ping-Ke Shih     2023-05-12  491  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  492  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  493  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_WL_RFC_S0, 0, XTAL_SI_RF00);
31df6df89f9394 Ping-Ke Shih     2023-05-12  494  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  495  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  496  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, XTAL_SI_SRAM2RFC,
31df6df89f9394 Ping-Ke Shih     2023-05-12  497  				      XTAL_SI_SRAM2RFC);
31df6df89f9394 Ping-Ke Shih     2023-05-12  498  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  499  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  500  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, 0, XTAL_SI_PON_EI);
31df6df89f9394 Ping-Ke Shih     2023-05-12  501  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  502  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  503  	ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, 0, XTAL_SI_PON_WEI);
31df6df89f9394 Ping-Ke Shih     2023-05-12  504  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  505  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  506  
31df6df89f9394 Ping-Ke Shih     2023-05-12  507  	rtw89_write32_set(rtwdev, R_AX_WLAN_XTAL_SI_CONFIG,
31df6df89f9394 Ping-Ke Shih     2023-05-12  508  			  B_AX_XTAL_SI_ADDR_NOT_CHK);
31df6df89f9394 Ping-Ke Shih     2023-05-12  509  	rtw89_write32_set(rtwdev, R_AX_SYS_PW_CTRL, B_AX_EN_WLON);
31df6df89f9394 Ping-Ke Shih     2023-05-12  510  	rtw89_write32_clr(rtwdev, R_AX_WLRF_CTRL, B_AX_AFC_AFEDIG);
31df6df89f9394 Ping-Ke Shih     2023-05-12  511  	rtw89_write8_clr(rtwdev, R_AX_SYS_FUNC_EN, B_AX_FEN_BB_GLB_RSTN | B_AX_FEN_BBRSTB);
31df6df89f9394 Ping-Ke Shih     2023-05-12  512  
31df6df89f9394 Ping-Ke Shih     2023-05-12  513  	rtw89_write32_set(rtwdev, R_AX_SYS_PW_CTRL, B_AX_APFM_OFFMAC);
31df6df89f9394 Ping-Ke Shih     2023-05-12  514  
31df6df89f9394 Ping-Ke Shih     2023-05-12  515  	ret = read_poll_timeout(rtw89_read32, val32, !(val32 & B_AX_APFM_OFFMAC),
31df6df89f9394 Ping-Ke Shih     2023-05-12  516  				1000, 20000, false, rtwdev, R_AX_SYS_PW_CTRL);
31df6df89f9394 Ping-Ke Shih     2023-05-12  517  	if (ret)
31df6df89f9394 Ping-Ke Shih     2023-05-12  518  		return ret;
31df6df89f9394 Ping-Ke Shih     2023-05-12  519  
cb97e6b5232342 Bitterblue Smith 2025-06-09  520  	if (rtwdev->hci.type == RTW89_HCI_TYPE_PCIE)
31df6df89f9394 Ping-Ke Shih     2023-05-12  521  		rtw89_write32(rtwdev, R_AX_WLLPS_CTRL, SW_LPS_OPTION);
cb97e6b5232342 Bitterblue Smith 2025-06-09  522  	else if (rtwdev->hci.type == RTW89_HCI_TYPE_USB)
cb97e6b5232342 Bitterblue Smith 2025-06-09 @523  		rtw89_write32_clr(rtwdev, R_AX_SYS_PW_CTRL, B_AX_SOP_EDSWR);
31df6df89f9394 Ping-Ke Shih     2023-05-12  524  
31df6df89f9394 Ping-Ke Shih     2023-05-12  525  	if (rtwdev->hal.cv == CHIP_CAV) {
31df6df89f9394 Ping-Ke Shih     2023-05-12  526  		rtw8851b_patch_swr_pfm2pwm(rtwdev);
31df6df89f9394 Ping-Ke Shih     2023-05-12  527  	} else {
31df6df89f9394 Ping-Ke Shih     2023-05-12  528  		rtw89_write32_set(rtwdev, R_AX_SPSLDO_ON_CTRL1, B_AX_FPWMDELAY);
31df6df89f9394 Ping-Ke Shih     2023-05-12  529  		rtw89_write32_set(rtwdev, R_AX_SPSANA_ON_CTRL1, B_AX_FPWMDELAY);
31df6df89f9394 Ping-Ke Shih     2023-05-12  530  	}
31df6df89f9394 Ping-Ke Shih     2023-05-12  531  
cb97e6b5232342 Bitterblue Smith 2025-06-09  532  	if (rtwdev->hci.type == RTW89_HCI_TYPE_PCIE) {
31df6df89f9394 Ping-Ke Shih     2023-05-12  533  		rtw89_write32_set(rtwdev, R_AX_SYS_PW_CTRL, B_AX_APFM_SWLPS);
cb97e6b5232342 Bitterblue Smith 2025-06-09  534  	} else if (rtwdev->hci.type == RTW89_HCI_TYPE_USB) {
cb97e6b5232342 Bitterblue Smith 2025-06-09  535  		val32 = rtw89_read32(rtwdev, R_AX_SYS_PW_CTRL);
cb97e6b5232342 Bitterblue Smith 2025-06-09  536  		val32 &= ~B_AX_AFSM_PCIE_SUS_EN;
cb97e6b5232342 Bitterblue Smith 2025-06-09  537  		val32 |= B_AX_AFSM_WLSUS_EN;
cb97e6b5232342 Bitterblue Smith 2025-06-09  538  		rtw89_write32(rtwdev, R_AX_SYS_PW_CTRL, val32);
cb97e6b5232342 Bitterblue Smith 2025-06-09  539  	}
31df6df89f9394 Ping-Ke Shih     2023-05-12  540  
31df6df89f9394 Ping-Ke Shih     2023-05-12  541  	return 0;
31df6df89f9394 Ping-Ke Shih     2023-05-12  542  }
31df6df89f9394 Ping-Ke Shih     2023-05-12  543  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-06-10 11:56 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-09 19:22 [PATCH rtw-next v2 00/14] wifi: rtw89: Add support for USB devices Bitterblue Smith
2025-06-09 19:23 ` [PATCH rtw-next v2 01/14] wifi: rtw89: 8851b: Accept USB devices and load their MAC address Bitterblue Smith
2025-06-09 19:24 ` [PATCH rtw-next v2 02/14] wifi: rtw89: Make dle_mem in rtw89_chip_info an array Bitterblue Smith
2025-06-16  1:15   ` Ping-Ke Shih
2025-06-09 19:25 ` [PATCH rtw-next v2 03/14] wifi: rtw89: Make hfc_param_ini " Bitterblue Smith
2025-06-16  1:26   ` Ping-Ke Shih
2025-06-16 16:55     ` Bitterblue Smith
2025-06-17  0:19       ` Ping-Ke Shih
2025-06-09 19:26 ` [PATCH rtw-next v2 04/14] wifi: rtw89: Add rtw8851b_dle_mem_usb{2,3} Bitterblue Smith
2025-06-16  1:28   ` Ping-Ke Shih
2025-06-09 19:27 ` [PATCH rtw-next v2 05/14] wifi: rtw89: Add rtw8851b_hfc_param_ini_usb Bitterblue Smith
2025-06-16  1:32   ` Ping-Ke Shih
2025-06-09 19:28 ` [PATCH rtw-next v2 06/14] wifi: rtw89: Disable deep power saving for USB/SDIO Bitterblue Smith
2025-06-16  1:42   ` Ping-Ke Shih
2025-06-18 11:05     ` Bitterblue Smith
2025-06-09 19:28 ` [PATCH rtw-next v2 07/14] wifi: rtw89: Add extra TX headroom for USB Bitterblue Smith
2025-06-09 19:29 ` [PATCH rtw-next v2 08/14] wifi: rtw89: Hide some errors when the device is unplugged Bitterblue Smith
2025-06-09 19:30 ` [PATCH rtw-next v2 09/14] wifi: rtw89: 8851b: Modify rtw8851b_pwr_{on,off}_func() for USB Bitterblue Smith
2025-06-10 14:11   ` kernel test robot
2025-06-16  1:51   ` Ping-Ke Shih
2025-06-18 13:53     ` Bitterblue Smith
2025-06-09 19:30 ` [PATCH rtw-next v2 10/14] wifi: rtw89: Fix rtw89_mac_power_switch() " Bitterblue Smith
2025-06-16  2:21   ` Ping-Ke Shih
2025-06-16  9:14   ` Ping-Ke Shih
2025-06-09 19:31 ` [PATCH rtw-next v2 11/14] wifi: rtw89: Add some definitions " Bitterblue Smith
2025-06-09 19:32 ` [PATCH rtw-next v2 12/14] wifi: rtw89: Add usb.{c,h} Bitterblue Smith
2025-06-16  3:10   ` Ping-Ke Shih
2025-06-18 11:06     ` Bitterblue Smith
2025-06-09 19:33 ` [PATCH rtw-next v2 13/14] wifi: rtw89: Add rtw8851bu.c Bitterblue Smith
2025-06-16  3:11   ` Ping-Ke Shih
2025-06-09 19:34 ` [PATCH rtw-next v2 14/14] wifi: rtw89: Enable the new USB modules Bitterblue Smith
2025-06-10 11:55   ` kernel test robot [this message]
2025-06-10 13:33     ` Bitterblue Smith
2025-06-11  0:32       ` Ping-Ke Shih
2025-06-11  0:33         ` Ping-Ke Shih
2025-06-11 12:37         ` Bitterblue Smith
2025-06-12  1:27           ` Ping-Ke Shih
2025-06-16  3:15             ` Ping-Ke Shih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202506101956.cNXM2Qvb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pkshih@realtek.com \
    --cc=rtl8821cerfe2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).