diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2016-11-15 14:03:14 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-26 03:03:59 -0500 |
commit | 425f99335bfa13fa2af4e0865f61a4eb29fad6be (patch) | |
tree | ad5141bb2300c419a66290c92b3781d11b3016aa /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | 98e349ab7eb01ac27e1e18477674294ca80d2093 (diff) |
gpu: nvgpu: gk20a: Allow regops lists longer than 128
Process long regops lists in 4-kB fragments, overcoming the overly
low limit of 128 reg ops per IOCTL call. Bump the list limit to 1024
and report the limit in GPU characteristics.
Bug 200248726
Change-Id: I3ad49139409f32aea8b1226d6562e88edccc8053
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/1253716
(cherry picked from commit 22314619b28f52610cb8769cd4c3f9eb01904eab)
Reviewed-on: http://git-master/r/1266652
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index e314d6cd..ca2f7b33 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -700,6 +700,8 @@ void gk20a_remove_support(struct device *dev) | |||
700 | #ifdef CONFIG_TEGRA_COMMON | 700 | #ifdef CONFIG_TEGRA_COMMON |
701 | tegra_unregister_idle_unidle(); | 701 | tegra_unregister_idle_unidle(); |
702 | #endif | 702 | #endif |
703 | if (g->dbg_regops_tmp_buf) | ||
704 | kfree(g->dbg_regops_tmp_buf); | ||
703 | 705 | ||
704 | if (g->pmu.remove_support) | 706 | if (g->pmu.remove_support) |
705 | g->pmu.remove_support(&g->pmu); | 707 | g->pmu.remove_support(&g->pmu); |
@@ -2170,6 +2172,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
2170 | gpu->pci_class = g->pci_class; | 2172 | gpu->pci_class = g->pci_class; |
2171 | gpu->pci_revision = g->pci_revision; | 2173 | gpu->pci_revision = g->pci_revision; |
2172 | 2174 | ||
2175 | gpu->reg_ops_limit = 1024; | ||
2176 | |||
2173 | return 0; | 2177 | return 0; |
2174 | } | 2178 | } |
2175 | 2179 | ||