NINTENDO CONFIDENTIAL PROPRIETARY

SOFTWARE RELEASE REQUEST

Date: November 7, 2008


APPLICATION FOR RELEASE
-----------------------

   This is a development (Alpha) release of IOS firmware that contains the
   following feature enhancements: 
      - SDHC support
      - ES API to change IOS priority
      - DI optimization for hash checking
      - IPC buffer increase

   Each of the changes is described in more details in section B below.
   Please note that this software release is of Alpha quality and should 
   only be used internally within Nintendo for testing and evaluation
   purpose.

   This release is based on the top-of-trunk of our CVS source tree and 
   includes other important fixes/features from previous versions:
      - ios_release_080909195524
        - Enable PPC to own 7-seg LED gpio bits (bit 19-24) after IOS takes
          PPC out of reset.
      - ios_release_080711142850_branch_081010115115
        - Fix for common key2 overwriting backup key.

CHANGES
-------
   A) SDHC Support

   1. Background of the Change Request

      1.1. Purpose of the Change
           To support the usage of SDHC memory cards in upcoming Wii Menu 4.0. 
   
      1.2. Requestor of the Change 
           Nintendo

      1.3. Target of the Change
           Wii Menu 4.0 to be released in March 2009.


   2. Details of the Change
      - See the word document "IOS Changes for Wii Menu 4.0" for more info.

      2.1. List modules, code, or entities were modified for the change 

           In addition to the changes of the SD state machine in SD RM, both 
           PPC and IOP shim layers have been modified.

           - PPC shim layer (tag SDHC_DEV_BRANCH)
             - SDK/include/private/{sdi.h, sd_api.h}
             - SDK/build/libraries/sdi/src/sdi_api.c
               - Updated all read/write and get card size APIs; removed 
                 obsolete APIs 

           - IOP (tag ios_release_081106165854)
             - ng/sw/rvl/include/{sdi.h, sd_api.h}
             - ng/sw/rvl/os/sdi/sdi_mgr.c (SD RM)
               - Update state machine to match Fig 4.2 (page 20) of SD 
                 Physical Layer Spec Version 2.00.
             - ng/sw/rvl/lib/sdi/sdi_api.c (shim layer)
               - Updated all read/write and get card size APIs; removed 
                 obsolete APIs 

      2.2. List modules, code, or entities that will be affected by the change 
   
           Since this change affects existing APIs, all applications that
           use previous SD library will need to be modified and recompiled.
           The meaning of the arguments used in the data transfer and card
           size APIs has been changed from number of bytes to number of 
           blocks (where one block = 512 bytes).

           Some of the modules that require changes are:
             - eSOL FA library and tests
             - Directed SD tests (on IOP and PPC) 
             - abuse
             - ehci support for printing debug messages to SD card

   3. Testing Procedure

      3.1. List tests that were performed to validate this change
           
           - White box testing to verify state machine modifications are corect
             by using different card types (SD, SDHC, MMC).
           - Directed tests (on both IOP and PPC)
             - PPC: SDK/build/tests/sdi/src/sdi_test.c
             - IOP: NG/sw/rvl/tests/sdi/sdi_test.c
           - eSOL FA tests (on SDHC_DEV_BRANCH)
           - abuse running with both SD and SDHC cards
           - Performance test
             - PPC: SDK/build/tests/sdi/src/sdi_perf.c

      3.2. List test criteria that were used to determine that testing was 
           successful 
           - eSOL FA tests and directed tests should pass.
           - Run FA and SD tests using cards of different types and sizes
             (SDHC: 4GB, 8GB, 32GB, SD: 16MB, 256MB, 512MB, 1GB, 2GB)
           - abuse should be able to run for at least 4 hours

   4. Caveats and Known Issues

      - Additional testing using different SDHC and SD memory cards is needed.
      - Review of all SD directed tests to make sure that negative and boundary
        condition testing are covered.
      - Additional analysis and measurement of card read/write performance
        is needed.


   B) IOS Priority Change API

   1. Background of the Change Request

      1.1. Purpose of the Change
           To allow PPC to change the priority of some non-critical processes.
   
      1.2. Requestor of the Change 
           Nintendo

      1.3. Target of the Change
           Wii Menu 4.0 to be released in March 2009.


   2. Details of the Change
      - See the word document "Priorities in IOP OS" for more info on the
        API definitions.

      2.1. List modules, code, or entities were modified for the change 

           For this feature, the changes are in IOS Kernel, ES RM, and both 
           PPC and IOP shim layers. In most part, these changes are new code
           and do not affect existing code except for a small portion in the 
           thread creation (IOS_CreateThread) routine. 

           - PPC shim layer (tag SDHC_DEV_BRANCH)
             - SDK/include/private/iostypes.h
               - Added IOS process IDs
             - SDK/include/private/iospriority.h (new)
             - SDK/include/private/es.h
               - Added declaration of new APIs.
             - SDK/include/secure/estypes.h
               - Added new type ESPidPriority.h
             - SDK/build/libraries/es/src/es.c
               - Added two new ES APIs.

           - IOP (tag ios_release_081106165854)
             - ng/sw/rvl/include/iostypes.h
               - Added new type IOSPidPriority.h
             - ng/sw/rvl/os/ios/thread.c (kernel)
               - In IOS_CreateThread(), added code to save the highest priority
                 for a given process to new internal structure.
               - Added two new system calls to support new ES APIs.
             - client/sw/common/include/estypes.h (ES RM)
               - Added new type ESPidPriority.h
             - client/sw/common/os/es/es_mgr.c (ES RM)
             - client/sw/common/os/es/es_utils.c (ES RM)
               - Added code to handle the two new APIs and make IOS system calls
             - client/sw/common/lib/es/{es.c, es.h} (shim layer)
               - Added two new ES APIs.

      2.2. List modules, code, or entities that will be affected by the change 
   
           Since this change does NOT affect existing APIs, only applications
           that want to use the new APIs will need to be relinked with the new
           ES shim layer.

   3. Testing Procedure

      3.1. List tests that were performed to validate this change
           
           - Added new directed ES test on both PPC and IOP.
             PPC (tag SDHC_DEV_BRANCH): 
               - SDK/build/tests/es/src/es_chgpritest.c
             IOP (tag ios_release_081106165854)
               - client/sw/common/lib/es/test/es_chgpritest.c
               - ng/sw/rvl/os/tests/pri.c
           - Updated "abuse" to use new APIs to change IOS priority for DI,
             OHCI0, and OHCI1.

      3.2. List test criteria that were used to determine that testing was 
           successful 
           - New directed tests should pass on both PPC and IOP.
           - abuse should be able to run for at least 4 hours with modified
             IOS priority for DI, OHCI0, and OHCI1.

   4. Caveats and Known Issues

      - Review new directed test to make sure that negative and boundary 
        conditions are coverd.


   C) DI Hash Check Optimization

   1. Background of the Change Request

      1.1. Purpose of the Change
           To reduce the processing overhead that DI RM has incurred on IOP.
   
      1.2. Requestor of the Change 
           Nintendo

      1.3. Target of the Change
           Wii Menu 4.0 to be released in March 2009.


   2. Details of the Change

      2.1. List modules, code, or entities were modified for the change 

           This change only affects IOP components: kernel and DI RM.
           Although the multi-level hash checking algorithm remains the 
           same, its implementation is new due to the restructure of the
           code. 

           - IOP (tag ios_release_081106165854)
             - ng/sw/rvl/os/ios/crypto.c (kernel)
               - Added new system call to perform DI hash check
             - ng/sw/rvl/os/di/dvd_low_rvl.c (DI RM)
               - Modified routine doBlockRead() to use new system call
                 to perform hash checking.

      2.2. List modules, code, or entities that will be affected by the change 
   
           Since this change will be executed when hashed encrypted disk is 
           used, all applications will be indirectly affected.

   3. Testing Procedure

      3.1. List tests that were performed to validate this change
           
           - Positive testing is performed by simply running any encrypted
             disc successfully.
             - Run SDK/build/tests/dvd/src/dvdreadtest2.c from an RVT-R 
               single layer disc
             - Run "abuse" from an RVM image
           - Negative testing is performed by running a RVM image with differnt
             corrupted hashes (data subblocks, H0, H1, and H2).
           - Added new test to do low-level read of all physical blocks.
             - Thus far, this test only covers up to 1GB of data.

      3.2. List test criteria that were used to determine that testing was 
           successful 

           - Application run from RVM image or real disc should pass.
           - Negative tests should trigger all the hash check failure 
             conditions: subblock not matching H0, H0 hash not verified, H1
             hash not verified, and H2 hash not verified.

   4. Caveats and Known Issues

      - Additional testing such as negative testing and boundary condition
        testing is needed.


   D) IPC Buffer Increase

   1. Background of the Change Request

      1.1. Purpose of the Change
           To support additional PPC IPC requests and increase IOP async
           requests between threads
   
      1.2. Requestor of the Change 
           Nintendo

      1.3. Target of the Change
           Wii Menu 4.0 to be released in March 2009.


   2. Details of the Change

      2.1. List modules, code, or entities were modified for the change 

           - PPC shim layer (tag SDHC_DEV_BRANCH)
             - SDK/build/libraries/ipc/src/ipcclt.c
               - Increased IPC queue size to match IOP

           - IOP (tag ios_release_081106165854)
             - ng/sw/rvl/os/ios/ipcsrv.c (kernel)
               - Increased IPC queue size and maximum in-flight size
             - ng/sw/rvl/os/ios/resource.c (kernel)
               - Increased maximum value for system wide async calls, max
                 async calls per thread, and max IPC async calls.
               - Added a check to determine if the resource request comes 
                 from IPC thread and use the correct max value for IPC async 
                 calls.

      2.2. List modules, code, or entities that will be affected by the change 
   
           Since this change increases the number of IPC messages supported on 
           PPC and also the number of async calls that IOS can support amongst 
           threads, all PPC applications and IOS RMs are indirectly affected.

   3. Testing Procedure

      3.1. List tests that were performed to validate this change
           
           - Added new directed tests on PPC and IOP:
             - SDK/build/tests/usrb/src/ipctest.c (PPC)
               - Test for async calls against BroadOn OHCI0 (that supports 
                 dummy ioctl)
             - ng/sw/rvl/os/tests/ipcsysmax.c (IOP)
               - Test to check the system-wide limit of ioctl async calls 
             - ng/sw/rvl/os/tests/ipcmax.c (IOP)
               - Test to check the thread limit of ioctl async calls 
           - abuse (with networking) should be run for at least 4 hours

      3.2. List test criteria that were used to determine that testing was 
           successful 

           - All above directed tests should report correct information.
           - No error from "abuse" run.

   4. Caveats and Known Issues

      - Need additional testing to cover boundary condtions.


APPROVALS
---------

   From BroadOn: 
   - Christopher Nguyen


   From Nintendo: 



