Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm dis...
details: https://anonhg.NetBSD.org/src/rev/af3c2c948b88
branches: trunk
changeset: 341337:af3c2c948b88
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Oct 31 09:14:27 2015 +0000
description:
disable the once-a-second and many-times-a-minute logs about thermals.
these trigger on multiple cards for me and totally spam my logs in the
normal case. one card switches from 41% to 42% and back again quite
regularly.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_base.c | 6 ++++--
sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_fan.c | 8 ++++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (66 lines):
diff -r 0a035dc6030e -r af3c2c948b88 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_base.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_base.c Sat Oct 31 03:42:00 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_base.c Sat Oct 31 09:14:27 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_subdev_therm_base.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $ */
+/* $NetBSD: nouveau_subdev_therm_base.c,v 1.2 2015/10/31 09:14:27 mrg Exp $ */
/*
* Copyright 2012 The Nouveau community
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_base.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_base.c,v 1.2 2015/10/31 09:14:27 mrg Exp $");
#include <core/object.h>
#include <core/device.h>
@@ -141,7 +141,9 @@
spin_unlock_irqrestore(&priv->lock, flags);
if (duty >= 0) {
+#if 0 /* XXXMRG one log per second is a little excessive */
nv_debug(therm, "FAN target request: %d%%\n", duty);
+#endif
nouveau_therm_fan_set(therm, immd, duty);
}
}
diff -r 0a035dc6030e -r af3c2c948b88 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_fan.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_fan.c Sat Oct 31 03:42:00 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_fan.c Sat Oct 31 09:14:27 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_subdev_therm_fan.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $ */
+/* $NetBSD: nouveau_subdev_therm_fan.c,v 1.2 2015/10/31 09:14:27 mrg Exp $ */
/*
* Copyright 2012 Red Hat Inc.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_fan.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_fan.c,v 1.2 2015/10/31 09:14:27 mrg Exp $");
#include "priv.h"
@@ -53,7 +53,9 @@
target = max_t(u8, target, fan->bios.min_duty);
target = min_t(u8, target, fan->bios.max_duty);
if (fan->percent != target) {
+#if 0 /* XXXMRG one log per second is a little excessive */
nv_debug(therm, "FAN target: %d\n", target);
+#endif
fan->percent = target;
}
@@ -78,7 +80,9 @@
duty = target;
}
+#if 0 /* XXXMRG one log per second is a little excessive */
nv_debug(therm, "FAN update: %d\n", duty);
+#endif
ret = fan->set(therm, duty);
if (ret) {
spin_unlock_irqrestore(&fan->lock, flags);
Home |
Main Index |
Thread Index |
Old Index