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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 818965e
..b6d3490 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -6,+6,@@ Phoronix Test Suite (Git)
 - 
pts-coreSet SKIP_TEST_SUPPORT_CHECKS=1 environment variable for debugging purposes to run tests on unsupported platforms
 
pts_GraphOnly render as much room for pts_OverViewGraph as there are for what will be rendered (bar graph values)
 - 
phodeviEnsure DVD drives don't get reported on BSD operating systems when requesting disk drives
+- phodevi: Improve graphics processor detection on Solaris 11 11/11 for non-NVIDIA GPUs
 - system_monitor: Add support for handling i915_energy monitor reading in microJoules for each test run
 - system_monitor: Place timer support for individual test runs within the module

diff --git a/pts-core/objects/phodevi/components/phodevi_gpu.php b/pts-core/objects/phodevi/components/phodevi_gpu.php
index 4a69266..bcf0d8c 100644
--- a/pts-core/objects/phodevi/components/phodevi_gpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_gpu.php
@@ -964,17 +964,38 @@ class phodevi_gpu extends phodevi_device_interface
                 $info .= ' 
SLI';
             }
         }
-
-        if(phodevi::is_solaris())
+        else if(phodevi::is_solaris())
         {
             if(($cut = strpos($info, '
DRI ')) !== false)
             {
                 $info = substr($info, ($cut + 4));
             }
+
             if(($cut = strpos($info, ' 
Chipset')) !== false)
             {
                 $info = substr($info, 0, $cut);
             }
+
+            if($info == false && isset(phodevi::$vfs->xorg_log))
+            {
+                $xorg_log = phodevi::$vfs->xorg_log;
+                if(($x = strpos($xorg_log, '
(0): Chipset')) !== false)
+                {
+                    $xorg_log = substr($xorg_log, ($x + 14));
+                    $xorg_log = str_replace(array('
(R)', '"'), null, substr($xorg_log, 0, strpos($xorg_log, PHP_EOL)));
+
+                    if((
$c = strpos($xorg_log, '[')) || ($c = strpos($xorg_log, '(')))
+                    {
+                        
$xorg_log = substr($xorg_log, 0, $c);
+                    }
+
+                    if(phodevi::is_product_string(
$xorg_log))
+                    {
+                        
$info = $xorg_log;
+                    }
+                }
+
+            }
         }
         else if(phodevi::is_bsd())
      
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media