-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Branch rpi-4.14.y-rt hanging with "Disabling IRQ#59" #2424
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
Comments
It's a problem with the shared interrupt line for the AUX devices. Reworking the AUX interrupt driver to mask all interrupts when any one is masked may fix it, although it isn't ideal. |
We should not thread irq if this irq is shared, so please add this flag, IRQF_NO_THREAD. @pelwell Will you take this? |
I'm working on it now, but stalled because of getting interrupts wrong while working remotely. Will pick this up later. Lets keep the discussion here rather than duplicating to the Forum. |
@pelwell @zavorra Does this work for you?
|
I won't have access to my PI until the weekend, sorry |
@pelwell Phil, are you still working on this? |
Yes, but it keeps getting preempted by higher priority tasks. |
Hi, @pelwell, I have also update the fireware to the newest master branch. |
@elitezhu Did you try the latest rpi-4.14.y-rt? I can boot that with my pi 3B. |
@TiejunChina Oh, I hold the version downloaded one week ago. |
@TiejunChina Thanks for your reminding. Now I can port the RT kernel to PI. But my APP can't run in RT kernel successfully. The APP can run in both Ubuntu 16.04 and PI 3B (with normal kernel) normally. Here is the issue: 2->the app will break with segment fault. And the log shows: These two issues don't look like my app causes. Could you give me some help? Thanks! |
@TiejunChina, Thank you for help. I have closed my issues. Thanks again! |
What is the current status of this? Its a bit difficult to determine from the email chain. |
@JamesH65 I just committed this to work around our current problem but ideally, we should consider implementing threaded handler while registering irq_handler_t thread_fn by means of request_threaded_irq(). |
OK, will leave open for the moment. |
I think commit torvalds/linux@bc519d9 ("spi: bcm2835aux: ensure interrupts are enabled for shared handler") which landed in upstream since 4.17 may fix this. @pelwell You were added to review on ML and also did the initial upstreaming work for the bcm2835 aux interrupt controller. Can you confirm if this is fixed? |
I just have compiled the rpi-4.14.y-rt branch at a42048c, and seems to keep warning about Disabling IRQ#59. I'm using SPI2 for EN28J60 Ethernet driver (this gets blocked when Disabling IRQ#59 appears) and
to have an PPP modem connection. The issue only appears when I use /dev/ttyS0 (called from PPP daemon), if I don't execute the PPP daemon it seems that Disabling IRQ#59 error don't appear. @10ne1 , torvalds/linux@bc519d9 seems to be implemented in the current stage of the rpi-4.14.y-rt branch. Please let us know if someone knows what is happening. |
On branch rpi-4.14.y-rt with serial console enabled ( "enable_uart=1" in config.txt ) the pi hangs after some (a few) minute printing "Disabling IRQ#59" on the console.
After some discussion here, with the suggested option "dtoverlay=pi3-disable-bt" the PI was able to run fine for a couple of hours.
The text was updated successfully, but these errors were encountered: