gpu: nvgpu: Move function to query rl interleave

Function to query interleave name depends on IOCTL flag definition.
Move that code to fifo_gk20a.c to remove Linux dependency in header.

Change-Id: I6d6a80e550bf30973b2be09febc2347890b77d25
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1577249
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Terje Bergstrom
2017-10-11 11:55:55 -07:00
committed by mobile promotions
parent 9712b4e5ac
commit 12e23c6aad
2 changed files with 17 additions and 17 deletions

View File

@@ -4048,6 +4048,23 @@ u32 gk20a_fifo_pbdma_acquire_val(u64 timeout)
return val;
}
const char *gk20a_fifo_interleave_level_name(u32 interleave_level)
{
switch (interleave_level) {
case NVGPU_RUNLIST_INTERLEAVE_LEVEL_LOW:
return "LOW";
case NVGPU_RUNLIST_INTERLEAVE_LEVEL_MEDIUM:
return "MEDIUM";
case NVGPU_RUNLIST_INTERLEAVE_LEVEL_HIGH:
return "HIGH";
default:
return "?";
}
}
#ifdef CONFIG_TEGRA_GK20A_NVHOST
void gk20a_fifo_add_syncpt_wait_cmd(struct gk20a *g,
struct priv_cmd_entry *cmd, u32 off,