summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2019-11-15 04:29:31 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2020-02-19 13:41:27 -0500
commite45e7b5cf87eaf94cf22e631c906170890233d8e (patch)
tree880fc3d736a3b8a0f595f097dd6f94ffbb0de9e9 /drivers/gpu/nvgpu/include
parent380e6b2c0c5e03f35aed68b836f64c907070e297 (diff)
gpu: nvgpu: move cg_enable after pmu_init is complete
This patch help resolve the boot time failures happening with pmu_exterr for porg. cg_enable can race with pmu_init thread, cg_enable is moved post pmu init thread to avoid the above race. Bug 200565050 Change-Id: I2192053eff8767847ea012ca20b3607d2f6cd26f Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2239959 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h b/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h
index 7b5fe265..e2395176 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -35,6 +35,8 @@ void nvgpu_cg_elcg_disable(struct gk20a *g);
35void nvgpu_cg_elcg_enable_no_wait(struct gk20a *g); 35void nvgpu_cg_elcg_enable_no_wait(struct gk20a *g);
36void nvgpu_cg_elcg_disable_no_wait(struct gk20a *g); 36void nvgpu_cg_elcg_disable_no_wait(struct gk20a *g);
37void nvgpu_cg_elcg_set_elcg_enabled(struct gk20a *g, bool enable); 37void nvgpu_cg_elcg_set_elcg_enabled(struct gk20a *g, bool enable);
38void nvgpu_cg_blcg_disable_no_wait(struct gk20a *g);
39void nvgpu_cg_blcg_enable_no_wait(struct gk20a *g);
38 40
39void nvgpu_cg_blcg_mode_enable(struct gk20a *g); 41void nvgpu_cg_blcg_mode_enable(struct gk20a *g);
40void nvgpu_cg_blcg_mode_disable(struct gk20a *g); 42void nvgpu_cg_blcg_mode_disable(struct gk20a *g);