mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: improve error print in check_gp_put()
Improve error print in check_gp_put() and dump put pointer stored in channel's gpfifo structure and the put pointer that we read from memory Bug 200089835 Change-Id: I7e854398811330a43d9d9bf86bf29c5986ab22b7 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/722536 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
079956c566
commit
87ccc6a02f
@@ -1178,7 +1178,8 @@ static inline bool check_gp_put(struct gk20a *g,
|
||||
if (c->gpfifo.put != put) {
|
||||
/*TBD: BUG_ON/teardown on this*/
|
||||
gk20a_err(dev_from_gk20a(g), "gp_put changed unexpectedly "
|
||||
"since last update");
|
||||
"since last update, channel put = %u, ram put = %u\n",
|
||||
c->gpfifo.put, put);
|
||||
c->gpfifo.put = put;
|
||||
return false; /* surprise! */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user