From nobody Wed May 03 00:26:02 2023 X-Original-To: freebsd-acpi@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q9yRf1yPjz48NHG for ; Wed, 3 May 2023 00:26:22 +0000 (UTC) (envelope-from dmitry.medvedev@gmail.com) Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q9yRd4wdGz3l55; Wed, 3 May 2023 00:26:21 +0000 (UTC) (envelope-from dmitry.medvedev@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-52c30fa5271so1398548a12.0; Tue, 02 May 2023 17:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683073579; x=1685665579; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nuUvkttjojbwX8mHfwXjdYxblMQj3VTtpyuSvfc3rOA=; b=HMmxSJ5rjedju6gYz2bdzCIoqp4dJgCQb75LXjYhgwCCiad0AC37wa5Wqx2rNbwVOc Q8xJSBySsgdReWOA3TqZ6fcEQCm8UhSx5/xvjKir2YDG5CvDrfnTdKObRGsn99AS457Q v7fjRjAt2WWt/KiN8a5PDx9FqkGmjILzAQ3IS3EVvZq/wLTwn/IYdDStUW1+pXxqvbWt 5IqUqv+wlNLwzVut+b9H6/x4msl7X5medwVscdCKx/pqXFl9KBOtxKgR0r0HAhA6+P/4 xqoCxm/q7Og8BejBZzm1dWUNJv82gpcsZVz8qCxax/YZICwHd/2rRPhRX9m2zldQOEk3 0org== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683073579; x=1685665579; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nuUvkttjojbwX8mHfwXjdYxblMQj3VTtpyuSvfc3rOA=; b=CQHyDcbfIWGoef3UMLAcAgkGJwWiIAFWhME2YuSPvGMqPN+6QELpJwrt+hY+KtFZ7J VGbYSbwFFPy5X0QijHZsfTnXVAwVQcSvwiW/d8M2rrg1GIWMVav3SIcWwQ88UTR5msl4 AhQZGc2LNOmbH4+gjBTzS1Fp2gN1SyrvrUuO1qUyq++iJuW043RFEBymKG2MWb85Kyvr zo3aGLWxkNVTGyZEABp1axyfUgn94f3jcAxrjSVhLrB0I1rWkEbqpASsHPNcfuv7f8AU KeHgDg6XmkKV2sHk4Xn5+YujVBVarxIXQUh1u/uFwe57ss7XT4+A7jeopyuFd7F3cNZd e2Wg== X-Gm-Message-State: AC+VfDxZvJYulStBtECeDetsORobQc7ALMd/C/DOmeCou4Cn4CdblScV zJfvy+yyT2vZue5m6KVXSnlg8dyW2s8tT9LgLNCNR/a4xMk= X-Google-Smtp-Source: ACHHUZ6DhGQkbb4z3x8NonOJaH34zsJ+sRma8MBigB15B7LSpzBH94PH2pCjo3LqIr273X51CbYMZDd0h2WEZXbqTU8= X-Received: by 2002:a17:90b:80f:b0:24e:4c8:3ae5 with SMTP id bk15-20020a17090b080f00b0024e04c83ae5mr8867391pjb.28.1683073578697; Tue, 02 May 2023 17:26:18 -0700 (PDT) List-Id: ACPI and power management development List-Archive: https://lists.freebsd.org/archives/freebsd-acpi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-acpi@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: "Dmitry N. Medvedev" Date: Wed, 3 May 2023 02:26:02 +0200 Message-ID: Subject: Re: managing a fan speed via memory address To: Adrian Chadd Cc: freebsd-acpi@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ca094605fabf1af5" X-Rspamd-Queue-Id: 4Q9yRd4wdGz3l55 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --000000000000ca094605fabf1af5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable good morning Adrian, 1. I am just learning :) Not 100% sure ACPI has anything to do with fan control ( still it looks that it actually does ) -- found the Advanced Configuration and Power Interface Specification PDF. Will spend some time grasping the ideas 2. to quickly write any driver I will have to first find out how to do it :) any guidance ( preferable in textual form will be greatly appreciated ) will learn it :) 3. there isn't a single thermal sensor, but the SAS disks report their temperatures ( via dmidecode if I am not mistaken, or some other program -- I will be more sure tomorrow morning ). so, theoretically I could be able to read their temperature and decide if I would like to send more power to the fan. On Wed, May 3, 2023 at 2:14=E2=80=AFAM Adrian Chadd wr= ote: > Is it not an ACPI driver? If not, you could write a quick fan driver! > > Is there a thermal sensor(s) you could read to see how warm they get? > > > > -adrian > > > On Tue, 2 May 2023 at 17:06, Dmitry N. Medvedev > wrote: > >> good morning, >> >> Recently I have learned about the dmidecode program and found the addres= s >> of the FRNTFAN port in my HP Z420 machine: 0x0037. >> Since I am a complete newbie, I would like to learn if there is a way to >> read and change the value at this address. >> I need a bit of guidance. >> >> *The context*: I have added 8 SAS disks to the machine, put noctua fan >> in front of them and connected the fan to the FRNTFAN port on the >> motherboard. >> It looks like the fan works, but I am sure the disks would benefit if th= e >> fan produced more pressure. Which I fantasize I could do via changing th= e >> value at the said address. >> Not sure, of course. >> >> best regards, >> Dmitry N. Medvedev >> > --000000000000ca094605fabf1af5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
good morning Adrian,

1. I am just learn= ing :) Not 100% sure ACPI has anything to do with fan control ( still it lo= oks that it actually does )
-- found the Advanced Configuration a= nd Power Interface Specification PDF. Will spend some time grasping the ide= as
2. to quickly write any driver=C2=A0I will have to first find = out how to do it :) any=C2=A0guidance ( preferable in textual form will be = greatly appreciated ) will learn it :)
3. there isn't a singl= e thermal sensor, but the SAS disks report their temperatures
( v= ia dmidecode if I am not mistaken, or some other program -- I will be more = sure tomorrow morning ).
so, theoretically I could be able to rea= d their temperature and decide if I would like to send more power to the fa= n.

On Wed, May 3, 2023 at 2:14=E2=80=AFAM Adrian Chadd <adrian@freebsd.org> wrote:
Is it not an = ACPI driver? If not, you could write a quick fan driver!

Is there a thermal sensor(s) you could read to see how warm they get?



-adrian


On Tue, 2 May 2023 at 17:06, Dmitry N. Medvedev <dmitry.medvedev@gmail.com&g= t; wrote:
good morning,

Recently I have learned about the dmidec= ode program and found the address of the FRNTFAN port in my HP Z420 machine= : 0x0037.
Since I am a complete newbie, I would like to learn if = there is a way to read and change the value at this address.
I ne= ed a bit of guidance.

The context: I have a= dded 8 SAS disks to the machine, put noctua fan in front of them and connec= ted the fan to the FRNTFAN=C2=A0port on the motherboard.
It looks= like the fan works, but I am sure the disks would benefit if the fan produ= ced more pressure. Which I fantasize I could do via changing the value at t= he said address.
Not sure, of course.

be= st regards,
Dmitry N. Medvedev
--000000000000ca094605fabf1af5--