All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
Date: Fri, 06 Feb 2015 03:23:48 +0000	[thread overview]
Message-ID: <54D433C4.6010008@roeck-us.net> (raw)
In-Reply-To: <CAHBhnheRFDe-76vtNWS5B6Nk4sQC7Sz+-CcncKYSsgDOPus1KA@mail.gmail.com>

On 02/05/2015 12:48 PM, eaut wrote:
> Hello,
>
> When I recently started to use UEFI "Ultra-FastBoot" on a ASRock Z77 Pro4-M
> board I discovered that fans 3-5 were suddenly missing. After booting in
> Fast or Normal mode the fans were showing up correctly again. So obviously
> a firmware bug.
>
> After some googling and reading of the Nuvoton NCT6776 data sheet I came
> up with the following fix:
>
>      # enter NCT6776 "Extended Function Mode"
>      isaset -y 0x2e 0x2e 0x87 0x87
>      # select logical device HW-MONITOR
>      isaset -y 0x2e 0x2f 0x07 0x0b
>      # enable fans 3-5 by setting bits 5-7 in reg 0x30
>      isaset -y 0x2e 0x2f 0x30 0xe0 0xe0
>
> In the process I have created a small script to list all the NCT6776 fan
> related settings and optionally all NCT6776 GPIO registers. Hopefully it
> will save someone else the time I had to spend on this issue.
>
> https://github.com/eaut/nct6776/blob/master/nct6776-fanpin-info.sh
>
> Since quite a few mainboards seem to have firmware related register
> initialization issues wouldn't it make sense to add an optional module
> parameter to be able to override register settings when loading the nct6775
> driver module?
>
> Example:
>
>         ldev reg  val  mask
> setreg=0x0b,0x30,0xe0,0xe0,next-sequence,...
>

I would not want to risk that, but I am not adverse to add code which
configures the registers as needed for specific mainboards.

What is the exact DMI information for your board (Vendor and board name) ?

Thanks,
Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2015-02-06  3:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
2015-02-06  3:23 ` Guenter Roeck [this message]
2015-02-06  7:08 ` eaut
2015-02-07  3:03 ` Guenter Roeck
2015-02-07 12:24 ` eaut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54D433C4.6010008@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.