mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: pass gk20a struct to gk20a_busy
After driver remove, the device structure passed in gk20a_busy can be
invalid. To solve this the prototype of the function is modified to pass
the gk20a struct instead of the device pointer.
bug 200277762
JIRA: EVLR-1023
Change-Id: I08eb74bd3578834d45115098ed9936ebbb436fdf
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1320194
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 2a502bdd5f)
Reviewed-on: http://git-master/r/1327754
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ecd71ed447
commit
83721dfab9
@@ -332,7 +332,7 @@ static int gk20a_fecs_trace_poll(struct gk20a *g)
|
||||
int cnt;
|
||||
int err;
|
||||
|
||||
err = gk20a_busy(g->dev);
|
||||
err = gk20a_busy(g);
|
||||
if (unlikely(err))
|
||||
return err;
|
||||
|
||||
@@ -372,7 +372,7 @@ static int gk20a_fecs_trace_poll(struct gk20a *g)
|
||||
|
||||
done:
|
||||
nvgpu_mutex_release(&trace->poll_lock);
|
||||
gk20a_idle(g->dev);
|
||||
gk20a_idle(g);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user