From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Linux MMC List <linux-mmc@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: Re: [PATCH] mmc: renesas_sdhi: fix regression with hard reset on old SDHIs
Date: Thu, 9 Sep 2021 11:33:01 +0200 [thread overview]
Message-ID: <CAMuHMdUuqQe6cM-Zt1GWq6xgydv1po8FOOW9qWe+5hK=ZRqE+w@mail.gmail.com> (raw)
In-Reply-To: <CAMuHMdUXc0oSCXJ-5QmPJz0VkX1Aib+ZAv8K2LN_fT1+5mocqw@mail.gmail.com>
Hi Wolfram,
On Thu, Aug 26, 2021 at 4:25 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Thu, Aug 26, 2021 at 10:21 AM Wolfram Sang
> <wsa+renesas@sang-engineering.com> wrote:
> > Old SDHI instances have a default value for the reset register which
> > keeps it in reset state by default. So, when applying a hard reset we
> > need to manually leave the soft reset state as well. Later SDHI
> > instances have a different default value, the one we write manually now.
> >
> > Fixes: b4d86f37eacb ("mmc: renesas_sdhi: do hard reset if possible")
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > ---
> >
> > Geez, typical SDHI nastiness here...
> >
> > Geert: I think this fixes the issue you saw on Koelsch. It works fine on
> > my Lager now at least. Can you please test and tag if all goes well?
> > It would be great to have this in 5.14 but it definately needs Geert's
> > confirmation first.
>
> Thanks, fixes the SD Card issue is was seeing on Koelsch, and still
> works on Salvator-XS.
>
> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Note that this does not fix the issues on gose and alt in Magnus'
farm, but they may have failed before b4d86f37eacb too.
gose:
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD51)
mmc0: error -110 whilst initialising SD card
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 35 at kernel/dma/debug.c:498 add_dma_entry+0x134/0x178
DMA-API: exceeded 7 overlapping mappings of cacheline 0x0000000001099f61
alt:
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
DMA-API: cacheline tracking EEXIST, overlapping mappings aren't supported
sh_mobile_sdhi ee100000.mmc: timeout waiting for hardware interrupt (CMD19)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 49 at kernel/dma/debug.c:498 add_dma_entry+0x134/0x178
DMA-API: exceeded 7 overlapping mappings of cacheline 0x0000000001082b42
Other MMC instances on gose and alt seem to work.
From my limited collection of logs of booting on these boards, ee100000.mmc on
- gose worked in v4.15, and is broken since at least v4.17,
- alt worked in v5.1-rc6, and is broken now.
SD cards might have been changed in the meantime, though.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2021-09-09 9:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 8:21 [PATCH] mmc: renesas_sdhi: fix regression with hard reset on old SDHIs Wolfram Sang
2021-08-26 14:25 ` Geert Uytterhoeven
2021-08-26 14:31 ` Wolfram Sang
2021-09-06 17:09 ` Ulf Hansson
2021-09-09 12:56 ` Wolfram Sang
2021-09-27 7:57 ` Wolfram Sang
2021-09-27 11:55 ` Ulf Hansson
2021-09-27 12:02 ` Wolfram Sang
2021-08-26 16:34 ` Wolfram Sang
2021-09-09 9:33 ` Geert Uytterhoeven [this message]
2021-09-09 12:55 ` Wolfram Sang
2021-10-05 17:02 ` Biju Das
2021-10-06 12:45 ` Biju Das
2021-10-06 12:53 ` Biju Das
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='CAMuHMdUuqQe6cM-Zt1GWq6xgydv1po8FOOW9qWe+5hK=ZRqE+w@mail.gmail.com' \
--to=geert@linux-m68k.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=wsa+renesas@sang-engineering.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).