All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
@ 2015-02-05 20:48 eaut
  2015-02-06  3:23 ` Guenter Roeck
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: eaut @ 2015-02-05 20:48 UTC (permalink / raw)
  To: lm-sensors

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,...

BR,
Erich

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
  2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
@ 2015-02-06  3:23 ` Guenter Roeck
  2015-02-06  7:08 ` eaut
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2015-02-06  3:23 UTC (permalink / raw)
  To: lm-sensors

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
  2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
  2015-02-06  3:23 ` Guenter Roeck
@ 2015-02-06  7:08 ` eaut
  2015-02-07  3:03 ` Guenter Roeck
  2015-02-07 12:24 ` eaut
  3 siblings, 0 replies; 5+ messages in thread
From: eaut @ 2015-02-06  7:08 UTC (permalink / raw)
  To: lm-sensors

Hi Guenter,

the DMI information is:

BOARD_VENDOR = "ASRock"
BOARD_NAME = "Z77 Pro4-M"
BIOS_VERSION = "P2.00"

thx, Erich


On Fri, Feb 6, 2015 at 4:23 AM, Guenter Roeck <linux@roeck-us.net> wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
  2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
  2015-02-06  3:23 ` Guenter Roeck
  2015-02-06  7:08 ` eaut
@ 2015-02-07  3:03 ` Guenter Roeck
  2015-02-07 12:24 ` eaut
  3 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2015-02-07  3:03 UTC (permalink / raw)
  To: lm-sensors

On 02/05/2015 11:08 PM, eaut wrote:
> Hi Guenter,
>
> the DMI information is:
>
> BOARD_VENDOR = "ASRock"
> BOARD_NAME = "Z77 Pro4-M"
> BIOS_VERSION = "P2.00"
>

Hi Erich,

Please don't top-post.

Can you test the out-of-tree driver at https://github.com/groeck/nct6775 ?

Thanks,
Guenter

> thx, Erich
>
>
> On Fri, Feb 6, 2015 at 4:23 AM, Guenter Roeck <linux@roeck-us.net> wrote:
>> 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
>


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lm-sensors] NCT6776 on ASRock Z77 Pro4-M
  2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
                   ` (2 preceding siblings ...)
  2015-02-07  3:03 ` Guenter Roeck
@ 2015-02-07 12:24 ` eaut
  3 siblings, 0 replies; 5+ messages in thread
From: eaut @ 2015-02-07 12:24 UTC (permalink / raw)
  To: lm-sensors

On Sat, Feb 7, 2015 at 4:03 AM, Guenter Roeck <linux@roeck-us.net> wrote:

>
> Can you test the out-of-tree driver at https://github.com/groeck/nct6775 ?
>

the code works. all fans are detected.

Thanks,
Erich

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-07 12:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 20:48 [lm-sensors] NCT6776 on ASRock Z77 Pro4-M eaut
2015-02-06  3:23 ` Guenter Roeck
2015-02-06  7:08 ` eaut
2015-02-07  3:03 ` Guenter Roeck
2015-02-07 12:24 ` eaut

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.