Announcement

Collapse
No announcement yet.

SPARC optimizations

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Okay, will add check in pts-core for it. Can you email to michael at phoronix your full dmi_info output? Wondering why your motherboard/chipset aren't being detected.
    Michael Larabel
    http://www.michaellarabel.com/

    Comment


    • #12
      FYI, this is the patch that should fix the detection, which will be in GIt once I am back in the office.

      Code:
      diff -Naur phoronix-test-suite.orig/pts-core/library/pts-functions_system_parsing.php phoronix-test-suite/pts-core/library/pts-functions_system_parsing.php
      --- phoronix-test-suite.orig/pts-core/library/pts-functions_system_parsing.php    2009-09-16 13:17:22.000000000 -0500
      +++ phoronix-test-suite/pts-core/library/pts-functions_system_parsing.php    2009-09-16 13:44:46.000000000 -0500
      @@ -648,7 +648,16 @@
           // Read Sun's Device Driver Utility for OpenSolaris
           $values = array();
       
      -    if(is_executable(($dmi_info = "/usr/ddu/bin/dmi_info")) || is_executable(($dmi_info = "/usr/ddu/bin/i386/dmi_info")) || is_executable(($dmi_info = "/usr/ddu/bin/sparc/dmi_info")))
      +    if(in_array(phodevi::read_property("system", "kernel-architecture"), array("i686", "x86_64")))
      +    {
      +        $dmi_info = "/usr/ddu/bin/i386/dmi_info";
      +    }
      +    else
      +    {
      +        $dmi_info = "/usr/ddu/bin/sparc/dmi_info";
      +    }
      +
      +    if(is_executable($dmi_info) || is_executable(($dmi_info = "/usr/ddu/bin/dmi_info")))
           {
               $info = shell_exec($dmi_info . " " . $args . " 2>&1");
               $lines = explode("\n", $info);
      Michael Larabel
      http://www.michaellarabel.com/

      Comment


      • #13
        I have mailed the dmi_info output to you. It doesn't contain any information about the motherboard, since there probably aren't a whole lot to choose from for these CPUs :P

        Comment


        • #14
          SUN T5240 though could be extracted Thanks.
          Michael Larabel
          http://www.michaellarabel.com/

          Comment


          • #15
            All of the SPARC changes should now be in Git.
            Michael Larabel
            http://www.michaellarabel.com/

            Comment

            Working...
            X