diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-12-07 12:29:40 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-25 17:24:24 -0500 |
commit | 729403f545c5bc26ce208d38db65962596951e0a (patch) | |
tree | f3a503445f6acbfe51b2b3b1b355ed474c77726c /drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | |
parent | 758dac5567d3e514ea038d532b7fd86cec83a961 (diff) |
gpu: nvgpu: gv100: INIT WPR region using RPC
- Created nv_pmu_rpc_struct_acr_init_wpr_region struct
- Function gv100_pmu_init_acr() to create & execute
INIT_WPR_REGION using RPC.
- Updated gv100 HAL .init_wpr_region to point
to gv100_pmu_init_acr()
- Added code to handle INIT_WPR_REGION ack in
RPC handler.
Change-Id: I699fa945790689e5f24ad5d3de022efb458662e0
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1613290
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu_ipc.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c index 2811a4b0..77acbafc 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -993,6 +993,15 @@ static void pmu_rpc_handler(struct gk20a *g, struct pmu_msg *msg, | |||
993 | } | 993 | } |
994 | 994 | ||
995 | switch (msg->hdr.unit_id) { | 995 | switch (msg->hdr.unit_id) { |
996 | case PMU_UNIT_ACR: | ||
997 | switch (rpc.function) { | ||
998 | case NV_PMU_RPC_ID_ACR_INIT_WPR_REGION: | ||
999 | nvgpu_pmu_dbg(g, | ||
1000 | "reply NV_PMU_RPC_ID_ACR_INIT_WPR_REGION"); | ||
1001 | g->pmu_lsf_pmu_wpr_init_done = 1; | ||
1002 | break; | ||
1003 | } | ||
1004 | break; | ||
996 | case PMU_UNIT_PERFMON_T18X: | 1005 | case PMU_UNIT_PERFMON_T18X: |
997 | case PMU_UNIT_PERFMON: | 1006 | case PMU_UNIT_PERFMON: |
998 | switch (rpc.function) { | 1007 | switch (rpc.function) { |