gpu: nvgpu: ga10b: Support emulate mode

Add sysfs node to enable gpu emulate_mode and
pass the value to acr through acr descriptor struct.

Bug 3279344

Change-Id: I936b1dda84d7f4f3688237308223c019798bdce3
Signed-off-by: Mayur Poojary <mpoojary@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2591377
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mayur Poojary
2021-09-08 19:15:07 +05:30
committed by mobile promotions
parent 95c954cf9f
commit fe7368f8f4
5 changed files with 62 additions and 0 deletions

View File

@@ -775,6 +775,13 @@ struct flcn2_acr_desc {
u64 nonwpr_ucode_blob_start;
u64 ls_pmu_desc;
/**
* stores flag value to enable:
* emulate_mode 7:0 bit
* MIG mode 15:8 bit
*/
u32 gpu_mode;
};
/** @} */