From sacadmin Wed May 30 19:58:58 2007
Received: from sac.sfbay.sun.com (localhost [127.0.0.1])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l4V2wwKv013693;
	Wed, 30 May 2007 19:58:58 -0700 (PDT)
Received: (from eh146360@localhost)
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8/Submit) id l4V2wwU1013689;
	Wed, 30 May 2007 19:58:58 -0700 (PDT)
Date: Wed, 30 May 2007 19:58:58 -0700 (PDT)
From: En-Hua Cecilia Hu <eh146360@sac.sfbay.sun.com>
Message-Id: <200705310258.l4V2wwU1013689@sac.sfbay.sun.com>
To: PSARC-record@sac.sfbay.sun.com
Subject: Amaranth (VVV2 update) [PSARC/2007/320 FastTrack timeout 06/06/2007]
Status: RO
Content-Length: 520


Template Version: @(#)sac_nextcase 1.61 05/24/07 SMI
This information is Copyright 2007 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 Amaranth (VVV2 update)
    1.2. Name of Document Author/Supplier:
	 Author:  Ye Li
    1.3  Date of This Document:
	30 May, 2007
4. Technical Description
    See the case directory for more detail

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		HCTS
    6.5. ARC review type: FastTrack

From sacadmin Wed May 30 20:11:02 2007
Received: from sineb-mail-2.sun.com ([192.18.19.7])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l4V3B12q014675
	for <psarc@sac.sfbay.sun.com>; Wed, 30 May 2007 20:11:02 -0700 (PDT)
Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged))
	by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l4V39Z8s009798
	for <psarc@sac.sfbay.sun.com>; Thu, 31 May 2007 03:09:36 GMT
Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com
 (Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
 id <0JIV00H01Y0MP900@mail-apac.sun.com>
 (original mail from Cecilia.Hu@Sun.COM) for psarc@sac.sfbay.sun.com; Thu,
 31 May 2007 11:09:35 +0800 (SGT)
Received: from [129.158.218.120] by mail-apac.sun.com
 (Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
 with ESMTPSA id <0JIV00604Y3YRANA@mail-apac.sun.com> for
 psarc@sac.sfbay.sun.com; Thu, 31 May 2007 11:09:35 +0800 (SGT)
Date: Thu, 31 May 2007 11:09:39 +0800
From: Cecilia Hu <Cecilia.Hu@Sun.COM>
Subject: PSARC 2007/320 Amaranth (VVV2 update)
Sender: Cecilia.Hu@Sun.COM
To: psarc@sac.sfbay.sun.com
Cc: Li Ye <Ye.Li@Sun.COM>, Richard Wu <Richard.Wu@Sun.COM>,
        Frank Che <Frank.Che@Sun.COM>, "Tony.Hu@Sun.COM" <Tony.Hu@Sun.COM>
Reply-to: Cecilia.Hu@Sun.COM
Message-id: <465E3C73.4000306@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
User-Agent: Thunderbird 1.5.0.8 (X11/20061204)
Status: RO
Content-Length: 9084

I'm sponsoring this fast-track for Li Ye and VVV2 i-team.  The timer
is set to 06/06/2007, and the requested release binding is micro/patch.

This project proposes to enhance the device information collecting
method of VVV2(Sun Device Detection Tool), and to provides two new
features.


-Cecilia



1. Introduction
    1.1. Project/Component Working Name:
	    Amaranth (VVV2 update)

    1.2. Name of Document Author/Supplier:
	    Author: Li Ye

    1.3. Date of This Document:
   	    28 May, 2007

2. Project Summary

    This project, which is an enhancement of VVV2 (PSARC/2006/362) [1],
    improves the PCI device information collecting method, and provides
    an add-on module to submit users' Solaris system to the HCL (Hardware
    Compatibility List) (PSARC/2004/552) [2].

4. Technical Description:
    4.1 Background

    VVV2 Work Flow
    --------------
      The existing VVV2 (Sun Device Detection Tool) is a device driver
      detection tool which helps customers and sales people to make sure
      their component drivers are available on Solaris OS before
      adoption.

      VVV2 is a cross-platform utility, the working process is described
      in PSARC/2005/362 [1].
	
      Firstly, it gets the device information by running specific system
      commands respectively on Solaris, Linux and Windows OS.

    -----------------------------------------------------------------
    | OS      |   System Command                                    |
    -----------------------------------------------------------------
    | Solaris | prtconf -pv                                         |
    | Linux   | lspci -vv -n                                        |
    | Windows | reg query hklm\system\currentcontrolset\enum\pci /s |
    -----------------------------------------------------------------
                           (table-1)

      Then, VVV2 parses the device information collected, by comparing
      them with a driver database, so as to determine whether the
      component has a Solaris driver (bundled or third-party driver).

      Finally, the tool creates and displays a report to users.

    Limitations
    -----------
      VVV2's device information collecting method depends on the
      availability and robustness of above system commands, and their
      output message format.  It has the limitations:

      Firstly, it only runs on a part of Linux distributions, since
      lspci is not the default command for all distributions.
      Furthermore, if a command is broken (e.g. the reg.exe program
      on some Windows system is broken), VVV2 would fail on the system.

      Secondly, VVV2 parses the output message of system commands to
      extract device information such as vendor id, device id, etc..
      Any change of the output message format will prevent the tool from
      run successfully.  That is why the only Windows edition supported
      by VVV2 is Windows XP -- the output message format is different on
      different Windows editions, and each edition requires a separated
      parsing method.

    4.2 Proposal

    To solve the limitations and to provide more features, Amaranth
    provides some modification and introduces the new features.
	
    Data Collection Enhancement
    ---------------------------
      Amaranth enhances the method of collecting device information.

      Besides VVV2's collection method, Amaranth imports following
      interfaces to collect device information:

    -------------------------------------------------------------------
    | Os Type | Interface     | Solution                              |
    -------------------------------------------------------------------
    | Solaris | libdevinfo    | Looking up PCI nodes in prom tree and |
    |         |               | reading device data from the nodes    |
    -------------------------------------------------------------------
    | Linux   | /proc/bus/pci | Scanning the file of /proc/bus/pci    |
    |         |               | and reading device data from it       |
    -------------------------------------------------------------------
    | Windows | Win32 API     |  Reading device data from registry    |
    |         |               |  through Win32 API                    |
    -------------------------------------------------------------------
                             (table-2)

      Amaranth is a Java application, it builds a JNI binding for each
      of the interfaces to collect device information.

      The enhancement frees Amaranth from dependence of system commands.

      For Solaris OS, libdevinfo has a commitment level of evolving
      (PSARC/1997/127)[3].  It should be more stable than prtconf which
      was defined unstable interface in PSARC/2001/375 [4].

      For Linux OS, Amaranth can run on those distributions which don't
      install lspci.

      For Windows OS, Amaranth runs on Windows 2000, Windows 2003,
      Windows XP, and Windows Vista OS, for the format of device
      information collected from those editions through Win32 API is
      identical.  Furthermore, Amaranth also runs on Windows systems
      with a broken reg.exe program. 	

      Therefore, the scope of Amaranth is much wider than VVV2's.
	

    New Features
    ------------
    1)Feeding device information into Amaranth from plain text files	

      Amaranth allows device information to be fed into it from plain
      text files that contain the output message of system commands
      listed in table-1. The received device information is scanned and
      parsed by Amaranth to extract device data (vendor id, device id,
      and so on).

      This feature enables remote machines, which don't run Amaranth, to
      use Operating System commands (prtconf, lspci, and reg query) to
      gather device information. And then the collected information is
      fed to Amaranth on any OS to generate the report.
	
    2)HCL submission module

      HCL submission module enables customers submit their Solaris
      system information to HCL "Report to Work" list. The similar
      function is provided by Sun BigAdmin web page,
      http://www.sun.com/bigadmin/hcl/submittal/submit.jsp.	

      This module is available on Solaris 10 and Solaris Express,
      Developer Edition updates. The feature just benefits Solaris users
      who have Internet access.

      HCL submission module provides a graphic UI to receive users'
      manual-input information that is contact information (name,
      company and email address), and a few of system information (such
      as non-standard BIOS settings, mother board revision level,
      installed patches, and so on).

      The module automatically detects some system information including
      manufacturer, model of computer, OS Revision, CPU Type, CPU
      number, BIOS maker etc.. The auto detection is implemented by
      scanning /dev/smbios and CPUID 0x80000002 ~ 0x80000004 function.

      Finally, the module sends all of auto-detected information,
      manual-input information and the output message of prtconf and
      prtdiag to Sun. 	

      After the information is audited by HCL team members, user's
      system will be listed into HCL "Report to Work" list.

      The module automatically detects most mandatory data which
      requires users extra efforts. It not only prevents submitted data
      from typo, but also facilitates the submission process. At the
      same time, combining HCL submission module with Amaranth could
      improve the extensibility of HCL list.	

    4.5 Interfaces

      Newly imported interfaces:

    -------------------------------------------------------------------
    | Os Type | Interface     | Purpose                               |
    -------------------------------------------------------------------
    | Solaris | libdevinfo    | Collecting Device Information         |
    |         |---------------|---------------------------------------|
    |         | /dev/smbios   | Detecting System and BIOS Information |
    |         | CPUID         | Detecting CPU Type                    |
    -------------------------------------------------------------------
    | Linux   | /proc/bus/pci | Collecting Device Information         |
    -------------------------------------------------------------------
    | Windows | Win32 API     | Collecting Device Information         |
    -------------------------------------------------------------------

    4.12 Dependencies
  	
      Java Platform, Standard Edition (J2SE) Runtime Environment
      (JRE) 1.4 or later.


6. Resources and Schedule:

    6.4 Steering Committee requested information

	6.4.1. Consolidation C-team Name:
		HCTS Consolidation

    6.5 ARC review type: FastTrack


A. Reference

   [1] PSARC/2006/362: VVV2

   [2] PSARC/2004/552: HCTS 2.4

   [3] PSARC/1997/127: libdevinfo reimplementation

   [4] PSARC/2001/375: Improvements to prtconf


-- 

Cecilia.Hu@Sun.COM
Solaris x86 Engineering, Sun Microsystems
+86-10-82618200 ext. 82947 / 62673947



From sacadmin Wed Jun  6 19:53:58 2007
Received: from sineb-mail-2.sun.com ([192.18.19.7])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l572rvX2002299
	for <psarc@sac.sfbay.sun.com>; Wed, 6 Jun 2007 19:53:58 -0700 (PDT)
Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged))
	by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l572qQYY005355
	for <psarc@sac.sfbay.sun.com>; Thu, 7 Jun 2007 02:52:26 GMT
Received: from sun.com ([129.158.123.14])
 by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr  3
 2006)) with ESMTP id <0JJ8003F3VZE1UKR@mail-apac.sun.com> for
 psarc@sac.sfbay.sun.com; Thu, 07 Jun 2007 10:52:26 +0800 (SGT)
Received: from [192.18.19.175] (Forwarded-For: [129.158.71.40])
 by sedge2-mail1.singapore.sun.com (mshttpd); Thu, 07 Jun 2007 10:52:26 +0800
Date: Thu, 07 Jun 2007 10:52:26 +0800
From: En-Hua Cecilia Hu <Cecilia.Hu@Sun.COM>
Subject: Re: PSARC 2007/320 Amaranth (VVV2 update)
In-reply-to: <465E3C73.4000306@sun.com>
To: Cecilia.Hu@Sun.COM
Cc: psarc@sac.sfbay.sun.com, Li Ye <Ye.Li@Sun.COM>,
        Richard Wu <Richard.Wu@Sun.COM>, Frank Che <Frank.Che@Sun.COM>,
        "Tony.Hu@Sun.COM" <Tony.Hu@Sun.COM>
Message-id: <fcc6c3b5402a.4667e36a@sun.com>
MIME-version: 1.0
X-Mailer: Sun Java(tm) System Messenger Express 6.2-6.01 (built Apr  3 2006)
Content-type: text/plain; charset=us-ascii
Content-language: en
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-Accept-Language: en
Priority: normal
References: <465E3C73.4000306@sun.com>
Status: RO
Content-Length: 65

This fasttrack was approved at today's PSARC meeting.

-Cecilia


