Wifi fails under heavy load and requires reboot (mmc1: Timeout waiting for hardware interrupt)

Open
#4,546 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, linux

Research direction

Review the system information at https://pastebin.com/TxW2rkR8 and logs at https://pastebin.com/GNxF3A9h, starting with the mmc1: Timeout waiting for hardware interrupt message and the conditions around sustained webcam traffic. Reproduce the failure under heavy Wi-Fi load and compare the logs and recovery behavior with the expected uninterrupted connection.

Written by the indexing model from the issue text.

Description

Describe the bug
I'm running octoprint on my Raspberry with a webcam and connecting in headless mode over wifi. If I watch the webcam stream from octoprint, which puts the wifi under heavy load, after a while (random, can be minutes, can be hours), the wifi cuts out. Nothing but a reboot can bring it back. Currently I'm using the octopi image, but I had the same issue using the official Raspbian image.

To reproduce

  1. Connect to a wifi
  2. Put the wifi under heavy load for an extended period of time
  3. Sometimes the wifi stops working, does not happen every time

Expected behaviour
Wifi keeps working

Actual behaviour
Wifi stops working, device is unresponsive. Even with a screen and keyboard connected, I was unable to bring the device down (ifdown didn't find the device anymore), ifconfig still listed it but not connected, trying to scan for wifi networks let to a timeout.

System
https://pastebin.com/TxW2rkR8

Logs
https://pastebin.com/GNxF3A9h

Additional info
I have a second MicroSD card I can use to run tests on, if that would help

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.