From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 80901] [NVCF] PWM fan speed too high Date: Tue, 08 Jul 2014 12:41:47 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0065345515==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0065345515== Content-Type: multipart/alternative; boundary="1404823307.D8431.6513"; charset="us-ascii" --1404823307.D8431.6513 Date: Tue, 8 Jul 2014 12:41:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=80901 --- Comment #13 from Martin Peres --- Comment on attachment 102433 --> https://bugs.freedesktop.org/attachment.cgi?id=102433 PATCH: add LINEAR_MIN and LINEAR_MAX to sysfs Thanks, this patch is perfectly sound! However, it doesn't follow the sysfs interface of hwmon as defined here: https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface I don't particularly like this interface, but I've tried to stay as close to it as possible. One possibility could be to use the trip points to expose linear_min/max, however, we would be bending the definition of trip point by a long shot (we are not supposed to scale linearly between trip points, at least that's how NVIDIA defines trip points, that's a question worth asking to the hwmon guys). If we are to keep your patch more or less intact, you would have to move your the end result to nouveau_sysfs.c. You would also need to change the name to temp1_fan_linear_min/max, to improve the clarity of what values are expected in there :) Finally, you would need to update the documentation (http://cgit.freedesktop.org/nouveau/linux-2.6/tree/Documentation/thermal/nouveau_thermal). Thanks again for your interest in fixing this! -- You are receiving this mail because: You are the assignee for the bug. --1404823307.D8431.6513 Date: Tue, 8 Jul 2014 12:41:47 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 13 on bug 80901 from
Comment on attachment 102433 [details]
PATCH: add LINEAR_MIN and LINEAR_MAX to sysfs

Thanks, this patch is perfectly sound!

However, it doesn't follow the sysfs interface of hwmon as defined here:
https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface

I don't particularly like this interface, but I've tried to stay as close to it
as possible. One possibility could be to use the trip points to expose
linear_min/max, however, we would be bending the definition of trip point by a
long shot (we are not supposed to scale linearly between trip points, at least
that's how NVIDIA defines trip points, that's a question worth asking to the
hwmon guys).

If we are to keep your patch more or less intact, you would have to move your
the end result to nouveau_sysfs.c. You would also need to change the name to
temp1_fan_linear_min/max, to improve the clarity of what values are expected in
there :) Finally, you would need to update the documentation
(http://cgit.freedesktop.org/nouveau/linux-2.6/tree/Documentation/thermal/nouveau_thermal).

Thanks again for your interest in fixing this!


You are receiving this mail because:
  • You are the assignee for the bug.
--1404823307.D8431.6513-- --===============0065345515== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0065345515==--