gpu: nvgpu: unit: fifo: fifo unit test

This unit test covers most of the nvgpu.common.fifo.fifo module lines
and almost all branches.

Jira NVGPU-3697

Change-Id: I5722277a3e1630a902f63b707eb3de1c4e1876b0
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2237796
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2019-11-12 14:03:01 -08:00
committed by Alex Waterman
parent 917fb2e2df
commit 0ca906a6ad
69 changed files with 701 additions and 66 deletions

View File

@@ -23,7 +23,7 @@
OBJS = nvgpu-runlist.o
MODULE = nvgpu-runlist
LIB_PATHS += -lnvgpu-fifo
LIB_PATHS += -lnvgpu-fifo-common
include ../../Makefile.units
lib$(MODULE).so: fifo

View File

@@ -23,7 +23,7 @@
OBJS = nvgpu-runlist-gk20a.o
MODULE = nvgpu-runlist-gk20a
LIB_PATHS += -lnvgpu-fifo
LIB_PATHS += -lnvgpu-fifo-common
include ../../../Makefile.units
lib$(MODULE).so: fifo

View File

@@ -44,7 +44,7 @@
#include <nvgpu/hw/gk20a/hw_fifo_gk20a.h>
#include "../../nvgpu-fifo.h"
#include "../../nvgpu-fifo-common.h"
#include "nvgpu-runlist-gk20a.h"
#ifdef RUNLIST_GK20A_UNIT_DEBUG

View File

@@ -23,7 +23,7 @@
OBJS = nvgpu-runlist-gv11b.o
MODULE = nvgpu-runlist-gv11b
LIB_PATHS += -lnvgpu-fifo
LIB_PATHS += -lnvgpu-fifo-common
include ../../../Makefile.units
lib$(MODULE).so: fifo

View File

@@ -44,7 +44,7 @@
#include <nvgpu/hw/gv11b/hw_ram_gv11b.h>
#include "../../nvgpu-fifo.h"
#include "../../nvgpu-fifo-common.h"
#include "nvgpu-runlist-gv11b.h"
#define RUNLIST_GV11B_UNIT_DEBUG

View File

@@ -43,7 +43,7 @@
#define RL_MAX_TIMESLICE_TIMEOUT ram_rl_entry_timeslice_timeout_v(U32_MAX)
#define RL_MAX_TIMESLICE_SCALE ram_rl_entry_timeslice_scale_v(U32_MAX)
#include "../nvgpu-fifo.h"
#include "../nvgpu-fifo-common.h"
#ifdef RUNLIST_UNIT_DEBUG
#define unit_verbose unit_info