]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/radeon/kms/pm: make pm spam debug only
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 7 May 2010 20:58:27 +0000 (16:58 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:53 +0000 (18:21 +1000)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/rs600.c

index 4c5d21bfa2c40e21c7fcc7efc4bc3d8544d42dfe..9a59ba46f078233cf564a33372e09928ca40569a 100644 (file)
@@ -141,13 +141,13 @@ void r100_pm_get_dynpm_state(struct radeon_device *rdev)
        /* only one clock mode per power state */
        rdev->pm.requested_clock_mode_index = 0;
 
-       DRM_INFO("Requested: e: %d m: %d p: %d\n",
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                clock_info[rdev->pm.requested_clock_mode_index].sclk,
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                clock_info[rdev->pm.requested_clock_mode_index].mclk,
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                pcie_lanes);
+       DRM_DEBUG("Requested: e: %d m: %d p: %d\n",
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 clock_info[rdev->pm.requested_clock_mode_index].sclk,
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 clock_info[rdev->pm.requested_clock_mode_index].mclk,
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 pcie_lanes);
 }
 
 void r100_pm_init_profile(struct radeon_device *rdev)
@@ -266,7 +266,7 @@ void r100_pm_misc(struct radeon_device *rdev)
             rdev->pm.power_state[rdev->pm.current_power_state_index].pcie_lanes)) {
                radeon_set_pcie_lanes(rdev,
                                      ps->pcie_lanes);
-               DRM_INFO("Setting: p: %d\n", ps->pcie_lanes);
+               DRM_DEBUG("Setting: p: %d\n", ps->pcie_lanes);
        }
 }
 
index 618d76d366a40aab897d06d450a24de3740e1832..0fef3351660c45e01a9adb6e7a1193ac905de890 100644 (file)
@@ -251,13 +251,13 @@ void r600_pm_get_dynpm_state(struct radeon_device *rdev)
                }
        }
 
-       DRM_INFO("Requested: e: %d m: %d p: %d\n",
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                clock_info[rdev->pm.requested_clock_mode_index].sclk,
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                clock_info[rdev->pm.requested_clock_mode_index].mclk,
-                rdev->pm.power_state[rdev->pm.requested_power_state_index].
-                pcie_lanes);
+       DRM_DEBUG("Requested: e: %d m: %d p: %d\n",
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 clock_info[rdev->pm.requested_clock_mode_index].sclk,
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 clock_info[rdev->pm.requested_clock_mode_index].mclk,
+                 rdev->pm.power_state[rdev->pm.requested_power_state_index].
+                 pcie_lanes);
 }
 
 static int r600_pm_get_type_index(struct radeon_device *rdev,
index 1827317704a262fd8b0515bf73fd2dec7bb810a3..c88edae33deb09d4cb8ac516358ec62ae8a5921f 100644 (file)
@@ -52,9 +52,9 @@ static int radeon_acpi_event(struct notifier_block *nb,
 
        if (strcmp(entry->device_class, ACPI_AC_CLASS) == 0) {
                if (power_supply_is_system_supplied() > 0)
-                       DRM_INFO("pm: AC\n");
+                       DRM_DEBUG("pm: AC\n");
                else
-                       DRM_INFO("pm: DC\n");
+                       DRM_DEBUG("pm: DC\n");
 
                if (rdev->pm.pm_method == PM_METHOD_PROFILE) {
                        if (rdev->pm.profile == PM_PROFILE_AUTO) {
@@ -183,7 +183,7 @@ static void radeon_set_power_state(struct radeon_device *rdev)
                                radeon_set_engine_clock(rdev, sclk);
                                radeon_pm_debug_check_in_vbl(rdev, true);
                                rdev->pm.current_sclk = sclk;
-                               DRM_INFO("Setting: e: %d\n", sclk);
+                               DRM_DEBUG("Setting: e: %d\n", sclk);
                        }
 
                        /* set memory clock */
@@ -192,7 +192,7 @@ static void radeon_set_power_state(struct radeon_device *rdev)
                                radeon_set_memory_clock(rdev, mclk);
                                radeon_pm_debug_check_in_vbl(rdev, true);
                                rdev->pm.current_mclk = mclk;
-                               DRM_INFO("Setting: m: %d\n", mclk);
+                               DRM_DEBUG("Setting: m: %d\n", mclk);
                        }
                        radeon_pm_finish(rdev);
                } else {
@@ -203,7 +203,7 @@ static void radeon_set_power_state(struct radeon_device *rdev)
                                radeon_set_engine_clock(rdev, sclk);
                                radeon_pm_finish(rdev);
                                rdev->pm.current_sclk = sclk;
-                               DRM_INFO("Setting: e: %d\n", sclk);
+                               DRM_DEBUG("Setting: e: %d\n", sclk);
                        }
                        /* set memory clock */
                        if (rdev->asic->set_memory_clock && (mclk != rdev->pm.current_mclk)) {
@@ -212,14 +212,14 @@ static void radeon_set_power_state(struct radeon_device *rdev)
                                radeon_set_memory_clock(rdev, mclk);
                                radeon_pm_finish(rdev);
                                rdev->pm.current_mclk = mclk;
-                               DRM_INFO("Setting: m: %d\n", mclk);
+                               DRM_DEBUG("Setting: m: %d\n", mclk);
                        }
                }
 
                rdev->pm.current_power_state_index = rdev->pm.requested_power_state_index;
                rdev->pm.current_clock_mode_index = rdev->pm.requested_clock_mode_index;
        } else
-               DRM_INFO("pm: GUI not idle!!!\n");
+               DRM_DEBUG("pm: GUI not idle!!!\n");
 }
 
 static void radeon_pm_set_clocks(struct radeon_device *rdev)
@@ -624,7 +624,7 @@ static bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish
        bool in_vbl = radeon_pm_in_vbl(rdev);
 
        if (in_vbl == false)
-               DRM_INFO("not in vbl for pm change %08x at %s\n", stat_crtc,
+               DRM_DEBUG("not in vbl for pm change %08x at %s\n", stat_crtc,
                         finish ? "exit" : "entry");
        return in_vbl;
 }
index e8c68e9c0a1ee8e3771cec96038cadf06a441bca..79887cac5b54ce19da66e1d5ba3e55df8df07527 100644 (file)
@@ -135,7 +135,7 @@ void rs600_pm_misc(struct radeon_device *rdev)
             rdev->pm.power_state[rdev->pm.current_power_state_index].pcie_lanes)) {
                radeon_set_pcie_lanes(rdev,
                                      ps->pcie_lanes);
-               DRM_INFO("Setting: p: %d\n", ps->pcie_lanes);
+               DRM_DEBUG("Setting: p: %d\n", ps->pcie_lanes);
        }
 }