All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai]  Serial port problem
@ 2016-07-07 12:40 marc favereau
  2016-07-07 12:51 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: marc favereau @ 2016-07-07 12:40 UTC (permalink / raw)
  To: xenomai

Hi,

I have to use a MOXA CP-134 card to communicate with a device (1 port for
writing and 1 port for reading) in RS422.
I'm using Xenomai 2.6.4 on a kernel linux 3.8.13 installed on a Xeon
E5-2430 multicore desktop.
I plug the card on a PCIe slot, that's why i configure kernel options like
this :

Real-time sub-system->Drivers->Serial Drivers->16550A UART driver *
Real-time sub-system->Drivers->Serial Drivers->Hardware acces mode = Any
acces mode
Real-time sub-system->Drivers->Serial Drivers->PCI board support *
Real-time sub-system->Drivers->Serial Drivers->Moxa PCI boards *


So my card seems be good :

ll /proc/xenomai/rtdm give me RTSER0, RTSER1, RTSER2 and RTSER3

cat /sys/module/xeno_16550A/parameters/irq give me 19,19,19,19,0,0,0,0
cat /sys/module/xeno_16550A/parameters/baud_base give me
921600,921600,921600,921600,0,0,0,0

All seems to be good but when I try test with the xenomai example
cross-link.c
i open RTSER0 without problems but i can't open an other RTSER : "Device or
ressource busy"

when i read the driver code source (16550A.c) i think there is a problem
with 'rtdm_irq_request' function. It's like the IRQ was not shared between
the 4 ports of the card !!!

I don't understand why !

 Any advice would be greatly appreciated.

Best regards,
Marc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Serial port problem
  2016-07-07 12:40 [Xenomai] Serial port problem marc favereau
@ 2016-07-07 12:51 ` Gilles Chanteperdrix
  2016-07-07 13:27   ` marc favereau
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-07 12:51 UTC (permalink / raw)
  To: marc favereau; +Cc: xenomai

On Thu, Jul 07, 2016 at 02:40:03PM +0200, marc favereau wrote:
> when i read the driver code source (16550A.c) i think there is a problem
> with 'rtdm_irq_request' function. It's like the IRQ was not shared between
> the 4 ports of the card !!!
> 
> I don't understand why !

Do you have CONFIG_XENO_OPT_SHIRQ enabled in the kernel configuration?

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Serial port problem
  2016-07-07 12:51 ` Gilles Chanteperdrix
@ 2016-07-07 13:27   ` marc favereau
  0 siblings, 0 replies; 3+ messages in thread
From: marc favereau @ 2016-07-07 13:27 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Of course !!!

Thanks a lot for four help,
That's work fine !

Marc

2016-07-07 14:51 GMT+02:00 Gilles Chanteperdrix <
gilles.chanteperdrix@xenomai.org>:

> On Thu, Jul 07, 2016 at 02:40:03PM +0200, marc favereau wrote:
> > when i read the driver code source (16550A.c) i think there is a problem
> > with 'rtdm_irq_request' function. It's like the IRQ was not shared
> between
> > the 4 ports of the card !!!
> >
> > I don't understand why !
>
> Do you have CONFIG_XENO_OPT_SHIRQ enabled in the kernel configuration?
>
> --
>                                             Gilles.
> https://click-hack.org
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-07 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07 12:40 [Xenomai] Serial port problem marc favereau
2016-07-07 12:51 ` Gilles Chanteperdrix
2016-07-07 13:27   ` marc favereau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.