gpu: nvgpu: fix value leaked in log

The timeout message of nvgpu_timeout_expired_msg() leaks
a stack value (%llx) in error log on timeout. As the format
expects 1 argument and none is given, fix this by specifying
the required argument.

Manual port of https://git-master.nvidia.com/r/c/linux-nvgpu/+/2205423

Bug 2780861
Bug 3051385

Change-Id: Ic223e4b79bde718108826f095740b10b54a5e84d
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2366452
(cherry picked from commit 372837506af77e2c5b8489ee2123292778abe75d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2370285
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Peter Daifuku
2020-06-24 16:40:40 -07:00
committed by mobile promotions
parent 3d4a70a4b9
commit 1b161b6c7a

View File

@@ -1504,7 +1504,8 @@ int gv11b_fb_mmu_invalidate_replay(struct gk20a *g,
}
nvgpu_udelay(5);
} while (!nvgpu_timeout_expired_msg(&timeout,
"invalidate replay failed on 0x%llx"));
"invalidate replay failed 0x%lx",
invalidate_replay_val));
if (err) {
nvgpu_err(g, "invalidate replay timedout");
}