gpu: nvgpu: elpg/aelpg sysfs update
authorMahantesh Kumbar <mkumbar@nvidia.com>
Wed, 25 Jan 2017 07:38:47 +0000 (12:38 +0530)
committerManish Tuteja <mtuteja@nvidia.com>
Wed, 1 Feb 2017 01:12:31 +0000 (17:12 -0800)
commitf32c164f31a6dc94806631bb4945fe2d83e0a586
tree0dafc2b7294480ffad1c3625f7b5ea2b6a0bf28e
parent117f939bee424954144fa8306bdaf4de6f8b9822
gpu: nvgpu: elpg/aelpg sysfs update

check g->power_on & pmu->pmu_state flags
to know the status of PMU whether ready to take
commands for PG request or not. If not ready
then update ELPG/AELPG global flags
used within kernel driver & skip sending
commands to PMU

issue: enable/disable request for ELPG/AELPG
through sysfs node during init stage of boot process
causing PMU halt error

Bug 1865815

Change-Id: I1c14d2ea4ac529e5782093569edde28e5da22325
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1296820
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c