Repository navigation
feat(mte,dmabuf,android): ARM64 MTE safety, CONTPTE DMA-BUF heap, opt-in governors & Prefab AAR - #60
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fs_mte(include/freesched/fs_mte.h,src/fs_mte.c,single_include/fs_mte.h):PR_GET_TAGGED_ADDR_CTRL(56) andgetauxval(AT_HWCAP2).fs_mte_untag_ptr,fs_mte_ptr_tag,fs_mte_ptr_tbi_byte,fs_mte_is_granule_aligned,fs_mte_granule_align_up,fs_mte_ptr_equal_untagged,fs_mte_hash_ptr_untagged) with zeroPR_SET_TAGGED_ADDR_CTRLmutation (FS_MTE_OPT_IN_UNSAFE_THREAD_DISABLEdefaults to0).src/fs_backend_openbuenos.cppimmutable weight lookup/unregistration (fs_ob_ensure_immutable_locked,fs_ob_unreg_immutable_locked) to comparefs_mte_untag_ptr()while preserving original tagged pointers for CPU access.fs_dmabuf_contpte(include/freesched/fs_dmabuf.h,src/fs_dmabuf_contpte.cpp,single_include/fs_contpte_heap.h):src/fs_dmabuf.cpp./dev/dma_heap/system+ SELinux (EACCES/ENOENT/ioctl/mmap) probe (fs_dmabuf_probe_contpte), default-ONsystem-uncachedrejection (FS_DMABUF_ERR_UNCACHED_BLOCKED),64 KiB(CONTPTE) /2 MiBalignment helpers, reusable pre-pinned bump arena, and silent host fallback (fs_dmabuf_contpte_alloc_or_fallback).fs_governor(include/freesched/fs_governor.h,src/fs_governor.cpp):-DFS_GOV_EXPERIMENTAL=1AND runtimecfg.experimental_opt_in = true(ADPFthermal curve +83.33 mscoalescing,1 HzARR idle scheduler hints,LMKD <= 7.5 GiBpinned admission +O_DIRECTguard, andSVE2-PMULL/NEON-AES-CTRcluster dispatcher).tools/fs_probe.cppJSON diagnostics,tests/test_freesched_patch.cpp,tests/test_stb_headers.c,android-aar/(io.github.freesilicon:freesched-androidPrefab AAR Gradle/CMake packaging),cmake/freeschedConfig.cmake.in,SUPPORTED.md,.github/ISSUE_TEMPLATE/bug_report.yml, and.github/workflows/{release-prefab-aar.yml,stale-probe-check.yml,public-roads-firewall.yml}.Makefile,CMakeLists.txt,android/src/main/cpp/CMakeLists.txt,README.md, and.github/workflows/ci.ymladditively.Verification
make clean && make verify && make sanitize && make clean: PASSED (strict C11/C++17 header syntax checks, all existing tests,test_freesched_patchwithFS_GOV_EXPERIMENTAL=OFFandON,test_stb_headersC11/C++17,fs_probe,twin-test,clean-room-audit.sh, and ASan+UBSan).cmake+ctest(FS_GOV_EXPERIMENTAL=OFF,45/45passed) +FS_GOV_EXPERIMENTAL=ON+-DFREESCHED_BUILD_TESTS=OFF -DFREESCHED_BUILD_TOOLS=OFF+cmake --install: PASSED../scripts/clean-room-audit.shacross233files and./scripts/audit-no-async-ring.sh: PASSED (0 errors).