summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
diff options
context:
space:
mode:
authorVijayakumar <vsubbu@nvidia.com>2016-09-06 07:41:39 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-07 04:36:04 -0400
commit8de7ea2543823b6035e52fe06e7747f49393b01d (patch)
tree2e9010a6d2411ca6e7494577cecaef5f420a3a7f /drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
parent61f26b68f6e2c9245861ed6d1dc7311282549667 (diff)
gpu: nvgpu: fix init msg param handing
bug 1809509 latest pmu now returns information about 3 queues only. nvgpu pmu driver still support 5 queues to be compatible with older firmware. handling this properly Change-Id: I4bc166712465f4b52537c97e6d254760c59e0d16 Signed-off-by: Vijayakumar <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1215533 (cherry picked from commit c7428c031a095b2d42512b7a8a0a9d818290e376) Reviewed-on: http://git-master/r/1231040 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
index 78a37436..fe82eca4 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
@@ -256,6 +256,9 @@ struct pmu_init_msg_pmu_v2 {
256}; 256};
257 257
258#define PMU_QUEUE_COUNT_FOR_V3 3 258#define PMU_QUEUE_COUNT_FOR_V3 3
259#define PMU_QUEUE_HPQ_IDX_FOR_V3 0
260#define PMU_QUEUE_LPQ_IDX_FOR_V3 1
261#define PMU_QUEUE_MSG_IDX_FOR_V3 2
259struct pmu_init_msg_pmu_v3 { 262struct pmu_init_msg_pmu_v3 {
260 u8 msg_type; 263 u8 msg_type;
261 u8 queue_index[PMU_QUEUE_COUNT_FOR_V3]; 264 u8 queue_index[PMU_QUEUE_COUNT_FOR_V3];