diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index 25673873..587e0a7a 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -135,6 +135,11 @@ static int gp10b_tegra_probe(struct device *dev) | |||
135 | } | 135 | } |
136 | 136 | ||
137 | platform->g->host1x_dev = host1x_pdev; | 137 | platform->g->host1x_dev = host1x_pdev; |
138 | if (platform->g->host1x_dev) | ||
139 | nvhost_register_dump_device(platform->g->host1x_dev, | ||
140 | gk20a_debug_dump_device, | ||
141 | platform->g->dev); | ||
142 | |||
138 | platform->bypass_smmu = !device_is_iommuable(dev); | 143 | platform->bypass_smmu = !device_is_iommuable(dev); |
139 | platform->disable_bigpage = platform->bypass_smmu; | 144 | platform->disable_bigpage = platform->bypass_smmu; |
140 | 145 | ||
@@ -182,6 +187,11 @@ static int gp10b_tegra_late_probe(struct device *dev) | |||
182 | 187 | ||
183 | static int gp10b_tegra_remove(struct device *dev) | 188 | static int gp10b_tegra_remove(struct device *dev) |
184 | { | 189 | { |
190 | struct gk20a_platform *platform = dev_get_drvdata(dev); | ||
191 | |||
192 | if (platform->g->host1x_dev) | ||
193 | nvhost_unregister_dump_device(platform->g->host1x_dev); | ||
194 | |||
185 | /* remove gk20a power subdomain from host1x */ | 195 | /* remove gk20a power subdomain from host1x */ |
186 | nvhost_unregister_client_domain(dev_to_genpd(dev)); | 196 | nvhost_unregister_client_domain(dev_to_genpd(dev)); |
187 | gr_gp10b_remove_sysfs(dev); | 197 | gr_gp10b_remove_sysfs(dev); |