From nobody Fri Sep 16 21:31:45 2022 X-Original-To: hackers@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 4MTnMW6XGvz4c6QN for ; Fri, 16 Sep 2022 21:31:51 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MTnMV6l5fz3dFh for ; Fri, 16 Sep 2022 21:31:50 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: by mail-pj1-x1031.google.com with SMTP id n23-20020a17090a091700b00202a51cc78bso972910pjn.2 for ; Fri, 16 Sep 2022 14:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisbowman-com.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date; bh=DwP4R01mEzgmgKuNPSXWPXEQDO4z1aCfCtJF9GU1z2Y=; b=BuFMy57+DC5nAEPRg/PbIN0T3Z1OWDmMPm6/6E9FyZjDS1M0jHDpRbhM9HoQnQQeUc Tx8+W7pT/37Z53pT633uCRGXbbOZxdAFdi5EohdUP7cnymHT9nX9QQWbfJXghGfHZIJ7 +7OUiMmd/FsqoZme8ck614ay8CsCen93heN5viZKLIdephA4mh809vkFUlnuZE+jFL2E 4hF/51aft1put35LJt6sSIc/dKA+SJwwTugqYGJzmy3PNm6YpiVHle4B+JVbJkegKgOG sn4MX2ff5cMWJmY+4rXXC+FhGXQ+MvYvk5mDVZZww7YNJ7aYzSdVksC4bfT5c0CxbVcT Hmqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date; bh=DwP4R01mEzgmgKuNPSXWPXEQDO4z1aCfCtJF9GU1z2Y=; b=ojpmXyn4eni/Ak4/QrPt8nJbnKVpY1rXDGhY+fTUPiAeKo0zl+k/GnIerNQEwFpUxR yMsZOC3ZhOPOH0lZtHIBkt54n/z9tZ5omTiFlJCeCOpAin1E0WNbyEIlXS3d+8cFP9Bm dNlJ7Dugpp5RPZ8VT6LEuSnawax9gu/8lRvb979IZmQUW4eHyQJEq3VSol8HRr2u1gQZ zclrQ0fK1WTS8wM5cHvoxD3UIAlB4o3Yn7SiF+kWrewV6A+vhEz3nLaRFPxjInPeMU08 JjjHIF4+kJeEvkjr+KzT8rZC8FKAjVzFh8HaUJTZessuWcwjRcPmVLjP0GlUVpzoQTJ6 e1HA== X-Gm-Message-State: ACrzQf3pq9pFmfqzXxo22f2wmZMMcfuoOodRQAxeScTPNyXWlei196Zm PLrC53BsJj4NZXO/7bwDQpYPYgHzyzbyzGu4cK8= X-Google-Smtp-Source: AMsMyM4f927Yf3/HNH9cr2qD7BxIkneUtP+gSgM8dcHCmzqpRLKcHu/+PN22PepWksYubsxLxeAokA== X-Received: by 2002:a17:903:18a:b0:178:3ad0:2689 with SMTP id z10-20020a170903018a00b001783ad02689mr1773041plg.20.1663363909464; Fri, 16 Sep 2022 14:31:49 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:5430:10b1:a154:1458:2987:31df]) by smtp.gmail.com with ESMTPSA id q18-20020a170902dad200b001782aee4881sm12524586plx.153.2022.09.16.14.31.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Sep 2022 14:31:48 -0700 (PDT) From: Christopher Bowman Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Controller timeout in SDHCI Message-Id: <6F53CEFE-E4CC-452B-A64C-F312A550C40F@chrisbowman.com> Date: Fri, 16 Sep 2022 14:31:45 -0700 To: hackers@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MTnMV6l5fz3dFh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chrisbowman-com.20210112.gappssmtp.com header.s=20210112 header.b=BuFMy57+; dmarc=none; spf=none (mx1.freebsd.org: domain of crb@chrisbowman.com has no SPF policy when checking 2607:f8b0:4864:20::1031) smtp.mailfrom=crb@chrisbowman.com X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[chrisbowman-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1031:from]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[chrisbowman-com.20210112.gappssmtp.com:+]; DMARC_NA(0.00)[chrisbowman.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I am working on a Xilinx ZYNQ (ARM cortex A9) based board. I have a = 13.0 setup working but my freshly build 13.1 doesn=E2=80=99t boot. Upon boot while probing and attaching devices I get the following = message which=20 sdhci_fdt0-slot0: Controller timeout sdhci_fdt0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_fdt0-slot0: Sys addr: 0x00060000 | Version: 0x00008901 sdhci_fdt0-slot0: Blk size: 0x00005008 | Blk cnt: 0x00000001 sdhci_fdt0-slot0: Argument: 0x00000000 | Trn mode: 0x00000013 sdhci_fdt0-slot0: Present: 0x01ff0202 | Host ctl: 0x00000001 sdhci_fdt0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_fdt0-slot0: Wake-up: 0x00000000 | Clock: 0x00004007 sdhci_fdt0-slot0: Timeout: 0x00000006 | Int stat: 0x00000001 sdhci_fdt0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fa sdhci_fdt0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 sdhci_fdt0-slot0: Caps: 0x69ec0080 | Caps2: 0x00000000 sdhci_fdt0-slot0: Max curr: 0x00000001 | ADMA err: 0x00000000 sdhci_fdt0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 sdhci_fdt0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This whole section repeats and the only register which seems to change = is the Sys addr which goes to 0. I imagine that the interrupt which signals a completion of a SDHCI read = is probably not getting back to the driver and thus the timeout triggers = but I=E2=80=99m not sure. I believe the FDT for the working and 13.0 and the failing 13.1 are = identical. If anyone has any suggestions as to where to start looking that would be = greatly appreciated. Regards, Christopher=