src/occ_405/wof/wof.c
/**
 * print_oppb
 *
 * Description: For internal use only. Traces the contents of G_oppb that
 *              are used in this file.
 */
print_oppb
Description: For internal use only. Traces the contents of G_oppb that
are used in this file.
print_oppb Description : For internal use only . Traces the contents of G_oppb that are used in this file .
void print_oppb( void )
{
    CMDH_TRAC_INFO("Printing Contents of OCCPstateParmBlock");
    CMDH_TRAC_INFO("");
    int i;
    for(i = 0; i < VPD_PV_POINTS; i++)
    {
        CMDH_TRAC_INFO("operating_points[%d] = %d",
                       i,
                       G_oppb.operating_points[i] );
    }
    CMDH_TRAC_INFO("G_oppb.IddqTable");
    CMDH_TRAC_INFO("");
    CMDH_TRAC_INFO("iddq_version = %x", G_oppb.iddq.iddq_version);
    CMDH_TRAC_INFO("good_quads_per_sort = %d", G_oppb.iddq.good_quads_per_sort);
    CMDH_TRAC_INFO("good_normal_cores_per_sort = %d",
           G_oppb.iddq.good_normal_cores_per_sort);
    CMDH_TRAC_INFO("good_caches_per_sort = %d", G_oppb.iddq.good_caches_per_sort);
    for( i = 0; i < MAXIMUM_QUADS; i++)
    {
        CMDH_TRAC_INFO("good_normal_cores[%d] = %d",
                        i,
                        G_oppb.iddq.good_normal_cores[i] );
    }
    for( i = 0; i < MAXIMUM_QUADS; i++)
    {
        CMDH_TRAC_INFO("good_caches[%d] = %d",
                        i,
                        G_oppb.iddq.good_caches[i] );
    }
    CMDH_TRAC_INFO("rdp_to_tdp_scale_factor = %d", G_oppb.iddq.rdp_to_tdp_scale_factor);
    CMDH_TRAC_INFO("wof_iddq_margin_factor = %d", G_oppb.iddq.wof_iddq_margin_factor);
    CMDH_TRAC_INFO("vdd_temp_scale_factor = %d",
            G_oppb.iddq.vdd_temperature_scale_factor);
    CMDH_TRAC_INFO("vdn_temp_scale_factor = %d",
            G_oppb.iddq.vdn_temperature_scale_factor);
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("ivdd_all_good_cores_on_caches_on[%d] = %d",
                        i,
                        G_oppb.iddq.ivdd_all_good_cores_on_caches_on[i]);
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("ivdd_all_cores_off_caches_off[%d] = %d",
                        i,
                        G_oppb.iddq.ivdd_all_cores_off_caches_off[i]);
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("ivdd_all_good_cores_off_good_caches_on[%d] = %d",
                        i,
                        G_oppb.iddq.ivdd_all_good_cores_off_good_caches_on[i]);
    }
    int j;
    for( i = 0; i < MAXIMUM_QUADS; i++ )
    {
        for( j = 0; j < IDDQ_MEASUREMENTS; j++)
        {
            CMDH_TRAC_INFO("ivdd_quad_good_cores_on_good_caches_on[%d][%d] = %d",
            i,
            j,
            G_oppb.iddq.ivdd_quad_good_cores_on_good_caches_on[i][j]);
        }
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("ivdn[%d] = %d",
                        i,
                        G_oppb.iddq.ivdn[i]);
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("avgtemp_all_good_cores_on[%d] = %d",
                        i,
                        G_oppb.iddq.avgtemp_all_good_cores_on[i]);
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("avgtemp_all_cores_off_caches_off[%d] = %d",
                        i,
                        G_oppb.iddq.avgtemp_all_cores_off_caches_off[i]);
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("avgtemp_all_good_cores_off[%d] = %d",
                        i,
                        G_oppb.iddq.avgtemp_all_good_cores_off[i] );
    }
    for( i = 0; i < MAXIMUM_QUADS; i++ )
    {
        for( j = 0; j < IDDQ_MEASUREMENTS; j++)
        {
            CMDH_TRAC_INFO("avgtemp_quad_good_cores_on[%d][%d] = %d",
            i,
            j,
            G_oppb.iddq.avgtemp_quad_good_cores_on[i][j]);
        }
    }
    for( i = 0; i < IDDQ_MEASUREMENTS; i++)
    {
        CMDH_TRAC_INFO("avgtemp_vdn[%d] = %d",
                        i,
                        G_oppb.iddq.avgtemp_vdn[i]);
    }
    CMDH_TRAC_INFO("");
    CMDH_TRAC_INFO("freq_min_khz = %d", G_oppb.frequency_min_khz);
    CMDH_TRAC_INFO("freq_max_khz = %d", G_oppb.frequency_max_khz);
    CMDH_TRAC_INFO("freq_step_khz = %d", G_oppb.frequency_step_khz);
    CMDH_TRAC_INFO("pstate_min = %d", G_oppb.pstate_min);
    CMDH_TRAC_INFO("nest_freq_mhz = %d", G_oppb.nest_frequency_mhz);
    CMDH_TRAC_INFO("nest_leakage_percent = %d", G_oppb.nest_leakage_percent);
    CMDH_TRAC_INFO("ceff_tdp_vdn = %d", G_oppb.ceff_tdp_vdn);
    CMDH_TRAC_INFO("lac_tdp_vdd_turbo_10ma = %d", G_oppb.lac_tdp_vdd_turbo_10ma);
    CMDH_TRAC_INFO("lac_tdp_vdd_nominal_10ma = %d", G_oppb.lac_tdp_vdd_nominal_10ma);
    CMDH_TRAC_INFO("vdd_sysparm.loadline = %d", G_oppb.vdd_sysparm.loadline_uohm);
    CMDH_TRAC_INFO("vdd_sysparm.distloss = %d", G_oppb.vdd_sysparm.distloss_uohm);
    CMDH_TRAC_INFO("vdn_sysparm.loadline = %d", G_oppb.vdn_sysparm.loadline_uohm);
    CMDH_TRAC_INFO("vdn_sysparm.distloss = %d", G_oppb.vdn_sysparm.distloss_uohm);
    CMDH_TRAC_INFO("End OCCPstateParmBlock");
}
void print_oppb ( void ) { CMDH_TRAC_INFO ( " " ) ; CMDH_TRAC_INFO ( " " ) ; int i ; for ( i = 0 ; i < VPD_PV_POINTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . operating_points [ i ] ) ; } CMDH_TRAC_INFO ( " " ) ; CMDH_TRAC_INFO ( " " ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . iddq_version ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . good_quads_per_sort ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . good_normal_cores_per_sort ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . good_caches_per_sort ) ; for ( i = 0 ; i < MAXIMUM_QUADS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . good_normal_cores [ i ] ) ; } for ( i = 0 ; i < MAXIMUM_QUADS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . good_caches [ i ] ) ; } CMDH_TRAC_INFO ( " " , G_oppb . iddq . rdp_to_tdp_scale_factor ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . wof_iddq_margin_factor ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . vdd_temperature_scale_factor ) ; CMDH_TRAC_INFO ( " " , G_oppb . iddq . vdn_temperature_scale_factor ) ; for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . ivdd_all_good_cores_on_caches_on [ i ] ) ; } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . ivdd_all_cores_off_caches_off [ i ] ) ; } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . ivdd_all_good_cores_off_good_caches_on [ i ] ) ; } int j ; for ( i = 0 ; i < MAXIMUM_QUADS ; i ++ ) { for ( j = 0 ; j < IDDQ_MEASUREMENTS ; j ++ ) { CMDH_TRAC_INFO ( " " , i , j , G_oppb . iddq . ivdd_quad_good_cores_on_good_caches_on [ i ] [ j ] ) ; } } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . ivdn [ i ] ) ; } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . avgtemp_all_good_cores_on [ i ] ) ; } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . avgtemp_all_cores_off_caches_off [ i ] ) ; } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . avgtemp_all_good_cores_off [ i ] ) ; } for ( i = 0 ; i < MAXIMUM_QUADS ; i ++ ) { for ( j = 0 ; j < IDDQ_MEASUREMENTS ; j ++ ) { CMDH_TRAC_INFO ( " " , i , j , G_oppb . iddq . avgtemp_quad_good_cores_on [ i ] [ j ] ) ; } } for ( i = 0 ; i < IDDQ_MEASUREMENTS ; i ++ ) { CMDH_TRAC_INFO ( " " , i , G_oppb . iddq . avgtemp_vdn [ i ] ) ; } CMDH_TRAC_INFO ( " " ) ; CMDH_TRAC_INFO ( " " , G_oppb . frequency_min_khz ) ; CMDH_TRAC_INFO ( " " , G_oppb . frequency_max_khz ) ; CMDH_TRAC_INFO ( " " , G_oppb . frequency_step_khz ) ; CMDH_TRAC_INFO ( " " , G_oppb . pstate_min ) ; CMDH_TRAC_INFO ( " " , G_oppb . nest_frequency_mhz ) ; CMDH_TRAC_INFO ( " " , G_oppb . nest_leakage_percent ) ; CMDH_TRAC_INFO ( " " , G_oppb . ceff_tdp_vdn ) ; CMDH_TRAC_INFO ( " " , G_oppb . lac_tdp_vdd_turbo_10ma ) ; CMDH_TRAC_INFO ( " " , G_oppb . lac_tdp_vdd_nominal_10ma ) ; CMDH_TRAC_INFO ( " " , G_oppb . vdd_sysparm . loadline_uohm ) ; CMDH_TRAC_INFO ( " " , G_oppb . vdd_sysparm . distloss_uohm ) ; CMDH_TRAC_INFO ( " " , G_oppb . vdn_sysparm . loadline_uohm ) ; CMDH_TRAC_INFO ( " " , G_oppb . vdn_sysparm . distloss_uohm ) ; CMDH_TRAC_INFO ( " " ) ; }
print_oppb
 Description: For internal use only.
print_oppb Description : For internal use only .