diff options
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index feebef44..98e7bc50 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -80,7 +80,7 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, | |||
80 | /*zcull*/ | 80 | /*zcull*/ |
81 | void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries, | 81 | void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries, |
82 | u32 *zcull_map_tiles); | 82 | u32 *zcull_map_tiles); |
83 | void gr_gv11b_create_sysfs(struct device *dev); | 83 | void gr_gv11b_create_sysfs(struct gk20a *g); |
84 | 84 | ||
85 | bool gr_gv11b_is_valid_class(struct gk20a *g, u32 class_num); | 85 | bool gr_gv11b_is_valid_class(struct gk20a *g, u32 class_num); |
86 | bool gr_gv11b_is_valid_gfx_class(struct gk20a *g, u32 class_num); | 86 | bool gr_gv11b_is_valid_gfx_class(struct gk20a *g, u32 class_num); |
diff --git a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c index d2c690f4..5308f4ea 100644 --- a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "gp10b/platform_gp10b.h" | 40 | #include "gp10b/platform_gp10b.h" |
41 | #include "common/linux/platform_gp10b_tegra.h" | 41 | #include "common/linux/platform_gp10b_tegra.h" |
42 | 42 | ||
43 | #include "common/linux/os_linux.h" | ||
43 | #include "common/linux/platform_gk20a_tegra.h" | 44 | #include "common/linux/platform_gk20a_tegra.h" |
44 | #include "gr_gv11b.h" | 45 | #include "gr_gv11b.h" |
45 | #include "nvgpu_gpuid_t19x.h" | 46 | #include "nvgpu_gpuid_t19x.h" |
@@ -188,9 +189,9 @@ static struct device_attribute *dev_attr_mmu_hubtlb_ecc_uncorrected_err_count_ar | |||
188 | static struct device_attribute *dev_attr_mmu_fillunit_ecc_corrected_err_count_array; | 189 | static struct device_attribute *dev_attr_mmu_fillunit_ecc_corrected_err_count_array; |
189 | static struct device_attribute *dev_attr_mmu_fillunit_ecc_uncorrected_err_count_array; | 190 | static struct device_attribute *dev_attr_mmu_fillunit_ecc_uncorrected_err_count_array; |
190 | 191 | ||
191 | void gr_gv11b_create_sysfs(struct device *dev) | 192 | void gr_gv11b_create_sysfs(struct gk20a *g) |
192 | { | 193 | { |
193 | struct gk20a *g = get_gk20a(dev); | 194 | struct device *dev = dev_from_gk20a(g); |
194 | int error = 0; | 195 | int error = 0; |
195 | /* This stat creation function is called on GR init. GR can get | 196 | /* This stat creation function is called on GR init. GR can get |
196 | initialized multiple times but we only need to create the ECC | 197 | initialized multiple times but we only need to create the ECC |
@@ -199,7 +200,7 @@ void gr_gv11b_create_sysfs(struct device *dev) | |||
199 | if (g->ecc.gr.t19x.sm_l1_tag_corrected_err_count.counters != NULL) | 200 | if (g->ecc.gr.t19x.sm_l1_tag_corrected_err_count.counters != NULL) |
200 | return; | 201 | return; |
201 | 202 | ||
202 | gr_gp10b_create_sysfs(dev); | 203 | gr_gp10b_create_sysfs(g); |
203 | 204 | ||
204 | error |= gr_gp10b_ecc_stat_create(dev, | 205 | error |= gr_gp10b_ecc_stat_create(dev, |
205 | 0, | 206 | 0, |