From owner-freebsd-hackers@freebsd.org Wed Apr 24 21:19:06 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C869E1581A08 for ; Wed, 24 Apr 2019 21:19:06 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A1B381A19 for ; Wed, 24 Apr 2019 21:19:06 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from ice.alameda.xse.com (unknown [IPv6:2001:558:6045:10:9084:9e0:4b6d:eb99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 158802EC90 for ; Wed, 24 Apr 2019 21:19:06 +0000 (UTC) (envelope-from leres@freebsd.org) To: FreeBSD Hackers From: Craig Leres Subject: mmc/sdhci controller boot timeouts with no media with an intel nuc Message-ID: <0c47087d-03fe-5e16-1e6d-9f4f715e2b39@freebsd.org> Date: Wed, 24 Apr 2019 14:19:04 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 6A1B381A19 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2019 21:19:06 -0000 I have a NUC6i3SYH that takes a couple of extra of minutes to boot (11.2-RELEASE) due a controller timeout loop that executes 16 times (with ~10 second delays in between): sdhci_pci0-slot0: Controller timeout sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001002 sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 sdhci_pci0-slot0: Present: 0x00020001 | Host ctl: 0x00000001 sdhci_pci0-slot0: Power: 0x0000000e | Blk gap: 0x00000080 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x0000fa07 sdhci_pci0-slot0: Timeout: 0x00000000 | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff003b sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 sdhci_pci0-slot0: Caps: 0x7568c881 | Caps2: 0x00000807 sdhci_pci0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 which wraps up with: mmc0: No compatible cards found on bus And indeed the sd card slot is empty. I was able to disable this code by adding: hint.mmc.0.disabled="1" hint.sdhci.0.disabled="1" to loader.conf. What would it take to improve the default behavior? From what I remember sd connectors usually have a media present switch, is the problem that our drivers don't know how to test for this specific system? Craig