Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CONFIG_RT_GROUP_SCHED kernel config option #49

Closed
wants to merge 1 commit into from

Conversation

ShujathMohd
Copy link

Disable CONFIG_RT_GROUP_SCHED to control RT cpu allowance globally.

This fixes Bluetooth on Android 12

E bt_osi_alarm: system/bt/osi/src/alarm.cc:683 timer_create_internal: timer_create_internal unable to create timer with clock 7
F droid.bluetoot: [1111/202410.566686:FATAL:alarm.cc(169)] Check failed: false.

F DEBUG : Cmdline: com.android.bluetooth
F DEBUG : pid: 1497, tid: 1556, name: bt_stack_manage >>> com.android.bluetooth <<<
F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
F DEBUG : Abort message: '[1111/202424.867112:FATAL:alarm.cc(169)] Check failed: false

Ref : https://android.googlesource.com/kernel/configs/+/f5591f5e9e7bc4d7984696055955653373e9b48a%5E%21/#F0

Android does not use per-cgroup CPU allowance for RT tasks feature.
Disable it so that RT task allowance is controlled globally using
/proc/sys/kernel/sched_rt_runtime_us.

Bug: 149954332
Test: TreeHugger
Change-Id: I63fe994732d9abb0119a79870f4c3c772db75aa7
Suggested-by: Snild Dolkow <snild@sony.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: I63fe994732d9abb0119a79870f4c3c772db75aa7

Ref : https://android.googlesource.com/kernel/configs/+/f5591f5e9e7bc4d7984696055955653373e9b48a%5E%21/#F0
@derfelot
Copy link
Member

derfelot commented Dec 2, 2021

Since this branch is for 11, I won't merge it here.

I will start pushing the yoshino 12 bringup this weekend and make a 19.0 branch.

@derfelot
Copy link
Member

I picked it into 19 branch

2ea61fc

@derfelot derfelot closed this Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants