drm/amdgpu: add a message to indicate when powerplay is enabled (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jan 2016 17:15:09 +0000 (12:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Jan 2016 15:49:42 +0000 (10:49 -0500)
Makes it clear to the user which power management path is in
use.

v2: make consistent with dpm

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c

index 8f5d5edcf193b67a67f6990824f8ef8260e1afa5..aa67244a77ae38cf69761bc964c5f1d4400874c5 100644 (file)
@@ -64,6 +64,11 @@ static int pp_sw_init(void *handle)
        if (ret == 0)
                ret = hwmgr->hwmgr_func->backend_init(hwmgr);
 
+       if (ret)
+               printk("amdgpu: powerplay initialization failed\n");
+       else
+               printk("amdgpu: powerplay initialized\n");
+
        return ret;
 }
 
This page took 0.027198 seconds and 5 git commands to generate.