From fe31e92d6cb85bb0827a1a9658818bd5a21936fb Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Thu, 22 Jun 2023 09:57:22 -0700 Subject: [PATCH] tegra: hwpm: enable video unit profiling Enable HWPM profiling for VIC, OFA and NVENC video units in external builds. Bug 4158291 Change-Id: I09589bbd70de2f1061dc91926f689266f36d062c Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2914401 (cherry picked from commit b76c2ace05b5621a6f0d1fcbd9456366029a56a7) Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2924713 Reviewed-by: Vasuki Shankar Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit --- drivers/tegra/hwpm/Makefile.t234.sources | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/tegra/hwpm/Makefile.t234.sources b/drivers/tegra/hwpm/Makefile.t234.sources index 48ff7b8..01c1304 100644 --- a/drivers/tegra/hwpm/Makefile.t234.sources +++ b/drivers/tegra/hwpm/Makefile.t234.sources @@ -61,6 +61,15 @@ nvhwpm-t234-objs += hal/t234/ip/pva/t234_pva.o ccflags-y += -DCONFIG_T234_HWPM_IP_MSS_CHANNEL nvhwpm-t234-objs += hal/t234/ip/mss_channel/t234_mss_channel.o +ccflags-y += -DCONFIG_T234_HWPM_IP_NVENC +nvhwpm-t234-objs += hal/t234/ip/nvenc/t234_nvenc.o + +ccflags-y += -DCONFIG_T234_HWPM_IP_OFA +nvhwpm-t234-objs += hal/t234/ip/ofa/t234_ofa.o + +ccflags-y += -DCONFIG_T234_HWPM_IP_VIC +nvhwpm-t234-objs += hal/t234/ip/vic/t234_vic.o + # Include other IPs if minimal build is not enabled. ifneq ($(CONFIG_TEGRA_HWPM_MINIMAL_IP_ENABLE),y) ccflags-y += -DCONFIG_T234_HWPM_IP_DISPLAY @@ -84,12 +93,6 @@ nvhwpm-t234-objs += hal/t234/ip/mss_gpu_hub/t234_mss_gpu_hub.o ccflags-y += -DCONFIG_T234_HWPM_IP_NVDEC nvhwpm-t234-objs += hal/t234/ip/nvdec/t234_nvdec.o -ccflags-y += -DCONFIG_T234_HWPM_IP_NVENC -nvhwpm-t234-objs += hal/t234/ip/nvenc/t234_nvenc.o - -ccflags-y += -DCONFIG_T234_HWPM_IP_OFA -nvhwpm-t234-objs += hal/t234/ip/ofa/t234_ofa.o - ccflags-y += -DCONFIG_T234_HWPM_IP_PCIE nvhwpm-t234-objs += hal/t234/ip/pcie/t234_pcie.o @@ -99,9 +102,6 @@ nvhwpm-t234-objs += hal/t234/ip/scf/t234_scf.o ccflags-y += -DCONFIG_T234_HWPM_IP_VI nvhwpm-t234-objs += hal/t234/ip/vi/t234_vi.o -ccflags-y += -DCONFIG_T234_HWPM_IP_VIC -nvhwpm-t234-objs += hal/t234/ip/vic/t234_vic.o - endif endif