diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 5caef6fe..79240800 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -863,4 +863,6 @@ void gk20a_pbus_isr(struct gk20a *g); | |||
863 | int gk20a_user_init(struct platform_device *dev); | 863 | int gk20a_user_init(struct platform_device *dev); |
864 | void gk20a_user_deinit(struct platform_device *dev); | 864 | void gk20a_user_deinit(struct platform_device *dev); |
865 | 865 | ||
866 | extern void gk20a_debug_dump_device(struct platform_device *pdev); | ||
867 | |||
866 | #endif /* GK20A_H */ | 868 | #endif /* GK20A_H */ |
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 5e07ac55..f8e1e3b7 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -747,6 +747,10 @@ static int gk20a_tegra_probe(struct platform_device *dev) | |||
747 | 747 | ||
748 | platform->g->host1x_dev = host1x_pdev; | 748 | platform->g->host1x_dev = host1x_pdev; |
749 | 749 | ||
750 | if (platform->g->host1x_dev) | ||
751 | nvhost_register_dump_device(platform->g->host1x_dev, | ||
752 | gk20a_debug_dump_device); | ||
753 | |||
750 | /* WAR for bug 1547668: Disable railgating and scaling irrespective of | 754 | /* WAR for bug 1547668: Disable railgating and scaling irrespective of |
751 | * platform data if the rework has not been made. */ | 755 | * platform data if the rework has not been made. */ |
752 | 756 | ||
@@ -776,6 +780,11 @@ static int gk20a_tegra_late_probe(struct platform_device *dev) | |||
776 | 780 | ||
777 | static int gk20a_tegra_remove(struct platform_device *dev) | 781 | static int gk20a_tegra_remove(struct platform_device *dev) |
778 | { | 782 | { |
783 | struct gk20a_platform *platform = gk20a_get_platform(dev); | ||
784 | |||
785 | if (platform->g->host1x_dev) | ||
786 | nvhost_unregister_dump_device(platform->g->host1x_dev); | ||
787 | |||
779 | /* remove gk20a power subdomain from host1x */ | 788 | /* remove gk20a power subdomain from host1x */ |
780 | nvhost_unregister_client_domain(dev_to_genpd(&dev->dev)); | 789 | nvhost_unregister_client_domain(dev_to_genpd(&dev->dev)); |
781 | 790 | ||