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

arm64: dts: qcom: msm8916-samsung-e5: Correct accelerometer matrix #338

Closed
wants to merge 3 commits into from
Closed

Conversation

System64fumo
Copy link

Update the accelerometer matrix to report the,
correct values instead of flipped ones.

Update the accelerometer matrix to report the,
correct values instead of flipped ones.
Add accelerometer label to be overwritten by other device trees instead of changing the matrix for every device.
Flip the accelerometer values for Samsung Galaxy E5.
@System64fumo System64fumo changed the title Correct accelerometer matrix arm64: dts: qcom: msm8916-samsung-e5: Correct accelerometer matrix Nov 4, 2023
@System64fumo System64fumo closed this by deleting the head repository Nov 4, 2023
Kiciuk pushed a commit to Kiciuk/linux that referenced this pull request Nov 11, 2023
Enable the cpu v4 tests for LoongArch. Currently, we don't have BPF
trampoline in LoongArch JIT, so the fentry test `test_ptr_struct_arg`
still failed, will followup.

Test result attached below:

  # ./test_progs -t verifier_sdiv,verifier_movsx,verifier_ldsx,verifier_gotol,verifier_bswap
  msm8916-mainline#316/1   verifier_bswap/BSWAP, 16:OK
  msm8916-mainline#316/2   verifier_bswap/BSWAP, 16 @unpriv:OK
  msm8916-mainline#316/3   verifier_bswap/BSWAP, 32:OK
  msm8916-mainline#316/4   verifier_bswap/BSWAP, 32 @unpriv:OK
  msm8916-mainline#316/5   verifier_bswap/BSWAP, 64:OK
  msm8916-mainline#316/6   verifier_bswap/BSWAP, 64 @unpriv:OK
  msm8916-mainline#316     verifier_bswap:OK
  msm8916-mainline#330/1   verifier_gotol/gotol, small_imm:OK
  msm8916-mainline#330/2   verifier_gotol/gotol, small_imm @unpriv:OK
  msm8916-mainline#330     verifier_gotol:OK
  msm8916-mainline#338/1   verifier_ldsx/LDSX, S8:OK
  msm8916-mainline#338/2   verifier_ldsx/LDSX, S8 @unpriv:OK
  msm8916-mainline#338/3   verifier_ldsx/LDSX, S16:OK
  msm8916-mainline#338/4   verifier_ldsx/LDSX, S16 @unpriv:OK
  msm8916-mainline#338/5   verifier_ldsx/LDSX, S32:OK
  msm8916-mainline#338/6   verifier_ldsx/LDSX, S32 @unpriv:OK
  msm8916-mainline#338/7   verifier_ldsx/LDSX, S8 range checking, privileged:OK
  msm8916-mainline#338/8   verifier_ldsx/LDSX, S16 range checking:OK
  msm8916-mainline#338/9   verifier_ldsx/LDSX, S16 range checking @unpriv:OK
  msm8916-mainline#338/10  verifier_ldsx/LDSX, S32 range checking:OK
  msm8916-mainline#338/11  verifier_ldsx/LDSX, S32 range checking @unpriv:OK
  msm8916-mainline#338     verifier_ldsx:OK
  msm8916-mainline#349/1   verifier_movsx/MOV32SX, S8:OK
  msm8916-mainline#349/2   verifier_movsx/MOV32SX, S8 @unpriv:OK
  msm8916-mainline#349/3   verifier_movsx/MOV32SX, S16:OK
  msm8916-mainline#349/4   verifier_movsx/MOV32SX, S16 @unpriv:OK
  msm8916-mainline#349/5   verifier_movsx/MOV64SX, S8:OK
  msm8916-mainline#349/6   verifier_movsx/MOV64SX, S8 @unpriv:OK
  msm8916-mainline#349/7   verifier_movsx/MOV64SX, S16:OK
  msm8916-mainline#349/8   verifier_movsx/MOV64SX, S16 @unpriv:OK
  msm8916-mainline#349/9   verifier_movsx/MOV64SX, S32:OK
  msm8916-mainline#349/10  verifier_movsx/MOV64SX, S32 @unpriv:OK
  msm8916-mainline#349/11  verifier_movsx/MOV32SX, S8, range_check:OK
  msm8916-mainline#349/12  verifier_movsx/MOV32SX, S8, range_check @unpriv:OK
  msm8916-mainline#349/13  verifier_movsx/MOV32SX, S16, range_check:OK
  msm8916-mainline#349/14  verifier_movsx/MOV32SX, S16, range_check @unpriv:OK
  msm8916-mainline#349/15  verifier_movsx/MOV32SX, S16, range_check 2:OK
  msm8916-mainline#349/16  verifier_movsx/MOV32SX, S16, range_check 2 @unpriv:OK
  msm8916-mainline#349/17  verifier_movsx/MOV64SX, S8, range_check:OK
  msm8916-mainline#349/18  verifier_movsx/MOV64SX, S8, range_check @unpriv:OK
  msm8916-mainline#349/19  verifier_movsx/MOV64SX, S16, range_check:OK
  msm8916-mainline#349/20  verifier_movsx/MOV64SX, S16, range_check @unpriv:OK
  msm8916-mainline#349/21  verifier_movsx/MOV64SX, S32, range_check:OK
  msm8916-mainline#349/22  verifier_movsx/MOV64SX, S32, range_check @unpriv:OK
  msm8916-mainline#349/23  verifier_movsx/MOV64SX, S16, R10 Sign Extension:OK
  msm8916-mainline#349/24  verifier_movsx/MOV64SX, S16, R10 Sign Extension @unpriv:OK
  msm8916-mainline#349     verifier_movsx:OK
  msm8916-mainline#361/1   verifier_sdiv/SDIV32, non-zero imm divisor, check 1:OK
  msm8916-mainline#361/2   verifier_sdiv/SDIV32, non-zero imm divisor, check 1 @unpriv:OK
  msm8916-mainline#361/3   verifier_sdiv/SDIV32, non-zero imm divisor, check 2:OK
  msm8916-mainline#361/4   verifier_sdiv/SDIV32, non-zero imm divisor, check 2 @unpriv:OK
  msm8916-mainline#361/5   verifier_sdiv/SDIV32, non-zero imm divisor, check 3:OK
  msm8916-mainline#361/6   verifier_sdiv/SDIV32, non-zero imm divisor, check 3 @unpriv:OK
  msm8916-mainline#361/7   verifier_sdiv/SDIV32, non-zero imm divisor, check 4:OK
  msm8916-mainline#361/8   verifier_sdiv/SDIV32, non-zero imm divisor, check 4 @unpriv:OK
  msm8916-mainline#361/9   verifier_sdiv/SDIV32, non-zero imm divisor, check 5:OK
  msm8916-mainline#361/10  verifier_sdiv/SDIV32, non-zero imm divisor, check 5 @unpriv:OK
  msm8916-mainline#361/11  verifier_sdiv/SDIV32, non-zero imm divisor, check 6:OK
  msm8916-mainline#361/12  verifier_sdiv/SDIV32, non-zero imm divisor, check 6 @unpriv:OK
  msm8916-mainline#361/13  verifier_sdiv/SDIV32, non-zero imm divisor, check 7:OK
  msm8916-mainline#361/14  verifier_sdiv/SDIV32, non-zero imm divisor, check 7 @unpriv:OK
  msm8916-mainline#361/15  verifier_sdiv/SDIV32, non-zero imm divisor, check 8:OK
  msm8916-mainline#361/16  verifier_sdiv/SDIV32, non-zero imm divisor, check 8 @unpriv:OK
  msm8916-mainline#361/17  verifier_sdiv/SDIV32, non-zero reg divisor, check 1:OK
  msm8916-mainline#361/18  verifier_sdiv/SDIV32, non-zero reg divisor, check 1 @unpriv:OK
  msm8916-mainline#361/19  verifier_sdiv/SDIV32, non-zero reg divisor, check 2:OK
  msm8916-mainline#361/20  verifier_sdiv/SDIV32, non-zero reg divisor, check 2 @unpriv:OK
  msm8916-mainline#361/21  verifier_sdiv/SDIV32, non-zero reg divisor, check 3:OK
  msm8916-mainline#361/22  verifier_sdiv/SDIV32, non-zero reg divisor, check 3 @unpriv:OK
  msm8916-mainline#361/23  verifier_sdiv/SDIV32, non-zero reg divisor, check 4:OK
  msm8916-mainline#361/24  verifier_sdiv/SDIV32, non-zero reg divisor, check 4 @unpriv:OK
  msm8916-mainline#361/25  verifier_sdiv/SDIV32, non-zero reg divisor, check 5:OK
  msm8916-mainline#361/26  verifier_sdiv/SDIV32, non-zero reg divisor, check 5 @unpriv:OK
  msm8916-mainline#361/27  verifier_sdiv/SDIV32, non-zero reg divisor, check 6:OK
  msm8916-mainline#361/28  verifier_sdiv/SDIV32, non-zero reg divisor, check 6 @unpriv:OK
  msm8916-mainline#361/29  verifier_sdiv/SDIV32, non-zero reg divisor, check 7:OK
  msm8916-mainline#361/30  verifier_sdiv/SDIV32, non-zero reg divisor, check 7 @unpriv:OK
  msm8916-mainline#361/31  verifier_sdiv/SDIV32, non-zero reg divisor, check 8:OK
  msm8916-mainline#361/32  verifier_sdiv/SDIV32, non-zero reg divisor, check 8 @unpriv:OK
  msm8916-mainline#361/33  verifier_sdiv/SDIV64, non-zero imm divisor, check 1:OK
  msm8916-mainline#361/34  verifier_sdiv/SDIV64, non-zero imm divisor, check 1 @unpriv:OK
  msm8916-mainline#361/35  verifier_sdiv/SDIV64, non-zero imm divisor, check 2:OK
  msm8916-mainline#361/36  verifier_sdiv/SDIV64, non-zero imm divisor, check 2 @unpriv:OK
  msm8916-mainline#361/37  verifier_sdiv/SDIV64, non-zero imm divisor, check 3:OK
  msm8916-mainline#361/38  verifier_sdiv/SDIV64, non-zero imm divisor, check 3 @unpriv:OK
  msm8916-mainline#361/39  verifier_sdiv/SDIV64, non-zero imm divisor, check 4:OK
  msm8916-mainline#361/40  verifier_sdiv/SDIV64, non-zero imm divisor, check 4 @unpriv:OK
  msm8916-mainline#361/41  verifier_sdiv/SDIV64, non-zero imm divisor, check 5:OK
  msm8916-mainline#361/42  verifier_sdiv/SDIV64, non-zero imm divisor, check 5 @unpriv:OK
  msm8916-mainline#361/43  verifier_sdiv/SDIV64, non-zero imm divisor, check 6:OK
  msm8916-mainline#361/44  verifier_sdiv/SDIV64, non-zero imm divisor, check 6 @unpriv:OK
  msm8916-mainline#361/45  verifier_sdiv/SDIV64, non-zero reg divisor, check 1:OK
  msm8916-mainline#361/46  verifier_sdiv/SDIV64, non-zero reg divisor, check 1 @unpriv:OK
  msm8916-mainline#361/47  verifier_sdiv/SDIV64, non-zero reg divisor, check 2:OK
  msm8916-mainline#361/48  verifier_sdiv/SDIV64, non-zero reg divisor, check 2 @unpriv:OK
  msm8916-mainline#361/49  verifier_sdiv/SDIV64, non-zero reg divisor, check 3:OK
  msm8916-mainline#361/50  verifier_sdiv/SDIV64, non-zero reg divisor, check 3 @unpriv:OK
  msm8916-mainline#361/51  verifier_sdiv/SDIV64, non-zero reg divisor, check 4:OK
  msm8916-mainline#361/52  verifier_sdiv/SDIV64, non-zero reg divisor, check 4 @unpriv:OK
  msm8916-mainline#361/53  verifier_sdiv/SDIV64, non-zero reg divisor, check 5:OK
  msm8916-mainline#361/54  verifier_sdiv/SDIV64, non-zero reg divisor, check 5 @unpriv:OK
  msm8916-mainline#361/55  verifier_sdiv/SDIV64, non-zero reg divisor, check 6:OK
  msm8916-mainline#361/56  verifier_sdiv/SDIV64, non-zero reg divisor, check 6 @unpriv:OK
  msm8916-mainline#361/57  verifier_sdiv/SMOD32, non-zero imm divisor, check 1:OK
  msm8916-mainline#361/58  verifier_sdiv/SMOD32, non-zero imm divisor, check 1 @unpriv:OK
  msm8916-mainline#361/59  verifier_sdiv/SMOD32, non-zero imm divisor, check 2:OK
  msm8916-mainline#361/60  verifier_sdiv/SMOD32, non-zero imm divisor, check 2 @unpriv:OK
  msm8916-mainline#361/61  verifier_sdiv/SMOD32, non-zero imm divisor, check 3:OK
  msm8916-mainline#361/62  verifier_sdiv/SMOD32, non-zero imm divisor, check 3 @unpriv:OK
  msm8916-mainline#361/63  verifier_sdiv/SMOD32, non-zero imm divisor, check 4:OK
  msm8916-mainline#361/64  verifier_sdiv/SMOD32, non-zero imm divisor, check 4 @unpriv:OK
  msm8916-mainline#361/65  verifier_sdiv/SMOD32, non-zero imm divisor, check 5:OK
  msm8916-mainline#361/66  verifier_sdiv/SMOD32, non-zero imm divisor, check 5 @unpriv:OK
  msm8916-mainline#361/67  verifier_sdiv/SMOD32, non-zero imm divisor, check 6:OK
  msm8916-mainline#361/68  verifier_sdiv/SMOD32, non-zero imm divisor, check 6 @unpriv:OK
  msm8916-mainline#361/69  verifier_sdiv/SMOD32, non-zero reg divisor, check 1:OK
  msm8916-mainline#361/70  verifier_sdiv/SMOD32, non-zero reg divisor, check 1 @unpriv:OK
  msm8916-mainline#361/71  verifier_sdiv/SMOD32, non-zero reg divisor, check 2:OK
  msm8916-mainline#361/72  verifier_sdiv/SMOD32, non-zero reg divisor, check 2 @unpriv:OK
  msm8916-mainline#361/73  verifier_sdiv/SMOD32, non-zero reg divisor, check 3:OK
  msm8916-mainline#361/74  verifier_sdiv/SMOD32, non-zero reg divisor, check 3 @unpriv:OK
  msm8916-mainline#361/75  verifier_sdiv/SMOD32, non-zero reg divisor, check 4:OK
  msm8916-mainline#361/76  verifier_sdiv/SMOD32, non-zero reg divisor, check 4 @unpriv:OK
  msm8916-mainline#361/77  verifier_sdiv/SMOD32, non-zero reg divisor, check 5:OK
  msm8916-mainline#361/78  verifier_sdiv/SMOD32, non-zero reg divisor, check 5 @unpriv:OK
  msm8916-mainline#361/79  verifier_sdiv/SMOD32, non-zero reg divisor, check 6:OK
  msm8916-mainline#361/80  verifier_sdiv/SMOD32, non-zero reg divisor, check 6 @unpriv:OK
  msm8916-mainline#361/81  verifier_sdiv/SMOD64, non-zero imm divisor, check 1:OK
  msm8916-mainline#361/82  verifier_sdiv/SMOD64, non-zero imm divisor, check 1 @unpriv:OK
  msm8916-mainline#361/83  verifier_sdiv/SMOD64, non-zero imm divisor, check 2:OK
  msm8916-mainline#361/84  verifier_sdiv/SMOD64, non-zero imm divisor, check 2 @unpriv:OK
  msm8916-mainline#361/85  verifier_sdiv/SMOD64, non-zero imm divisor, check 3:OK
  msm8916-mainline#361/86  verifier_sdiv/SMOD64, non-zero imm divisor, check 3 @unpriv:OK
  msm8916-mainline#361/87  verifier_sdiv/SMOD64, non-zero imm divisor, check 4:OK
  msm8916-mainline#361/88  verifier_sdiv/SMOD64, non-zero imm divisor, check 4 @unpriv:OK
  msm8916-mainline#361/89  verifier_sdiv/SMOD64, non-zero imm divisor, check 5:OK
  msm8916-mainline#361/90  verifier_sdiv/SMOD64, non-zero imm divisor, check 5 @unpriv:OK
  msm8916-mainline#361/91  verifier_sdiv/SMOD64, non-zero imm divisor, check 6:OK
  msm8916-mainline#361/92  verifier_sdiv/SMOD64, non-zero imm divisor, check 6 @unpriv:OK
  msm8916-mainline#361/93  verifier_sdiv/SMOD64, non-zero imm divisor, check 7:OK
  msm8916-mainline#361/94  verifier_sdiv/SMOD64, non-zero imm divisor, check 7 @unpriv:OK
  msm8916-mainline#361/95  verifier_sdiv/SMOD64, non-zero imm divisor, check 8:OK
  msm8916-mainline#361/96  verifier_sdiv/SMOD64, non-zero imm divisor, check 8 @unpriv:OK
  msm8916-mainline#361/97  verifier_sdiv/SMOD64, non-zero reg divisor, check 1:OK
  msm8916-mainline#361/98  verifier_sdiv/SMOD64, non-zero reg divisor, check 1 @unpriv:OK
  msm8916-mainline#361/99  verifier_sdiv/SMOD64, non-zero reg divisor, check 2:OK
  msm8916-mainline#361/100 verifier_sdiv/SMOD64, non-zero reg divisor, check 2 @unpriv:OK
  msm8916-mainline#361/101 verifier_sdiv/SMOD64, non-zero reg divisor, check 3:OK
  msm8916-mainline#361/102 verifier_sdiv/SMOD64, non-zero reg divisor, check 3 @unpriv:OK
  msm8916-mainline#361/103 verifier_sdiv/SMOD64, non-zero reg divisor, check 4:OK
  msm8916-mainline#361/104 verifier_sdiv/SMOD64, non-zero reg divisor, check 4 @unpriv:OK
  msm8916-mainline#361/105 verifier_sdiv/SMOD64, non-zero reg divisor, check 5:OK
  msm8916-mainline#361/106 verifier_sdiv/SMOD64, non-zero reg divisor, check 5 @unpriv:OK
  msm8916-mainline#361/107 verifier_sdiv/SMOD64, non-zero reg divisor, check 6:OK
  msm8916-mainline#361/108 verifier_sdiv/SMOD64, non-zero reg divisor, check 6 @unpriv:OK
  msm8916-mainline#361/109 verifier_sdiv/SMOD64, non-zero reg divisor, check 7:OK
  msm8916-mainline#361/110 verifier_sdiv/SMOD64, non-zero reg divisor, check 7 @unpriv:OK
  msm8916-mainline#361/111 verifier_sdiv/SMOD64, non-zero reg divisor, check 8:OK
  msm8916-mainline#361/112 verifier_sdiv/SMOD64, non-zero reg divisor, check 8 @unpriv:OK
  msm8916-mainline#361/113 verifier_sdiv/SDIV32, zero divisor:OK
  msm8916-mainline#361/114 verifier_sdiv/SDIV32, zero divisor @unpriv:OK
  msm8916-mainline#361/115 verifier_sdiv/SDIV64, zero divisor:OK
  msm8916-mainline#361/116 verifier_sdiv/SDIV64, zero divisor @unpriv:OK
  msm8916-mainline#361/117 verifier_sdiv/SMOD32, zero divisor:OK
  msm8916-mainline#361/118 verifier_sdiv/SMOD32, zero divisor @unpriv:OK
  msm8916-mainline#361/119 verifier_sdiv/SMOD64, zero divisor:OK
  msm8916-mainline#361/120 verifier_sdiv/SMOD64, zero divisor @unpriv:OK
  msm8916-mainline#361     verifier_sdiv:OK
  Summary: 5/163 PASSED, 0 SKIPPED, 0 FAILED

  # ./test_progs -t ldsx_insn
  test_map_val_and_probed_memory:PASS:test_ldsx_insn__open 0 nsec
  test_map_val_and_probed_memory:PASS:test_ldsx_insn__load 0 nsec
  libbpf: prog 'test_ptr_struct_arg': failed to attach: ERROR: strerror_r(-524)=22
  libbpf: prog 'test_ptr_struct_arg': failed to auto-attach: -524
  test_map_val_and_probed_memory:FAIL:test_ldsx_insn__attach unexpected error: -524 (errno 524)
  msm8953-mainline#116/1   ldsx_insn/map_val and probed_memory:FAIL
  msm8953-mainline#116/2   ldsx_insn/ctx_member_sign_ext:OK
  msm8953-mainline#116/3   ldsx_insn/ctx_member_narrow_sign_ext:OK
  msm8953-mainline#116     ldsx_insn:FAIL

  All error logs:
  test_map_val_and_probed_memory:PASS:test_ldsx_insn__open 0 nsec
  test_map_val_and_probed_memory:PASS:test_ldsx_insn__load 0 nsec
  libbpf: prog 'test_ptr_struct_arg': failed to attach: ERROR: strerror_r(-524)=22
  libbpf: prog 'test_ptr_struct_arg': failed to auto-attach: -524
  test_map_val_and_probed_memory:FAIL:test_ldsx_insn__attach unexpected error: -524 (errno 524)
  msm8953-mainline#116/1   ldsx_insn/map_val and probed_memory:FAIL
  msm8953-mainline#116     ldsx_insn:FAIL
  Summary: 0/2 PASSED, 0 SKIPPED, 1 FAILED

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
TravMurav pushed a commit that referenced this pull request Jul 17, 2024
Add a test case which replaces an active ingress qdisc while keeping the
miniq in-tact during the transition period to the new clsact qdisc.

  # ./vmtest.sh -- ./test_progs -t tc_link
  [...]
  ./test_progs -t tc_link
  [    3.412871] bpf_testmod: loading out-of-tree module taints kernel.
  [    3.413343] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  #332     tc_links_after:OK
  #333     tc_links_append:OK
  #334     tc_links_basic:OK
  #335     tc_links_before:OK
  #336     tc_links_chain_classic:OK
  #337     tc_links_chain_mixed:OK
  #338     tc_links_dev_chain0:OK
  #339     tc_links_dev_cleanup:OK
  #340     tc_links_dev_mixed:OK
  #341     tc_links_ingress:OK
  #342     tc_links_invalid:OK
  #343     tc_links_prepend:OK
  #344     tc_links_replace:OK
  #345     tc_links_revision:OK
  Summary: 14/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240708133130.11609-2-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant