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

RedMi Note 4X (Mido) after changing the screen cannot be displayed #166

Closed
LiuZeyu1119 opened this issue Jan 31, 2024 · 11 comments
Closed

Comments

@LiuZeyu1119
Copy link

Some mido that have had their screen modules replaced cannot be displayed,these panel uses an unknown chip which can be driven normally under Android, but cannot be driven under Linux.The backlight can be turned on or off normally under Linux, but the image cannot be displayed.
微信圖片_20240131104623

@Kiciuk
Copy link

Kiciuk commented Jan 31, 2024

cat /proc/cmdline
Based on some ali photos that could be some Tianma panel

@LiuZeyu1119
Copy link
Author

The IC detected under aida64 is nt35532, which is the BOE panel. Because I am at work, I can only provide some other information when I return home later
Uploading IMG_3843.jpeg…

@Kiciuk
Copy link

Kiciuk commented Jan 31, 2024

it should be supported.

@barni2000
Copy link
Member

barni2000 commented Jan 31, 2024

I have 2 mido with replacemenet nt35532 and they are working fine for me

@LiuZeyu1119
Copy link
Author

Some of the logs(in version 5.18.3-postmarketos-qcom-msm8953)are as follows, which I think are related to the following points.
[ 0.274929] qcom,wled 200f000.spmi:pmi8950@3:wled@d800: Only one of qcom,num-strings or qcom,enabled-strings should be set [ 0.276260] qcom,wled 200f000.spmi:pmi8950@3:wled@d800: error -ENXIO: IRQ ovp not found ... [ 16.883394] Modules linked in: apr pdr_interface venus_dec venus_enc videobuf2_dma_contig qrtr_smd s5k2xx qcom_camss qcom_q6v5_pas qrtr edt_ft5x06 snd_soc_apq8016_sbc qcom_rng leds_aw2013 snd_soc_qcom_common venus_core snd_soc_msm8916_digital qcom_wcnss_pil v4l2_fwnode qcom_fg(+) v4l2_async v4l2_mem2mem videobuf2_dma_sg qcom_q6v5_mss videobuf2_v4l2 videobuf2_memops qcom_pil_info qcom_spmi_vadc videobuf2_common rtc_pm8xxx qcom_pon qcom_q6v5 qcom_spmi_temp_alarm qcom_vadc_common reboot_mode qcom_common videodev qcom_sysmon snd_soc_msm8916_analog qmi_helpers mc i2c_qcom_cci rmtfs_mem socinfo snd_soc_aw8738 msm mdt_loader drm_dp_helper drm_kms_helper fb_sys_fops cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt cfbcopyarea gpu_sched drm drm_panel_orientation_quirks
cat /proc/cmdline earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT

@LiuZeyu1119
Copy link
Author

I don't think this is the real nt35532, maybe it's some kind of alternative solution from a third-party accessory manufacturer

@barni2000
Copy link
Member

Some of the logs(in version 5.18.3-postmarketos-qcom-msm8953)are as follows, which I think are related to the following points. [ 0.274929] qcom,wled 200f000.spmi:pmi8950@3:wled@d800: Only one of qcom,num-strings or qcom,enabled-strings should be set [ 0.276260] qcom,wled 200f000.spmi:pmi8950@3:wled@d800: error -ENXIO: IRQ ovp not found ... [ 16.883394] Modules linked in: apr pdr_interface venus_dec venus_enc videobuf2_dma_contig qrtr_smd s5k2xx qcom_camss qcom_q6v5_pas qrtr edt_ft5x06 snd_soc_apq8016_sbc qcom_rng leds_aw2013 snd_soc_qcom_common venus_core snd_soc_msm8916_digital qcom_wcnss_pil v4l2_fwnode qcom_fg(+) v4l2_async v4l2_mem2mem videobuf2_dma_sg qcom_q6v5_mss videobuf2_v4l2 videobuf2_memops qcom_pil_info qcom_spmi_vadc videobuf2_common rtc_pm8xxx qcom_pon qcom_q6v5 qcom_spmi_temp_alarm qcom_vadc_common reboot_mode qcom_common videodev qcom_sysmon snd_soc_msm8916_analog qmi_helpers mc i2c_qcom_cci rmtfs_mem socinfo snd_soc_aw8738 msm mdt_loader drm_dp_helper drm_kms_helper fb_sys_fops cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt cfbcopyarea gpu_sched drm drm_panel_orientation_quirks cat /proc/cmdline earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT

can you updated your kernel we are at 6.6.12 at the moment 5.18 is too old

@LiuZeyu1119
Copy link
Author

I have tried new version and the situation is still the same

@LiuZeyu1119
Copy link
Author

Under lk2nd, it can be displayed normally, and Tux can also display it.
https://github.com/msm8953-mainline/linux/assets/30873854/d9bc7b22-bfec-47aa-86bf-9e95bb68032d

@barni2000
Copy link
Member

barni2000 commented Feb 1, 2024

try upgrade everything with apk update && apk ugprade -a, and recheck your installation in my devices i have the cheapest replacement displays what i could buy for them and they are works fine.
Maybe apk fix will be needed also

@LiuZeyu1119
Copy link
Author

Thank you all. I updated the kernel but it still doesn't work, so I bought the original model screen and the problem was solved.

barni2000 pushed a commit that referenced this issue Jun 21, 2024
[ Upstream commit 8ecf3c1 ]

Recent additions in BPF like cpu v4 instructions, test_bpf module
exhibits the following failures:

  test_bpf: #82 ALU_MOVSX | BPF_B jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
  test_bpf: #83 ALU_MOVSX | BPF_H jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
  test_bpf: #84 ALU64_MOVSX | BPF_B jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
  test_bpf: #85 ALU64_MOVSX | BPF_H jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)
  test_bpf: #86 ALU64_MOVSX | BPF_W jited:1 ret 2 != 1 (0x2 != 0x1)FAIL (1 times)

  test_bpf: #165 ALU_SDIV_X: -6 / 2 = -3 jited:1 ret 2147483645 != -3 (0x7ffffffd != 0xfffffffd)FAIL (1 times)
  test_bpf: #166 ALU_SDIV_K: -6 / 2 = -3 jited:1 ret 2147483645 != -3 (0x7ffffffd != 0xfffffffd)FAIL (1 times)

  test_bpf: #169 ALU_SMOD_X: -7 % 2 = -1 jited:1 ret 1 != -1 (0x1 != 0xffffffff)FAIL (1 times)
  test_bpf: #170 ALU_SMOD_K: -7 % 2 = -1 jited:1 ret 1 != -1 (0x1 != 0xffffffff)FAIL (1 times)

  test_bpf: #172 ALU64_SMOD_K: -7 % 2 = -1 jited:1 ret 1 != -1 (0x1 != 0xffffffff)FAIL (1 times)

  test_bpf: msm8916-mainline#313 BSWAP 16: 0x0123456789abcdef -> 0xefcd
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 301 PASS
  test_bpf: msm8916-mainline#314 BSWAP 32: 0x0123456789abcdef -> 0xefcdab89
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 555 PASS
  test_bpf: msm8916-mainline#315 BSWAP 64: 0x0123456789abcdef -> 0x67452301
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 268 PASS
  test_bpf: msm8916-mainline#316 BSWAP 64: 0x0123456789abcdef >> 32 -> 0xefcdab89
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 269 PASS
  test_bpf: msm8916-mainline#317 BSWAP 16: 0xfedcba9876543210 -> 0x1032
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 460 PASS
  test_bpf: msm8916-mainline#318 BSWAP 32: 0xfedcba9876543210 -> 0x10325476
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 320 PASS
  test_bpf: msm8916-mainline#319 BSWAP 64: 0xfedcba9876543210 -> 0x98badcfe
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 222 PASS
  test_bpf: msm8916-mainline#320 BSWAP 64: 0xfedcba9876543210 >> 32 -> 0x10325476
  eBPF filter opcode 00d7 (@2) unsupported
  jited:0 273 PASS

  test_bpf: msm8916-mainline#344 BPF_LDX_MEMSX | BPF_B
  eBPF filter opcode 0091 (@5) unsupported
  jited:0 432 PASS
  test_bpf: msm8916-mainline#345 BPF_LDX_MEMSX | BPF_H
  eBPF filter opcode 0089 (@5) unsupported
  jited:0 381 PASS
  test_bpf: msm8916-mainline#346 BPF_LDX_MEMSX | BPF_W
  eBPF filter opcode 0081 (@5) unsupported
  jited:0 505 PASS

  test_bpf: torvalds#490 JMP32_JA: Unconditional jump: if (true) return 1
  eBPF filter opcode 0006 (@1) unsupported
  jited:0 261 PASS

  test_bpf: Summary: 1040 PASSED, 10 FAILED, [924/1038 JIT'ed]

Fix them by adding missing processing.

Fixes: daabb2b ("bpf/tests: add tests for cpuv4 instructions")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/91de862dda99d170697eb79ffb478678af7e0b27.1709652689.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
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

No branches or pull requests

3 participants