From 1cd97ca56afad8fce700a5919c48c3c220fd64b3 Mon Sep 17 00:00:00 2001 From: ChenHengming Date: Thu, 21 Jul 2016 08:03:43 +0000 Subject: [PATCH] [ion]: use default sysfs path rather than remount path git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1061 6e48237b-75ef-9749-8fc9-41990f28c85a --- osal/allocator/allocator_ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osal/allocator/allocator_ion.c b/osal/allocator/allocator_ion.c index ac3cb65a..2bce829b 100644 --- a/osal/allocator/allocator_ion.c +++ b/osal/allocator/allocator_ion.c @@ -204,7 +204,7 @@ RK_S32 check_sysfs_iommu() if (!dts_info_found) { for (i = 0; i < MPP_ARRAY_ELEMS(system_heaps); i++) { - snprintf(path, sizeof(path), "/d/ion/heaps"); + snprintf(path, sizeof(path), "/sys/kernel/debug/ion/heaps"); if (find_dir_in_path(path, system_heaps[i], sizeof(path))) { mpp_log("%s found\n", system_heaps[i]); ret = ION_DETECT_IOMMU_ENABLE;