From nobody Tue Jul 06 22:52:55 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CB2B811DB056 for ; Tue, 6 Jul 2021 22:53:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GKHrz4hLNz3hct; Tue, 6 Jul 2021 22:53:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C00B38D4A157; Tue, 6 Jul 2021 22:52:59 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id D3357E7082C; Tue, 6 Jul 2021 22:52:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 7FuVHa6GHJly; Tue, 6 Jul 2021 22:52:56 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 7D42AE70827; Tue, 6 Jul 2021 22:52:56 +0000 (UTC) Date: Tue, 6 Jul 2021 22:52:55 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-arm@freebsd.org cc: imp@FreeBSD.org Subject: MMCCAM sdhci_fdt0 panic on boot Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4GKHrz4hLNz3hct X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-2.89 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-0.59)[-0.591]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[195.201.62.131:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; SPAMHAUS_ZRD(0.00)[195.201.62.131:from:127.0.2.255]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N Hi, something has recently changed which causes this (last kernel was from April 20 imho and was fine)? I am wondering if it is because of MMCCAM/CAM updates or a DTS update I didn't fully do and we don't handle well? My guess is the former... /bz rockchip_dwmmc0: mem 0xfe310000-0xfe313fff irq 10 on ofwbus0 rockchip_dwmmc0: Hardware version ID is 270a rockchip_dwmmc1: mem 0xfe320000-0xfe323fff irq 11 on ofwbus0 rockchip_dwmmc1: vmmc-supply regulator found rockchip_dwmmc1: vqmmc-supply regulator found rockchip_dwmmc1: Hardware version ID is 270a sdhci_fdt0: mem 0xfe330000-0xfe33ffff irq 12 on ofwbus0 sdhci_fdt0: clk parent: clk_emmc sdhci_fdt0: clk parent: aclk_emmc Clock: emmc_cardclock, parent: clk_emmc(0), freq: 99000000 rk_emmcphy0: Phy id: 0 rk_emmcphy0: got emmcclk clock sdhci_fdt0-slot0: Hardware doesn't specify timeout clock frequency, setting BROKEN_TIMEOUT quirk. sdhci_fdt0-slot0: 99MHz HS 8bits VDD: 1.8V VCCQ: 3.3V DRV: BACD DMA embedded sdhci_fdt0-slot0: ============== REGISTER DUMP ============== sdhci_fdt0-slot0: Sys addr: 0xefd56c00 | Version: 0x00001002 sdhci_fdt0-slot0: Blk size: 0x00007200 | Blk cnt: 0x00000000 sdhci_fdt0-slot0: Argument: 0x00000001 | Trn mode: 0x00000013 sdhci_fdt0-slot0: Present: 0x1fff0000 | Host ctl: 0x00000024 sdhci_fdt0-slot0: Power: 0x0000000b | Blk gap: 0x00000080 sdhci_fdt0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_fdt0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_fdt0-slot0: Int enab: 0x027f003b | Sig enab: 0x00000000 sdhci_fdt0-slot0: AC12 err: 0x00000000 | Host ctl2:0x0000009d sdhci_fdt0-slot0: Caps: 0x44ed6380 | Caps2: 0x800020f7 sdhci_fdt0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000 sdhci_fdt0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 sdhci_fdt0-slot0: =========================================== sdhci_fdt0: 1 slot(s) allocated Fatal data abort: x0: 0 x1: ffff000000b452b8 x2: ffff0000008e8679 x3: 0 x4: 20000 x5: 50 x6: ffff000000522a58 x7: ffff0000010166f8 x8: 1030000 x9: 0 x10: 0 x11: 0 x12: 0 x13: 0 x14: ffff000000b452b8 x15: 0 x16: 0 x17: 0 x18: ffff0000010167a0 x19: ffff0000a3d09030 x20: ffff0000a3d092b8 x21: ffff0000a3d092a0 x22: ffff0000008f7da9 x23: 1 x24: 1 x25: ffff0000a3d09030 x26: ffff0000a3d09fc0 x27: 298 x28: ffff000040426bf0 x29: ffff0000010167a0 sp: ffff0000010167a0 lr: ffff000000264d18 elr: ffff000000506908 spsr: 600001c5 far: 50 esr: 96000004 panic: vm_fault failed: ffff000000506908 error 1 cpuid = 0 time = 1 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x30 vpanic() at vpanic+0x184 panic() at panic+0x44 data_abort() at data_abort+0x1e0 handle_el1h_sync() at handle_el1h_sync+0x74 --- exception, esr 0x96000004 device_get_unit() at device_get_unit+0x8 sdhci_start_slot() at sdhci_start_slot+0x4c sdhci_fdt_attach() at sdhci_fdt_attach+0x5b4 device_attach() at device_attach+0x400 bus_generic_new_pass() at bus_generic_new_pass+0x11c bus_generic_new_pass() at bus_generic_new_pass+0xac bus_generic_new_pass() at bus_generic_new_pass+0xac root_bus_configure() at root_bus_configure+0x40 mi_startup() at mi_startup+0x21c virtdone() at virtdone+0x6c KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x44: undefined f903c11f -- Bjoern A. Zeeb r15:7