Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 09:22:30 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        jrtc27@freebsd.org
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>,  "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org>
Subject:   Re: git: ffc58e2ca365 - main - asmc: Add MacbookAir6,2
Message-ID:  <CAJ-VmonRQcOntvy3OudTc3n%2BYyf7NqimLXEB-uhuX3jjjYNz7w@mail.gmail.com>
In-Reply-To: <B3B9337C-9E8A-4EFB-8133-5F75CA5C7163@freebsd.org>
References:  <202301210443.30L4hnw4015211@gitrepo.freebsd.org> <B3B9337C-9E8A-4EFB-8133-5F75CA5C7163@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
yeah i meant markj, but i was sick and tired and somehow my brain crossed
streams.

sorry!


-a


On Fri, 20 Jan 2023 at 21:55, Jessica Clarke <jrtc27@freebsd.org> wrote:

> On 21 Jan 2023, at 04:43, Adrian Chadd <adrian@FreeBSD.org> wrote:
> >
> > The branch main has been updated by adrian:
> >
> > URL:
> https://cgit.FreeBSD.org/src/commit/?id=ffc58e2ca36546d866bb6bd36a3aa8f762a01663
> >
> > commit ffc58e2ca36546d866bb6bd36a3aa8f762a01663
> > Author:     Adrian Chadd <adrian@FreeBSD.org>
> > AuthorDate: 2023-01-21 04:34:31 +0000
> > Commit:     Adrian Chadd <adrian@FreeBSD.org>
> > CommitDate: 2023-01-21 04:34:31 +0000
> >
> >    asmc: Add MacbookAir6,2
> >
> >    Add in the zones for my MacbookAir6,2, a 2013 Macbook Air.
> >
> >    Tested - said Macbook Air 2013.  Thermal Zones and keyboard backlight
> >    control works fine.
> >
> >    Differential Revision: https://reviews.freebsd.org/D38073
> >    Approved by: jrtc27
>
> Uh this is the first I’m hearing of this patch?
>
> Jess
>
> > ---
> > sys/dev/asmc/asmc.c    |  9 +++++++--
> > sys/dev/asmc/asmcvar.h | 25 +++++++++++++++++++++++++
> > 2 files changed, 32 insertions(+), 2 deletions(-)
> >
> > diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
> > index bec0054e2dd7..337f641e4513 100644
> > --- a/sys/dev/asmc/asmc.c
> > +++ b/sys/dev/asmc/asmc.c
> > @@ -427,7 +427,13 @@ static const struct asmc_model asmc_models[] = {
> >         ASMC_LIGHT_FUNCS,
> >         ASMC_MBA5_TEMPS, ASMC_MBA5_TEMPNAMES, ASMC_MBA5_TEMPDESCS
> >       },
> > -
> > +     {
> > +       "MacBookAir6,2", "Apple SMC MacBook Air 13-inch (Early 2013)",
> > +       ASMC_SMS_FUNCS_DISABLED,
> > +       ASMC_FAN_FUNCS2,
> > +       ASMC_LIGHT_FUNCS,
> > +       ASMC_MBA6_TEMPS, ASMC_MBA6_TEMPNAMES, ASMC_MBA6_TEMPDESCS
> > +     },
> >       {
> >         "MacBookAir7,1", "Apple SMC MacBook Air 11-inch (Early 2015)",
> >         ASMC_SMS_FUNCS_DISABLED,
> > @@ -435,7 +441,6 @@ static const struct asmc_model asmc_models[] = {
> >         ASMC_LIGHT_FUNCS,
> >         ASMC_MBA7_TEMPS, ASMC_MBA7_TEMPNAMES, ASMC_MBA7_TEMPDESCS
> >       },
> > -
> >       {
> >         "MacBookAir7,2", "Apple SMC MacBook Air 13-inch (Early 2015)",
> >         ASMC_SMS_FUNCS_DISABLED,
> > diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
> > index a594710f1cbe..9db544a1450d 100644
> > --- a/sys/dev/asmc/asmcvar.h
> > +++ b/sys/dev/asmc/asmcvar.h
> > @@ -773,6 +773,31 @@ struct asmc_softc {
> >                                 "Ta0P", "Heatpipe", "Mainboard Proximity
> 1", "Mainboard Proximity 2", \
> >                                 "Palm Rest", "Memory Proximity" }
> >
> > +/*
> > + * TODO: validate the temp zones for MBA 6.x !
> > + */
> > +#define      ASMC_MBA6_TEMPS         { "TB0T", "TB1T", "TB2T", \
> > +                               "TC0E", "TC0F", "TC0P", \
> > +                               "TC1C", "TC2C", "TCGC", "TCSA", \
> > +                               "TCXC", "THSP", "TM0P", "TPCD", \
> > +                               "Ta0P", "Th1H", "Tm0P", \
> > +                               "Ts0P", "Ts0S", NULL }
> > +
> > +#define      ASMC_MBA6_TEMPNAMES     { "enclosure1", "enclosure2",
> "enclosure3", \
> > +                               "cputemp1", "cputemp2", "cpuproximity", \
> > +                               "cpucore1", "cpucore2", "cpupeci",
> "pecisa", \
> > +                               "TCXC", "THSP", "memorybank", "pchdie", \
> > +                               "Ta0P", "heatpipe",
> "mainboardproximity1", \
> > +                               "palmrest", "memoryproximity" }
> > +
> > +#define      ASMC_MBA6_TEMPDESCS     { "Enclosure Bottom 1", "Enclosure
> Bottom 2", "Enclosure Bottom 3", \
> > +                               "CPU Temp 1", "CPU Temp 2", "CPU
> Proximity", \
> > +                               "CPU Core 1", "CPU Core 2", "CPU Peci
> Core", "PECI SA", \
> > +                               "TCXC", "THSP", "Memory Bank A", "PCH
> Die", \
> > +                               "Ta0P", "Heatpipe", "Mainboard Proximity
> 1", \
> > +                               "Palm Rest", "Memory Proximity" }
> > +
> > +
> > #define       ASMC_MBA7_TEMPS         { "TB0T", "TB1T", "TB2T", \
> >                                 "TC0E", "TC0F", "TC0P", \
> >                                 "TC1C", "TC2C", \
>
>

[-- Attachment #2 --]
<div dir="ltr">yeah i meant markj, but i was sick and tired and somehow my brain crossed streams.<div><br></div><div>sorry!</div><div><br></div><div><br></div><div>-a</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Jan 2023 at 21:55, Jessica Clarke &lt;<a href="mailto:jrtc27@freebsd.org">jrtc27@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 21 Jan 2023, at 04:43, Adrian Chadd &lt;adrian@FreeBSD.org&gt; wrote:<br>
&gt; <br>
&gt; The branch main has been updated by adrian:<br>
&gt; <br>
&gt; URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=ffc58e2ca36546d866bb6bd36a3aa8f762a01663" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/src/commit/?id=ffc58e2ca36546d866bb6bd36a3aa8f762a01663</a><br>;
&gt; <br>
&gt; commit ffc58e2ca36546d866bb6bd36a3aa8f762a01663<br>
&gt; Author:     Adrian Chadd &lt;adrian@FreeBSD.org&gt;<br>
&gt; AuthorDate: 2023-01-21 04:34:31 +0000<br>
&gt; Commit:     Adrian Chadd &lt;adrian@FreeBSD.org&gt;<br>
&gt; CommitDate: 2023-01-21 04:34:31 +0000<br>
&gt; <br>
&gt;    asmc: Add MacbookAir6,2<br>
&gt; <br>
&gt;    Add in the zones for my MacbookAir6,2, a 2013 Macbook Air.<br>
&gt; <br>
&gt;    Tested - said Macbook Air 2013.  Thermal Zones and keyboard backlight<br>
&gt;    control works fine.<br>
&gt; <br>
&gt;    Differential Revision: <a href="https://reviews.freebsd.org/D38073" rel="noreferrer" target="_blank">https://reviews.freebsd.org/D38073</a><br>;
&gt;    Approved by: jrtc27<br>
<br>
Uh this is the first I’m hearing of this patch?<br>
<br>
Jess<br>
<br>
&gt; ---<br>
&gt; sys/dev/asmc/asmc.c    |  9 +++++++--<br>
&gt; sys/dev/asmc/asmcvar.h | 25 +++++++++++++++++++++++++<br>
&gt; 2 files changed, 32 insertions(+), 2 deletions(-)<br>
&gt; <br>
&gt; diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c<br>
&gt; index bec0054e2dd7..337f641e4513 100644<br>
&gt; --- a/sys/dev/asmc/asmc.c<br>
&gt; +++ b/sys/dev/asmc/asmc.c<br>
&gt; @@ -427,7 +427,13 @@ static const struct asmc_model asmc_models[] = {<br>
&gt;         ASMC_LIGHT_FUNCS,<br>
&gt;         ASMC_MBA5_TEMPS, ASMC_MBA5_TEMPNAMES, ASMC_MBA5_TEMPDESCS<br>
&gt;       },<br>
&gt; -<br>
&gt; +     {<br>
&gt; +       &quot;MacBookAir6,2&quot;, &quot;Apple SMC MacBook Air 13-inch (Early 2013)&quot;,<br>
&gt; +       ASMC_SMS_FUNCS_DISABLED,<br>
&gt; +       ASMC_FAN_FUNCS2,<br>
&gt; +       ASMC_LIGHT_FUNCS,<br>
&gt; +       ASMC_MBA6_TEMPS, ASMC_MBA6_TEMPNAMES, ASMC_MBA6_TEMPDESCS<br>
&gt; +     },<br>
&gt;       {<br>
&gt;         &quot;MacBookAir7,1&quot;, &quot;Apple SMC MacBook Air 11-inch (Early 2015)&quot;,<br>
&gt;         ASMC_SMS_FUNCS_DISABLED,<br>
&gt; @@ -435,7 +441,6 @@ static const struct asmc_model asmc_models[] = {<br>
&gt;         ASMC_LIGHT_FUNCS,<br>
&gt;         ASMC_MBA7_TEMPS, ASMC_MBA7_TEMPNAMES, ASMC_MBA7_TEMPDESCS<br>
&gt;       },<br>
&gt; -<br>
&gt;       {<br>
&gt;         &quot;MacBookAir7,2&quot;, &quot;Apple SMC MacBook Air 13-inch (Early 2015)&quot;,<br>
&gt;         ASMC_SMS_FUNCS_DISABLED,<br>
&gt; diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h<br>
&gt; index a594710f1cbe..9db544a1450d 100644<br>
&gt; --- a/sys/dev/asmc/asmcvar.h<br>
&gt; +++ b/sys/dev/asmc/asmcvar.h<br>
&gt; @@ -773,6 +773,31 @@ struct asmc_softc {<br>
&gt;                                 &quot;Ta0P&quot;, &quot;Heatpipe&quot;, &quot;Mainboard Proximity 1&quot;, &quot;Mainboard Proximity 2&quot;, \<br>
&gt;                                 &quot;Palm Rest&quot;, &quot;Memory Proximity&quot; }<br>
&gt; <br>
&gt; +/*<br>
&gt; + * TODO: validate the temp zones for MBA 6.x !<br>
&gt; + */<br>
&gt; +#define      ASMC_MBA6_TEMPS         { &quot;TB0T&quot;, &quot;TB1T&quot;, &quot;TB2T&quot;, \<br>
&gt; +                               &quot;TC0E&quot;, &quot;TC0F&quot;, &quot;TC0P&quot;, \<br>
&gt; +                               &quot;TC1C&quot;, &quot;TC2C&quot;, &quot;TCGC&quot;, &quot;TCSA&quot;, \<br>
&gt; +                               &quot;TCXC&quot;, &quot;THSP&quot;, &quot;TM0P&quot;, &quot;TPCD&quot;, \<br>
&gt; +                               &quot;Ta0P&quot;, &quot;Th1H&quot;, &quot;Tm0P&quot;, \<br>
&gt; +                               &quot;Ts0P&quot;, &quot;Ts0S&quot;, NULL }<br>
&gt; +<br>
&gt; +#define      ASMC_MBA6_TEMPNAMES     { &quot;enclosure1&quot;, &quot;enclosure2&quot;, &quot;enclosure3&quot;, \<br>
&gt; +                               &quot;cputemp1&quot;, &quot;cputemp2&quot;, &quot;cpuproximity&quot;, \<br>
&gt; +                               &quot;cpucore1&quot;, &quot;cpucore2&quot;, &quot;cpupeci&quot;, &quot;pecisa&quot;, \<br>
&gt; +                               &quot;TCXC&quot;, &quot;THSP&quot;, &quot;memorybank&quot;, &quot;pchdie&quot;, \<br>
&gt; +                               &quot;Ta0P&quot;, &quot;heatpipe&quot;, &quot;mainboardproximity1&quot;, \<br>
&gt; +                               &quot;palmrest&quot;, &quot;memoryproximity&quot; }<br>
&gt; +<br>
&gt; +#define      ASMC_MBA6_TEMPDESCS     { &quot;Enclosure Bottom 1&quot;, &quot;Enclosure Bottom 2&quot;, &quot;Enclosure Bottom 3&quot;, \<br>
&gt; +                               &quot;CPU Temp 1&quot;, &quot;CPU Temp 2&quot;, &quot;CPU Proximity&quot;, \<br>
&gt; +                               &quot;CPU Core 1&quot;, &quot;CPU Core 2&quot;, &quot;CPU Peci Core&quot;, &quot;PECI SA&quot;, \<br>
&gt; +                               &quot;TCXC&quot;, &quot;THSP&quot;, &quot;Memory Bank A&quot;, &quot;PCH Die&quot;, \<br>
&gt; +                               &quot;Ta0P&quot;, &quot;Heatpipe&quot;, &quot;Mainboard Proximity 1&quot;, \<br>
&gt; +                               &quot;Palm Rest&quot;, &quot;Memory Proximity&quot; }<br>
&gt; +<br>
&gt; +<br>
&gt; #define       ASMC_MBA7_TEMPS         { &quot;TB0T&quot;, &quot;TB1T&quot;, &quot;TB2T&quot;, \<br>
&gt;                                 &quot;TC0E&quot;, &quot;TC0F&quot;, &quot;TC0P&quot;, \<br>
&gt;                                 &quot;TC1C&quot;, &quot;TC2C&quot;, \<br>
<br>
</blockquote></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonRQcOntvy3OudTc3n%2BYyf7NqimLXEB-uhuX3jjjYNz7w>