Re: "panic: Duplicate alloc" in dwmmc_attach on Rock64

From: Peter Jeremy <peter_at_rulingia.com>
Date: Mon, 24 Jun 2019 16:49:12 +1000
On 2019-Jun-21 20:59:39 +1000, Peter Jeremy <peter_at_server.rulingia.com> wrote:
>Since r349169, my Rock64 has consistently panic'd whilst attaching
>rockchip_dwmmc1.  A kernel built at r349135 works OK.  The relevant
>output looks like:
>rockchip_dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xff500000-0xff503fff irq 40 on ofwbus0
>rockchip_dwmmc0: Hardware version ID is 270a
>mmc0: <MMC/SD bus> on rockchip_dwmmc0
>rockchip_dwmmc1: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xff520000-0xff523fff irq 42 on ofwbus0
>rockchip_dwmmc1: Hardware version ID is 270a
>panic: Duplicate alloc of 0xfffffd000089cf50 from zone 0xfffffd0000817540(16) slab 0xfffffd000089cf90(0)

I did some more digging and narrowed this down to r349151 (which has nothing
that would be an obvious cause).  And the problem went away somewhere
between r349269 and r349288.  Since there's nothing obvious there either, I
presume this is something more subtle like a race condition that has been
provoked by the code changes.

-- 
Peter Jeremy

Received on Mon Jun 24 2019 - 04:49:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC