From 246dcb824bc299b836be92fb74416c07a57e085b Mon Sep 17 00:00:00 2001 From: Sachit Kadle Date: Mon, 19 Sep 2016 14:18:11 -0700 Subject: gpu: nvgpu: improve sync create/destroy logic This change improves the aggressive sync creation & destruction logic to avoid lock contention in the submit path. It does the following: 1) Removes the global sync destruction (channel) threshold, and adds a per-platform parameter. 2) Avoids lock contention in the clean-up/submit path when aggressive sync destruction is disabled. 3) Creates sync object at gpfifo allocation time (as long as we are not in aggressive sync destroy mode), to enable faster first submits Bug 1795076 Change-Id: Ifdb680100b08d00f37338063355bb2123ceb1b9f Signed-off-by: Sachit Kadle Reviewed-on: http://git-master/r/1202425 (cherry picked from commit ac0978711943a59c6f28c98c76b10759e0bff610) Reviewed-on: http://git-master/r/1202427 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c') diff --git a/drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c index b260b3ac..dc898226 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_vgpu_tegra.c @@ -49,6 +49,7 @@ static int gk20a_tegra_probe(struct device *dev) struct gk20a_platform vgpu_tegra_platform = { .has_syncpoints = true, + .aggressive_sync_destroy_thresh = 64, /* power management configuration */ .can_railgate = false, -- cgit v1.2.2