an xhci problem on raspberry pi 4b
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 6 lines · chensong via Xenomai
hi guys,
I have a raspberry pi 4b and i have had xenoami running on it. Here is what i did:
I don't think anyone has tried this yet, so you are one of the first :)
Quoted 5 lines
1,git clone https://github.com/raspberrypi/linux.git
2,git checkout -b rpi-4.19.y remotes/origin/rpi-4.19.y3,./xenomai3.1-devel/scripts/prepare-kernel.sh--arch=arm64 --linux=rpi-kernel --ipipe=./nudt-hgj-xenomai-tjrd/scripts/prepare-kernel.sh --arch=arm64
What ipipe patch are you using?
Quoted 4 lines
--linux=rpi-kernel
4,makebcm2711_xeno_defconfig
5,make
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
Quoted 5 lines
As a result, usb is not working appropriately, there is no input devices and sometimes system is hanging there when connecting an usb device.
Has anyone managed to enable xenomai on rspberry pi 4b? Can you reporduce this problem and how is it fixed? Please help, many thanks.
If you use a serial terminal can you open a shell?
Quoted 6 lines
BR
chensong
-Greg
Quoted 1 line
Quoted 10 lines · Greg Gallagher
Hi,
Quoted 6 lines · chensong via Xenomai
hi guys,
I have a raspberry pi 4b and i have had xenoami running on it. Here is what i did:
I don't think anyone has tried this yet, so you are one of the first :)
lucky me.
Quoted 8 lines
Quoted 6 lines
1,git clone https://github.com/raspberrypi/linux.git
2,git checkout -b rpi-4.19.y remotes/origin/rpi-4.19.y3,./xenomai3.1-devel/scripts/prepare-kernel.sh--arch=arm64 --linux=rpi-kernel --ipipe=./nudt-hgj-xenomai-tjrd/scripts/prepare-kernel.sh --arch=arm64What ipipe patch are you using?
ipipe-core-4.19.115-arm64-6.patch
Quoted 9 lines
Quoted 5 lines
--linux=rpi-kernel
4,makebcm2711_xeno_defconfig
5,makeI'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
Quoted 7 lines
Quoted 5 lines
As a result, usb is not working appropriately, there is no input devices and sometimes system is hanging there when connecting an usb device.
Has anyone managed to enable xenomai on rspberry pi 4b? Can you reproduce this problem and how is it fixed? Please help, many thanks.
If you use a serial terminal can you open a shell?
yes, shell works fine, so does ssh.
Quoted 9 lines
Quoted 6 lines
BR
chensong
-Greg
Quoted 1 line
Quoted 3 lines · Greg Gallagher via Xenomai
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
The RPi4 is still far aways from mainline, unfortunately. The usual downstream mess.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 7 lines · Jan Kiszka
Quoted 3 lines · Greg Gallagher via Xenomai
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
The RPi4 is still far aways from mainline, unfortunately. The usual downstream mess.
any thought about "[ 0.712926] irq 38 handler xhci_msi_irq+0x0/0x30 enabled interrupts " in kernel/irq/handle.c:153?
call stack is like:irqs_diabled -- raw_irqs_diabled -- arch_irqs_diabled -- ipipe_test_root
Not handled msi irq domain(Brcm_MSI) approprately?
Quoted 3 lines
Jan
Quoted 11 lines · chensong
Quoted 7 lines · Jan Kiszka
Quoted 3 lines · Greg Gallagher via Xenomai
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
The RPi4 is still far aways from mainline, unfortunately. The usual downstream mess.
Quoted 7 lines
any thought about "[ 0.712926] irq 38 handler
xhci_msi_irq+0x0/0x30enabled interrupts " inkernel/irq/handle.c:153?call stack is like:irqs_diabled --
raw_irqs_diabled--arch_irqs_diabled--ipipe_test_rootNot handled msi irq
domain(Brcm_MSI)approprately?
Often this means that some code path along the early interrupt handling is not I-pipe aware (un-hardened spinlock etc.). Did you already try enabling all I-pipe debug options?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 15 lines · Jan Kiszka
Quoted 14 lines · chensong
Quoted 7 lines · Jan Kiszka
Quoted 3 lines · Greg Gallagher via Xenomai
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
The RPi4 is still far aways from mainline, unfortunately. The usual downstream mess.
any thought about "[ 0.712926] irq 38 handler
xhci_msi_irq+0x0/0x30
enabled interrupts " inkernel/irq/handle.c:153?
Quoted 8 lines
Quoted 4 lines
call stack is like:irqs_diabled --
raw_irqs_diabled--arch_irqs_diabled--ipipe_test_rootNot handled msi irq
domain(Brcm_MSI)approprately?Often this means that some code path along the early interrupt handling is not I-pipe aware (un-hardened spinlock etc.). Did you already try enabling all I-pipe debug options?
not yet, that's a good idea, i will give it a try.
Quoted 3 lines
Jan
I think it's fixed
Brcm_MSI hasn't complied with IPIPE IRQ handling yet,as a result, it still goes to the stack like:
brcm_pcie_msi_isr --
generic_handle_irq --
handle_simple_irq --
handle_irq_event --
__handle_irq_event_percpu.
Regarding the warning, !irq_disabled is detected by ipipe_test_root,and xhci_hcd doesn't work very well, sometimes, system is frozen when connecting or disconnecting an usb device.
Therefore, we have to replace generic_handle_irq by ipipe_handle_demuxed_irq, then warning goes way and xhci_hcd works fine.
Quoted 26 lines · Jan Kiszka
Quoted 11 lines · chensong
Quoted 7 lines · Jan Kiszka
Quoted 3 lines · Greg Gallagher via Xenomai
I'm not sure if the rpi4 is in mainline yet but you may have more success trying this with the mainline kernel
The RPi4 is still far aways from mainline, unfortunately. The usual downstream mess.
Quoted 7 lines
any thought about "[ 0.712926] irq 38 handler
xhci_msi_irq+0x0/0x30
enabled interrupts " inkernel/irq/handle.c:153?call stack is like:irqs_diabled --
raw_irqs_diabled--arch_irqs_diabled--ipipe_test_rootNot handled msi irq
domain(Brcm_MSI)approprately?Often this means that some code path along the early interrupt handling is not I-pipe aware (un-hardened spinlock etc.). Did you already try enabling all I-pipe debug options?
Jan