All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Pellegrini <mikep86@gmail.com>
To: linux-can@vger.kernel.org
Subject: Re: pch_can: Data transmission stops after dropped packet
Date: Fri, 23 Nov 2012 14:27:04 +0000 (UTC)	[thread overview]
Message-ID: <loom.20121123T150627-133@post.gmane.org> (raw)
In-Reply-To: loom.20121121T215717-106@post.gmane.org

Michael Pellegrini <mikep86 <at> gmail.com> writes:

> My application has been running strong for about 45 minutes and counting with
> this driver.  I will leave the system running over Thanksgiving as a long-term
> test.

The driver has unfortunately failed the long-term test.  When I checked the
PCH-System this morning, it had hit the transmission problem again.  Dmesg 
output is:

[234700.232657] c_can_isr: irqstatus=0x6
[234700.232712] c_can_isr: irqstatus=0x6
[234700.232765] c_can_isr: irqstatus=0x6
[234700.232818] c_can_isr: irqstatus=0x6
[234700.232873] c_can_isr: irqstatus=0x6
[234700.232928] c_can_isr: irqstatus=0x6
[234700.232985] c_can_isr: irqstatus=0x6
[234700.233041] c_can_isr: irqstatus=0x6
[234700.233096] c_can_isr: irqstatus=0x6
[234700.233151] c_can_isr: irqstatus=0x6
[234700.233203] c_can_isr: irqstatus=0x6
[234700.233257] c_can_isr: irqstatus=0x6
[234700.233312] c_can_isr: irqstatus=0x6
[234700.233369] c_can_isr: irqstatus=0x6
[234700.233424] c_can_isr: irqstatus=0x6
[234700.233478] c_can_isr: irqstatus=0x6

"ip -d -s link show can0" output is:

8: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10
    link/can
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
    bitrate 250000 sample-point 0.875
    tq 500 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1
    c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
    clock 50000000
    re-started bus-errors arbit-lost error-warn error-pass bus-off
    0          0          0          0          0          0
    RX: bytes  packets  errors  dropped overrun mcast
    102603     43967    0       0       0       0
    TX: bytes  packets  errors  dropped carrier collsns
    4487315    1082899  0       0       0       0

I tried sending a message with "cansend can0 123#abcdef" and got the error 
message "write: No buffer space available".

Additionally, data reception is broken.  I can confirm via the CAN Monitor
system that the External Node system is sending messages which the PCH-System
should be receiving.  However, the RX count is not increasing and 
"candump any,0:0,#FFFFFFFF" does not show any messages being transmitted or
received on the interface.

Resetting the interface fixes data transmission and reception.  After the reset,
"ip -d -s link show can0" output is:

8: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10
    link/can
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
    bitrate 250000 sample-point 0.875
    tq 500 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1
    c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
    clock 50000000
    re-started bus-errors arbit-lost error-warn error-pass bus-off
    0          0          0          0          0          0
    RX: bytes  packets  errors  dropped overrun mcast
    103148     44200    0       0       0       0
    TX: bytes  packets  errors  dropped carrier collsns
    4487318    1082900  0       13      0       0

After the reset, dmesg output is:

[235689.911732] c_can_isr: irqstatus=0x7
[235690.358052] c_can_isr: irqstatus=0x8000
[235690.358111] c_can_isr: irqstatus=0x8
[235690.358282] c_can_isr: irqstatus=0x9
[235690.975410] c_can_isr: irqstatus=0x8000
[235690.975466] c_can_isr: irqstatus=0x1
[235691.420692] c_can_isr: irqstatus=0x8000
[235691.420749] c_can_isr: irqstatus=0x2
[235691.420899] c_can_isr: irqstatus=0x8000
[235691.420937] c_can_isr: irqstatus=0x3
[235692.038095] c_can_isr: irqstatus=0x8000
[235692.038151] c_can_isr: irqstatus=0x4
[235692.483325] c_can_isr: irqstatus=0x8000
[235692.483381] c_can_isr: irqstatus=0x5
[235692.483548] c_can_isr: irqstatus=0x8000
[235692.483587] c_can_isr: irqstatus=0x6
[235693.100729] c_can_isr: irqstatus=0x8000
[235693.100785] c_can_isr: irqstatus=0x7
[235693.545970] c_can_isr: irqstatus=0x8000
[235693.546027] c_can_isr: irqstatus=0x8
[235693.546195] c_can_isr: irqstatus=0x9

- Mike


  reply	other threads:[~2012-11-23 14:27 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14 15:39 pch_can: Data transmission stops after dropped packet Michael Pellegrini
2012-11-14 21:40 ` Michael Pellegrini
2012-11-15  7:18 ` Oliver Hartkopp
2012-11-15 13:13   ` Wolfgang Grandegger
2012-11-15 16:23     ` Michael Pellegrini
2012-11-15 21:19       ` Wolfgang Grandegger
2012-11-15 21:34         ` Michael Pellegrini
2012-11-15 21:51           ` Wolfgang Grandegger
2012-11-18 22:22           ` Wolfgang Grandegger
2012-11-19 15:10             ` Michael Pellegrini
2012-11-19 15:26               ` Wolfgang Grandegger
2012-11-19 16:20                 ` Michael Pellegrini
2012-11-19 16:31                   ` Wolfgang Grandegger
2012-11-19 17:39                     ` Michael Pellegrini
2012-11-19 19:22                       ` Wolfgang Grandegger
2012-11-19 20:19                         ` Michael Pellegrini
2012-11-19 21:46                           ` Wolfgang Grandegger
2012-11-20 14:25                             ` Michael Pellegrini
2012-11-20 16:12                               ` Wolfgang Grandegger
2012-11-20 19:12                                 ` Michael Pellegrini
2012-11-20 21:05                                   ` Wolfgang Grandegger
2012-11-21 10:24                                     ` Wolfgang Grandegger
     [not found]                                       ` <loom.20121121T160744-278@post.gmane.or  g>
2012-11-21 15:15                                       ` Michael Pellegrini
     [not found]                                       ` <loom.20121121T160744-278@post.gmane.or g>
2012-11-21 15:25                                         ` Michael Pellegrini
2012-11-21 15:32                                           ` Marc Kleine-Budde
2012-11-21 16:11                                             ` Michael Pellegrini
2012-11-21 15:41                                           ` Michael Pellegrini
2012-11-21 15:56                                           ` Wolfgang Grandegger
2012-11-21 16:09                                             ` Michael Pellegrini
2012-11-21 16:41                                               ` Wolfgang Grandegger
2012-11-21 16:58                                                 ` Casper Mogensen
2012-11-21 19:48                                                   ` Wolfgang Grandegger
2012-11-21 17:43                                                 ` Michael Pellegrini
2012-11-21 19:55                                                   ` Wolfgang Grandegger
2012-11-21 21:00                                                     ` Michael Pellegrini
2012-11-23 14:27                                                       ` Michael Pellegrini [this message]
2012-11-23 14:45                                                         ` Wolfgang Grandegger
2012-11-23 14:47                                                           ` Wolfgang Grandegger
2012-11-23 15:14                                                             ` Michael Pellegrini
2012-11-23 15:04                                                           ` Michael Pellegrini
2012-11-23 17:00                                                             ` Wolfgang Grandegger
2012-11-23 17:18                                                               ` Wolfgang Grandegger
2012-11-23 17:52                                                                 ` Michael Pellegrini
2012-11-25 16:17                                                                   ` Wolfgang Grandegger
2012-11-26 14:54                                                                     ` Michael Pellegrini
2012-11-26 15:30                                                                       ` Wolfgang Grandegger
2012-11-26 17:30                                                                         ` Michael Pellegrini
2012-11-26 18:13                                                                           ` Wolfgang Grandegger
2012-11-29 12:15                                                                             ` Wolfgang Grandegger
2012-11-29 14:15                                                                               ` Michael Pellegrini
2012-12-06 14:20                                                                                 ` Michael Pellegrini
2012-12-06 14:23                                                                                   ` Marc Kleine-Budde
2012-12-06 14:41                                                                                     ` Wolfgang Grandegger
2012-12-06 14:42                                                                                       ` Marc Kleine-Budde
2012-12-06 14:42                                                                                     ` Michael Pellegrini
2012-12-06 14:49                                                                                   ` Wolfgang Grandegger
2012-12-06 17:05                                                                                     ` Alexander Stein
2012-12-06 22:02                                                                                       ` Wolfgang Grandegger
2012-12-06 23:24                                                                                         ` Marc Kleine-Budde
2012-12-10  8:21                                                                                         ` Alexander Stein
2012-12-11 20:24                                                                                           ` Wolfgang Grandegger
2012-12-13 14:04                                                                                             ` Alexander Stein
2012-12-11 14:46                                                                                         ` Michael Pellegrini
2012-12-11 20:21                                                                                           ` Wolfgang Grandegger
2012-12-12 13:35                                                                                           ` Alexander Stein
2012-12-06 22:11                                                                                     ` Michael Pellegrini
2012-12-06 23:23                                                                                       ` Michael Pellegrini
2012-11-24  7:16                                                               ` Wolfgang Grandegger
2012-11-26  3:33                                                                 ` Bhupesh SHARMA
2012-11-21 14:52                                     ` Michael Pellegrini
2012-11-21 15:02                                       ` Wolfgang Grandegger
2012-11-15 16:32     ` Casper Mogensen
2012-11-15 21:16       ` Wolfgang Grandegger
2012-11-16 19:39     ` Wolfgang Grandegger
2012-11-15 16:12   ` Michael Pellegrini
2012-11-20 18:59     ` Wolfgang Grandegger
2012-11-15 12:35 ` Steffen Rose
2012-11-15 18:26   ` Michael Pellegrini
2012-11-16  8:24     ` Steffen Rose

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=loom.20121123T150627-133@post.gmane.org \
    --to=mikep86@gmail.com \
    --cc=linux-can@vger.kernel.org \
    /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.