gpu: nvgpu: store ch ptr in gr isr data

Store a channel pointer that is either NULL or a referenced channel to
avoid confusion about channel ownership. A pure channel ID is dangerous.

Jira NVGPU-1460

Change-Id: I6f7b4f80cf39abc290ce9153ec6bf5b62918da97
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1955401
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2018-11-15 15:28:11 +02:00
committed by mobile promotions
parent 7df3d58750
commit 4e6d9afab8
2 changed files with 39 additions and 33 deletions

View File

@@ -234,7 +234,7 @@ struct gr_gk20a_isr_data {
u32 data_lo;
u32 data_hi;
u32 curr_ctx;
u32 chid;
struct channel_gk20a *ch;
u32 offset;
u32 sub_chan;
u32 class_num;