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

[bug] irq delay in rkisp1 #4

Open
DrYak opened this issue Oct 9, 2023 · 1 comment
Open

[bug] irq delay in rkisp1 #4

DrYak opened this issue Oct 9, 2023 · 1 comment

Comments

@DrYak
Copy link

DrYak commented Oct 9, 2023

Hello, I might have found that this kernel error message coincides with the weird color banding when taking very high resolution photos. Might be of interest to Megi.

Oct 09 09:17:32 PinePhonePro kernel: ------------[ cut here ]------------
Oct 09 09:17:32 PinePhonePro kernel: irq delay is too long, buffers might not be in sync
Oct 09 09:17:32 PinePhonePro kernel: WARNING: CPU: 0 PID: 0 at drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:1023 rkisp1_isp_isr+0x190/0x1c8
Oct 09 09:17:32 PinePhonePro kernel: Modules linked in: ip6t_rpfilter ip6table_mangle ip6table_filter qmi_wwan cdc_wdm usbnet usb_f_ecm brcmfmac_wcc typec_extcon fusb302 brcmfmac tcpm typec hci_uart btbcm cfg80211 brcmutil ip6_tables
Oct 09 09:17:32 PinePhonePro kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-pinephonepro #1
Oct 09 09:17:32 PinePhonePro kernel: Hardware name: Pine64 PinePhonePro (DT)
Oct 09 09:17:32 PinePhonePro kernel: pstate: 400000c5 (nZcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Oct 09 09:17:32 PinePhonePro kernel: pc : rkisp1_isp_isr+0x190/0x1c8
Oct 09 09:17:32 PinePhonePro kernel: lr : rkisp1_isp_isr+0x190/0x1c8
Oct 09 09:17:32 PinePhonePro kernel: sp : ffff800080003ec0
Oct 09 09:17:32 PinePhonePro kernel: x29: ffff800080003ec0 x28: ffff80008211cec0 x27: ffff0000f77c0fc0
Oct 09 09:17:32 PinePhonePro kernel: x26: ffff800082655000 x25: ffff000000dede00 x24: ffff800081b5b008
Oct 09 09:17:32 PinePhonePro kernel: x23: ffff800082109e20 x22: 000000000000002a x21: 0000000000000002
Oct 09 09:17:32 PinePhonePro kernel: x20: ffff0000053c8080 x19: 0000000000000042 x18: 0000000000000000
Oct 09 09:17:32 PinePhonePro kernel: x17: ffff800075bb0000 x16: ffff800080000000 x15: 0000000000000000
Oct 09 09:17:32 PinePhonePro kernel: x14: ffff80008211cec0 x13: 636e7973206e6920 x12: ffff8000824be9e0
Oct 09 09:17:32 PinePhonePro kernel: x11: 0000000000000003 x10: 0000000000000001 x9 : ffff80008010add4
Oct 09 09:17:32 PinePhonePro kernel: x8 : 00000000000bffe8 x7 : c0000000ffff7fff x6 : 0000000000000001
Oct 09 09:17:32 PinePhonePro kernel: x5 : ffff0000f770da88 x4 : 0000000000000000 x3 : 0000000000000027
Oct 09 09:17:32 PinePhonePro kernel: x2 : 0000000000000023 x1 : 0000000000000027 x0 : 0000000000000033
Oct 09 09:17:32 PinePhonePro kernel: Call trace:
Oct 09 09:17:32 PinePhonePro kernel:  rkisp1_isp_isr+0x190/0x1c8
Oct 09 09:17:32 PinePhonePro kernel:  rkisp1_isr+0x2c/0x50
Oct 09 09:17:32 PinePhonePro kernel:  __handle_irq_event_percpu+0x58/0x1c8
Oct 09 09:17:32 PinePhonePro kernel:  handle_irq_event_percpu+0x1c/0x68
Oct 09 09:17:32 PinePhonePro kernel:  handle_irq_event+0x44/0xd0
Oct 09 09:17:32 PinePhonePro kernel:  handle_fasteoi_irq+0xc4/0x1e0
Oct 09 09:17:32 PinePhonePro kernel:  generic_handle_domain_irq+0x30/0x50
Oct 09 09:17:32 PinePhonePro kernel:  gic_handle_irq+0x54/0x12c
Oct 09 09:17:32 PinePhonePro kernel:  call_on_irq_stack+0x24/0x40
Oct 09 09:17:32 PinePhonePro kernel:  do_interrupt_handler+0x84/0x90
Oct 09 09:17:32 PinePhonePro kernel:  el1_interrupt+0x34/0x50
Oct 09 09:17:32 PinePhonePro kernel:  el1h_64_irq_handler+0x14/0x20
Oct 09 09:17:32 PinePhonePro kernel:  el1h_64_irq+0x64/0x68
Oct 09 09:17:32 PinePhonePro kernel:  cpuidle_enter_state+0x214/0x440
Oct 09 09:17:32 PinePhonePro kernel:  cpuidle_enter+0x3c/0x58
Oct 09 09:17:32 PinePhonePro kernel:  call_cpuidle+0x20/0x40
Oct 09 09:17:32 PinePhonePro kernel:  do_idle+0x1e0/0x240
Oct 09 09:17:32 PinePhonePro kernel:  cpu_startup_entry+0x28/0x38
Oct 09 09:17:32 PinePhonePro kernel:  rest_init+0xc8/0xd0
Oct 09 09:17:32 PinePhonePro kernel:  arch_call_rest_init+0x14/0x20
Oct 09 09:17:32 PinePhonePro kernel:  start_kernel+0x5f8/0x828
Oct 09 09:17:32 PinePhonePro kernel:  __primary_switched+0xb4/0xc8
Oct 09 09:17:32 PinePhonePro kernel: ---[ end trace 0000000000000000 ]---
@DrYak
Copy link
Author

DrYak commented Oct 10, 2023

After careful inspection of the timestamps in the logs: it's a red herring.
irq delays don't lead to the color bands systematically.
They occur in the log when Shutter is slow to respond (e.g.: "wait? close?" pops-up).

@DrYak DrYak changed the title [bug] irq delay in rkisp1 - color bands in highest resolution [bug] irq delay in rkisp1 Oct 10, 2023
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

1 participant