mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: rename ch_timedout to unserviceable
ch_timedout is not a good variable name for broken and unusable state of the channel. Rename ch_timedout to unserviceable Bug 2092051 Bug 2429295 Change-Id: I633eaff61928d5ef9836dcdc162b07e7a5e03881 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1996865 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit 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
7fed0c1937
commit
2c0933de05
@@ -663,7 +663,7 @@ static int gk20a_channel_wait_semaphore(struct channel_gk20a *ch,
|
||||
int ret = 0;
|
||||
|
||||
/* do not wait if channel has timed out */
|
||||
if (gk20a_channel_check_timedout(ch)) {
|
||||
if (gk20a_channel_check_unserviceable(ch)) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
@@ -685,7 +685,7 @@ static int gk20a_channel_wait_semaphore(struct channel_gk20a *ch,
|
||||
ret = NVGPU_COND_WAIT_INTERRUPTIBLE(
|
||||
&ch->semaphore_wq,
|
||||
*semaphore == payload ||
|
||||
gk20a_channel_check_timedout(ch),
|
||||
gk20a_channel_check_unserviceable(ch),
|
||||
timeout);
|
||||
|
||||
dma_buf_kunmap(dmabuf, offset >> PAGE_SHIFT, data);
|
||||
@@ -709,7 +709,7 @@ static int gk20a_channel_wait(struct channel_gk20a *ch,
|
||||
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
if (gk20a_channel_check_timedout(ch)) {
|
||||
if (gk20a_channel_check_unserviceable(ch)) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
@@ -747,7 +747,7 @@ static int gk20a_channel_wait(struct channel_gk20a *ch,
|
||||
remain = NVGPU_COND_WAIT_INTERRUPTIBLE(
|
||||
&ch->notifier_wq,
|
||||
notif->status == 0 ||
|
||||
gk20a_channel_check_timedout(ch),
|
||||
gk20a_channel_check_unserviceable(ch),
|
||||
args->timeout);
|
||||
|
||||
if (remain == 0 && notif->status != 0) {
|
||||
@@ -817,7 +817,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
|
||||
profile = gk20a_fifo_profile_acquire(ch->g);
|
||||
gk20a_fifo_profile_snapshot(profile, PROFILE_IOCTL_ENTRY);
|
||||
|
||||
if (gk20a_channel_check_timedout(ch)) {
|
||||
if (gk20a_channel_check_unserviceable(ch)) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
@@ -1320,7 +1320,7 @@ long gk20a_channel_ioctl(struct file *filp,
|
||||
}
|
||||
case NVGPU_IOCTL_CHANNEL_GET_TIMEDOUT:
|
||||
((struct nvgpu_get_param_args *)buf)->value =
|
||||
gk20a_channel_check_timedout(ch);
|
||||
gk20a_channel_check_unserviceable(ch);
|
||||
break;
|
||||
case NVGPU_IOCTL_CHANNEL_ENABLE:
|
||||
err = gk20a_busy(ch->g);
|
||||
|
||||
Reference in New Issue
Block a user