Date: Tue, 29 Sep 2015 02:25:28 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203431] Add support for 2006 MacPro1, 1 to the device driver for the Apple System Management Console (SMC) Message-ID: <bug-203431-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203431 Bug ID: 203431 Summary: Add support for 2006 MacPro1,1 to the device driver for the Apple System Management Console (SMC) Product: Base System Version: 10.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jjr@alisa.org Created attachment 161513 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=161513&action=edit Modified /usr/src/sys/dev/asmc/asmc.c and /usr/src/sys/dev/asmc/asmcvar.h with support for MacPro 1,1 2006 model. I've installed FreeBSD 10.2-RELEASE on an Apple Intel MacPro1,1 2006 model and found that this model was not supported by the 'asmc' device driver for the Apple System Management Console (SMC). When I loaded the asmc kernel module using kldload, the following message is logged in /var/log/messages: Sep 28 18:06:40 macpro kernel: asmc0: model not recognized and sysctl -a|grep asmc shows errors only. I've looked at the source code under /usr/src/sys/dev/asmc and made some changes to add support for the older MacPro1,1 2006 model see the attached zip file that contains my changes. in asmcvar.h, I added the following macro definitions: #define ASMC_MP1_TEMPS { "TA0P", "TCAH", "TCBH", "TC0C", "TC0P", \ "TC1C", "TC2C", "TC3C", "THTG", "TH0P", \ "TH1P", "TH2P", "TH3P", "TMAP", "TMAS", \ "TMBS", "TM0P", "TM0S", "TM1P", "TM1S", \ "TM2P", "TM2S", "TM3S", "TM8P", "TM8S", \ "TM9P", "TM9S", "TN0H", "TS0C", NULL } #define ASMC_MP1_TEMPNAMES { "TA0P", "TCAH", "TCBH", "TC0C", "TC0P", \ "TC1C", "TC2C", "TC3C", "THTG", "TH0P", \ "TH1P", "TH2P", "TH3P", "TMAP", "TMAS", \ "TMBS", "TM0P", "TM0S", "TM1P", "TM1S", \ "TM2P", "TM2S", "TM3S", "TM8P", "TM8S", \ "TM9P", "TM9S", "TN0H", "TS0C", } #define ASMC_MP1_TEMPDESCS { "TA0P", "TCAH", "TCBH", "TC0C", "TC0P", \ "TC1C", "TC2C", "TC3C", "THTG", "TH0P", \ "TH1P", "TH2P", "TH3P", "TMAP", "TMAS", \ "TMBS", "TM0P", "TM0S", "TM1P", "TM1S", \ "TM2P", "TM2S", "TM3S", "TM8P", "TM8S", \ "TM9P", "TM9S", "TN0H", "TS0C", } In asmc.c, I added the following model defintion to the asmc_models array: /* Idem for the MacPro 1,1 2006 */ { "MacPro1,1", "Apple SMC Mac Pro (4-core)", NULL, NULL, NULL, ASMC_FAN_FUNCS, NULL, NULL, NULL, ASMC_MP1_TEMPS, ASMC_MP1_TEMPNAMES, ASMC_MP1_TEMPDESCS }, Now when I load the kernel module with kldload, the following message is logged in /var/log/messages: Sep 28 19:37:15 macpro kernel: asmc0: <Apple SMC Mac Pro (4-core)> port 0x300-0x31f irq 6 on acpi0 and sysctl -a |grep asmc shows: sysctl -a|grep asmc dev.asmc.0.temp.TS0C: 39 dev.asmc.0.temp.TN0H: 86 dev.asmc.0.temp.TM9S: 129 dev.asmc.0.temp.TM9P: 50 dev.asmc.0.temp.TM8S: 129 dev.asmc.0.temp.TM8P: 44 dev.asmc.0.temp.TM3S: 129 dev.asmc.0.temp.TM2S: 129 dev.asmc.0.temp.TM2P: 50 dev.asmc.0.temp.TM1S: 80 dev.asmc.0.temp.TM1P: 56 dev.asmc.0.temp.TM0S: 75 dev.asmc.0.temp.TM0P: 48 dev.asmc.0.temp.TMBS: 129 dev.asmc.0.temp.TMAS: 129 dev.asmc.0.temp.TMAP: 47 dev.asmc.0.temp.TH3P: 34 dev.asmc.0.temp.TH2P: 31 dev.asmc.0.temp.TH1P: 30 dev.asmc.0.temp.TH0P: 31 dev.asmc.0.temp.THTG: 45 dev.asmc.0.temp.TC3C: 0 dev.asmc.0.temp.TC2C: 42 dev.asmc.0.temp.TC1C: 0 dev.asmc.0.temp.TC0P: 40 dev.asmc.0.temp.TC0C: 41 dev.asmc.0.temp.TCBH: 36 dev.asmc.0.temp.TCAH: 35 dev.asmc.0.temp.TA0P: 25 dev.asmc.0.fan.3.targetspeed: 620 dev.asmc.0.fan.3.maxspeed: 2800 dev.asmc.0.fan.3.minspeed: 620 dev.asmc.0.fan.3.safespeed: 1200 dev.asmc.0.fan.3.speed: 620 dev.asmc.0.fan.3.id: PS dev.asmc.0.fan.2.targetspeed: 642 dev.asmc.0.fan.2.maxspeed: 2900 dev.asmc.0.fan.2.minspeed: 500 dev.asmc.0.fan.2.safespeed: 1200 dev.asmc.0.fan.2.speed: 643 dev.asmc.0.fan.2.id: EXHAUST dev.asmc.0.fan.1.targetspeed: 500 dev.asmc.0.fan.1.maxspeed: 2900 dev.asmc.0.fan.1.minspeed: 500 dev.asmc.0.fan.1.safespeed: 1200 dev.asmc.0.fan.1.speed: 499 dev.asmc.0.fan.1.id: IO dev.asmc.0.fan.0.targetspeed: 542 dev.asmc.0.fan.0.maxspeed: 2900 dev.asmc.0.fan.0.minspeed: 500 dev.asmc.0.fan.0.safespeed: 1200 dev.asmc.0.fan.0.speed: 544 dev.asmc.0.fan.0.id: CPU_MEM dev.asmc.0.%parent: acpi0 dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0 dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_ dev.asmc.0.%driver: asmc dev.asmc.0.%desc: Apple SMC Mac Pro (4-core) dev.asmc.%parent: -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203431-8>