summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/ctrl/ctrlperf.h
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2017-10-23 02:16:09 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-25 07:23:57 -0400
commitc61e21c868246faf7a9ffc812590941fc362af17 (patch)
treecacc1639bcdc48766047dc65a715c67c51682612 /drivers/gpu/nvgpu/ctrl/ctrlperf.h
parent539c8bff4b501a4ca999290454a210f5d17ba516 (diff)
gpu: nvgpu: Fix race in PMU state transitions.
PMU response(intr callback for messages) can run faster than the kthread posting commands to PMU. This causes the PMU message callback to skip important pmu state change(which happens just after the PMU command is posted). Solution: State change should be triggered from only inside the intr callback. Other places can only update the pmu_state variable. This change also adds error check to print in case command post fails. JIRA GPUT19X-20 Change-Id: Ib0a4275440455342a898c93ea9d86c5822e039a7 Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583577 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/ctrl/ctrlperf.h')
0 files changed, 0 insertions, 0 deletions