lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 7 Mar 2014 15:31:44 +0000
From:	Laszlo Papp <lpapp@....org>
To:	Jean Delvare <jdelvare@...e.de>
Cc:	LKML <linux-kernel@...r.kernel.org>, lm-sensors@...sensors.org,
	Guenter Roeck <linux@...ck-us.net>
Subject: Re: Tachometer speed returned rather than absolute fan speed?

On Fri, Mar 7, 2014 at 3:25 PM, Jean Delvare <jdelvare@...e.de> wrote:
> Hi Laszlo,
>
> On Fri, 7 Mar 2014 14:48:01 +0000, Laszlo Papp wrote:
>> In medias res, I find this interface cumbersome:
>> http://lxr.free-electrons.com/source/Documentation/hwmon/max6650#L31
>>
>> It returns tachometer speed rather than actual fan speed when you deal
>> with the fan1_target interface. That would be way more convenient for
>> end users like me.
>>
>> Is there any reason for not returning absolute fan speed? I guess,
>> this would break the behavior now. However, that would be a really
>> useful convenient feature. Is it possible to add a new interface for
>> that?
>
> I'm quite confused. While I admit that the term "tachometer speed" is
> awkward, the max6650 driver is reporting fan speeds in RPM as every
> other hwmon driver. So I really have no idea what you think is wrong.
> What did you think "tachometer speed" was, if not the fan speed? Does
> the max6650 driver not return correct fan speeds for you?

I was just writing a patch to improve the documentation. Tachometer
value is not equal to the fan speed, and using the terms together is
confusing. It should probably read as follows:

"absolute fan speed in RPM based on the corresponding tachometer
value" or something similar. I just did not get the meaning of two
different values together, and I think that confused me, especially
since get_fan and get_target are doing slightly different
computations, so it took me a while to figure this out from the
datasheet.

Better wording would have definitely helped in here. Fwiw, I asked
another kernel hacker person who also got confused telling me that he
would not know without reading the source code. I think that it is an
indication to improve the documentation. There might be better
alternatives than the one I am proposing, but at least that one clears
up that for me.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ