Am 14.02.2013 20:25, schrieb Gilles Chanteperdrix:
On 02/14/2013 01:58 PM, Christopher Hahn wrote:
Am 14.02.2013 13:20, schrieb Gilles Chanteperdrix:
On 02/14/2013 01:17 PM, Christopher Hahn wrote:
Am 14.02.2013 13:12, schrieb [email protected]:
Hey guys,
I'm running the new Xenomai 2.6.2.1 with 3.5.7 Kernel on a x86 machine.
I tried several kernel configurations, but I haven't found the right one yet.
The PC (ADLD25PC) uses a PEAK-Systems PCIE/104 CAN interface and two serialport
devices.
I have selected the CAN driver and 16550A driver as kernel modules.
With kernel configuration "-xenomai4" the serial and can devices works, but
there are only 2 CPUs detected - so the hyperthreading cores arn't detected.
And I get a message during bootup "BIOS bug, no explicit IRQ entries, using default
mptable. (tell your hw vendor)."
This is my "best" solution so far - CONFIG_ACPI is completely disabled.
In "-xenomai5" configuration is ACPI enabled as you can see in the attached
kernel configs.
The mptable message disappears, 4 cores are detected, but serial and can device
IRQs get disabled.
The can interface and a usb hub get IRQ 19 - thats solvable for me, but the
serialport on IRQ 4 gets disabled and I don't know why. (lspci -v log is also
attached)
Could you point me in a direction how to combine the advantages of the two
configurations?
Thank you,
Christopher
Attachments now as txt files
It would be interesting to have the kernel boot logs too.
Sorry, here they are.
I tested these two versions again and recognised that in "-xenomai5" the
CAN interface is working.. so there is "just" the serialport issue (IRQ
4 disabled) left. Everything else seems to work correct.
Please also post the result of
cat /proc/interrupts
and
cat /proc/xenomai/irq
But I guess the problem you have is that the IRQ 4 is shared.
I attached the logs of /proc/interrupts and /proc/xenomai/irq before and
after accessing the serial device
Yes looks like IRQ 4 is shared, but I can't find out which device also
uses IRQ 4.
-------------- next part --------------
# cat /proc/xenomai/irq
IRQ CPU0 CPU1 CPU2 CPU3
19: 0 0 0 0 SJA1000 SJA1000
2336: 45100 47988 45190 42267 [timer]
2337: 0 1 1 1 [reschedule]
2338: 0 1 1 1 [timer-ipi]
2339: 0 0 0 0 [sync]
2371: 0 0 0 0 [virtual]
# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 120 0 0 0 IO-APIC-edge timer
1: 2 1 0 0 IO-APIC-edge i8042
4: 2 1 2 1 IO-APIC-fasteoi
7: 0 0 0 0 IO-APIC-fasteoi parport0
8: 0 0 1 0 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
16: 84 95 104 108 IO-APIC-fasteoi i915
18: 0 0 0 0 IO-APIC-fasteoi
uhci_hcd:usb3
19: 0 0 0 0 IO-APIC-fasteoi
uhci_hcd:usb2
20: 1169 1200 1194 1179 IO-APIC-fasteoi eth0
22: 4277 4242 4246 4251 IO-APIC-fasteoi ahci,
snd_hda_intel
23: 938 933 925 932 IO-APIC-fasteoi
uhci_hcd:usb1
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 45328 47103 44244 41580 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance monitoring
interrupts
IWI: 0 0 0 0 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 52409 56253 70317 29717 Rescheduling interrupts
CAL: 1238 1936 2665 2466 Function call interrupts
TLB: 1027 1462 1362 1407 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 1 1 1 1 Machine check polls
ERR: 0
MIS: 0
after running the application which accesses the serial device "Xenomai:
xnintr_edge_shirq_handler: IRQ4 not handled. Disabling IRQ line." was printed to
dmesg
and the next two outputs of /proc/interrupts and /proc/xenomai/irq
# cat /proc/xenomai/irq
IRQ CPU0 CPU1 CPU2 CPU3
19: 0 0 0 0 SJA1000 SJA1000
2336: 60497 64587 61759 57538 [timer]
2337: 2 1 2 1 [reschedule]
2338: 0 1 1 1 [timer-ipi]
2339: 0 0 0 0 [sync]
2371: 7 0 0 2 [virtual]
# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 120 0 0 0 IO-APIC-edge timer
1: 2 1 0 0 IO-APIC-edge i8042
4: 2 1 2 1 IO-APIC-fasteoi
7: 0 0 0 0 IO-APIC-fasteoi parport0
8: 0 0 1 0 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
16: 119 140 151 163 IO-APIC-fasteoi i915
18: 0 0 0 0 IO-APIC-fasteoi
uhci_hcd:usb3
19: 0 0 0 0 IO-APIC-fasteoi
uhci_hcd:usb2
20: 1730 1751 1743 1727 IO-APIC-fasteoi eth0
22: 4737 4705 4704 4702 IO-APIC-fasteoi ahci,
snd_hda_intel
23: 2049 2041 2037 2043 IO-APIC-fasteoi
uhci_hcd:usb1
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 60043 63007 60120 55919 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance monitoring
interrupts
IWI: 0 0 0 0 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 72410 67540 80121 38778 Rescheduling interrupts
CAL: 1385 2044 2825 2852 Function call interrupts
TLB: 1306 1698 1647 1665 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 2 2 2 2 Machine check polls
ERR: 0
MIS: 0
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai