diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-10-27 05:21:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 08:09:29 -0400 |
commit | 730ba218c1a57486f05e02cfaddf6a75e95ff498 (patch) | |
tree | 5df44782e95507ccdd2968ef34c4906f3ffb8aa6 /drivers/gpu/nvgpu/tsg_t19x.h | |
parent | f472922b3582dbba78b633958a4cb7b65ddb3f03 (diff) |
gpu: nvgpu: gv11b: Kernel iface for Dynamic TPC-PG
This patch adds kernel interface for dynamic TPC-PG feature.
User-space needs to send TPC-PG args to kernel via ioctl.
Dynamic TPC-PG feature will allow every context to specify the
number of TPC's it will use to run its workload.
This way, graphics driver can power off non-required TPC's
if a particular context has light to medium workload.
JIRA GPUT19x-16
Change-Id: Id4846245a6414b719599d04784cbe2ca5282f4ad
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1575848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/tsg_t19x.h')
-rw-r--r-- | drivers/gpu/nvgpu/tsg_t19x.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/tsg_t19x.h b/drivers/gpu/nvgpu/tsg_t19x.h index 18c00821..d1f47cc3 100644 --- a/drivers/gpu/nvgpu/tsg_t19x.h +++ b/drivers/gpu/nvgpu/tsg_t19x.h | |||
@@ -22,9 +22,15 @@ | |||
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef _NVGPU_TSG_T19X_H_ | 25 | #ifndef __NVGPU_TSG_T19X_H__ |
26 | #define _NVGPU_TSG_T19X_H_ | 26 | #define __NVGPU_TSG_T19X_H__ |
27 | 27 | ||
28 | #include "common/linux/ioctl_tsg_t19x.h" | 28 | #include <nvgpu/types.h> |
29 | |||
30 | struct tsg_t19x { | ||
31 | u32 num_active_tpcs; | ||
32 | u8 tpc_pg_enabled; | ||
33 | bool tpc_num_initialized; | ||
34 | }; | ||
29 | 35 | ||
30 | #endif | 36 | #endif |