From nobody Wed Dec 27 23:55:31 2023 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 4T0pS015htz54fQ5 for ; Wed, 27 Dec 2023 23:55:44 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T0pRz1d0Sz4tP6; Wed, 27 Dec 2023 23:55:43 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net; dmarc=none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 1DC438D4A230; Wed, 27 Dec 2023 23:55:33 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 857952D029D8; Wed, 27 Dec 2023 23:55:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id XDtYOyjk_uaU; Wed, 27 Dec 2023 23:55:32 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 841ED2D029D2; Wed, 27 Dec 2023 23:55:32 +0000 (UTC) Date: Wed, 27 Dec 2023 23:55:31 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-arm@FreeBSD.org cc: Warner Losh Subject: MMCCAM hang 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-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; ARC_NA(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4T0pRz1d0Sz4tP6 X-Spamd-Bar: --- Hi, sdhci_fsl_fdt0: Desired SD/MMC freq: 50000000, actual: 50000000; base 700000000 prescale 1 divisor 14 GEOM: new disk sdda0 sdda0 at sdhci_slot0 bus 0 scbus0 target 0 lun 0 sdda0: Relative addr: 00000002 Card features: Card random: unblocking device. GEOM: new disk sdda0boot0 memory OCR: 00ff8080 sdda0: Serial Number ....... sdda0: MMCHC .................................. by 17 0x0000 GEOM: new disk sdda0boot1 uhub0: 2 ports with 2 removable, self powered at which point basically anything hangs. In auto-boot it is before/during file-system checks. In single user mode camcontrol devlist will show sdda0 but root@:/ # gpart show sdda0 load: 6.06 cmd: gpart 24 [g_waitfor_event] 1.28r 0.00u 0.00s 0% 2088k {forever} Unclear at which point I broke to debugger and this is where it seems to hang: db> trace 100088 Tracing pid 4 tid 100088 td 0xffff0000dc527000 ipi_stop() at ipi_stop+0x34 arm_gic_v3_intr() at arm_gic_v3_intr+0xe4 intr_irq_handler() at intr_irq_handler+0x80 handle_el1h_irq() at handle_el1h_irq+0x14 --- interrupt spinlock_exit() at spinlock_exit+0x44 callout_reset_sbt_on() at callout_reset_sbt_on+0x210 sdhci_cam_action() at sdhci_cam_action+0x284 xpt_run_devq() at xpt_run_devq+0x4c8 xpt_action_default() at xpt_action_default+0x470 sddastart() at sddastart+0x1bc xpt_run_allocq() at xpt_run_allocq+0xa8 xpt_done_process() at xpt_done_process+0x610 xpt_done_td() at xpt_done_td+0x1a8 fork_exit() at fork_exit+0x8c fork_trampoline() at fork_trampoline+0x18 Anyone an idea? -- Bjoern A. Zeeb r15:7