From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andri Yngvason Subject: Re: [PATCH v2 1/4] can: dev: Consolidate and unify state change handling. Date: Wed, 22 Oct 2014 11:48:26 +0000 Message-ID: <5447998A.5080601@marel.com> References: <5425AF94.5000206@marel.com> <5445666A.6090601@grandegger.com> <54463893.3090906@marel.com> <14598c49d530f22df994073aff17d729@grandegger.com> <5446742F.1010709@marel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from [65.55.169.60] ([65.55.169.60]:35047 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932723AbaJVLtH (ORCPT ); Wed, 22 Oct 2014 07:49:07 -0400 In-Reply-To: Sender: linux-can-owner@vger.kernel.org List-ID: To: Wolfgang Grandegger Cc: linux-can@vger.kernel.org On =C3=BEri 21.okt 2014 15:21, Wolfgang Grandegger wrote: > >>>>> To see if the state changes occur as expected could you please re= cord >>>>> error message traces with candump for the following two scenarios= : >>>>> >>>>> 1. send messages with cangen >>>>> disconnect the cable >>>>> reconnect the cable after a while until the error active state= is >>>>> reached. After cleaning up my mess, this is the output for the disconnected cabl= e test: (000.000000) can1 20000004 [8] 00 08 00 00 00 00 60 00 ERRORFRA= ME controller-problem{tx-error-warning} error-counter-tx-rx{{96}{0}} (000.003953) can1 20000004 [8] 00 20 00 00 00 00 80 00 ERRORFRA= ME controller-problem{tx-error-passive} error-counter-tx-rx{{128}{0}} (005.959170) can1 20000002 [8] 03 00 00 00 00 00 00 00 ERRORFRA= ME lost-arbitration{at bit 3} (000.428328) can1 20000004 [8] 00 40 00 00 00 00 5F 00 ERRORFRA= ME controller-problem{back-to-error-active} error-counter-tx-rx{{95}{0}} >>>>>>> 2. set restart-ms=3D100 >>>>>>> send messages with cangen >>>>>>> provoke a bus-off short-circuiting CAN low and high >>>>>>> remove the short-circuit >>>>>>> Shorting the can bus yields a loop like this: (044.014170) can1 20000004 [8] 00 20 00 00 00 00 88 00 ERRORFRA= ME controller-problem{tx-error-passive} error-counter-tx-rx{{136}{0}} (000.003175) can1 20000040 [8] 00 00 00 00 00 00 7F 00 ERRORFRA= ME bus-off error-counter-tx-rx{{127}{0}} (000.099664) can1 20000100 [8] 00 00 00 00 00 00 00 00 ERRORFRA= ME restarted-after-bus-off (000.097246) can1 20000004 [8] 00 20 00 00 00 00 88 00 ERRORFRA= ME controller-problem{tx-error-passive} error-counter-tx-rx{{136}{0}} (000.003160) can1 20000040 [8] 00 00 00 00 00 00 7F 00 ERRORFRA= ME bus-off error-counter-tx-rx{{127}{0}} (000.099602) can1 20000100 [8] 00 00 00 00 00 00 00 00 ERRORFRA= ME restarted-after-bus-off Cheers, Andri