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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Thu 11/27/14 23:31

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Thu 11/27/14 23:31
Michael Larabel  
phoromatic: Allow IP/MAC... 
Thu 11/27/14 22:42
Michael Larabel  
 
Thu 11/27/14 22:24
Michael Larabel  
phoromatic: Refactor... 
Thu 11/27/14 18:51
Michael Larabel  
phoromatic: Add... 
Thu 11/27/14 18:05
Michael Larabel  
phoromatic: Allow... 
Thu 11/27/14 17:41
Michael Larabel  
phoromatic: Track elapsed... 
 
> --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