<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - CPU lock with nouveau_fan_update"
href="https://bugs.freedesktop.org/show_bug.cgi?id=65554#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - CPU lock with nouveau_fan_update"
href="https://bugs.freedesktop.org/show_bug.cgi?id=65554">bug 65554</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>nouveau_fan_update:
spin_lock_irqsave(&fan->lock, flags);
/* schedule next fan update, if not at target speed already */
if (list_empty(&fan->alarm.head) && target != duty) {
u16 bump_period = fan->bios.bump_period;
u16 slow_down_period = fan->bios.slow_down_period;
...
ptimer->alarm(ptimer, delay * 1000 * 1000, &fan->alarm);
If delay is somehow 0, the ->alarm will cause nouveau_fan_update to get called
immediately. Can you add a printk to that function that shows the values? (This
may end up totally flooding your dmesg too... but I think the values may be the
same across prints.)
e.g.
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c
b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c
index c728380..9453afd 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c
@@ -88,7 +88,7 @@ nouveau_fan_update(struct nouveau_fan *fan, bool immediate,
int target)
delay = min(bump_period, slow_down_period) ;
else
delay = bump_period;
-
+ nv_info(therm, "Scheduling fan update in %d (slow: %d, bump:
%d)\n", delay, slow_down_period, bump_period);
ptimer->alarm(ptimer, delay * 1000 * 1000, &fan->alarm);
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>