From: Tzung-Bi Shih <tzungbi@kernel.org>
To: David Rheinsberg <david@readahead.eu>
Cc: chrome-platform@lists.linux.dev,
Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>
Subject: Re: cros_ec_lpcs on framework: packet too long (4 bytes, expected 0)
Date: Tue, 20 Jun 2023 17:53:22 +0800 [thread overview]
Message-ID: <ZJF3EocB7DX/ULxT@google.com> (raw)
In-Reply-To: <33c2d66a-84ad-48dd-b8ba-f88a7a68a0fd@app.fastmail.com>
On Tue, Jun 20, 2023 at 10:12:34AM +0200, David Rheinsberg wrote:
> Using the cros-ec over lpc device on the Framework-13, I occasionally get:
>
> cros_ec_lpcs cros_ec_lpcs.0: packet too long (4 bytes, expected 0)
>
> Afterwards, the entire EC seems to be inactive and none of its controllers work, anymore (temperature sensors are stale, keyboard defunct, etc.). A reboot fixes the issues.
To be clear, does an AP reboot fix the issue? Or does it need an EC reboot?
Will it trigger some watchdog mechanisms and thus a reboot after waiting for
a specific duration (e.g. 30 seconds)?
> I cannot trigger this issue reliably, yet it seems to happen exclusively under heavy load. Do you have any recommendations how to debug this further?
>
> I failed tracing where the error happens and why any further functionality of the EC is disabled thereafter. Does the driver end communication on an error? Or is this likely a firmware issue and just indicative of the firmware failing?
>
> If you have any recommendations how to enabled the cros-tracing/debug features, I'd gladly run a custom kernel for a while to see where the failure originates.
Could you get the AP and EC console log? AFAIK, the "packet too long" is only
indicating an error of the EC command. There should be some other error
messages directly related to the system becomes inactive.
Try to get the consoles would be the most directly helpful. Except the logs,
ramoops, and stacktraces, for example, if the console is still available when
the issue happens, you could use SysRq to get all stack backtraces.
next prev parent reply other threads:[~2023-06-20 9:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-20 8:12 cros_ec_lpcs on framework: packet too long (4 bytes, expected 0) David Rheinsberg
2023-06-20 9:53 ` Tzung-Bi Shih [this message]
2023-06-20 10:33 ` David Rheinsberg
2023-06-21 4:57 ` Tzung-Bi Shih
2023-06-26 13:09 ` David Rheinsberg
2023-06-21 3:25 ` Dustin Howett
2023-06-26 13:04 ` David Rheinsberg
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=ZJF3EocB7DX/ULxT@google.com \
--to=tzungbi@kernel.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=david@readahead.eu \
--cc=groeck@chromium.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.