sleirsgoevy / exynos-kvm-patch

Kernel patch to enable KVM/ARM on Samsung Exynos phones.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux only detect 4 cores out of 8 when using this patch

raspiduino opened this issue · comments

Yes, everything still works, but with 4 cores instead of 8.

I have a Samsung Galaxy A6, which has exynos7870 SoC with 8 Cortex-A53 cores. But after applying this patch, Linux only detect 4 cores. The other 4 cores are always set as 0Mhz, or offline (output from CPU Info app, CPU-Z app and SmartPack Kernel Manager). Using htop output 4 cores, lscpu also output 4 cores.

I don't know if Knox (vmm.elf) has the responsibility for starting up these 4 cores?

Any ideas? Thanks!

Also, this log in dmesg repeated many times:

zswap: can't allocate compressor transform
[17874.136006] _cpu_up: attempt to bring up CPU 4 failed
[17874.136136] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.137462] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.137494] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.142329] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.142367] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.142395] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17874.162102] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.162140] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.203496] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17874.205994] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.206547] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.212243] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.212288] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.212322] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17874.229663] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.229708] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.236050] zswap: can't allocate compressor transform
[17874.236091] _cpu_up: attempt to bring up CPU 4 failed
[17874.236239] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.264556] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17874.267680] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.267725] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.273383] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.273427] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.273461] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17874.287805] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17874.287851] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17874.336080] zswap: can't allocate compressor transform
[17874.336118] _cpu_up: attempt to bring up CPU 4 failed
[17874.336263] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.436085] zswap: can't allocate compressor transform
[17874.436123] _cpu_up: attempt to bring up CPU 4 failed
[17874.436268] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.451031] s2mu005-fuelgauge 11-003b: s2mu005_get_avgcurrent: MONOUT(0xf906)
[17874.452181] s2mu005-fuelgauge 11-003b: s2mu005_get_avgcurrent: avg current (436)mA
[17874.452217] s2mu005-fuelgauge 11-003b: s2mu005_get_avgcurrent: SOC(8531)%
[17874.453527] s2mu005-fuelgauge 11-003b: s2mu005_get_vbat: data0 (197) data1 (135)
[17874.453562] s2mu005-fuelgauge 11-003b: s2mu005_get_vbat: vbat (4242)
[17874.536078] zswap: can't allocate compressor transform
[17874.536116] _cpu_up: attempt to bring up CPU 4 failed
[17874.536259] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.636097] zswap: can't allocate compressor transform
[17874.636136] _cpu_up: attempt to bring up CPU 4 failed
[17874.636284] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.639427] wl_android_priv_cmd: Android private cmd "GET_SNR" on wlan0
[17874.640922] wl_android_priv_cmd: Android private cmd "GET_LQCM_REPORT" on wlan0
[17874.640988] Unknown PRIVATE command GET_LQCM_REPORT - ignored
[17874.641527] wl_android_priv_cmd: Android private cmd "GET_CU" on wlan0
[17874.641585] Unknown PRIVATE command GET_CU - ignored
[17874.736090] zswap: can't allocate compressor transform
[17874.736129] _cpu_up: attempt to bring up CPU 4 failed
[17874.736274] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.836092] zswap: can't allocate compressor transform
[17874.836131] _cpu_up: attempt to bring up CPU 4 failed
[17874.836276] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17874.936067] zswap: can't allocate compressor transform
[17874.936106] _cpu_up: attempt to bring up CPU 4 failed
[17874.936249] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.036070] zswap: can't allocate compressor transform
[17875.036109] _cpu_up: attempt to bring up CPU 4 failed
[17875.036253] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.136068] zswap: can't allocate compressor transform
[17875.136105] _cpu_up: attempt to bring up CPU 4 failed
[17875.136248] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.236091] zswap: can't allocate compressor transform
[17875.236129] _cpu_up: attempt to bring up CPU 4 failed
[17875.236274] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.336155] zswap: can't allocate compressor transform
[17875.336195] _cpu_up: attempt to bring up CPU 4 failed
[17875.336342] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.446075] zswap: can't allocate compressor transform
[17875.446103] _cpu_up: attempt to bring up CPU 4 failed
[17875.446221] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.528632] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17875.531160] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.531189] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_generate_key() returns 0
[17875.546104] zswap: can't allocate compressor transform
[17875.546144] _cpu_up: attempt to bring up CPU 4 failed
[17875.546295] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.566034] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17875.569368] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.569413] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.575119] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.575164] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.575198] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17875.593733] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.593777] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.642553] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17875.645353] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.645396] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.646055] zswap: can't allocate compressor transform
[17875.646092] _cpu_up: attempt to bring up CPU 4 failed
[17875.646256] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.651722] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.651768] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.651802] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17875.654657] wl_android_priv_cmd: Android private cmd "GET_SNR" on wlan0
[17875.655965] wl_android_priv_cmd: Android private cmd "GET_LQCM_REPORT" on wlan0
[17875.656036] Unknown PRIVATE command GET_LQCM_REPORT - ignored
[17875.656651] wl_android_priv_cmd: Android private cmd "GET_CU" on wlan0
[17875.656711] Unknown PRIVATE command GET_CU - ignored
[17875.669782] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.669828] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.704586] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17875.705920] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.707463] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.713161] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.713205] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.713239] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17875.727340] init: starting service 'proca'...
[17875.727754] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17875.727796] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17875.746058] zswap: can't allocate compressor transform
[17875.746097] _cpu_up: attempt to bring up CPU 4 failed
[17875.746253] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.825084] Trustonic TEE: a01|[PA_TZ_DRV] [INF] [drMainInternal:81] Driver has been buildNov 25 2019, 14:31:38
[17875.825108] Trustonic TEE: a01|[PA_TZ_DRV] [VBS] [ExchLoop:64] Exception handler thread is running.
[17875.825125] Trustonic TEE: a02|[PA_TZ_DRV] [DBG] [IpchLoop:56] IPC handler thread is running
[17875.825141] Trustonic TEE: a03|[PA_TZ_DRV] [DBG] [DcihLoop:187] DCI handler thread is running
[17875.828878] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [PrintVersion:37] Version: PA_Driver,t-base,version_2.2.15,release,teamcity@nightly:1015
[17875.828901] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [KernelGetKaslrOffset:115] KASLR Magic code is NOT found.
[17875.828918] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [ConfigValidate:145] Wrong config size obtained from kernel.
[17875.828934] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [ConfigLoadFromKernel:207] Config is invalid.
[17875.828950] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [ConfigInit:241] Can not load configuration structure
[17875.828967] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [KernelNextMemoryConfiguration:19] All memory configuration is checked.
[17875.828983] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [Entry:29] Can not initialize PA driver
[17875.828999] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [MultibuildInternal_TA_OpenSessionEntryPoint:60] Failed Entry.
[17875.830012] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [PrintVersion:37] Version: PA_Driver,t-base,version_2.2.15,release,teamcity@nightly:1015
[17875.830032] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [KernelNextMemoryConfiguration:19] All memory configuration is checked.
[17875.830048] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [Entry:29] Can not initialize PA driver
[17875.830065] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [MultibuildInternal_TA_OpenSessionEntryPoint:60] Failed Entry.
[17875.830949] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [PrintVersion:37] Version: PA_Driver,t-base,version_2.2.15,release,teamcity@nightly:1015
[17875.830968] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [KernelNextMemoryConfiguration:19] All memory configuration is checked.
[17875.830984] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [Entry:29] Can not initialize PA driver
[17875.831001] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [MultibuildInternal_TA_OpenSessionEntryPoint:60] Failed Entry.
[17875.831917] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [PrintVersion:37] Version: PA_Driver,t-base,version_2.2.15,release,teamcity@nightly:1015
[17875.831937] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [KernelNextMemoryConfiguration:19] All memory configuration is checked.
[17875.831954] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [Entry:29] Can not initialize PA driver
[17875.831970] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [MultibuildInternal_TA_OpenSessionEntryPoint:60] Failed Entry.
[17875.832798] Trustonic TEE: a03|[PA_TZ_DRV] [INF] [PrintVersion:37] Version: PA_Driver,t-base,version_2.2.15,release,teamcity@nightly:1015
[17875.832817] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [KernelNextMemoryConfiguration:19] All memory configuration is checked.
[17875.832833] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [Entry:29] Can not initialize PA driver
[17875.832849] Trustonic TEE: a03|[PA_TZ_DRV] [ERR] [MultibuildInternal_TA_OpenSessionEntryPoint:60] Failed Entry.
[17875.836072] init: Service 'proca' (pid 11186) exited with status 0
[17875.836123] init: Sending signal 9 to service 'proca' (pid 11186) process group...
[17875.836308] libprocessgroup: Successfully killed process cgroup uid 1000 pid 11186 in 0ms
[17875.836455] init: updatable process 'proca' exited 4 times in 4 minutes
[17875.836533] init: Init cannot set 'ro.init.updatable_crashing' to '1': Read-only property was already set
[17875.846027] zswap: can't allocate compressor transform
[17875.846045] _cpu_up: attempt to bring up CPU 4 failed
[17875.846129] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17875.853332] mif: LNK RX: fc ec 17 00 | 13 00 b1 00 07 06 03 6e 63 63 01 6e 09 c8 00 02 ff 01 ff 80
[17875.946096] zswap: can't allocate compressor transform
[17875.946135] _cpu_up: attempt to bring up CPU 4 failed
[17875.946286] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.046100] zswap: can't allocate compressor transform
[17876.046139] _cpu_up: attempt to bring up CPU 4 failed
[17876.046288] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.146119] zswap: can't allocate compressor transform
[17876.146158] _cpu_up: attempt to bring up CPU 4 failed
[17876.146308] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.246082] zswap: can't allocate compressor transform
[17876.246122] _cpu_up: attempt to bring up CPU 4 failed
[17876.246275] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.323648] mif: LNK RX: fc eb 17 00 | 13 00 50 00 07 06 03 6f 63 63 00 6f 0a c8 00 02 ff 02 ff 01
[17876.346084] zswap: can't allocate compressor transform
[17876.346123] _cpu_up: attempt to bring up CPU 4 failed
[17876.346274] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.446334] zswap: can't allocate compressor transform
[17876.446372] _cpu_up: attempt to bring up CPU 4 failed
[17876.446519] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.546012] zswap: can't allocate compressor transform
[17876.546051] _cpu_up: attempt to bring up CPU 4 failed
[17876.546203] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.646060] zswap: can't allocate compressor transform
[17876.646096] _cpu_up: attempt to bring up CPU 4 failed
[17876.646243] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.670443] wl_android_priv_cmd: Android private cmd "GET_SNR" on wlan0
[17876.671877] wl_android_priv_cmd: Android private cmd "GET_LQCM_REPORT" on wlan0
[17876.671942] Unknown PRIVATE command GET_LQCM_REPORT - ignored
[17876.672473] wl_android_priv_cmd: Android private cmd "GET_CU" on wlan0
[17876.672532] Unknown PRIVATE command GET_CU - ignored
[17876.746100] zswap: can't allocate compressor transform
[17876.746138] _cpu_up: attempt to bring up CPU 4 failed
[17876.746290] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.846105] zswap: can't allocate compressor transform
[17876.846128] _cpu_up: attempt to bring up CPU 4 failed
[17876.846210] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.885438] do_ni_syscall: 6 callbacks suppressed
[17876.885457] Jit thread pool[11193]: syscall 389
[17876.885472] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0) 
[17876.885484] TIF_FOREIGN_FPSTATE: 0, FP/SIMD depth 0, cpu: 0
[17876.885499] CPU: 2 MPIDR: 80000002 PID: 11193 Comm: Jit thread pool Tainted: G        W      3.18.91-g29e58f1e-dirty #1
[17876.885511] Hardware name: Samsung A6 LTE OPEN rev03 board based on Exynos7870 (DT)
[17876.885524] task: ffffffc002d86a00 ti: ffffffc007478000 task.ti: ffffffc007478000
[17876.885537] PC is at 0xe687c010
[17876.885548] LR is at 0xe35a70c1
[17876.885559] pc : [<00000000e687c010>] lr : [<00000000e35a70c1>] pstate: 60070010
[17876.885570] sp : 00000000d41d5960
[17876.885581] x12: 00000000d41d5970 
[17876.885591] x11: 00000000b68a7200 x10: 00000000e68d9260 
[17876.885602] x9 : 00000000e8059600 x8 : 00000000b68a7238 
[17876.885613] x7 : 0000000000000185 x6 : 0000000000000001 
[17876.885624] x5 : 0000000070d571a8 x4 : 00000000e68d9260 
[17876.885635] x3 : 0000000070d571a8 x2 : 00000000ba8a7240 
[17876.885646] x1 : 0000000000000000 x0 : 0000000000000020 

[17876.891437] Jit thread pool[11193]: syscall 389
[17876.891458] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0) 
[17876.891471] TIF_FOREIGN_FPSTATE: 0, FP/SIMD depth 0, cpu: 0
[17876.891486] CPU: 2 MPIDR: 80000002 PID: 11193 Comm: Jit thread pool Tainted: G        W      3.18.91-g29e58f1e-dirty #1
[17876.891498] Hardware name: Samsung A6 LTE OPEN rev03 board based on Exynos7870 (DT)
[17876.891511] task: ffffffc002d86a00 ti: ffffffc007478000 task.ti: ffffffc007478000
[17876.891524] PC is at 0xe687c010
[17876.891535] LR is at 0xe35a70c1
[17876.891546] pc : [<00000000e687c010>] lr : [<00000000e35a70c1>] pstate: 60070010
[17876.891557] sp : 00000000d41d5960
[17876.891567] x12: 00000000d41d5970 
[17876.891578] x11: 00000000b68a7cc0 x10: 00000000e68d9260 
[17876.891589] x9 : 00000000e8059600 x8 : 00000000b68a7cf8 
[17876.891600] x7 : 0000000000000185 x6 : 0000000000000001 
[17876.891611] x5 : 0000000070d571a8 x4 : 00000000e68d9260 
[17876.891622] x3 : 0000000070d571a8 x2 : 00000000ba8a7d00 
[17876.891633] x1 : 0000000000000000 x0 : 0000000000000020 

[17876.939021] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17876.941085] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17876.941106] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_generate_key() returns 0
[17876.946136] zswap: can't allocate compressor transform
[17876.946178] _cpu_up: attempt to bring up CPU 4 failed
[17876.946375] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17876.965904] etspi_work_func_debug ldo: 0, sleep: 0, tz: 1, type: egis
[17876.970320] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17876.972181] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17876.972201] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17876.975288] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17876.975312] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17876.975510] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17876.989561] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17876.989585] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17877.014530] CFG80211-INFO) wl_cfgvendor_lstats_get_info : wl_cfgvendor_lstats_get_info: Enter 
[17877.020904] wl_android_priv_cmd: Android private cmd "GET_SNR" on wlan0
[17877.020989] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17877.023426] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.023457] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17877.024105] wl_android_priv_cmd: Android private cmd "GET_LQCM_REPORT" on wlan0
[17877.024165] Unknown PRIVATE command GET_LQCM_REPORT - ignored
[17877.024745] wl_android_priv_cmd: Android private cmd "GET_CU" on wlan0
[17877.024808] Unknown PRIVATE command GET_CU - ignored
[17877.025946] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.028457] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.028491] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17877.041152] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.041186] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17877.046032] zswap: can't allocate compressor transform
[17877.046062] _cpu_up: attempt to bring up CPU 4 failed
[17877.046176] cpu_hotplug_in: Failed to hotplug in CPU4 with error -1
[17877.062269] Jit thread pool[11193]: syscall 389
[17877.062301] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0) 
[17877.062323] TIF_FOREIGN_FPSTATE: 0, FP/SIMD depth 0, cpu: 0
[17877.062349] CPU: 0 MPIDR: 80000000 PID: 11193 Comm: Jit thread pool Tainted: G        W      3.18.91-g29e58f1e-dirty #1
[17877.062370] Hardware name: Samsung A6 LTE OPEN rev03 board based on Exynos7870 (DT)
[17877.062392] task: ffffffc002d86a00 ti: ffffffc007478000 task.ti: ffffffc007478000
[17877.062414] PC is at 0xe687c010
[17877.062433] LR is at 0xe35a70c1
[17877.062453] pc : [<00000000e687c010>] lr : [<00000000e35a70c1>] pstate: 600d0010
[17877.062472] sp : 00000000d41d5960
[17877.062491] x12: 00000000d41d5970 
[17877.062509] x11: 00000000b68a8340 x10: 00000000e68d9260 
[17877.062529] x9 : 00000000e8059600 x8 : 00000000b68a8378 
[17877.062549] x7 : 0000000000000185 x6 : 00000000e662196c 
[17877.062568] x5 : 0000000000000000 x4 : 0000000000000000 
[17877.062588] x3 : 00000000d43d9800 x2 : 00000000ba8a8380 
[17877.062608] x1 : 0000000000000000 x0 : 0000000000000020 

[17877.063585] Jit thread pool[11193]: syscall 389
[17877.063617] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0) 
[17877.063638] TIF_FOREIGN_FPSTATE: 0, FP/SIMD depth 0, cpu: 0
[17877.063664] CPU: 0 MPIDR: 80000000 PID: 11193 Comm: Jit thread pool Tainted: G        W      3.18.91-g29e58f1e-dirty #1
[17877.063684] Hardware name: Samsung A6 LTE OPEN rev03 board based on Exynos7870 (DT)
[17877.063707] task: ffffffc002d86a00 ti: ffffffc007478000 task.ti: ffffffc007478000
[17877.063729] PC is at 0xe687c010
[17877.063748] LR is at 0xe35a70c1
[17877.063768] pc : [<00000000e687c010>] lr : [<00000000e35a70c1>] pstate: 600d0010
[17877.063787] sp : 00000000d41d5960
[17877.063806] x12: 00000000d41d5970 
[17877.063824] x11: 00000000b68a8800 x10: 00000000e68d9260 
[17877.063844] x9 : 00000000e8059600 x8 : 00000000b68a8838 
[17877.063863] x7 : 0000000000000185 x6 : 00000000e662196c 
[17877.063883] x5 : 0000000000000000 x4 : 0000000000000000 
[17877.063902] x3 : 00000000d43d9800 x2 : 00000000ba8a8840 
[17877.063922] x1 : 0000000000000000 x0 : 0000000000000020 

[17877.068313] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_add_rng_entropy() returns 0
[17877.070916] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.070954] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0
[17877.075695] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.075732] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.075760] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_upgrade_key() returns 0
[17877.088713] Trustonic TEE: 901|keymaster [ERR] (tz_check_oem:38) Device is compromized :ret=0,value=1
[17877.088751] Trustonic TEE: 901|keymaster [WRN] (swd_run_cb:228) swd_get_key_characteristics() returns 0

Remove exynos hotplug driver completely. May solve the issue, but not sure.

Thanks! I will try it soon!

Thanks! I will try it soon!

I think the issue is with the driver when you are building on ubuntu 20 or later

to disable the driver you can
add entry for hotplug driver alone in drivers/soc/samsung/Kconfig
and in drivers/soc/samsung/Makefile change obj-$(CONFIG_ARCH_EXYNOS) += exynos-cpu_hotplug.o
to obj-$(CONFIG_EXYNOS_CPU_HOTPLUG) += exynos-cpu_hotplug.o

also in drivers/base/core.c find exynos_cpu_hotplug_enabled() and the line before change #ifdef CONFIG_ARCH_EXYNOS to #ifdef CONFIG_EXYNOS_CPU_HOTPLUG

where CONFIG_EXYNOS_CPU_HOTPLUG is the new entry you created.

Thanks! I will try it soon!

I think the issue is with the driver when you are building on ubuntu 20 or later

to disable the driver you can add entry for hotplug driver alone in drivers/soc/samsung/Kconfig and in drivers/soc/samsung/Makefile change obj-$(CONFIG_ARCH_EXYNOS) += exynos-cpu_hotplug.o to obj-$(CONFIG_EXYNOS_CPU_HOTPLUG) += exynos-cpu_hotplug.o

also in drivers/base/core.c find exynos_cpu_hotplug_enabled() and the line before change #ifdef CONFIG_ARCH_EXYNOS to #ifdef CONFIG_EXYNOS_CPU_HOTPLUG

where CONFIG_EXYNOS_CPU_HOTPLUG is the new entry you created.

I build on Debian 11 :))
Thanks for the details

20220809_154205

Thanks! All 8 cores worked for now!

NOTE: I have to disable all things releated to CPU hotplug in .config file, including CONFIG_EXYNOS_HOTPLUG_GOVERNOR. How to do this is up to you, you can comment out the code if you like :))