diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-23 11:49:42 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-27 06:57:06 -0400 |
commit | 52445fba1feac3ee20bf1c3db149adc42715af9e (patch) | |
tree | 24bb96bcd5b74caa095da782b8f0c11bff19ecbd /drivers/gpu/nvgpu/gp10b | |
parent | 69222f2de6cf9a29ee5999d9802d806b6966a7e1 (diff) |
gpu: nvpgu: Remove FECS override sysfs API
FECS override PMU support was removed with http://git-master/1297370.
Remove the sysfs API that is wired to that.
Change-Id: I5802e5a8dd78b80c3d255dd93587b24df9203fca
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master/r/1507934
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c | 32 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/pmu_gp10b.c | 1 |
2 files changed, 0 insertions, 33 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c index 5a242bb5..1c90d2f9 100644 --- a/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c +++ b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c | |||
@@ -23,36 +23,6 @@ | |||
23 | 23 | ||
24 | #define ROOTRW (S_IRWXU|S_IRGRP|S_IROTH) | 24 | #define ROOTRW (S_IRWXU|S_IRGRP|S_IROTH) |
25 | 25 | ||
26 | static ssize_t ecc_enable_store(struct device *dev, | ||
27 | struct device_attribute *attr, const char *buf, size_t count) | ||
28 | { | ||
29 | struct gk20a *g = get_gk20a(dev); | ||
30 | u32 ecc_mask; | ||
31 | u32 err = 0; | ||
32 | |||
33 | err = sscanf(buf, "%d", &ecc_mask); | ||
34 | if (err == 1) { | ||
35 | err = g->ops.pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd | ||
36 | (g, ecc_mask); | ||
37 | if (err) | ||
38 | nvgpu_err(g, "ECC override did not happen"); | ||
39 | } else | ||
40 | return -EINVAL; | ||
41 | return count; | ||
42 | } | ||
43 | |||
44 | static ssize_t ecc_enable_read(struct device *dev, | ||
45 | struct device_attribute *attr, char *buf) | ||
46 | { | ||
47 | struct gk20a *g = get_gk20a(dev); | ||
48 | |||
49 | return sprintf(buf, "ecc override =0x%x\n", | ||
50 | g->ops.gr.get_lrf_tex_ltc_dram_override(g)); | ||
51 | } | ||
52 | |||
53 | static DEVICE_ATTR(ecc_enable, ROOTRW, ecc_enable_read, ecc_enable_store); | ||
54 | |||
55 | |||
56 | static ssize_t czf_bypass_store(struct device *dev, | 26 | static ssize_t czf_bypass_store(struct device *dev, |
57 | struct device_attribute *attr, const char *buf, size_t count) | 27 | struct device_attribute *attr, const char *buf, size_t count) |
58 | { | 28 | { |
@@ -87,7 +57,6 @@ void gp10b_create_sysfs(struct device *dev) | |||
87 | 57 | ||
88 | g->gr.czf_bypass = gr_gpc0_prop_debug1_czf_bypass_init_v(); | 58 | g->gr.czf_bypass = gr_gpc0_prop_debug1_czf_bypass_init_v(); |
89 | 59 | ||
90 | error |= device_create_file(dev, &dev_attr_ecc_enable); | ||
91 | error |= device_create_file(dev, &dev_attr_czf_bypass); | 60 | error |= device_create_file(dev, &dev_attr_czf_bypass); |
92 | if (error) | 61 | if (error) |
93 | nvgpu_err(g, "Failed to create sysfs attributes!"); | 62 | nvgpu_err(g, "Failed to create sysfs attributes!"); |
@@ -95,6 +64,5 @@ void gp10b_create_sysfs(struct device *dev) | |||
95 | 64 | ||
96 | void gp10b_remove_sysfs(struct device *dev) | 65 | void gp10b_remove_sysfs(struct device *dev) |
97 | { | 66 | { |
98 | device_remove_file(dev, &dev_attr_ecc_enable); | ||
99 | device_remove_file(dev, &dev_attr_czf_bypass); | 67 | device_remove_file(dev, &dev_attr_czf_bypass); |
100 | } | 68 | } |
diff --git a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c index c3ad8978..58844e8f 100644 --- a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c | |||
@@ -429,7 +429,6 @@ void gp10b_init_pmu_ops(struct gpu_ops *gops) | |||
429 | gops->pmu.pmu_lpwr_enable_pg = NULL; | 429 | gops->pmu.pmu_lpwr_enable_pg = NULL; |
430 | gops->pmu.pmu_lpwr_disable_pg = NULL; | 430 | gops->pmu.pmu_lpwr_disable_pg = NULL; |
431 | gops->pmu.pmu_pg_param_post_init = NULL; | 431 | gops->pmu.pmu_pg_param_post_init = NULL; |
432 | gops->pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd = NULL; | ||
433 | gops->pmu.reset = NULL; | 432 | gops->pmu.reset = NULL; |
434 | gops->pmu.dump_secure_fuses = pmu_dump_security_fuses_gp10b; | 433 | gops->pmu.dump_secure_fuses = pmu_dump_security_fuses_gp10b; |
435 | } | 434 | } |