summaryrefslogtreecommitdiffstats
path: root/drivers/platform/tegra/denver-knobs.c
Commit message (Collapse)AuthorAge
* platform: tegra: remove pre-production debug codeAlex Van Brunt2018-10-11
| | | | | | | | | | | | | | Bug 2404240 Change-Id: I3fa77bf9071741940be6211fbe94456769f3ca94 Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1848069 (cherry picked from commit 7401196732f1d686d208204aee0016f717bd9f74) Reviewed-on: https://git-master.nvidia.com/r/1922830 GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* denver: cpu notifier API compatibilitySachin Nikam2018-07-16
| | | | | | | | | | | | | | | | | | | In K4.14 below APIs are deprecatd: cpu_register_notifier register_hotcpu_notifier cpu_unregister_notifier Using cpuhp_setup_state_nocalls instead for K4.14 Bug 200427682 Change-Id: I146bf0336dff613f7c25c2c8b053aa450986405b Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1769210 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: denver-knobs: fix logical core calcRohit Khanna2018-05-10
| | | | | | | | | | | | | | | | | | The existing calculation was using MPIDR_AFF0 which provides logical core number within a cluster. This patch modifes that so that overall logical core id is used instead. Bug 2066750 Change-Id: Ia52e97fb112778592aa6b53987611ef73e86641c Signed-off-by: Rohit Khanna <rokhanna@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1702668 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: denver-knobs: prints mts version on bootRohit Khanna2018-03-07
| | | | | | | | | | | | | | | | This patch prints MTS version during denver_knobs_init if any of the CPUs have been implemented by NVIDIA. Bug 2067249 Change-Id: I65a8d043891c6540cf207f3f62dfbabf7ae4a4f6 Signed-off-by: Rohit Khanna <rokhanna@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665230 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: denver-knobs: fix build err when DEBUG_FS=nShawn Joo2017-08-04
| | | | | | | | | | | | | | | | | | | | | | | fix below when CONFIG_DEBUG_FS is unset - build error - debugfs should not be created - denver_backdoor_enabled keeps available. Bug 200276656 Bug 200325746 Change-Id: Ib81a2142c36c71630b15b24d41aa18f3f39fc4f9 Signed-off-by: Shawn Joo <sjoo@nvidia.com> Reviewed-on: http://git-master/r/1299520 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit a636b5e388cb4c2901816a700b04220dd36f3336) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516730 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* platform: tegra: denver-knobs: Get rid of mach/hardware.hLaxman Dewangan2017-08-04
| | | | | | | | | | | | | | | | | | | | The driver denver-knobs includes the mach/hardware.h to get the chip IDs which is in soc/tegra/chip-id.h. These functions are defined in the soc/tegra/chip-id.h and hence directly include the soc/tegra/chip-id.h instead of mach/hardware.h. bug 200259454 Bug 200325746 Change-Id: Ic78d2bf0e21874af74a2997dc3b0ca8823b8e743 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/1270866 Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com> GVS: Gerrit_Virtual_Submit (cherry picked from commit fe0f41095cf731a3fa4554709ab0f89cc87ce95d) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516726 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* arm64: tegra186: remove unused register nodesStephen Wolfe2017-08-04
| | | | | | | | | | | | | | | | | | | remove unused internal register nodes for t186 Bug 200177854 Bug 200325746 Change-Id: I8f14474f3d9c771421d0a83a75caa5ddd3cefe64 Signed-off-by: Stephen Wolfe <swolfe@nvidia.com> Reviewed-on: http://git-master/r/1174073 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit e0cb4d262d0dce872f0ccc6328bcbd648cdde5ea) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516724 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* tegra: denver-knobs: Remove nvmstat_pg statsBharat Nihalani2017-08-04
| | | | | | | | | | | | | | | | | | | As per Denver team, this needs to be removed since it is obsoleted by the ARI equivalent. Bug 200177815 Bug 200325746 Change-Id: I8d0b58031748d3843621dbb64be1eb9cdf056a45 Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/1227653 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> GVS: Gerrit_Virtual_Submit (cherry picked from commit c15896db9789c29ebe85354a67e914fd9e45bbff) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516723 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* tegra: denver-knobs: Use correct CPU id for bgallowedSai Gurrappadi2017-08-04
| | | | | | | | | | | | | | | | | | | The bgallowed creg takes in the physical core id as the input mask of the CPU for which to enable/disable bg work. We are currently using the logical CPU id instead which is incorrect. Bug 200325746 Change-Id: Ia19d29fea61ef542d8154a6b3a650f4b87ca22cd Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: http://git-master/r/1203283 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> (cherry picked from commit 1d8e851596d29a19934112464b88a773c1a64b54) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516720 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* tegra: denver-knobs: add tracer_control supportRohit Khanna2017-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | Add support for TRACER_CONTROL backdoor message. This should cause immediate assertion from MTS causing a JSR:MTS:MCA. This will help in testing if denver_serr_hook() is able to decode this MCA or not. Spec - https://wiki.nvidia.com/denver/index.php/Backdoor_MSR_Proposal Bug 200214536 Bug 200325746 Change-Id: I019982bbb302b36d5c430b461c7c1f17c3fabfda Signed-off-by: Rohit Khanna <rokhanna@nvidia.com> Reviewed-on: http://git-master/r/1197745 Reviewed-by: Guy Sotomayor <gsotomayor@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> (cherry picked from commit 6510703713d7e85f2fba4de14869c6821b525825) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516719 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* tegra: denver-knobs: fix build issue.David Pu2017-08-04
| | | | | | | | | | | | | | | | | | fix 'unused variable' build issue with CONFIG_DEBUG_FS=n Bug 1778001 Bug 200325746 Change-Id: I3b10e00299c8e4226aa07769e436be99e42e95e7 Signed-off-by: David Pu <dpu@nvidia.com> Reviewed-on: http://git-master/r/1167999 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> (cherry picked from commit f97d139914df06a5fdd9ffa42a4fb231898406c2) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516718 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* tegra: denver-knobs: fix seq_printf return valueAlex Van Brunt2017-08-04
| | | | | | | | | | | | | | | | seq_printf() returns void in most kernel versions. There is no chance of overflowing the seq buffer. So, unconditionally return 0. Bug 200325746 Change-Id: I67e9318734e08d730b73a8e97dcdf8f8596226fc Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/1125713 (cherry picked from commit eae2a6dbcf02e2a10651b4fc1fc022fe43b5a83b) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516717 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* drivers: platform: tegra: Adding denver specific driversIshan Mittal2017-08-04
Bug 200325746 Change-Id: I8b5a5da31219bbdb584b5d7cc5bd865ef017bf36 Signed-off-by: Ishan Mittal <imittal@nvidia.com> (cherry picked from commit 6c2b0788949dbeee476e2961d19f37f97d61017a) Signed-off-by: Joseph Lo <josephl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516716 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>