mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
nvgpu: gpu: Remove usage of VOLT_RAIL_GET_VOLTAGE RPC
VOLT_RAIL_GET_VOLTAGE RPC is no longer available for turing auto profile. Instead volt_rail_get_status cmd will fetch the required voltage values. NVGPU-4326 Change-Id: I3270c259b92effd13b3183e52af689ea2dc35c37 Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2233106 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
692a442e9d
commit
54d2132b69
@@ -1441,18 +1441,10 @@ static int nvgpu_gpu_get_voltage(struct gk20a *g,
|
||||
return err;
|
||||
|
||||
nvgpu_speculation_barrier();
|
||||
switch (args->which) {
|
||||
case NVGPU_GPU_VOLTAGE_CORE:
|
||||
err = nvgpu_volt_get_voltage(g, CTRL_VOLT_DOMAIN_LOGIC, &args->voltage);
|
||||
break;
|
||||
case NVGPU_GPU_VOLTAGE_SRAM:
|
||||
err = nvgpu_volt_get_voltage(g, CTRL_VOLT_DOMAIN_SRAM, &args->voltage);
|
||||
break;
|
||||
case NVGPU_GPU_VOLTAGE_BUS:
|
||||
err = pmgr_pwr_devices_get_voltage(g, &args->voltage);
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
|
||||
err = nvgpu_volt_get_curr_volt_ps35(g, &args->voltage);
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
gk20a_idle(g);
|
||||
|
||||
Reference in New Issue
Block a user