gpu: nvgpu: Add support for new output type in VFE table

Changes:
1. Added a new type: CTRL_PERF_VFE_EQU_OUTPUT_TYPE_THRESHOLD
   This parameter was added in VFE table(under index 36) of 4F VBIOS to 
   convert VFE floating point output into threshold percentage value for 
   Fmon threshold programming.
   
Bug 2500899

Change-Id: Ife72e9a7b644c289702b0bcc89a1c9dce9d60386
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2011177
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2019-02-04 16:34:30 +05:30
committed by mobile promotions
parent 4e17690975
commit 0f93cd23eb
2 changed files with 5 additions and 0 deletions

View File

@@ -274,6 +274,10 @@ static int devinit_get_vfe_equ_table(struct gk20a *g,
equ_data.super.output_type =
(u8)CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VIN_CODE;
break;
case VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_THRESHOLD:
equ_data.super.output_type =
(u8)VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_THRESHOLD;
break;
default:
nvgpu_err(g, "unrecognized output id @vfeequ index %d",

View File

@@ -519,6 +519,7 @@ struct vbios_vfe_3x_equ_entry_struct {
#define VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_POWER_MW 0x9U
#define VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_PWR_OVER_UTIL_SLOPE 0xAU
#define VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_VIN_CODE 0xBU
#define VBIOS_VFE_3X_EQU_ENTRY_PAR3_OUTPUT_TYPE_THRESHOLD 0xCU
#define NV_VFIELD_DESC_SIZE_BYTE 0x00000000U
#define NV_VFIELD_DESC_SIZE_WORD 0x00000001U