From ed530d99fe0ea959bf34c80c75e2fcf9d5d51ac1 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Thu, 7 Mar 2019 15:57:04 +0530 Subject: [PATCH] gpu: nvgpu: print PMU command/message unit-id upon RPC failure Print PMU command/message unit-id upon RPC failure to know which command/message failed using RPC unit-id Bug 200499055 Change-Id: Ifbe033347c5e1902328acc5c1f96f38860093fd2 Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master.nvidia.com/r/2034783 Reviewed-by: Ramesh Mylavarapu GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury Reviewed-by: Alex Waterman Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c index d9f33d3ef..35b0d4dd3 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c @@ -1277,8 +1277,9 @@ static void pmu_rpc_handler(struct gk20a *g, struct pmu_msg *msg, sizeof(struct nv_pmu_rpc_header)); if (rpc.flcn_status != 0U) { - nvgpu_err(g, " failed RPC response, status=0x%x, func=0x%x", - rpc.flcn_status, rpc.function); + nvgpu_err(g, + "failed RPC response, unit-id=0x%x, func=0x%x, status=0x%x", + rpc.unit_id, rpc.function, rpc.flcn_status); goto exit; }