From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: Alan Stern <stern@rowland.harvard.edu>,
linux-can Mailing List <linux-can@vger.kernel.org>
Subject: Re: [PATCH 2/3 V3.1] can/usb: PEAK-System Technik PCAN-USB specific part
Date: Fri, 20 Jan 2012 08:52:36 +0100 [thread overview]
Message-ID: <4F191D44.9080101@hartkopp.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1201191004540.1447-100000@iolanthe.rowland.org>
On 19.01.2012 16:07, Alan Stern wrote:
> On Thu, 19 Jan 2012, Stephane Grosjean wrote:
>> +static int pcan_usb_send_cmd(struct peak_usb_device *dev, u8 f, u8 n, u8 *p)
>> + struct pcan_usb_parameter cmd = {
>> + .function = f,
>> + .number = n,
>> + };
>> +
>
> Here, and in several other places in this patch series, you submit
> requests using a transfer buffer that is allocated on the stack. This
> is forbidden because not all platforms can do DMA to stack or static
> addresses. The transfer buffers should be allocated dynamically.
>
> Alan Stern
Hello Stephane,
don't know if it could be related to that remark but i get sporadic tx stalls
when sending at full speed. The RX is working then but to send again, i need
to perform a ifconfig down/up sequence.
When using
ip link set can0 type can restart-ms 100
with the adapter then the system entirely crashes after a while.
As this may be related to the 3.3rc1 kernel and therefore i'll do some tests
with a 3.2.1 today to.
My testbed (all sja1000 based controllers) connected to one bus:
can0: EMS PCMCIA channel 0
can1: EMS PCMCIA channel 1
can2: PEAK USB
cangen -i -g0 can0
cangen -i -g0 can2
As the traffic has random IDs there could emerge the same tx ID (which is
against CAN spec). At a certain point the PCAN USB creates some error-passive
errors and finally increases a bus-off state. But it seam to not heal the tx
path from this state due to the valid traffic from can0 -> can1.
And when configured "restart-ms 100" it kills the machine then.
Btw.
cangen -i -g0 can0 -I 400
cangen -i -g0 can2 -I 600
and
cangen -i -g0 can0 -I 500
cangen -i -g0 can2 -I 500
(!!!)
both run without problems for a long time.
Best regards,
Oliver
ps. I reduced the number of lists to linux-can for the report.
next prev parent reply other threads:[~2012-01-20 7:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 10:27 [PATCH 0/3 V3.1] can/usb: Add PEAK-System PCAN USB adapters driver Stephane Grosjean
2012-01-19 10:27 ` [PATCH 2/3 V3.1] can/usb: PEAK-System Technik PCAN-USB specific part Stephane Grosjean
2012-01-19 15:07 ` Alan Stern
2012-01-20 7:52 ` Oliver Hartkopp [this message]
2012-01-20 12:28 ` Oliver Hartkopp
2012-01-20 12:34 ` Wolfgang Grandegger
2012-01-20 12:36 ` Wolfgang Grandegger
2012-01-20 13:37 ` Oliver Hartkopp
2012-01-20 13:52 ` Wolfgang Grandegger
2012-01-20 14:53 ` Stephane Grosjean
2012-01-20 17:32 ` Wolfgang Grandegger
[not found] ` <1326968863-20229-1-git-send-email-s.grosjean-g4cQ8AsIbFbL9ATBNaCtXw@public.gmane.org>
2012-01-19 10:27 ` [PATCH 1/3 V3.1] can/usb: PEAK-System Technik USB adapters driver core Stephane Grosjean
2012-01-19 10:27 ` [PATCH 3/3 V3.1] can/usb: PEAK-System Technik PCAN-USB Pro specific part Stephane Grosjean
2012-01-19 19:08 ` [PATCH 0/3 V3.1] can/usb: Add PEAK-System PCAN USB adapters driver Oliver Hartkopp
2012-01-20 9:28 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F191D44.9080101@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=s.grosjean@peak-system.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.