Skip to content

MMC problems on Pi3 after change to upstream driver #7025

@spockfish

Description

@spockfish

Describe the bug

I've got at least 2 customers who reported a crash with the latest kernels. It happens only on the Pi3. One of my customers can reproduce it by pulling the power. Within a few attempts the system runs into filesystem problems that start with the message:

sdhost-bcm2835: ... unexpected command 25 error
sdhost-bcm2835: ... previous command (25) not complete
sdhost-bcm2835: ... previous command (25) not complete
...

Followed by a bunch of filesystem related errors about journal problems and superblock updates.

Now, I wrote a ticket before (#6981), which I also closed myself as I thought it was a filesystem bug. And as I was not able to reproduce it myself (I even bought a 3A just to be sure I got the same hardware setup as my customer), so I closed the ticket and moved on.

Recently another customer reported the same issue and it bothered me enough to start searching again. Because one of my customers is able to reproduce it 100% I started bisecting stuff. Everything was ok until 6.12.30, and after that things went wrong.

Some more digging pointed me to this post: https://forums.raspberrypi.com/viewtopic.php?t=389169

Which describes exactly the problem as I'm seeing it, except that I don't have this weird upstream/downstream mix: my kernel is downstream only.

But then I noticed the remark about the change to the upstream MMC driver, specifically this commit: cb6b027

Long story short: reverting this commit fixes the issue.

Steps to reproduce the behaviour

Pull the plug, and within a few attempts (normally between 1 and 5) the issue appears.

Device (s)

Raspberry Pi 3 Mod. A+

System

6.12.42

custom built OS with buildroot, based on downstream defconfig with very little changes.

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions