Bug 279686

Summary: [asmc] [patch] Add support for MacBookPro 11.4
Product: Base System Reporter: megamansec
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: megamansec
Priority: ---    
Version: 13.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
asmc macbookpro11,4 support none

Description megamansec 2024-06-11 19:59:49 UTC
Created attachment 251403 [details]
asmc macbookpro11,4 support

This patch adds support for asmc with the Macbookpro 11.4.

SMCs were (mostly) taken from https://logi.wiki/index.php/SMC_Sensor_Codes.

Three errors occur when running sysctl:
asmc0: asmc_key_read for key F1Sf failed 10 times, giving up
asmc0: asmc_key_read for key F0Sf failed 10 times, giving up
asmc0: asmc_key_read for key F0Sf failed 10 times, giving up

These correspond to:
dev.asmc.0.fan.1.safespeed
dev.asmc.0.fan.0.safespeed

but cannot be disabled without severely altering the driver, so I've left them as-is.

Keyboard backlight is working nicely, and fan and temp reporting is also working.