diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-03-25 04:41:54 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:02:16 -0400 |
commit | 87ccc6a02f9133805c58ad7b1791baf4f33249f7 (patch) | |
tree | 014ebd6dd31e380707fd2c69520327b10b985784 /drivers | |
parent | 079956c5669df0dfcfff4358a5183e01bd66cba3 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index ec75b50e..dc44d4b1 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -1178,7 +1178,8 @@ static inline bool check_gp_put(struct gk20a *g, | |||
1178 | if (c->gpfifo.put != put) { | 1178 | if (c->gpfifo.put != put) { |
1179 | /*TBD: BUG_ON/teardown on this*/ | 1179 | /*TBD: BUG_ON/teardown on this*/ |
1180 | gk20a_err(dev_from_gk20a(g), "gp_put changed unexpectedly " | 1180 | gk20a_err(dev_from_gk20a(g), "gp_put changed unexpectedly " |
1181 | "since last update"); | 1181 | "since last update, channel put = %u, ram put = %u\n", |
1182 | c->gpfifo.put, put); | ||
1182 | c->gpfifo.put = put; | 1183 | c->gpfifo.put = put; |
1183 | return false; /* surprise! */ | 1184 | return false; /* surprise! */ |
1184 | } | 1185 | } |