gpu: nvgpu: update .clear to use runlist_id and chid

- Moving to use IDs rather than struct makes it reusable on server side.
- move channel bind/unbind to use .enable/.clear HALs

Jira GVSCI-15770

Change-Id: I86d4aae2953024e537e32a35fe9cabb1b91cd201
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2863436
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Richard Zhao
2023-01-31 17:42:06 -08:00
committed by mobile promotions
parent 3edae21ca6
commit 2ff110f722
6 changed files with 21 additions and 19 deletions

View File

@@ -1213,7 +1213,7 @@ static const struct gops_channel ga10b_ops_channel = {
.free_inst = nvgpu_channel_free_inst,
.bind = ga10b_channel_bind,
.unbind = ga10b_channel_unbind,
.clear = ga10b_channel_unbind,
.clear = ga10b_channel_clear,
.enable = ga10b_channel_enable,
.disable = ga10b_channel_disable,
.count = ga10b_channel_count,