gk20a: Moved bind fecs to init_gr_support
authorMahantesh Kumbar <mkumbar@nvidia.com>
Tue, 14 Oct 2014 12:14:34 +0000 (17:14 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 17 Feb 2015 18:31:11 +0000 (10:31 -0800)
commit6606ce102dcc49f1e5868974468e8254f2a04e1d
treeaec963f5a74e7d1516c41445e0c312894ef1b77d
parent0a44699a4ea5e6df4ddcd323a62cb2aae87d40f7
gk20a: Moved bind fecs to init_gr_support

-Moved bind fecs from work queue to init_gr_support.
-It makes all CPU->FECS communication to happen before
booting PMU, and after we boot PMU, only PMU talks to
FECS. So it removes possibility to race between CPU
and PMU talking to FECS.

Bug 200032923
Bug 1570774

Change-Id: I01d6d7f61f5e3c0e788d9d77fcabe5a91fe86c84
Reviewed-on: http://git-master/r/559733
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
(cherry picked from commit 1e63d8ae4056dbde82e1788decf7552f0b0af640)
Reviewed-on: http://git-master/r/666712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/gpu/nvgpu/gk20a/gr_gk20a.c
drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
drivers/gpu/nvgpu/gk20a/pmu_gk20a.h