diff options
author | prsethi <prsethi@nvidia.com> | 2020-10-18 15:16:00 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2020-10-27 12:24:56 -0400 |
commit | 8cb168632bef46e98da7ff5d16b03e03ddfd3d4e (patch) | |
tree | 27a9a6c2c436aa667eba9b7ba4cac08ce3f11250 /drivers/gpu/nvgpu/gk20a | |
parent | 5a948ccca95bcecf9d1e81db02394134f8a18c38 (diff) |
gpu: nvgpu: add support for ACB SLCG on gv11b
Register list for ACB SLCG is auto generated with scripts.
Add HAL operations to enable/disable ACB clock gating.
Cherry-pick/manually port from dev-main
Bug 200647909
Change-Id: I4be4c14cc072fcccd91031a5a40321f5ff11f549
Signed-off-by: Prateek sethi <prsethi@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2420355
(cherry picked from commit c7c04d3a28c2eb0edc8e015dd0130fa50d3496c7)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2434464
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: Phoenix Jung <pjung@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 347658b2..c3068b76 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A Graphics | 2 | * GK20A Graphics |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -145,6 +145,10 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
145 | g->gpu_reset_done = true; | 145 | g->gpu_reset_done = true; |
146 | } | 146 | } |
147 | 147 | ||
148 | if (g->ops.clock_gating.slcg_acb_load_gating_prod != NULL) { | ||
149 | g->ops.clock_gating.slcg_acb_load_gating_prod(g, true); | ||
150 | } | ||
151 | |||
148 | /* | 152 | /* |
149 | * Do this early so any early VMs that get made are capable of mapping | 153 | * Do this early so any early VMs that get made are capable of mapping |
150 | * buffers. | 154 | * buffers. |