NetBSD-Bugs archive

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

kern/58128: loaded-module for amdzentemp driver doesn't register with envsys



>Number:         58128
>Category:       kern
>Synopsis:       loaded-module for amdzentemp driver doesn't register with envsys
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 09 12:15:00 +0000 2024
>Originator:     Paul Goyette
>Release:        NetBSD 10.99.10
>Organization:
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+
>Environment:
	
	
System: NetBSD speedy.whooppee.com 10.99.10 NetBSD 10.99.10 (SPEEDY 2024-04-09 06:23:56 UTC) #0: Tue Apr 9 10:51:05 UTC 2024 paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
The loaded module for amdzentemp doesn't successfully register with
envsys.  When included as a built-in module it works correctly.
	
>How-To-Repeat:
To observe correct behavior, include the amdzentemp module as a
built-in module:

# modstat amdzentemp
NAME             CLASS    SOURCE   FLAG  REFS    SIZE REQUIRES 
amdzentemp       driver   builtin  -        0       - sysmon_envsys,amdsmn

# config -x | grep amdzentemp
amdzentemp*	at amdsmnbus?		# AMD Ryzen Family 17h CPU temp sensors

# envstat -d amdzentemp0
                         Current  CritMax  WarnMax  WarnMin  CritMin  Unit
     cpu0 temperature:    42.000                                      degC
cpu0 ccd0 temperature:    45.500                                      degC
cpu0 ccd1 temperature:    27.875                                      degC

To observe the failure mode, boot a kernel without the built-in
driver (but otherwise identical) and use modload(8) to load it:

# modload amdzentemp
# modstat amdzentemp
NAME             CLASS    SOURCE   FLAG  REFS    SIZE REQUIRES 
amdzentemp       driver   filesys  -        0    1926 sysmon_envsys,amdsmn

# config -x | grep amdzentemp
#amdzentemp*	at amdsmnbus?		# AMD Ryzen Family 17h CPU temp sensors

# envstat -d amdzentemp0
envstat: unkknown device `amdzentemp0'

>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index