projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 10/28/14 19:38

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 10/28/14 19:38
Michael Larabel  
pts-core: Add 3840 x 2160... 
Sat 10/25/14 20:09
Michael Larabel  
phoromatic: Implement... 
Sat 10/25/14 20:02
Michael Larabel  
phoromatic: Improve... 
Fri 10/24/14 15:59
Michael Larabel  
phoromatic: 4 username... 
Fri 10/24/14 12:06
Michael Larabel  
phoromatic: Add today's... 
Fri 10/24/14 11:52
Michael Larabel  
phoromatic: Add a... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index e0afb88
..0b37a77 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -1,+1,@@
 
PHORONIX TEST SUITE CHANGE-LOG

+Phoronix Test Suite (Git)
+
+- 
phodeviAdd support for Nouveau PSTATE parsing on Linux 3.13+
+
 
Phoronix Test Suite 4.8.4-Sokndal
 7 November 2013

diff 
--git a/pts-core/objects/phodevi/components/phodevi_gpu.php b/pts-core/objects/phodevi/components/phodevi_gpu.php
index 92d8494
..92af7f9 100644
--- a/pts-core/objects/phodevi/components/phodevi_gpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_gpu.php
@@ -833,+833,35 @@ class phodevi_gpu extends phodevi_device_interface
                             
}
                         }
                     }
+                    else if(
is_file('/sys/class/drm/card0/device/pstate'))
+                    {
+                        
// pstate is present with Linux 3.13 as the new performance states on Fermi/Kepler
+                        $performance_state pts_file_io::file_get_contents('/sys/class/drm/card0/device/pstate');
+                        
$performance_level substr($performance_state0strpos($performance_state' *'));
+                        
$performance_level substr($performance_levelstrrpos($performance_level': ') + 2);
+                        
$performance_level explode(' '$performance_level);
+
+                        
$core_string array_search('core'$performance_level);
+                        if(
$core_string !== false && isset($performance_level[($core_string 1)]))
+                        {
+                            
$core_string str_ireplace('MHz'null$performance_level[($core_string 1)]);
+                            if(
is_numeric($core_string))
+                            {
+                                
$core_freq $core_string;
+                            }
+                        }
+
+                        
$mem_string array_search('memory'$performance_level);
+                        if(
$mem_string !== false && isset($performance_level[($mem_string 1)]))
+                        {
+                            
$mem_string str_ireplace('MHz'null$performance_level[($mem_string 1)]);
+                            if(
is_numeric($mem_string))
+                            {
+                                
$mem_freq $mem_string;
+                            }
+                        }
+
+                    }
                     break;
                 case 
'radeon':
                     if(isset(
phodevi::$vfs->radeon_pm_info))
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media