From 52445fba1feac3ee20bf1c3db149adc42715af9e Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 23 Jun 2017 08:49:42 -0700 Subject: 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 Reviewed-on: https://git-master/r/1507934 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c | 32 -------------------------------- drivers/gpu/nvgpu/gp10b/pmu_gp10b.c | 1 - 2 files changed, 33 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b') 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 @@ #define ROOTRW (S_IRWXU|S_IRGRP|S_IROTH) -static ssize_t ecc_enable_store(struct device *dev, - struct device_attribute *attr, const char *buf, size_t count) -{ - struct gk20a *g = get_gk20a(dev); - u32 ecc_mask; - u32 err = 0; - - err = sscanf(buf, "%d", &ecc_mask); - if (err == 1) { - err = g->ops.pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd - (g, ecc_mask); - if (err) - nvgpu_err(g, "ECC override did not happen"); - } else - return -EINVAL; - return count; -} - -static ssize_t ecc_enable_read(struct device *dev, - struct device_attribute *attr, char *buf) -{ - struct gk20a *g = get_gk20a(dev); - - return sprintf(buf, "ecc override =0x%x\n", - g->ops.gr.get_lrf_tex_ltc_dram_override(g)); -} - -static DEVICE_ATTR(ecc_enable, ROOTRW, ecc_enable_read, ecc_enable_store); - - static ssize_t czf_bypass_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { @@ -87,7 +57,6 @@ void gp10b_create_sysfs(struct device *dev) g->gr.czf_bypass = gr_gpc0_prop_debug1_czf_bypass_init_v(); - error |= device_create_file(dev, &dev_attr_ecc_enable); error |= device_create_file(dev, &dev_attr_czf_bypass); if (error) nvgpu_err(g, "Failed to create sysfs attributes!"); @@ -95,6 +64,5 @@ void gp10b_create_sysfs(struct device *dev) void gp10b_remove_sysfs(struct device *dev) { - device_remove_file(dev, &dev_attr_ecc_enable); device_remove_file(dev, &dev_attr_czf_bypass); } 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) gops->pmu.pmu_lpwr_enable_pg = NULL; gops->pmu.pmu_lpwr_disable_pg = NULL; gops->pmu.pmu_pg_param_post_init = NULL; - gops->pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd = NULL; gops->pmu.reset = NULL; gops->pmu.dump_secure_fuses = pmu_dump_security_fuses_gp10b; } -- cgit v1.2.2