Files
linux-nv-oot/drivers/gpu/host1x-emu/Makefile
amitabhd 2cc3c99c6e host1x_emu: Adding API dispatch functionality
Adding dynamic APi dispatch functionality in host1x-fence
modue. This CL exports new host1x wrapper API, which can
be called by client kernel modules. The wrapper API dispatch
call to either Host1x module or Host1x-EMU depending if the
host1x-emu driver registered its interface during its probe.

Bug 5064819

Change-Id: I49445cdce7c3795a2c94fde9d0871da393993554
Signed-off-by: amitabhd <amitabhd@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3306857
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Leslin Varghese <lvarghese@nvidia.com>
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com>
2025-07-24 10:19:15 +00:00

47 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2024-2025 NVIDIA CORPORATION. All rights reserved.
# Enable below flag for hypervisor build configuration
ifeq ($(NV_BUILD_CONFIGURATION_EMU_SYNCPT),1)
ccflags-y += -DHOST1X_EMU_HYPERVISOR
endif
#Enable Tasklet based fence scanning in SyncpointIncr
#ccflags-y += -DHOST1X_EMU_SYNC_INC_TASKLET
# Enable KThread based fence scanning
ccflags-y += -DHOST1X_EMU_KTHREAD_FENCE_SCAN
# Enable HRTimer based fence scanning
ccflags-y += -DHOST1X_EMU_HRTIMER_FENCE_SCAN
# Enable for verification in VDK. Below allow Emulated Syncpoint driver
# to co-exits with "Host1x" driver by exporting modified kernel symbol.
ccflags-y += -DCONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL
ifeq ($(NV_BUILD_CONFIGURATION_EXPOSING_T26X), 1)
# Enable debug
CONFIG_TEGRA_HOST1X_EMU_SYNCPT_DEBUG := 1
endif
LINUXINCLUDE += -I$(srctree.nvidia-oot)/drivers/gpu/host1x-emu/include
LINUXINCLUDE += -I$(srctree.nvidia-oot)/drivers/gpu/host1x-fence/include
host1x-emu-y += \
dev.o \
poll.o \
ioctl.o \
fence.o \
nvhost.o \
syncpt.o \
hw/host1xEMU.o
ifdef CONFIG_TEGRA_HOST1X_EMU_SYNCPT_DEBUG
host1x-emu-y += \
debug.o
ccflags-y += -DHOST1X_EMU_SYNCPT_DEGUB
endif
obj-m := host1x-emu.o