Files
linux-nv-oot/drivers/gpu/host1x-emu/Makefile
amitabhd 0f04d6c204 host1x_emu: HR Timer Syncpoint Fence Polling
1. This change enable HR Timer Syncpoint polling and
disable the thread based fence polling.

2. Default timer interval is 200usec. The timer value
is taken from DT. If the timer interval in DT is less
then 50usec, default timer interval is taken.

Jira HOSTX-5527

Change-Id: I6644f1362f28a8901e4e384f1290be9807c30036
Signed-off-by: amitabhd <amitabhd@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268636
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Santosh BS <santoshb@nvidia.com>
2025-07-24 10:19:13 +00:00

42 lines
1.0 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 HRTimer based fence scanning
ccflags-y += -DHOST1X_EMU_HRTIMER_FENCE_SCAN
ifeq ($(NV_BUILD_CONFIGURATION_EXPOSING_T26X), 1)
LINUXINCLUDE += -I$(srctree.nvidia-oot)/drivers/gpu/host1x-emu/include
# 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
# Enable debug
CONFIG_TEGRA_HOST1X_EMU_SYNCPT_DEBUG := 1
endif
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