NetBSD Problem Report #58459

From mccd@bsd.lt  Tue Jul 23 15:21:11 2024
Return-Path: <mccd@bsd.lt>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D486E1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 Jul 2024 15:21:11 +0000 (UTC)
Message-Id: <20240723152058.B3387EA78FB@bsd.lt>
Date: Tue, 23 Jul 2024 10:20:58 -0500 (-05)
From: marc@mccd.space
Reply-To: marc@mccd.space
To: gnats-bugs@NetBSD.org
Subject: iwm0: fatal error on shutdown and reboot + other wifi woes
X-Send-Pr-Version: 3.95

>Number:         58459
>Category:       kern
>Synopsis:       iwm0 fails with a fatal error on shutdown. Occassionally also having wifi issues
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 23 15:25:00 +0000 2024
>Last-Modified:  Fri Jul 26 14:20:10 +0000 2024
>Originator:     marc@mccd.space
>Release:        NetBSD 10.0
>Organization:
>Environment:
System: NetBSD bsd.lt 10.0 NetBSD 10.0 (GENERIC) #1: Tue Jul 23 09:59:56 -05 2024 mccd@bsd.lt:/home/mccd/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	Hi,

	On my Thinkpad T480s I am experiencing issues with iwm0.

	iwm0 fails with a fatal error on shutdown and reboots.

	I am also occassionally having issues with scanning and enabling wifi.

	The errors I can see in dmesg when unable to connect to wifis

	[  115.0110934] iwm0: could not init bt coex (error -3)
	[  2132.770503] iwm0: autoconfiguration error: could not send phy config (error -3)
	[  1941.354759] iwm0: autoconfiguration error: Unable to init nic

	I am also seeing 

	wpa_supplicant[470]: ioctl[SIOCS80211, op=23, val=0, arg_len=0]: Invalid Argument

	When scanning and connecting to wifi fails

	Rebooting normally fixes the issue.

	To debug this, I've added to the kernel:

	#define IWM_DEBUG

	and changed iwm_debug=0 -> 12 

	in sys/dev/pci/if_iwm.c

	Output when I shutdown:

	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	tx ring 1 quid=1 cur=0
	rx ring: cur =32
	802.11 state INIT
	iwm0: fatal firmware error
	iwm apm stop

	Full dmesg output on boot with debug enabled:

	[    29.770679] iwm_send_cmd 0x6c size=2064  (async)
	[    29.770679] sending command 0x6c qid 9, idx 12
	[    29.770679] iwm0: Sent PHY_DB HCMD, type = 5 num = 1
	[    29.770679] Sending PHY-DB hcmd of type 5, of length 2056
	[    29.770679] iwm_send_cmd 0x6c size=2064  (async)
	[    29.770679] sending command 0x6c qid 9, idx 13
	[    29.770679] iwm0: Sent PHY_DB HCMD, type = 5 num = 2
	[    29.770679] Sending PHY-DB hcmd of type 5, of length 2056
	[    29.770679] iwm_send_cmd 0x6c size=2064  (async)
	[    29.770679] sending command 0x6c qid 9, idx 14
	[    29.770679] iwm0: Sent PHY_DB HCMD, type = 5 num = 3
	[    29.770679] Sending PHY-DB hcmd of type 5, of length 2056
	[    29.770679] iwm_send_cmd 0x6c size=2064  (async)
	[    29.770679] sending command 0x6c qid 9, idx 15
	[    29.770679] iwm0: Sent PHY_DB HCMD, type = 5 num = 4
	[    29.770679] Sending PHY-DB hcmd of type 5, of length 2056
	[    29.770679] iwm_send_cmd 0x6c size=2064  (async)
	[    29.770679] sending command 0x6c qid 9, idx 16
	[    29.770679] iwm0: Sent PHY_DB HCMD, type = 5 num = 5
	[    29.770679] Sending Phy CFG command: 0x330018
	[    29.770679] iwm_send_cmd 0x6a size=16
	[    29.770679] sending command 0x6a qid 9, idx 17
	[    29.770679] iwm_send_cmd 0x1d size=16
	[    29.770679] sending command 0x1d qid 9, idx 18
	[    29.770679] enabled txq 15 FIFO 5
	[    29.770679] iwm_send_cmd 0x18 size=48
	[    29.770679] sending command 0x18 qid 9, idx 19
	[    29.770679] iwm_send_cmd 0x8 size=40
	[    29.770679] sending command 0x8 qid 9, idx 20
	[    29.770679] iwm_send_cmd 0x8 size=40
	[    29.770679] sending command 0x8 qid 9, idx 21
	[    29.770679] iwm_send_cmd 0x8 size=40
	[    29.770679] sending command 0x8 qid 9, idx 22
	[    29.770679] Sending device power command with flags = 0x2000
	[    29.770679] iwm_send_cmd 0x77 size=8
	[    29.770679] sending command 0x77 qid 9, idx 23
	[    29.770679] iwm_send_update_mcc_cmd: no LAR support
	[    29.780691] iwm_send_cmd 0x10c size=96
	[    29.780691] sending command 0x10c qid 9, idx 24
	[    29.780691] iwm_send_cmd 0x1d size=16
	[    29.780691] sending command 0x1d qid 9, idx 25
	[    29.780691] enabled txq 0 FIFO 3
	[    29.780691] iwm_send_cmd 0x1d size=16
	[    29.780691] sending command 0x1d qid 9, idx 26
	[    29.780691] enabled txq 1 FIFO 2
	[    29.780691] iwm_send_cmd 0x1d size=16
	[    29.780691] sending command 0x1d qid 9, idx 27
	[    29.780691] enabled txq 2 FIFO 1
	[    29.780691] iwm_send_cmd 0x1d size=16
	[    29.780691] sending command 0x1d qid 9, idx 28
	[    29.780691] enabled txq 3 FIFO 0
	[    29.780691] iwm_send_cmd 0xd2 size=48 
	[    29.780691] sending command 0xd2 qid 9, idx 29
	[    29.780691] Prepare to switch state 0->1
	[    29.780691] switching state INIT->SCAN
	[    29.780691] iwm0: iwm_umac_scan
	[    29.780691] iwm_send_cmd 0x10d size=1680 
	[    29.780691] sending command 0x10d qid 9, idx 30
	[    29.870665] energy In A -75 B -83 C -256, and max -75
	[    29.870665] energy In A -86 B -83 C -256, and max -83
	[    29.870665] energy In A -77 B -83 C -256, and max -77
	[    29.880669] energy In A -86 B -83 C -256, and max -83
	[    29.880669] energy In A -84 B -83 C -256, and max -83
	[    29.900669] energy In A -83 B -83 C -256, and max -83
	[    29.940665] energy In A -89 B -83 C -256, and max -83
	[    29.940665] energy In A -87 B -83 C -256, and max -83
	[    29.940665] energy In A -64 B -83 C -256, and max -64
	[    30.020669] iwm0: DTS temp=42 
	[    30.110669] energy In A -64 B -83 C -256, and max -64
	[    30.130669] energy In A -64 B -83 C -256, and max -64
	[    30.230668] energy In A -66 B -83 C -256, and max -66
	[    30.290665] energy In A -80 B -83 C -256, and max -80
	[    30.410668] energy In A -77 B -83 C -256, and max -77
	[    30.420669] energy In A -90 B -83 C -256, and max -83
	[    30.420669] energy In A -70 B -83 C -256, and max -70
	[    30.460665] energy In A -83 B -83 C -256, and max -83
	[    30.510665] energy In A -88 B -83 C -256, and max -83
	[    30.510665] energy In A -85 B -83 C -256, and max -83
	[    30.510665] energy In A -73 B -83 C -256, and max -73
	[    30.530668] energy In A -53 B -83 C -256, and max -53
	[    30.630668] energy In A -53 B -83 C -256, and max -53
	[    30.820668] energy In A -83 B -83 C -256, and max -83
	[    30.860664] energy In A -82 B -83 C -256, and max -82
	[    30.910665] energy In A -66 B -83 C -256, and max -66
	[    30.920668] energy In A -88 B -83 C -256, and max -83
	[    30.930668] energy In A -84 B -83 C -256, and max -83
	[    31.030668] energy In A -86 B -83 C -256, and max -83
	[    31.100668] energy In A -72 B -83 C -256, and max -72
	[    31.130664] energy In A -73 B -83 C -256, and max -73
	[    31.130664] energy In A -78 B -83 C -256, and max -78
	[    31.140668] energy In A -87 B -83 C -256, and max -83
	[    31.140668] energy In A -83 B -83 C -256, and max -83
	[    31.140668] energy In A -87 B -83 C -256, and max -83
	[    31.230667] energy In A -78 B -83 C -256, and max -78
	[    31.400667] energy In A -77 B -79 C -256, and max -77
	[    31.500667] energy In A -77 B -79 C -256, and max -77
	[    31.600667] energy In A -83 B -79 C -256, and max -79
	[    31.670668] energy In A -58 B -79 C -256, and max -58
	[    31.690667] energy In A -58 B -79 C -256, and max -58
	[    31.760667] energy In A -79 B -79 C -256, and max -79
	[    31.810667] energy In A -78 B -79 C -256, and max -78
	[    32.800666] energy In A -90 B -79 C -256, and max -79
	[    33.870665] energy In A -85 B -79 C -256, and max -79
	[    34.030665] energy In A -86 B -79 C -256, and max -79
	[    34.050661] energy In A -86 B -79 C -256, and max -79
	[    34.080665] energy In A -91 B -79 C -256, and max -79
	[    34.100665] energy In A -89 B -79 C -256, and max -79
	[    34.140665] energy In A -86 B -79 C -256, and max -79
	[    34.260665] iwm0: scan ended
	[    34.670665] Prepare to switch state 1->0
	[    34.670665] switching state SCAN->INIT
	[    34.780664] iwm apm stop
	[    34.780664] Radio type=0x0-0x2-0x1
	[    34.780664] loading ring 0 descriptors (0xffffd70647b61000) at 8a9110
	[    34.780664] loading ring 1 descriptors (0xffffd70647c9b000) at 8aa4b0
	[    34.780664] loading ring 2 descriptors (0xffffd70647dd5000) at 8ab850
	[    34.780664] loading ring 3 descriptors (0xffffd70647f0f000) at 8acbf0
	[    34.780664] loading ring 4 descriptors (0xffffd70648049000) at 8adf90
	[    34.780664] loading ring 5 descriptors (0xffffd70648183000) at 8af330
	[    34.780664] loading ring 6 descriptors (0xffffd706482bd000) at 8b06d0
	[    34.780664] loading ring 7 descriptors (0xffffd706483f7000) at 8b1a70
	[    34.780664] loading ring 8 descriptors (0xffffd70648531000) at 8b2e10
	[    34.780664] loading ring 9 descriptors (0xffffd7064866b000) at 8b41b0
	[    34.780664] loading ring 10 descriptors (0xffffd706487a5000) at d05dc0
	[    34.780664] loading ring 11 descriptors (0xffffd706487b5000) at d05ec0
	[    34.780664] loading ring 12 descriptors (0xffffd706487c5000) at d05fc0
	[    34.780664] loading ring 13 descriptors (0xffffd706487d5000) at d060c0
	[    34.780664] loading ring 14 descriptors (0xffffd706487e5000) at d061c0
	[    34.780664] loading ring 15 descriptors (0xffffd706487f5000) at d062c0
	[    34.780664] loading ring 16 descriptors (0xffffd70648805000) at d063c0
	[    34.780664] loading ring 17 descriptors (0xffffd70648815000) at d064c0
	[    34.780664] loading ring 18 descriptors (0xffffd70648825000) at d065c0
	[    34.780664] loading ring 19 descriptors (0xffffd70648835000) at d066c0
	[    34.780664] loading ring 20 descriptors (0xffffd70648845000) at d067c0
	[    34.780664] loading ring 21 descriptors (0xffffd70648855000) at d068c0
	[    34.780664] loading ring 22 descriptors (0xffffd70648865000) at d069c0
	[    34.780664] loading ring 23 descriptors (0xffffd70648875000) at d06ac0
	[    34.780664] loading ring 24 descriptors (0xffffd70648885000) at d06bc0
	[    34.780664] loading ring 25 descriptors (0xffffd70648895000) at d06cc0
	[    34.780664] loading ring 26 descriptors (0xffffd706488a5000) at d06dc0
	[    34.780664] loading ring 27 descriptors (0xffffd706488b5000) at d06ec0
	[    34.780664] loading ring 28 descriptors (0xffffd706488c5000) at d06fc0
	[    34.780664] loading ring 29 descriptors (0xffffd706488d5000) at d070c0
	[    34.780664] loading ring 30 descriptors (0xffffd706488e5000) at d071c0
	[    34.780664] shadow registers enabled
	[    34.930661] enabled txq 9 FIFO 7
	[    34.930661] iwm_send_cmd 0x9b size=12 
	[    34.930661] sending command 0x9b qid 9, idx 0
	[    34.930661] iwm_send_cmd 0xd1 size=96  (async)
	[    34.930661] sending command 0xd1 qid 9, idx 1
	[    34.930661] iwm_send_cmd 0x98 size=8 
	[    34.930661] sending command 0x98 qid 9, idx 2
	[    34.930661] Sending Phy CFG command: 0x330018
	[    34.930661] iwm_send_cmd 0x6a size=16 
	[    34.930661] sending command 0x6a qid 9, idx 3
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 1, Size: 3684, data: 0xffff834a30a52000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 2, Size: 4, data: 0xffff834f1abfa610
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30d88000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30cd9000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30c7a000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30cab000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30bfc000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30c6d000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30fd2000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a2ee6d000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a309c8800
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30bb2000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a309c8000
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30e32800
	[    35.010661] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30e32000
	[    35.010661] iwm apm stop
	[    35.010661] Radio type=0x0-0x2-0x1
	[    35.010661] loading ring 0 descriptors (0xffffd70647b61000) at 8a9110
	[    35.010661] loading ring 1 descriptors (0xffffd70647c9b000) at 8aa4b0
	[    35.010661] loading ring 2 descriptors (0xffffd70647dd5000) at 8ab850
	[    35.010661] loading ring 3 descriptors (0xffffd70647f0f000) at 8acbf0
	[    35.010661] loading ring 4 descriptors (0xffffd70648049000) at 8adf90
	[    35.010661] loading ring 5 descriptors (0xffffd70648183000) at 8af330
	[    35.010661] loading ring 6 descriptors (0xffffd706482bd000) at 8b06d0
	[    35.010661] loading ring 7 descriptors (0xffffd706483f7000) at 8b1a70
	[    35.010661] loading ring 8 descriptors (0xffffd70648531000) at 8b2e10
	[    35.010661] loading ring 9 descriptors (0xffffd7064866b000) at 8b41b0
	[    35.010661] loading ring 10 descriptors (0xffffd706487a5000) at d05dc0
	[    35.010661] loading ring 11 descriptors (0xffffd706487b5000) at d05ec0
	[    35.010661] loading ring 12 descriptors (0xffffd706487c5000) at d05fc0
	[    35.010661] loading ring 13 descriptors (0xffffd706487d5000) at d060c0
	[    35.010661] loading ring 14 descriptors (0xffffd706487e5000) at d061c0
	[    35.010661] loading ring 15 descriptors (0xffffd706487f5000) at d062c0
	[    35.010661] loading ring 16 descriptors (0xffffd70648805000) at d063c0
	[    35.010661] loading ring 17 descriptors (0xffffd70648815000) at d064c0
	[    35.010661] loading ring 18 descriptors (0xffffd70648825000) at d065c0
	[    35.010661] loading ring 19 descriptors (0xffffd70648835000) at d066c0
	[    35.010661] loading ring 20 descriptors (0xffffd70648845000) at d067c0
	[    35.010661] loading ring 21 descriptors (0xffffd70648855000) at d068c0
	[    35.010661] loading ring 22 descriptors (0xffffd70648865000) at d069c0
	[    35.010661] loading ring 23 descriptors (0xffffd70648875000) at d06ac0
	[    35.010661] loading ring 24 descriptors (0xffffd70648885000) at d06bc0
	[    35.010661] loading ring 25 descriptors (0xffffd70648895000) at d06cc0
	[    35.010661] loading ring 26 descriptors (0xffffd706488a5000) at d06dc0
	[    35.010661] loading ring 27 descriptors (0xffffd706488b5000) at d06ec0
	[    35.010661] loading ring 28 descriptors (0xffffd706488c5000) at d06fc0
	[    35.010661] loading ring 29 descriptors (0xffffd706488d5000) at d070c0
	[    35.010661] loading ring 30 descriptors (0xffffd706488e5000) at d071c0
	[    35.010661] shadow registers enabled
	[    35.150661] enabled txq 9 FIFO 7
	[    35.150661] iwm_send_cmd 0x9b size=12 
	[    35.150661] sending command 0x9b qid 9, idx 0
	[    35.150661] iwm_send_cmd 0x98 size=8 
	[    35.150661] sending command 0x98 qid 9, idx 1
	[    35.150661] iwm_phy_db_get_section_data(2267): [PHYDB] GET: Type 1 , Size: 3684
	[    35.150661] Sending PHY-DB hcmd of type 1, of length 3684
	[    35.150661] iwm_send_cmd 0x6c size=3692  (async)
	[    35.150661] sending command 0x6c qid 9, idx 2
	[    35.150661] iwm_phy_db_get_section_data(2267): [PHYDB] GET: Type 2 , Size: 4
	[    35.150661] Sending PHY-DB hcmd of type 2, of length 4
	[    35.150661] iwm_send_cmd 0x6c size=12  (async)
	[    35.150661] sending command 0x6c qid 9, idx 3
	[    35.150661] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.150661] iwm_send_cmd 0x6c size=1560  (async)
	[    35.150661] sending command 0x6c qid 9, idx 4
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 0
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 5
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 1
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 6
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 2
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 7
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 3
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 8
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 4
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 9
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 5
	[    35.160662] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.160662] iwm_send_cmd 0x6c size=1560  (async)
	[    35.160662] sending command 0x6c qid 9, idx 10
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 4 num = 6
	[    35.160662] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.160662] iwm_send_cmd 0x6c size=2064  (async)
	[    35.160662] sending command 0x6c qid 9, idx 11
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 5 num = 0
	[    35.160662] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.160662] iwm_send_cmd 0x6c size=2064  (async)
	[    35.160662] sending command 0x6c qid 9, idx 12
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 5 num = 1
	[    35.160662] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.160662] iwm_send_cmd 0x6c size=2064  (async)
	[    35.160662] sending command 0x6c qid 9, idx 13
	[    35.160662] iwm0: Sent PHY_DB HCMD, type = 5 num = 2
	[    35.170660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.170660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.170660] sending command 0x6c qid 9, idx 14
	[    35.170660] iwm0: Sent PHY_DB HCMD, type = 5 num = 3
	[    35.170660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.170660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.170660] sending command 0x6c qid 9, idx 15
	[    35.170660] iwm0: Sent PHY_DB HCMD, type = 5 num = 4
	[    35.170660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.170660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.170660] sending command 0x6c qid 9, idx 16
	[    35.170660] iwm0: Sent PHY_DB HCMD, type = 5 num = 5
	[    35.170660] Sending Phy CFG command: 0x330018
	[    35.170660] iwm_send_cmd 0x6a size=16 
	[    35.170660] sending command 0x6a qid 9, idx 17
	[    35.260660] iwm_send_cmd 0x1d size=16 
	[    35.260660] sending command 0x1d qid 9, idx 18
	[    35.260660] enabled txq 15 FIFO 5
	[    35.260660] iwm_send_cmd 0x18 size=48 
	[    35.260660] sending command 0x18 qid 9, idx 19
	[    35.260660] iwm_send_cmd 0x8 size=40 
	[    35.260660] sending command 0x8 qid 9, idx 20
	[    35.260660] iwm_send_cmd 0x8 size=40 
	[    35.260660] sending command 0x8 qid 9, idx 21
	[    35.260660] iwm_send_cmd 0x8 size=40 
	[    35.260660] sending command 0x8 qid 9, idx 22
	[    35.260660] Sending device power command with flags = 0x2000
	[    35.260660] iwm_send_cmd 0x77 size=8 
	[    35.260660] sending command 0x77 qid 9, idx 23
	[    35.260660] iwm_send_update_mcc_cmd: no LAR support
	[    35.260660] iwm_send_cmd 0x10c size=96 
	[    35.260660] sending command 0x10c qid 9, idx 24
	[    35.260660] iwm_send_cmd 0x1d size=16 
	[    35.260660] sending command 0x1d qid 9, idx 25
	[    35.260660] enabled txq 0 FIFO 3
	[    35.260660] iwm_send_cmd 0x1d size=16 
	[    35.260660] sending command 0x1d qid 9, idx 26
	[    35.260660] enabled txq 1 FIFO 2
	[    35.260660] iwm_send_cmd 0x1d size=16 
	[    35.260660] sending command 0x1d qid 9, idx 27
	[    35.260660] enabled txq 2 FIFO 1
	[    35.260660] iwm_send_cmd 0x1d size=16 
	[    35.260660] sending command 0x1d qid 9, idx 28
	[    35.260660] enabled txq 3 FIFO 0
	[    35.260660] iwm_send_cmd 0xd2 size=48 
	[    35.260660] sending command 0xd2 qid 9, idx 29
	[    35.260660] Prepare to switch state 0->1
	[    35.260660] switching state INIT->SCAN
	[    35.260660] iwm0: iwm_umac_scan
	[    35.260660] iwm_send_cmd 0x10d size=1680 
	[    35.260660] sending command 0x10d qid 9, idx 30
	[    35.300801] iwm apm stop
	[    35.300801] Radio type=0x0-0x2-0x1
	[    35.300801] loading ring 0 descriptors (0xffffd70647b61000) at 8a9110
	[    35.300801] loading ring 1 descriptors (0xffffd70647c9b000) at 8aa4b0
	[    35.300801] loading ring 2 descriptors (0xffffd70647dd5000) at 8ab850
	[    35.300801] loading ring 3 descriptors (0xffffd70647f0f000) at 8acbf0
	[    35.300801] loading ring 4 descriptors (0xffffd70648049000) at 8adf90
	[    35.300801] loading ring 5 descriptors (0xffffd70648183000) at 8af330
	[    35.300801] loading ring 6 descriptors (0xffffd706482bd000) at 8b06d0
	[    35.300801] loading ring 7 descriptors (0xffffd706483f7000) at 8b1a70
	[    35.300801] loading ring 8 descriptors (0xffffd70648531000) at 8b2e10
	[    35.300801] loading ring 9 descriptors (0xffffd7064866b000) at 8b41b0
	[    35.300801] loading ring 10 descriptors (0xffffd706487a5000) at d05dc0
	[    35.300801] loading ring 11 descriptors (0xffffd706487b5000) at d05ec0
	[    35.300801] loading ring 12 descriptors (0xffffd706487c5000) at d05fc0
	[    35.300801] loading ring 13 descriptors (0xffffd706487d5000) at d060c0
	[    35.300801] loading ring 14 descriptors (0xffffd706487e5000) at d061c0
	[    35.300801] loading ring 15 descriptors (0xffffd706487f5000) at d062c0
	[    35.300801] loading ring 16 descriptors (0xffffd70648805000) at d063c0
	[    35.300801] loading ring 17 descriptors (0xffffd70648815000) at d064c0
	[    35.300801] loading ring 18 descriptors (0xffffd70648825000) at d065c0
	[    35.300801] loading ring 19 descriptors (0xffffd70648835000) at d066c0
	[    35.300801] loading ring 20 descriptors (0xffffd70648845000) at d067c0
	[    35.300801] loading ring 21 descriptors (0xffffd70648855000) at d068c0
	[    35.300801] loading ring 22 descriptors (0xffffd70648865000) at d069c0
	[    35.300801] loading ring 23 descriptors (0xffffd70648875000) at d06ac0
	[    35.300801] loading ring 24 descriptors (0xffffd70648885000) at d06bc0
	[    35.300801] loading ring 25 descriptors (0xffffd70648895000) at d06cc0
	[    35.300801] loading ring 26 descriptors (0xffffd706488a5000) at d06dc0
	[    35.300801] loading ring 27 descriptors (0xffffd706488b5000) at d06ec0
	[    35.300801] loading ring 28 descriptors (0xffffd706488c5000) at d06fc0
	[    35.300801] loading ring 29 descriptors (0xffffd706488d5000) at d070c0
	[    35.300801] loading ring 30 descriptors (0xffffd706488e5000) at d071c0
	[    35.300801] shadow registers enabled
	[    35.460660] enabled txq 9 FIFO 7
	[    35.460660] iwm_send_cmd 0x9b size=12 
	[    35.460660] sending command 0x9b qid 9, idx 0
	[    35.490660] iwm_send_cmd 0xd1 size=96  (async)
	[    35.490660] sending command 0xd1 qid 9, idx 1
	[    35.490660] iwm_send_cmd 0x98 size=8 
	[    35.490660] sending command 0x98 qid 9, idx 2
	[    35.490660] Sending Phy CFG command: 0x330018
	[    35.490660] iwm_send_cmd 0x6a size=16 
	[    35.490660] sending command 0x6a qid 9, idx 3
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 1, Size: 3684, data: 0xffff834a30a52000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 2, Size: 4, data: 0xffff834f1abfa610
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30d88000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30cd9000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30c7a000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30cab000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30bfc000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 5, Size: 2056, data: 0xffff834a30c6d000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30fd2000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a2ee6d000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a309c8800
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30bb2000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a309c8000
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30e32800
	[    35.550660] iwm_phy_db_set_section(2175): [PHYDB]SET: Type 4, Size: 1552, data: 0xffff834a30e32000
	[    35.550660] iwm apm stop
	[    35.560744] Radio type=0x0-0x2-0x1
	[    35.560744] loading ring 0 descriptors (0xffffd70647b61000) at 8a9110
	[    35.560744] loading ring 1 descriptors (0xffffd70647c9b000) at 8aa4b0
	[    35.560744] loading ring 2 descriptors (0xffffd70647dd5000) at 8ab850
	[    35.560744] loading ring 3 descriptors (0xffffd70647f0f000) at 8acbf0
	[    35.560744] loading ring 4 descriptors (0xffffd70648049000) at 8adf90
	[    35.560744] loading ring 5 descriptors (0xffffd70648183000) at 8af330
	[    35.560744] loading ring 6 descriptors (0xffffd706482bd000) at 8b06d0
	[    35.560744] loading ring 7 descriptors (0xffffd706483f7000) at 8b1a70
	[    35.560744] loading ring 8 descriptors (0xffffd70648531000) at 8b2e10
	[    35.560744] loading ring 9 descriptors (0xffffd7064866b000) at 8b41b0
	[    35.560744] loading ring 10 descriptors (0xffffd706487a5000) at d05dc0
	[    35.560744] loading ring 11 descriptors (0xffffd706487b5000) at d05ec0
	[    35.560744] loading ring 12 descriptors (0xffffd706487c5000) at d05fc0
	[    35.560744] loading ring 13 descriptors (0xffffd706487d5000) at d060c0
	[    35.560744] loading ring 14 descriptors (0xffffd706487e5000) at d061c0
	[    35.560744] loading ring 15 descriptors (0xffffd706487f5000) at d062c0
	[    35.560744] loading ring 16 descriptors (0xffffd70648805000) at d063c0
	[    35.560744] loading ring 17 descriptors (0xffffd70648815000) at d064c0
	[    35.560744] loading ring 18 descriptors (0xffffd70648825000) at d065c0
	[    35.560744] loading ring 19 descriptors (0xffffd70648835000) at d066c0
	[    35.560744] loading ring 20 descriptors (0xffffd70648845000) at d067c0
	[    35.560744] loading ring 21 descriptors (0xffffd70648855000) at d068c0
	[    35.560744] loading ring 22 descriptors (0xffffd70648865000) at d069c0
	[    35.560744] loading ring 23 descriptors (0xffffd70648875000) at d06ac0
	[    35.560744] loading ring 24 descriptors (0xffffd70648885000) at d06bc0
	[    35.560744] loading ring 25 descriptors (0xffffd70648895000) at d06cc0
	[    35.560744] loading ring 26 descriptors (0xffffd706488a5000) at d06dc0
	[    35.560744] loading ring 27 descriptors (0xffffd706488b5000) at d06ec0
	[    35.560744] loading ring 28 descriptors (0xffffd706488c5000) at d06fc0
	[    35.560744] loading ring 29 descriptors (0xffffd706488d5000) at d070c0
	[    35.560744] loading ring 30 descriptors (0xffffd706488e5000) at d071c0
	[    35.560744] shadow registers enabled
	[    35.700660] enabled txq 9 FIFO 7
	[    35.700660] iwm_send_cmd 0x9b size=12 
	[    35.700660] sending command 0x9b qid 9, idx 0
	[    35.700660] iwm_send_cmd 0x98 size=8 
	[    35.700660] sending command 0x98 qid 9, idx 1
	[    35.710660] iwm_phy_db_get_section_data(2267): [PHYDB] GET: Type 1 , Size: 3684
	[    35.710660] Sending PHY-DB hcmd of type 1, of length 3684
	[    35.710660] iwm_send_cmd 0x6c size=3692  (async)
	[    35.710660] sending command 0x6c qid 9, idx 2
	[    35.710660] iwm_phy_db_get_section_data(2267): [PHYDB] GET: Type 2 , Size: 4
	[    35.710660] Sending PHY-DB hcmd of type 2, of length 4
	[    35.710660] iwm_send_cmd 0x6c size=12  (async)
	[    35.710660] sending command 0x6c qid 9, idx 3
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 4
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 0
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 5
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 1
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 6
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 2
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 7
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 3
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 8
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 4
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 9
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 5
	[    35.710660] Sending PHY-DB hcmd of type 4, of length 1552
	[    35.710660] iwm_send_cmd 0x6c size=1560  (async)
	[    35.710660] sending command 0x6c qid 9, idx 10
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 4 num = 6
	[    35.710660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.710660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.710660] sending command 0x6c qid 9, idx 11
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 5 num = 0
	[    35.710660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.710660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.710660] sending command 0x6c qid 9, idx 12
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 5 num = 1
	[    35.710660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.710660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.710660] sending command 0x6c qid 9, idx 13
	[    35.710660] iwm0: Sent PHY_DB HCMD, type = 5 num = 2
	[    35.720660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.720660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.720660] sending command 0x6c qid 9, idx 14
	[    35.720660] iwm0: Sent PHY_DB HCMD, type = 5 num = 3
	[    35.720660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.720660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.720660] sending command 0x6c qid 9, idx 15
	[    35.720660] iwm0: Sent PHY_DB HCMD, type = 5 num = 4
	[    35.720660] Sending PHY-DB hcmd of type 5, of length 2056
	[    35.720660] iwm_send_cmd 0x6c size=2064  (async)
	[    35.720660] sending command 0x6c qid 9, idx 16
	[    35.720660] iwm0: Sent PHY_DB HCMD, type = 5 num = 5
	[    35.720660] Sending Phy CFG command: 0x330018
	[    35.720660] iwm_send_cmd 0x6a size=16 
	[    35.720660] sending command 0x6a qid 9, idx 17
	[    35.810660] iwm_send_cmd 0x1d size=16 
	[    35.810660] sending command 0x1d qid 9, idx 18
	[    35.810660] enabled txq 15 FIFO 5
	[    35.810660] iwm_send_cmd 0x18 size=48 
	[    35.810660] sending command 0x18 qid 9, idx 19
	[    35.810660] iwm_send_cmd 0x8 size=40 
	[    35.810660] sending command 0x8 qid 9, idx 20
	[    35.810660] iwm_send_cmd 0x8 size=40 
	[    35.810660] sending command 0x8 qid 9, idx 21
	[    35.810660] iwm_send_cmd 0x8 size=40 
	[    35.810660] sending command 0x8 qid 9, idx 22
	[    35.810660] Sending device power command with flags = 0x2000
	[    35.810660] iwm_send_cmd 0x77 size=8 
	[    35.810660] sending command 0x77 qid 9, idx 23
	[    35.820678] iwm_send_update_mcc_cmd: no LAR support
	[    35.820678] iwm_send_cmd 0x10c size=96 
	[    35.820678] sending command 0x10c qid 9, idx 24
	[    35.820678] iwm_send_cmd 0x1d size=16 
	[    35.820678] sending command 0x1d qid 9, idx 25
	[    35.820678] enabled txq 0 FIFO 3
	[    35.820678] iwm_send_cmd 0x1d size=16 
	[    35.820678] sending command 0x1d qid 9, idx 26
	[    35.820678] enabled txq 1 FIFO 2
	[    35.820678] iwm_send_cmd 0x1d size=16 
	[    35.820678] sending command 0x1d qid 9, idx 27
	[    35.820678] enabled txq 2 FIFO 1
	[    35.820678] iwm_send_cmd 0x1d size=16 
	[    35.820678] sending command 0x1d qid 9, idx 28
	[    35.820678] enabled txq 3 FIFO 0
	[    35.820678] iwm_send_cmd 0xd2 size=48 
	[    35.820678] sending command 0xd2 qid 9, idx 29
	[    35.970663] iwm0: DTS temp=42 
	[    37.260662] iwm0: could not initiate scan: 35
	[    37.260662] Prepare to switch state 0->1
	[    37.260662] switching state INIT->SCAN
	[    37.260662] iwm0: iwm_umac_scan
	[    37.260662] iwm_send_cmd 0x10d size=1680 
	[    37.260662] sending command 0x10d qid 9, idx 30
	[    37.260662] Prepare to switch state 1->1
	[    37.260662] switching state SCAN->SCAN
	[    37.280662] energy In A -89 B -83 C -256, and max -83
	[    37.320658] energy In A -79 B -83 C -256, and max -79
	[    37.320658] energy In A -85 B -83 C -256, and max -83
	[    37.320658] energy In A -87 B -83 C -256, and max -83
	[    37.320658] energy In A -76 B -83 C -256, and max -76
	[    37.320658] energy In A -77 B -83 C -256, and max -77
	[    37.320658] energy In A -90 B -83 C -256, and max -83
	[    37.340662] energy In A -78 B -83 C -256, and max -78
	[    37.390658] energy In A -81 B -83 C -256, and max -81
	[    37.390658] energy In A -86 B -83 C -256, and max -83
	[    37.400793] energy In A -65 B -83 C -256, and max -65
	[    37.450658] energy In A -92 B -83 C -256, and max -83
	[    37.450658] energy In A -81 B -83 C -256, and max -81
	[    37.470662] energy In A -85 B -83 C -256, and max -83
	[    37.500658] energy In A -75 B -83 C -256, and max -75
	[    37.500658] energy In A -90 B -83 C -256, and max -83
	[    37.500658] energy In A -56 B -83 C -256, and max -56
	[    37.520662] energy In A -86 B -83 C -256, and max -83
	[    37.560658] energy In A -77 B -83 C -256, and max -77
	[    37.580662] energy In A -74 B -83 C -256, and max -74
	[    37.650661] energy In A -71 B -83 C -256, and max -71
	[    37.690658] energy In A -79 B -83 C -256, and max -79
	[    37.740658] energy In A -87 B -83 C -256, and max -83
	[    37.790658] energy In A -65 B -83 C -256, and max -65
	[    37.790658] energy In A -72 B -83 C -256, and max -72
	[    37.850661] energy In A -76 B -79 C -256, and max -76
	[    37.860662] energy In A -92 B -79 C -256, and max -79
	[    37.920661] energy In A -55 B -79 C -256, and max -55
	[    37.960658] energy In A -79 B -79 C -256, and max -79
	[    38.090661] energy In A -79 B -79 C -256, and max -79
	[    38.950660] energy In A -89 B -79 C -256, and max -79
	[    39.910659] energy In A -84 B -79 C -256, and max -79
	[    40.080659] energy In A -85 B -79 C -256, and max -79
	[    40.190659] energy In A -85 B -79 C -256, and max -79
	[    40.220656] iwm0: scan ended
	[    40.220656] Prepare to switch state 1->2
	[    40.220656] switching state SCAN->AUTH
	[    40.220656] iwm_send_cmd 0xd1 size=96  (async)
	[    40.220656] sending command 0xd1 qid 9, idx 31
	[    40.220656] iwm_send_cmd 0xd0 size=16 
	[    40.220656] sending command 0xd0 qid 9, idx 32
	[    40.220656] iwm_send_cmd 0x8 size=40 
	[    40.220656] sending command 0x8 qid 9, idx 33
	[    40.220656] iwm_send_cmd 0x28 size=152 
	[    40.220656] sending command 0x28 qid 9, idx 34
	[    40.220656] iwm_send_cmd 0x2b size=28 
	[    40.220656] sending command 0x2b qid 9, idx 35
	[    40.220656] iwm_send_cmd 0x18 size=48 
	[    40.220656] sending command 0x18 qid 9, idx 36
	[    40.220656] iwm_send_cmd 0x28 size=152 
	[    40.220656] sending command 0x28 qid 9, idx 37
	[    40.220656] iwm_send_cmd 0x29 size=40 
	[    40.220656] sending command 0x29 qid 9, idx 38
	[    40.220656] sending txd 0xffffd700346052b8, in 0xffff834a3145f6c8
	[    40.220656] sending data: qid=0 idx=0 len=30 nsegs=1 type=0 subtype=b tx_flags=00003008 init_rateidx=00000000 rate_n_flags=0000400d
	[    40.230660] free txd 0xffffd700346052b8, in 0xffff834a3145f6c8
	[    40.230660] energy In A -57 B -49 C -256, and max -49
	[    40.230660] Prepare to switch state 2->3
	[    40.230660] switching state AUTH->ASSOC
	[    40.230660] iwm_send_cmd 0x18 size=48 
	[    40.230660] sending command 0x18 qid 9, idx 39
	[    40.230660] sending txd 0xffffd700346052e8, in 0xffff834a3145f6c8
	[    40.230660] sending data: qid=0 idx=1 len=78 nsegs=1 type=0 subtype=0 tx_flags=00003008 init_rateidx=00000000 rate_n_flags=0000800d
	[    40.230660] free txd 0xffffd700346052e8, in 0xffff834a3145f6c8
	[    40.230660] energy In A -91 B -95 C -256, and max -91
	[    40.230660] energy In A -57 B -49 C -256, and max -49
	[    40.230660] Prepare to switch state 3->4
	[    40.230660] switching state ASSOC->RUN
	[    40.230660] iwm_send_cmd 0x28 size=152 
	[    40.230660] sending command 0x28 qid 9, idx 40
	[    40.230660] Sending device power command with flags = 0x2000
	[    40.230660] iwm_send_cmd 0x77 size=8 
	[    40.230660] sending command 0x77 qid 9, idx 41
	[    40.230660] iwm_send_cmd 0xa9 size=44 
	[    40.230660] sending command 0xa9 qid 9, idx 42
	[    40.230660] iwm_send_cmd 0x2c size=52 
	[    40.230660] sending command 0x2c qid 9, idx 43
	[    40.300655] energy In A -57 B -49 C -256, and max -49
	[    40.330659] energy In A -79 B -49 C -256, and max -49
	[    40.330659] start with txrate 0
	[    40.330659] sending txd 0xffffd70034605318, in 0xffff834a3145f6c8
	[    40.330659] sending data: qid=0 idx=2 len=153 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    40.330659] free txd 0xffffd70034605318, in 0xffff834a3145f6c8
	[    40.390655] energy In A -79 B -49 C -256, and max -49
	[    40.390655] energy In A -79 B -49 C -256, and max -49
	[    40.390655] start with txrate 0
	[    40.390655] sending txd 0xffffd70034605348, in 0xffff834a3145f6c8
	[    40.390655] sending data: qid=0 idx=3 len=131 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    40.390655] free txd 0xffffd70034605348, in 0xffff834a3145f6c8
	[    40.470655] start with txrate 0
	[    40.470655] sending txd 0xffffd70034605378, in 0xffff834a3145f6c8
	[    40.470655] sending data: qid=0 idx=4 len=376 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    40.470655] free txd 0xffffd70034605378, in 0xffff834a3145f6c8
	[    40.480660] energy In A -79 B -49 C -256, and max -49
	[    40.480660] energy In A -79 B -49 C -256, and max -49
	[    40.580659] energy In A -79 B -48 C -256, and max -48
	[    40.690655] energy In A -79 B -49 C -256, and max -49
	[    40.790655] energy In A -79 B -50 C -256, and max -50
	[    40.790655] energy In A -79 B -50 C -256, and max -50
	[    40.790655] energy In A -79 B -50 C -256, and max -50
	[    40.890655] energy In A -79 B -50 C -256, and max -50
	[    40.990659] energy In A -55 B -50 C -256, and max -50
	[    41.100658] energy In A -54 B -50 C -256, and max -50
	[    41.200658] energy In A -54 B -52 C -256, and max -52
	[    41.270655] start with txrate 0
	[    41.270655] sending txd 0xffffd700346053a8, in 0xffff834a3145f6c8
	[    41.270655] sending data: qid=0 idx=5 len=120 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    41.270655] free txd 0xffffd700346053a8, in 0xffff834a3145f6c8
	[    41.360654] energy In A -56 B -51 C -256, and max -51
	[    41.450654] energy In A -79 B -50 C -256, and max -50
	[    41.540654] energy In A -79 B -50 C -256, and max -50
	[    41.630654] energy In A -79 B -50 C -256, and max -50
	[    41.720654] energy In A -79 B -50 C -256, and max -50
	[    41.810654] energy In A -79 B -49 C -256, and max -49
	[    41.910657] energy In A -79 B -49 C -256, and max -49
	[    42.020657] energy In A -57 B -49 C -256, and max -49
	[    42.120657] energy In A -58 B -49 C -256, and max -49
	[    42.220657] energy In A -57 B -49 C -256, and max -49
	[    42.310654] start with txrate 0
	[    42.310654] sending txd 0xffffd700346053d8, in 0xffff834a3145f6c8
	[    42.310654] sending data: qid=0 idx=6 len=104 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    42.310654] free txd 0xffffd700346053d8, in 0xffff834a3145f6c8
	[    42.320658] energy In A -57 B -50 C -256, and max -50
	[    42.430657] energy In A -79 B -51 C -256, and max -51
	[    42.520657] energy In A -79 B -51 C -256, and max -51
	[    42.520657] start with txrate 0
	[    42.520657] sending txd 0xffffd70034605408, in 0xffff834a3145f6c8
	[    42.520657] sending data: qid=0 idx=7 len=380 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    42.520657] free txd 0xffffd70034605408, in 0xffff834a3145f6c8
	[    42.600653] energy In A -79 B -52 C -256, and max -52
	[    42.600653] energy In A -79 B -52 C -256, and max -52
	[    42.600653] energy In A -79 B -52 C -256, and max -52
	[    42.600653] energy In A -79 B -51 C -256, and max -51
	[    42.680653] energy In A -79 B -52 C -256, and max -52
	[    42.760653] energy In A -79 B -52 C -256, and max -52
	[    42.840653] energy In A -79 B -52 C -256, and max -52
	[    42.940656] energy In A -79 B -51 C -256, and max -51
	[    43.040656] energy In A -57 B -52 C -256, and max -52
	[    43.140656] energy In A -57 B -52 C -256, and max -52
	[    43.250656] energy In A -57 B -52 C -256, and max -52
	[    43.300653] start with txrate 0
	[    43.300653] sending txd 0xffffd70034605438, in 0xffff834a3145f6c8
	[    43.300653] sending data: qid=0 idx=8 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    43.300653] free txd 0xffffd70034605438, in 0xffff834a3145f6c8
	[    43.390653] energy In A -57 B -51 C -256, and max -51
	[    43.390653] energy In A -57 B -51 C -256, and max -51
	[    43.480652] energy In A -79 B -53 C -256, and max -53
	[    43.560652] energy In A -79 B -51 C -256, and max -51
	[    43.660656] energy In A -79 B -52 C -256, and max -52
	[    43.760656] energy In A -79 B -52 C -256, and max -52
	[    43.860655] energy In A -79 B -52 C -256, and max -52
	[    43.960655] energy In A -79 B -52 C -256, and max -52
	[    44.070656] energy In A -79 B -52 C -256, and max -52
	[    44.170656] energy In A -79 B -52 C -256, and max -52
	[    44.270656] energy In A -79 B -52 C -256, and max -52
	[    44.370655] energy In A -79 B -51 C -256, and max -51
	[    44.470655] energy In A -79 B -51 C -256, and max -51
	[    44.580655] energy In A -79 B -50 C -256, and max -50
	[    44.680655] energy In A -79 B -50 C -256, and max -50
	[    44.780655] energy In A -79 B -50 C -256, and max -50
	[    44.880655] energy In A -79 B -51 C -256, and max -51
	[    44.990655] energy In A -79 B -50 C -256, and max -50
	[    45.050654] start with txrate 0
	[    45.050654] sending txd 0xffffd70034605468, in 0xffff834a3145f6c8
	[    45.050654] sending data: qid=0 idx=9 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    45.050654] free txd 0xffffd70034605468, in 0xffff834a3145f6c8
	[    45.120651] energy In A -79 B -50 C -256, and max -50
	[    45.120651] energy In A -79 B -50 C -256, and max -50
	[    45.190651] energy In A -79 B -50 C -256, and max -50
	[    45.290654] energy In A -79 B -50 C -256, and max -50
	[    45.400654] energy In A -79 B -50 C -256, and max -50
	[    45.500654] energy In A -79 B -50 C -256, and max -50
	[    45.600654] energy In A -79 B -50 C -256, and max -50
	[    45.700654] energy In A -79 B -51 C -256, and max -51
	[    45.810654] energy In A -79 B -50 C -256, and max -50
	[    45.910654] energy In A -79 B -50 C -256, and max -50
	[    46.010654] energy In A -79 B -50 C -256, and max -50
	[    46.110653] energy In A -79 B -50 C -256, and max -50
	[    46.220653] energy In A -79 B -50 C -256, and max -50
	[    46.320653] energy In A -79 B -50 C -256, and max -50
	[    46.420653] energy In A -79 B -50 C -256, and max -50
	[    46.520653] energy In A -79 B -50 C -256, and max -50
	[    46.630653] energy In A -79 B -50 C -256, and max -50
	[    46.730653] energy In A -79 B -50 C -256, and max -50
	[    46.830653] energy In A -79 B -50 C -256, and max -50
	[    46.930653] energy In A -79 B -50 C -256, and max -50
	[    46.940653] start with txrate 0
	[    46.940653] sending txd 0xffffd70034605498, in 0xffff834a3145f6c8
	[    46.940653] sending data: qid=0 idx=10 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    46.940653] free txd 0xffffd70034605498, in 0xffff834a3145f6c8
	[    47.040653] energy In A -79 B -50 C -256, and max -50
	[    47.040653] energy In A -79 B -50 C -256, and max -50
	[    47.140652] energy In A -79 B -51 C -256, and max -51
	[    47.240652] energy In A -79 B -50 C -256, and max -50
	[    47.340652] energy In A -79 B -50 C -256, and max -50
	[    47.440652] energy In A -79 B -51 C -256, and max -51
	[    47.550652] energy In A -79 B -50 C -256, and max -50
	[    47.650652] energy In A -79 B -51 C -256, and max -51
	[    47.750652] energy In A -79 B -52 C -256, and max -52
	[    47.850652] energy In A -79 B -50 C -256, and max -50
	[    47.960652] energy In A -79 B -51 C -256, and max -51
	[    48.060652] energy In A -79 B -52 C -256, and max -52
	[    48.160651] energy In A -79 B -53 C -256, and max -53
	[    48.260651] energy In A -79 B -52 C -256, and max -52
	[    48.370652] energy In A -79 B -51 C -256, and max -51
	[    48.470652] energy In A -79 B -51 C -256, and max -51
	[    48.570652] energy In A -79 B -51 C -256, and max -51
	[    48.670651] energy In A -79 B -51 C -256, and max -51
	[    48.780651] energy In A -79 B -50 C -256, and max -50
	[    48.880651] energy In A -79 B -52 C -256, and max -52
	[    48.940651] start with txrate 0
	[    48.940651] sending txd 0xffffd700346054c8, in 0xffff834a3145f6c8
	[    48.940651] sending data: qid=0 idx=11 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 ini
	t_rateidx=00000000 rate_n_flags=00000000
	[    48.940651] free txd 0xffffd700346054c8, in 0xffff834a3145f6c8
	[    48.980648] energy In A -79 B -51 C -256, and max -51
	[    48.980648] energy In A -79 B -51 C -256, and max -51
	[    49.050648] wsdisplay0: screen 1 added (default, vt100 emulation)
	[    49.050648] wsdisplay0: screen 2 added (default, vt100 emulation)
	[    49.050648] wsdisplay0: screen 3 added (default, vt100 emulation)
	[    49.050648] wsdisplay0: screen 4 added (default, vt100 emulation)
	[    49.100647] energy In A -79 B -50 C -256, and max -50
	[    49.190647] energy In A -79 B -51 C -256, and max -51
	[    49.310647] energy In A -79 B -51 C -256, and max -51
	[    49.390647] energy In A -79 B -51 C -256, and max -51
	[    49.490648] energy In A -79 B -51 C -256, and max -51
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.030646] energy In A -79 B -50 C -256, and max -50
	[    50.490646] energy In A -79 B -51 C -256, and max -51
	[    50.490646] energy In A -79 B -50 C -256, and max -50
	[    50.490646] energy In A -79 B -51 C -256, and max -51
	[    50.950645] energy In A -79 B -50 C -256, and max -50
	[    50.950645] energy In A -79 B -50 C -256, and max -50
	[    50.950645] energy In A -79 B -50 C -256, and max -50
	[    50.950645] energy In A -79 B -50 C -256, and max -50
	[    50.950645] energy In A -79 B -50 C -256, and max -50
	[    50.950645] start with txrate 0
	[    50.950645] sending txd 0xffffd700346054f8, in 0xffff834a3145f6c8
	[    50.950645] sending data: qid=0 idx=12 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    50.950645] start with txrate 0
	[    50.950645] sending txd 0xffffd70034605528, in 0xffff834a3145f6c8
	[    50.950645] sending data: qid=0 idx=13 len=76 nsegs=1 type=8 subtype=0 tx_flags=00003018 init_rateidx=00000000 rate_n_flags=00000000
	[    50.950645] free txd 0xffffd700346054f8, in 0xffff834a3145f6c8
	[    50.950645] free txd 0xffffd70034605528, in 0xffff834a3145f6c8
	[    51.030646] energy In A -79 B -50 C -256, and max -50
	[    51.030646] energy In A -79 B -50 C -256, and max -50
	[    51.030646] energy In A -79 B -50 C -256, and max -50
	[    51.130649] energy In A -79 B -50 C -256, and max -50
	[    51.230649] energy In A -79 B -50 C -256, and max -50
	[    51.340648] energy In A -79 B -51 C -256, and max -51
	[    51.440648] energy In A -79 B -50 C -256, and max -50
	[    51.540648] energy In A -79 B -51 C -256, and max -51
	[    51.640648] energy In A -79 B -50 C -256, and max -50
	[    51.750648] energy In A -79 B -52 C -256, and max -52
	[    51.850648] energy In A -79 B -52 C -256, and max -52
	[    51.950648] energy In A -79 B -52 C -256, and max -52
	[    52.050648] energy In A -79 B -53 C -256, and max -53
	...

>How-To-Repeat:
N/A

>Fix:
N/A

>Audit-Trail:
From: "Marc Coquand" <marc@mccd.space>
To: "Ramiro Aceves" <ea1abz@gmail.com>, <gnats-bugs@netbsd.org>,
 <kern-bug-people@netbsd.org>, <gnats-admin@netbsd.org>,
 <netbsd-bugs@netbsd.org>
Cc: 
Subject: Re: kern/58459: iwm0: fatal error on shutdown and reboot + other
 wifi woes
Date: Thu, 25 Jul 2024 16:44:05 -0500

 Hey,

 So I think that the iwm0: fatal error on shutdown is a red herring, and
 that my wifi issue (that wifi stops working, even with reboot) actually
 stems from hibrenation. I have the following lid_switch for powerd.

 case "${2}" in
 pressed)
         # Wait for 1 second
         sleep 1
         # Suspend
         # As in sleep_button, kill some daemons.
         #
         logger -p info "${0}: Sleeping, powering off network daemons"
         /sbin/sysctl -w hw.acpi.sleep.state=3D3
         exit 0
         ;;

 released)
         logger -p info "${0}: Waking up, restarting network daemons"
         exit 0
         ;;

 *)
         logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
         exit 1
 esac


 Now my thinking is that I could instead change this to also
 deactivate the network daemons as well, so I tried this solution.

 case "${2}" in
 pressed)
         # Wait for 1 second
         sleep 1
         # Suspend
         # As in sleep_button, kill some daemons.
         #
         logger -p info "${0}: Sleeping, powering off network daemons"
         /etc/rc.d/dhcpcd stop
         /etc/rc.d/wpa_supplicant stop
         /etc/rc.d/network stop
         /sbin/sysctl -w hw.acpi.sleep.state=3D3
         exit 0
         ;;

 released)
         logger -p info "${0}: Waking up, restarting network daemons"
         /etc/rc.d/network start
         /etc/rc.d/wpa_supplicant start
         /etc/rc.d/dhcpcd start
         exit 0
         ;;

 *)
         logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
         exit 1
 esac


 Now, I have not experienced wifi issues. However, it seems the daemon
 does not automatically restart. `cat /var/log/messages | grep "Waking
 up"` does not yield any messages, so its as if it never runs the
 `released)` part of the code.

 Anyone knows what I could be missing?





 On Wed Jul 24, 2024 at 9:11 AM -05, Ramiro Aceves wrote:
 >
 >
 > El 23 de julio de 2024 17:25:00 CEST, marc@mccd.space escribi=C3=B3:
 > >>Number:         58459
 > >>Category:       kern
 > >>Synopsis:       iwm0 fails with a fatal error on shutdown. Occassionall=
 y also having wifi issues
 > >>Confidential:   no
 > >>Severity:       non-critical
 > >>Priority:       low
 > >>Responsible:    kern-bug-people
 > >>State:          open
 > >>Class:          sw-bug
 > >>Submitter-Id:   net
 > >>Arrival-Date:   Tue Jul 23 15:25:00 +0000 2024
 > >>Originator:     marc@mccd.space
 > >>Release:        NetBSD 10.0
 > >>Organization:
 > >>Environment:
 > >System: NetBSD bsd.lt 10.0 NetBSD 10.0 (GENERIC) #1: Tue Jul 23 09:59:56=
  -05 2024 mccd@bsd.lt:/home/mccd/obj/sys/arch/amd64/compile/GENERIC amd64
 > >Architecture: x86_64
 > >Machine: amd64
 > >>Description:
 > >	Hi,
 > >
 > >	On my Thinkpad T480s I am experiencing issues with iwm0.
 > >
 > >	iwm0 fails with a fatal error on shutdown and reboots.
 >
 > I have just bought a Thinkpad x260 and have been playing with it for a co=
 uple of days and I can confirm that I saw this message several times when s=
 hutdowning my system:
 >
 > iwm0: fatal firmware error
 >
 > In general it works fine. Wireless is a bit slow, getting 10 Mbps in a 11=
 a mode 5GHz 54 Mbps connection. In Linux it gets 125 Mbps or so in a 866 Mp=
 bs link...
 >
 > But happy with my new machine, much more better than my old Acer Aspire O=
 ne.;-)
 >
 >
 >
 >
 > Regards.
 > Ramiro.
 >
 >
 >
 > >
 > >

From: Rob Whitlock <rwhitlock22@gmail.com>
To: Marc Coquand <marc@mccd.space>
Cc: Ramiro Aceves <ea1abz@gmail.com>,
 gnats-bugs@netbsd.org,
 kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: kern/58459: iwm0: fatal error on shutdown and reboot + other wifi
 woes
Date: Fri, 26 Jul 2024 10:15:00 -0400

 > On Jul 25, 2024, at 5:44 PM, Marc Coquand <marc@mccd.space> wrote:
 >=20
 > Hey,
 >=20
 > So I think that the iwm0: fatal error on shutdown is a red herring

 I get that error on every shutdown, and the wireless seems to be working =
 fine. My device is listed in dmesg as an Intel Dual Band Wireless AC =
 7265 (rev. 0x59)=

From: Rob Whitlock <rwhitlock22@gmail.com>
To: Marc Coquand <marc@mccd.space>
Cc: Ramiro Aceves <ea1abz@gmail.com>,
 gnats-bugs@netbsd.org,
 kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: kern/58459: iwm0: fatal error on shutdown and reboot + other wifi
 woes
Date: Fri, 26 Jul 2024 10:17:34 -0400

 > On Jul 26, 2024, at 10:15 AM, Rob Whitlock <rwhitlock22@gmail.com> =
 wrote:
 >=20
 >=20
 >> On Jul 25, 2024, at 5:44 PM, Marc Coquand <marc@mccd.space> wrote:
 >>=20
 >> Hey,
 >>=20
 >> So I think that the iwm0: fatal error on shutdown is a red herring
 >=20
 > I get that error on every shutdown, and the wireless seems to be =
 working fine. My device is listed in dmesg as an Intel Dual Band =
 Wireless AC 7265 (rev. 0x59)

 ...although I usually do not use the hibernation function. So it could =
 be that the hibernation is problematic for me too, although I haven't =
 determined that.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.