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/gv11b/regops_gv11b.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/gv11b/regops_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/regops_gv11b.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c index 768674fe..0bc8ab05 100644 --- a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c | |||
@@ -23,7 +23,6 @@ | |||
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_gv11b.h" | 27 | #include "regops_gv11b.h" |
29 | 28 | ||
@@ -1452,23 +1451,12 @@ static const u32 gv11b_runcontrol_whitelist[] = { | |||
1452 | static const u64 gv11b_runcontrol_whitelist_count = | 1451 | static const u64 gv11b_runcontrol_whitelist_count = |
1453 | ARRAY_SIZE(gv11b_runcontrol_whitelist); | 1452 | ARRAY_SIZE(gv11b_runcontrol_whitelist); |
1454 | 1453 | ||
1455 | static const struct regop_offset_range gv11b_runcontrol_whitelist_ranges[] = { | ||
1456 | }; | ||
1457 | static const u64 gv11b_runcontrol_whitelist_ranges_count = | ||
1458 | ARRAY_SIZE(gv11b_runcontrol_whitelist_ranges); | ||
1459 | |||
1460 | |||
1461 | /* quad ctl */ | 1454 | /* quad ctl */ |
1462 | static const u32 gv11b_qctl_whitelist[] = { | 1455 | static const u32 gv11b_qctl_whitelist[] = { |
1463 | }; | 1456 | }; |
1464 | static const u64 gv11b_qctl_whitelist_count = | 1457 | static const u64 gv11b_qctl_whitelist_count = |
1465 | ARRAY_SIZE(gv11b_qctl_whitelist); | 1458 | ARRAY_SIZE(gv11b_qctl_whitelist); |
1466 | 1459 | ||
1467 | static const struct regop_offset_range gv11b_qctl_whitelist_ranges[] = { | ||
1468 | }; | ||
1469 | static const u64 gv11b_qctl_whitelist_ranges_count = | ||
1470 | ARRAY_SIZE(gv11b_qctl_whitelist_ranges); | ||
1471 | |||
1472 | const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void) | 1460 | const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void) |
1473 | { | 1461 | { |
1474 | return gv11b_global_whitelist_ranges; | 1462 | return gv11b_global_whitelist_ranges; |
@@ -1499,16 +1487,6 @@ u64 gv11b_get_runcontrol_whitelist_count(void) | |||
1499 | return gv11b_runcontrol_whitelist_count; | 1487 | return gv11b_runcontrol_whitelist_count; |
1500 | } | 1488 | } |
1501 | 1489 | ||
1502 | const struct regop_offset_range *gv11b_get_runcontrol_whitelist_ranges(void) | ||
1503 | { | ||
1504 | return gv11b_runcontrol_whitelist_ranges; | ||
1505 | } | ||
1506 | |||
1507 | u64 gv11b_get_runcontrol_whitelist_ranges_count(void) | ||
1508 | { | ||
1509 | return gv11b_runcontrol_whitelist_ranges_count; | ||
1510 | } | ||
1511 | |||
1512 | const u32 *gv11b_get_qctl_whitelist(void) | 1490 | const u32 *gv11b_get_qctl_whitelist(void) |
1513 | { | 1491 | { |
1514 | return gv11b_qctl_whitelist; | 1492 | return gv11b_qctl_whitelist; |
@@ -1518,19 +1496,3 @@ u64 gv11b_get_qctl_whitelist_count(void) | |||
1518 | { | 1496 | { |
1519 | return gv11b_qctl_whitelist_count; | 1497 | return gv11b_qctl_whitelist_count; |
1520 | } | 1498 | } |
1521 | |||
1522 | const struct regop_offset_range *gv11b_get_qctl_whitelist_ranges(void) | ||
1523 | { | ||
1524 | return gv11b_qctl_whitelist_ranges; | ||
1525 | } | ||
1526 | |||
1527 | u64 gv11b_get_qctl_whitelist_ranges_count(void) | ||
1528 | { | ||
1529 | return gv11b_qctl_whitelist_ranges_count; | ||
1530 | } | ||
1531 | |||
1532 | int gv11b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) | ||
1533 | { | ||
1534 | /* Not needed on gv11b */ | ||
1535 | return 0; | ||
1536 | } | ||