diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-09-04 07:07:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-05 23:41:36 -0400 |
commit | 2998ab4e0a0b19da1332b82d779bd17b4e284b38 (patch) | |
tree | e86e3201c1920f8cb0afecdb6e21f9c0bf8de366 /drivers/gpu/nvgpu/gp106/regops_gp106.c | |
parent | 2b2bde04e14135cae5f7433c755e6b8d70f88abb (diff) |
gpu: nvgpu: remove unused regops HALs
Below regops HALs are not being called from anywhere, so remove them
gops.regops.get_runcontrol_whitelist_ranges()
gops.regops.get_runcontrol_whitelist_ranges_count()
gops.regops.get_qctl_whitelist_ranges()
gops.regops.get_qctl_whitelist_ranges_count()
HAL gops.regops.apply_smpc_war() is unimplemented for all the chips, and it
was originally only needed for gk20a which is not unsupported
So remove this HAL and its call too
Jira NVGPU-620
Change-Id: Ia2c74883cd647a2e94ee740ffd040a40c442b939
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1813106
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/regops_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/regops_gp106.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpu/nvgpu/gp106/regops_gp106.c b/drivers/gpu/nvgpu/gp106/regops_gp106.c index 25b88eeb..581b280d 100644 --- a/drivers/gpu/nvgpu/gp106/regops_gp106.c +++ b/drivers/gpu/nvgpu/gp106/regops_gp106.c | |||
@@ -23,12 +23,9 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "gk20a/gk20a.h" | 25 | #include "gk20a/gk20a.h" |
26 | #include "gk20a/dbg_gpu_gk20a.h" | ||
27 | #include "gk20a/regops_gk20a.h" | 26 | #include "gk20a/regops_gk20a.h" |
28 | #include "regops_gp106.h" | 27 | #include "regops_gp106.h" |
29 | 28 | ||
30 | #include <nvgpu/bsearch.h> | ||
31 | |||
32 | static const struct regop_offset_range gp106_global_whitelist_ranges[] = { | 29 | static const struct regop_offset_range gp106_global_whitelist_ranges[] = { |
33 | { 0x000004f0, 1}, | 30 | { 0x000004f0, 1}, |
34 | { 0x00001a00, 3}, | 31 | { 0x00001a00, 3}, |
@@ -1697,23 +1694,12 @@ static const u32 gp106_runcontrol_whitelist[] = { | |||
1697 | static const u64 gp106_runcontrol_whitelist_count = | 1694 | static const u64 gp106_runcontrol_whitelist_count = |
1698 | ARRAY_SIZE(gp106_runcontrol_whitelist); | 1695 | ARRAY_SIZE(gp106_runcontrol_whitelist); |
1699 | 1696 | ||
1700 | static const struct regop_offset_range gp106_runcontrol_whitelist_ranges[] = { | ||
1701 | }; | ||
1702 | static const u64 gp106_runcontrol_whitelist_ranges_count = | ||
1703 | ARRAY_SIZE(gp106_runcontrol_whitelist_ranges); | ||
1704 | |||
1705 | |||
1706 | /* quad ctl */ | 1697 | /* quad ctl */ |
1707 | static const u32 gp106_qctl_whitelist[] = { | 1698 | static const u32 gp106_qctl_whitelist[] = { |
1708 | }; | 1699 | }; |
1709 | static const u64 gp106_qctl_whitelist_count = | 1700 | static const u64 gp106_qctl_whitelist_count = |
1710 | ARRAY_SIZE(gp106_qctl_whitelist); | 1701 | ARRAY_SIZE(gp106_qctl_whitelist); |
1711 | 1702 | ||
1712 | static const struct regop_offset_range gp106_qctl_whitelist_ranges[] = { | ||
1713 | }; | ||
1714 | static const u64 gp106_qctl_whitelist_ranges_count = | ||
1715 | ARRAY_SIZE(gp106_qctl_whitelist_ranges); | ||
1716 | |||
1717 | const struct regop_offset_range *gp106_get_global_whitelist_ranges(void) | 1703 | const struct regop_offset_range *gp106_get_global_whitelist_ranges(void) |
1718 | { | 1704 | { |
1719 | return gp106_global_whitelist_ranges; | 1705 | return gp106_global_whitelist_ranges; |
@@ -1744,16 +1730,6 @@ u64 gp106_get_runcontrol_whitelist_count(void) | |||
1744 | return gp106_runcontrol_whitelist_count; | 1730 | return gp106_runcontrol_whitelist_count; |
1745 | } | 1731 | } |
1746 | 1732 | ||
1747 | const struct regop_offset_range *gp106_get_runcontrol_whitelist_ranges(void) | ||
1748 | { | ||
1749 | return gp106_runcontrol_whitelist_ranges; | ||
1750 | } | ||
1751 | |||
1752 | u64 gp106_get_runcontrol_whitelist_ranges_count(void) | ||
1753 | { | ||
1754 | return gp106_runcontrol_whitelist_ranges_count; | ||
1755 | } | ||
1756 | |||
1757 | const u32 *gp106_get_qctl_whitelist(void) | 1733 | const u32 *gp106_get_qctl_whitelist(void) |
1758 | { | 1734 | { |
1759 | return gp106_qctl_whitelist; | 1735 | return gp106_qctl_whitelist; |
@@ -1763,19 +1739,3 @@ u64 gp106_get_qctl_whitelist_count(void) | |||
1763 | { | 1739 | { |
1764 | return gp106_qctl_whitelist_count; | 1740 | return gp106_qctl_whitelist_count; |
1765 | } | 1741 | } |
1766 | |||
1767 | const struct regop_offset_range *gp106_get_qctl_whitelist_ranges(void) | ||
1768 | { | ||
1769 | return gp106_qctl_whitelist_ranges; | ||
1770 | } | ||
1771 | |||
1772 | u64 gp106_get_qctl_whitelist_ranges_count(void) | ||
1773 | { | ||
1774 | return gp106_qctl_whitelist_ranges_count; | ||
1775 | } | ||
1776 | |||
1777 | int gp106_apply_smpc_war(struct dbg_session_gk20a *dbg_s) | ||
1778 | { | ||
1779 | /* Not needed on gp106 */ | ||
1780 | return 0; | ||
1781 | } | ||