From 56127d0d9b7c1b9a2dc7e73b42fe640d58a723b9 Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Fri, 20 Sep 2024 19:50:09 +0000 Subject: [PATCH] nvidia-oot: add support to use upstream ivc driver add conftest support to use upstream ivc driver if tegra_ivc_empty API is exported by kernel. Bug 4551265 Change-Id: I030bf0c4012aedf4ec623fba2b397869972061a1 Signed-off-by: Manish Bhardwaj Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3214054 Reviewed-by: Bharat Nihalani Reviewed-by: Laxman Dewangan GVS: buildbot_gerritrpt Reviewed-by: svcacv --- scripts/conftest/Makefile | 1 + scripts/conftest/conftest.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index 6c21b96f..b4e4544b 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -186,6 +186,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tc_taprio_qopt_offload_struct_has_cmd NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra264_chip_id NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map +NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_use_ivc_ext_driver NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_ops_struct_has_get_trip_type NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_for_each_trip diff --git a/scripts/conftest/conftest.sh b/scripts/conftest/conftest.sh index f538e6ed..65e148f7 100755 --- a/scripts/conftest/conftest.sh +++ b/scripts/conftest/conftest.sh @@ -8109,6 +8109,19 @@ compile_test() { compile_check_conftest "$CODE" "NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP" "" "types" ;; + tegra_ivc_use_ivc_ext_driver) + # + # Determine to use ivc ext driver + # + CODE=" + #include + void conftest_tegra_ivc_use_ivc_ext_driver(void) { + tegra_ivc_empty(); + }" + + compile_check_conftest "$CODE" "NV_TEGRA_IVC_USE_IVC_EXT_DRIVER" "" "types" + ;; + thermal_zone_device_priv) # # Determine if the function thermal_zone_device_priv() is present.