mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: skip power device programming if missing
Monitoring INA3221 is currently missing on some customer designs. If power device is missing, skip programming of power device and power policy in PMU. Also clear related features in GPU characterictics (get voltage, current and power features are not supported). Bug 1903258 Change-Id: Ibd9d89e5833afb350c52b76527c54923055aee5e Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1459919 (cherry picked from commit e7e21c451843bddb8e8ac9e3db3b1d4b4a4c272c) Reviewed-on: http://git-master/r/1463105 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
90a249b598
commit
0a6b585dbf
@@ -297,6 +297,13 @@ u32 pmgr_device_sw_setup(struct gk20a *g)
|
||||
/* Override the Interfaces */
|
||||
pboardobjgrp->pmudatainstget = _pwr_device_pmudata_instget;
|
||||
|
||||
/* WAR for missing INA3221 on HW2.5 RevA */
|
||||
if (g->power_sensor_missing) {
|
||||
gk20a_warn(dev_from_gk20a(g),
|
||||
"no power sensor, monitoring disabled");
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = devinit_get_pwr_device_table(g, ppwrdeviceobjs);
|
||||
if (status)
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user