mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: rename gk20a_channel_* APIs
Renamed gk20a_channel_* APIs to nvgpu_channel_* APIs. Removed unused channel API int gk20a_wait_channel_idle Renamed nvgpu_channel_free_usermode_buffers in os/linux-channel.c to nvgpu_os_channel_free_usermode_buffers to avoid conflicts with the API with the same name in channel unit. Jira NVGPU-3248 Change-Id: I21379bd79e64da7e987ddaf5d19ff3804348acca Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2121902 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
1bf55ec715
commit
f39a5c4ead
@@ -518,7 +518,7 @@ static int dbg_bind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
|
||||
g->name, args->channel_fd);
|
||||
|
||||
/*
|
||||
* Although gk20a_get_channel_from_file gives us a channel ref, need to
|
||||
* Although nvgpu_channel_get_from_file gives us a channel ref, need to
|
||||
* hold a ref to the file during the session lifetime. See comment in
|
||||
* struct dbg_session_channel_data.
|
||||
*/
|
||||
@@ -526,7 +526,7 @@ static int dbg_bind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
|
||||
if (!f)
|
||||
return -ENODEV;
|
||||
|
||||
ch = gk20a_get_channel_from_file(args->channel_fd);
|
||||
ch = nvgpu_channel_get_from_file(args->channel_fd);
|
||||
if (!ch) {
|
||||
nvgpu_log_fn(g, "no channel found for fd");
|
||||
err = -EINVAL;
|
||||
@@ -1835,7 +1835,7 @@ static int dbg_unbind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
|
||||
nvgpu_log(g, gpu_dbg_fn|gpu_dbg_gpu_dbg, "%s fd=%d",
|
||||
g->name, args->channel_fd);
|
||||
|
||||
ch = gk20a_get_channel_from_file(args->channel_fd);
|
||||
ch = nvgpu_channel_get_from_file(args->channel_fd);
|
||||
if (!ch) {
|
||||
nvgpu_log_fn(g, "no channel found for fd");
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user