mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
committed by
mobile promotions
parent
9712b4e5ac
commit
12e23c6aad
@@ -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,
|
||||
|
||||
@@ -210,23 +210,6 @@ struct fifo_gk20a {
|
||||
u32 channel_base;
|
||||
};
|
||||
|
||||
static inline 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 "?";
|
||||
}
|
||||
}
|
||||
|
||||
struct ch_state {
|
||||
int pid;
|
||||
int refs;
|
||||
|
||||
Reference in New Issue
Block a user