Subject: Re: an xhci problem on raspberry pi 4b References: <5ed4bf2d.1c69fb81.29f0f.b36cSMTPIN_ADDED_BROKEN@mx.google.com> <0d8b0098-16b6-1ba1-029a-2e642624967e@siemens.com> <5ED6132A.9090909@tj.kylinos.cn> From: chensong Message-ID: <5ED8B6FC.6040203@tj.kylinos.cn>+1D7355D285A6AA76 Date: Thu, 4 Jun 2020 16:55:24 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka , Greg Gallagher Cc: "Xenomai@xenomai.org" 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. On 2020年06月02日 17:08, Jan Kiszka wrote: > On 02.06.20 10:51, chensong wrote: >> >> >> On 2020年06月02日 15:49, Jan Kiszka wrote: >>> On 01.06.20 15:51, Greg Gallagher via Xenomai wrote: >>>> 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? > > 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 >