Ré : Ré : How to set debug parameters to get the information I want?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



---- Le sam., 02 déc. 2023 18:45:29 -0500 Paul Dufresne  a écrit ----
 > Now need to work on removing also the: 
 > [  339.029792] nouveau 0000:01:00.0: therm: FAN target request: 31% 
 > [  339.029805] nouveau 0000:01:00.0: therm: FAN target: 31 
 > [  339.029816] nouveau 0000:01:00.0: therm: FAN update: 31 
 
It seems I managed to fix that too.

Sorry for not using git... I'll probably ask some info about that in an other thread.

paul@albukerk:~/linux/linux-6.7-rc3$ diff -u drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c.orig drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c.orig	2023-12-02 19:14:05.222432618 -0500
+++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c	2023-12-02 19:16:21.186420606 -0500
@@ -155,7 +155,7 @@
 	spin_unlock_irqrestore(&therm->lock, flags);
 
 	if (duty >= 0) {
-		nvkm_debug(subdev, "FAN target request: %d%%\n", duty);
+		nvkm_trace(subdev, "FAN target request: %d%%\n", duty);
 		nvkm_therm_fan_set(therm, immd, duty);
 	}
 }
paul@albukerk:~/linux/linux-6.7-rc

paul@albukerk:~/linux/linux-6.7-rc3$ diff -u drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c.orig drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c.orig	2023-12-02 19:14:11.070432113 -0500
+++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c	2023-12-02 19:15:43.918423954 -0500
@@ -45,7 +45,7 @@
 	target = max_t(u8, target, fan->bios.min_duty);
 	target = min_t(u8, target, fan->bios.max_duty);
 	if (fan->percent != target) {
-		nvkm_debug(subdev, "FAN target: %d\n", target);
+		nvkm_trace(subdev, "FAN target: %d\n", target);
 		fan->percent = target;
 	}
 
@@ -70,7 +70,7 @@
 		duty = target;
 	}
 
-	nvkm_debug(subdev, "FAN update: %d\n", duty);
+	nvkm_trace(subdev, "FAN update: %d\n", duty);
 	ret = fan->set(therm, duty);
 	if (ret) {
 		spin_unlock_irqrestore(&fan->lock, flags);
paul@albukerk:~/linux/linux-6.7-rc3$ 

With that, nouveau.debug=debug seems to not grow "for no reason" anymore!
Tested only with no monitor connected to the nvidia card yet. (connected to i915 VGA motherboard)...
but previously was having the FAN messages.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux