* [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
@ 2013-02-27 19:04 Daniel M. Drucker, Ph.D.
2013-02-27 19:25 ` Gilles Chanteperdrix
2013-02-28 11:26 ` Wolfgang Grandegger
0 siblings, 2 replies; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 19:04 UTC (permalink / raw)
To: xenomai
Hello all,
We have a PC/104 computer with a PEAK PC/104-PLUS card which we are
successfully using to talk CAN from within Xenomai. For various reasons, we
want to switch to using a mini-ITX board.
We're trying to use the PEAK PCAN-miniPCIe card on the mini-ITX board, but
we are having no luck - the card doesn't seem to get seen by Xenomai.
We're not sure if this is an IRQ problem or something else. On the PC104
system, we had an IRQ conflict which we were able to solve by changing a
jumper - the new card has no jumpers to change, and our motherboard's BIOS
does not have any settings that allow changing of daughterboard IRQs.
Both systems are running the same OS install with the same kernel. The
'latency' command in the Xenomai testsuite runs correctly on both systems.
I have put together a comparison of command outputs on the old (working)
and new (non-working) systems: http://goo.gl/GBy8h
Any insight into what's wrong in our new system and how to get it working
would be greatly appreciated!
Thanks,
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 19:04 [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card Daniel M. Drucker, Ph.D.
@ 2013-02-27 19:25 ` Gilles Chanteperdrix
2013-02-27 19:34 ` Daniel M. Drucker, Ph.D.
2013-02-28 11:26 ` Wolfgang Grandegger
1 sibling, 1 reply; 15+ messages in thread
From: Gilles Chanteperdrix @ 2013-02-27 19:25 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 08:04 PM, Daniel M. Drucker, Ph.D. wrote:
> Hello all,
>
> We have a PC/104 computer with a PEAK PC/104-PLUS card which we are
> successfully using to talk CAN from within Xenomai. For various reasons, we
> want to switch to using a mini-ITX board.
>
> We're trying to use the PEAK PCAN-miniPCIe card on the mini-ITX board, but
> we are having no luck - the card doesn't seem to get seen by Xenomai.
>
> We're not sure if this is an IRQ problem or something else. On the PC104
> system, we had an IRQ conflict which we were able to solve by changing a
> jumper - the new card has no jumpers to change, and our motherboard's BIOS
> does not have any settings that allow changing of daughterboard IRQs.
>
> Both systems are running the same OS install with the same kernel. The
> 'latency' command in the Xenomai testsuite runs correctly on both systems.
>
> I have put together a comparison of command outputs on the old (working)
> and new (non-working) systems: http://goo.gl/GBy8h
>
> Any insight into what's wrong in our new system and how to get it working
> would be greatly appreciated!
What does lspci say? Is your card listed? If yes, are the IDs of this
card in the list of IDs which the xenomai driver supports?
--
Gilles.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 19:25 ` Gilles Chanteperdrix
@ 2013-02-27 19:34 ` Daniel M. Drucker, Ph.D.
2013-02-27 20:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 19:34 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
The PEAK-related part from lspci is in my original message. (See the link I
included: http://goo.gl/GBy8h )
Is there other information from lspci that would be relevant?
Thanks,
Daniel
On Wed, Feb 27, 2013 at 2:25 PM, Gilles Chanteperdrix <
gilles.chanteperdrix@xenomai.org> wrote:
> On 02/27/2013 08:04 PM, Daniel M. Drucker, Ph.D. wrote:
>
> > Hello all,
> >
> > We have a PC/104 computer with a PEAK PC/104-PLUS card which we are
> > successfully using to talk CAN from within Xenomai. For various reasons,
> we
> > want to switch to using a mini-ITX board.
> >
> > We're trying to use the PEAK PCAN-miniPCIe card on the mini-ITX board,
> but
> > we are having no luck - the card doesn't seem to get seen by Xenomai.
> >
> > We're not sure if this is an IRQ problem or something else. On the PC104
> > system, we had an IRQ conflict which we were able to solve by changing a
> > jumper - the new card has no jumpers to change, and our motherboard's
> BIOS
> > does not have any settings that allow changing of daughterboard IRQs.
> >
> > Both systems are running the same OS install with the same kernel. The
> > 'latency' command in the Xenomai testsuite runs correctly on both
> systems.
> >
> > I have put together a comparison of command outputs on the old (working)
> > and new (non-working) systems: http://goo.gl/GBy8h
> >
> > Any insight into what's wrong in our new system and how to get it working
> > would be greatly appreciated!
>
>
> What does lspci say? Is your card listed? If yes, are the IDs of this
> card in the list of IDs which the xenomai driver supports?
> --
> Gilles.
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 19:34 ` Daniel M. Drucker, Ph.D.
@ 2013-02-27 20:08 ` Gilles Chanteperdrix
2013-02-27 20:14 ` Daniel M. Drucker, Ph.D.
0 siblings, 1 reply; 15+ messages in thread
From: Gilles Chanteperdrix @ 2013-02-27 20:08 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 08:34 PM, Daniel M. Drucker, Ph.D. wrote:
> Spam detection software, running on the system "xenomai.org", has
> identified this incoming email as possible spam. The original message
> has been attached to this so you can view it (if it isn't spam) or label
> similar future email. If you have any questions, see
> the administrator of that system for details.
>
> Content preview: The PEAK-related part from lspci is in my original message.
> (See the link I included: http://goo.gl/GBy8h ) Is there other information
> from lspci that would be relevant? Thanks, Daniel [...]
>
> Content analysis details: (5.8 points, 4.3 required)
>
> pts rule name description
> ---- ---------------------- --------------------------------------------------
> 0.5 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no
> trust
> [208.97.132.81 listed in list.dnswl.org]
> 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral)
> 2.0 HTML_MESSAGE BODY: HTML included in message
> 2.5 SHORTENED_URL_HREF RAW: SHORTENED_URL_HREF
>
> The original message was not completely plain text, and may be unsafe to
> open with some email clients; in particular, it may contain a virus,
> or confirm that your address can receive spam. If you wish to view
> it, it may be safer to save it to a file and open it with an editor.
>
The numerical IDs, to compare them with the list of numerical IDs
supported by the drivr.
--
Gilles.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 20:08 ` Gilles Chanteperdrix
@ 2013-02-27 20:14 ` Daniel M. Drucker, Ph.D.
2013-02-27 20:15 ` Gilles Chanteperdrix
0 siblings, 1 reply; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 20:14 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
>
> The numerical IDs, to compare them with the list of numerical IDs
> supported by the drivr.
>
Ok, I updated the spreadsheet using lspci -nn -vvv. I think the [0280] is
what you're looking for? Where do I find the list you're referring to?
Thanks,
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 20:14 ` Daniel M. Drucker, Ph.D.
@ 2013-02-27 20:15 ` Gilles Chanteperdrix
2013-02-27 20:17 ` Gilles Chanteperdrix
0 siblings, 1 reply; 15+ messages in thread
From: Gilles Chanteperdrix @ 2013-02-27 20:15 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 09:14 PM, Daniel M. Drucker, Ph.D. wrote:
> The numerical IDs, to compare them with the list of numerical IDs
> supported by the drivr.
>
>
> Ok, I updated the spreadsheet using lspci -nn -vvv. I think the [0280]
> is what you're looking for? Where do I find the list you're referring to?
I am not looking for anything. The list is in the driver code.
--
Gilles.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 20:15 ` Gilles Chanteperdrix
@ 2013-02-27 20:17 ` Gilles Chanteperdrix
2013-02-27 20:19 ` Daniel M. Drucker, Ph.D.
0 siblings, 1 reply; 15+ messages in thread
From: Gilles Chanteperdrix @ 2013-02-27 20:17 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 09:15 PM, Gilles Chanteperdrix wrote:
> On 02/27/2013 09:14 PM, Daniel M. Drucker, Ph.D. wrote:
>
>> The numerical IDs, to compare them with the list of numerical IDs
>> supported by the drivr.
>>
>>
>> Ok, I updated the spreadsheet using lspci -nn -vvv. I think the [0280]
>> is what you're looking for? Where do I find the list you're referring to?
>
>
> I am not looking for anything. The list is in the driver code.
>
http://git.xenomai.org/?p=xenomai-2.6.git;a=blob;f=ksrc/drivers/can/sja1000/rtcan_peak_pci.c;h=b5ad2262948545950e0bf890a6e8971eb4fcde2f;hb=HEAD#l73
--
Gilles.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 20:17 ` Gilles Chanteperdrix
@ 2013-02-27 20:19 ` Daniel M. Drucker, Ph.D.
2013-02-27 21:03 ` Daniel M. Drucker, Ph.D.
0 siblings, 1 reply; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 20:19 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Aha. So since ours is identifying as 001C:0008, it's not picking it up.
Thank you, this is very helpful!
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 20:19 ` Daniel M. Drucker, Ph.D.
@ 2013-02-27 21:03 ` Daniel M. Drucker, Ph.D.
2013-02-27 21:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 21:03 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Success!
All we had to do was add:
#define PEAK_MPCI_DEVICE_ID 0x0008 // Device ID for newer PCIe cards
(IPEH-003027)
and add that to pci_device_id peak_pci_tbl[].
Note that that ID is included in the user-mode driver (
linux-3.5.7/drivers/net/can/sja1000/peak_pci.c ).
Thank you!
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 21:03 ` Daniel M. Drucker, Ph.D.
@ 2013-02-27 21:08 ` Gilles Chanteperdrix
2013-02-27 21:12 ` Daniel M. Drucker, Ph.D.
0 siblings, 1 reply; 15+ messages in thread
From: Gilles Chanteperdrix @ 2013-02-27 21:08 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 10:03 PM, Daniel M. Drucker, Ph.D. wrote:
> Success!
>
> All we had to do was add:
>
> #define PEAK_MPCI_DEVICE_ID 0x0008 // Device ID for newer PCIe cards
> (IPEH-003027)
>
> and add that to pci_device_id peak_pci_tbl[].
>
> Note that that ID is included in the user-mode driver (
> linux-3.5.7/drivers/net/can/sja1000/peak_pci.c ).
If the driver is in the kernel sources, chances are that it is not a
user-mode driver at all...
--
Gilles.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 21:08 ` Gilles Chanteperdrix
@ 2013-02-27 21:12 ` Daniel M. Drucker, Ph.D.
2013-02-27 23:02 ` Daniel M. Drucker, Ph.D.
0 siblings, 1 reply; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 21:12 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
I meant non-real-time mode.
On Wed, Feb 27, 2013 at 4:08 PM, Gilles Chanteperdrix <
gilles.chanteperdrix@xenomai.org> wrote:
> On 02/27/2013 10:03 PM, Daniel M. Drucker, Ph.D. wrote:
>
> > Success!
> >
> > All we had to do was add:
> >
> > #define PEAK_MPCI_DEVICE_ID 0x0008 // Device ID for newer PCIe cards
> > (IPEH-003027)
> >
> > and add that to pci_device_id peak_pci_tbl[].
> >
> > Note that that ID is included in the user-mode driver (
> > linux-3.5.7/drivers/net/can/sja1000/peak_pci.c ).
>
>
> If the driver is in the kernel sources, chances are that it is not a
> user-mode driver at all...
> --
> Gilles.
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 21:12 ` Daniel M. Drucker, Ph.D.
@ 2013-02-27 23:02 ` Daniel M. Drucker, Ph.D.
2013-02-28 11:17 ` Jan Kiszka
2013-03-02 8:02 ` Wolfgang Grandegger
0 siblings, 2 replies; 15+ messages in thread
From: Daniel M. Drucker, Ph.D. @ 2013-02-27 23:02 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
The latest Linux driver (7.8) from PEAK (
http://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-7.8.tar.gz)
has the following in its peak_pci_tbl:
#define PEAK_PCI_DEVICE_ID 0x0001 // ID for PCI / PCIe Slot cards
#define PEAK_PCIE_CARD_ID 0x0002 // ID for PCIExpress Card
#define PEAK_PCIE_DEVICE_ID 0x0003 // ID for new PCIe Slot cards
#define PEAK_CPCI_ID 0x0004 // ID for new cPCI
#define PEAK_MINIPCI_ID 0x0005 // ID for miniPCI
#define PEAK_PC104PLUS_ID 0x0006 // ID for new PC-104 Plus
#define PEAK_PC104E_ID 0x0007 // ID for PC-104 Express
#define PEAK_MINIPCIE_ID 0x0008 // ID for miniPCIe Slot cards
Is there any reason why these all shouldn't also be in Xenomai's version?
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 23:02 ` Daniel M. Drucker, Ph.D.
@ 2013-02-28 11:17 ` Jan Kiszka
2013-03-02 8:02 ` Wolfgang Grandegger
1 sibling, 0 replies; 15+ messages in thread
From: Jan Kiszka @ 2013-02-28 11:17 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 2013-02-28 00:02, Daniel M. Drucker, Ph.D. wrote:
> The latest Linux driver (7.8) from PEAK (
> http://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-7.8.tar.gz)
> has the following in its peak_pci_tbl:
>
> #define PEAK_PCI_DEVICE_ID 0x0001 // ID for PCI / PCIe Slot cards
> #define PEAK_PCIE_CARD_ID 0x0002 // ID for PCIExpress Card
> #define PEAK_PCIE_DEVICE_ID 0x0003 // ID for new PCIe Slot cards
> #define PEAK_CPCI_ID 0x0004 // ID for new cPCI
> #define PEAK_MINIPCI_ID 0x0005 // ID for miniPCI
> #define PEAK_PC104PLUS_ID 0x0006 // ID for new PC-104 Plus
> #define PEAK_PC104E_ID 0x0007 // ID for PC-104 Express
> #define PEAK_MINIPCIE_ID 0x0008 // ID for miniPCIe Slot cards
>
>
> Is there any reason why these all shouldn't also be in Xenomai's version?
If those cards are compatible with the ones we already support, you can
go ahead and send a patch to add the IDs to Xenomai's driver. But I
would first cross-check with the kernel commits that added support for
them, if more was changed.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 23:02 ` Daniel M. Drucker, Ph.D.
2013-02-28 11:17 ` Jan Kiszka
@ 2013-03-02 8:02 ` Wolfgang Grandegger
1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Grandegger @ 2013-03-02 8:02 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/28/2013 12:02 AM, Daniel M. Drucker, Ph.D. wrote:
> The latest Linux driver (7.8) from PEAK (
> http://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-7.8.tar.gz)
> has the following in its peak_pci_tbl:
>
> #define PEAK_PCI_DEVICE_ID 0x0001 // ID for PCI / PCIe Slot cards
> #define PEAK_PCIE_CARD_ID 0x0002 // ID for PCIExpress Card
> #define PEAK_PCIE_DEVICE_ID 0x0003 // ID for new PCIe Slot cards
> #define PEAK_CPCI_ID 0x0004 // ID for new cPCI
> #define PEAK_MINIPCI_ID 0x0005 // ID for miniPCI
> #define PEAK_PC104PLUS_ID 0x0006 // ID for new PC-104 Plus
> #define PEAK_PC104E_ID 0x0007 // ID for PC-104 Express
> #define PEAK_MINIPCIE_ID 0x0008 // ID for miniPCIe Slot cards
>
>
> Is there any reason why these all shouldn't also be in Xenomai's version?
Some of these cards are available with more than two channels. It would
be nice to update the driver to support up to 4 channels. Should not be
a big deal to port the relevant code from the Linux driver, though.
Wolfgang.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card
2013-02-27 19:04 [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card Daniel M. Drucker, Ph.D.
2013-02-27 19:25 ` Gilles Chanteperdrix
@ 2013-02-28 11:26 ` Wolfgang Grandegger
1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Grandegger @ 2013-02-28 11:26 UTC (permalink / raw)
To: Daniel M. Drucker, Ph.D.; +Cc: xenomai
On 02/27/2013 08:04 PM, Daniel M. Drucker, Ph.D. wrote:
> Hello all,
>
> We have a PC/104 computer with a PEAK PC/104-PLUS card which we are
> successfully using to talk CAN from within Xenomai. For various reasons, we
> want to switch to using a mini-ITX board.
>
> We're trying to use the PEAK PCAN-miniPCIe card on the mini-ITX board, but
> we are having no luck - the card doesn't seem to get seen by Xenomai.
>
> We're not sure if this is an IRQ problem or something else. On the PC104
> system, we had an IRQ conflict which we were able to solve by changing a
> jumper - the new card has no jumpers to change, and our motherboard's BIOS
> does not have any settings that allow changing of daughterboard IRQs.
>
> Both systems are running the same OS install with the same kernel. The
> 'latency' command in the Xenomai testsuite runs correctly on both systems.
>
> I have put together a comparison of command outputs on the old (working)
> and new (non-working) systems: http://goo.gl/GBy8h
"lspci" list different PCI device IDs for the cards on the old and new
system. The new card with the ID 001c:0008 is not (yet) supported.
> Any insight into what's wrong in our new system and how to get it working
> would be greatly appreciated!
As this new card is already supported in the mainline Linux driver [1],
does have just two channels and does not need special handling, simply
adding that vendor:device ID here should work:
http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/sja1000/rtcan_peak_pci.c#0079
[1] http://lxr.linux.no/#linux+v3.8/drivers/net/can/sja1000/peak_pci.c#L72
Wolfgang.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2013-03-02 8:02 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27 19:04 [Xenomai] Failing to recognize/use PEAK PCAN-miniPCIe card Daniel M. Drucker, Ph.D.
2013-02-27 19:25 ` Gilles Chanteperdrix
2013-02-27 19:34 ` Daniel M. Drucker, Ph.D.
2013-02-27 20:08 ` Gilles Chanteperdrix
2013-02-27 20:14 ` Daniel M. Drucker, Ph.D.
2013-02-27 20:15 ` Gilles Chanteperdrix
2013-02-27 20:17 ` Gilles Chanteperdrix
2013-02-27 20:19 ` Daniel M. Drucker, Ph.D.
2013-02-27 21:03 ` Daniel M. Drucker, Ph.D.
2013-02-27 21:08 ` Gilles Chanteperdrix
2013-02-27 21:12 ` Daniel M. Drucker, Ph.D.
2013-02-27 23:02 ` Daniel M. Drucker, Ph.D.
2013-02-28 11:17 ` Jan Kiszka
2013-03-02 8:02 ` Wolfgang Grandegger
2013-02-28 11:26 ` Wolfgang Grandegger
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.