Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2021 18:00:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260781] [PATCH][asmc]  Add support for MacPro 6,1 (2013) to asmc kernel module
Message-ID:  <bug-260781-227-EBglU5iJSf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260781-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260781-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260781

--- Comment #1 from Adam S. <adam@anschwa.com> ---
Comment on attachment 230522
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230522
macpro6,1 patch for asmc

>diff -u original/asmc.c my-patch/asmc.c
>--- original/asmc.c	2021-12-28 23:43:20.905442244 -0600
>+++ my-patch/asmc.c	2021-12-29 00:10:38.424770226 -0600
>@@ -328,6 +328,15 @@
>     ASMC_MP5_TEMPS, ASMC_MP5_TEMPNAMES, ASMC_MP5_TEMPDESCS
>   },
>
>+	/* Idem for the MacPro 2013 (cylinder) */
>+	{
>+    "MacPro6,1", "Apple SMC MacPro (2013)",
>+    ASMC_SMS_FUNCS_DISABLED,
>+    ASMC_FAN_FUNCS,
>+    ASMC_LIGHT_FUNCS_DISABLED,
>+    ASMC_MP6_TEMPS, ASMC_MP6_TEMPNAMES, ASMC_MP6_TEMPDESCS
>+	},
>+
>   {
>     "MacBookAir1,1", "Apple SMC MacBook Air",
>     ASMC_SMS_FUNCS, ASMC_FAN_FUNCS, NULL, NULL, NULL,
>diff -u original/asmcvar.h my-patch/asmcvar.h
>--- original/asmcvar.h	2021-12-28 23:43:12.163365462 -0600
>+++ my-patch/asmcvar.h	2021-12-29 00:11:36.207227372 -0600
>@@ -581,6 +581,18 @@
>           "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
>           "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
>           "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", }
>+
>+#define ASMC_MP6_TEMPS	{ "TA0P", "TA1P", "TC0P", "TG0D", "TG0P", \
>+	"TG1D", "TG1P", "TM0P", "TM1P", NULL }
>+
>+#define ASMC_MP6_TEMPNAMES	{ "ambient_air_1", "ambient_air_2", \
>+	"cpu_proximity", "gpu_diode_1", "gpu_proximity_1", "gpu_diode_2", \
>+	"gpu_proximity_2", "mem_proximity_1", "mem_proximity_2" }
>+
>+#define ASMC_MP6_TEMPDESCS	{ "Ambient Air 1", "Ambient Air 2", \
>+	"CPU Proximity", "GPU Diode 1", "GPU Proximity 1", "GPU Diode 2", \
>+	"GPU Proximity 2", "Memory Bank A", "Memory Bank B" }
>+
> #define	ASMC_MBA_TEMPS		{ "TB0T", NULL }
> #define	ASMC_MBA_TEMPNAMES	{ "enclosure" }
> #define	ASMC_MBA_TEMPDESCS	{ "Enclosure Bottom" }

--=20
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-260781-227-EBglU5iJSf>