From nobody Mon Jul 21 17:38:55 2025 X-Original-To: current@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 4bm71Z07Ljz62vht for ; Mon, 21 Jul 2025 17:39:14 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bm71Y3y0rz3nHN for ; Mon, 21 Jul 2025 17:39:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-879d2e419b9so3012196a12.2 for ; Mon, 21 Jul 2025 10:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1753119547; x=1753724347; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t3lqzAjyTwU108rCN3a8NXRdxz3XvFDYzQGsbsdi/MY=; b=zvOVXTS8nigpi0M8XY5bw6/s5A7t5vjXHje99pvC95IVkZgQq3dee4W5FcuAaKH8eQ pw8kVDaf3SsuH29s3byw6ebVHY90mIM/MsfbIJarSSnathMg6I2+uAJvp7GNBioVs+GJ V4BOOfvlr8F+ouI420XzXC/PpWkWeIvrm2L9VIAGTlNaZy+YX8pkLmWiRb80kUHg7QNJ UEdfQ9cZQvKuPnDRk+9moQACScen5HXs2Bv7Db7gKBf78uwHWvEjstM58WLa2wgp697B 5NoreVKX3hLCplRpp2pBl6zmev54V0JdXvYNAILw+tdWaNnkmOi37GS7C9j/47rKi0bf L/3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753119547; x=1753724347; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t3lqzAjyTwU108rCN3a8NXRdxz3XvFDYzQGsbsdi/MY=; b=SNZrGf5WSklqRlApmVoQ2fTztaZYECToEVOz4Z6h6n6zzNTdepViKINvN81xa58dwa zY6HNGEi5j+rR6b+6c4mcxbXPO3Q8MEB8zr4hAbbxXMmXEO9TFVKtj4Km8Y1pzzpnfhn UYK/umsMm8mRQH3I6SVuUgfA1WW2we+bLf9m1mdv986+lUGirJkWv9MM8nfpuKJhLmD6 mxLwl2P0vud+kJHa3AEbm/UVOYvQI5sla0HIo8W5Hm0grpwx5RMyYHx5+6vjEEWdC+J1 IkcHnkpdxbMHQ3UiTVJKFWmE9HlWFCN/Gdotuf2oNeTf3DtI2R0qOGlVRu/zomre+w28 YiJQ== X-Gm-Message-State: AOJu0Yybhjb2UjN0aoLuTDQJsou8Pa1d8f5Ofw3sFsTWoyYlULLN4dh8 TljuCwSGD3pScsS5982NACm3oYl8nr3nxjTdKse2ZXKcZfBtBUzH8aMnslc86OIcukH9zLFZEyD zKPCRzVHFCMmC4I1eBv1NOT2ISjO6gBZ9Hg5YXp9sy7zfqErncf/WS6E= X-Gm-Gg: ASbGncuwUwpNtqNUXo9MH1+6QO7P11ekyxOkEQ8bTpp/87/k1W4DpLrxcUet4LzVZkD 0f5TmKcySF0YNZWfQEbaADp+S3S2A2NHheCcmoAAvh5FAqgxF4HEvGECKj7DKVtkNwanccfy34c V4WO22AX0Q1cPv8E6renPL1pjdsiORy0Sw2N3tP3x5gZvzDmiGiNwed3Qt3Dpg7eCKkwtkcOvCr j2L+P0= X-Google-Smtp-Source: AGHT+IF2/CSLiuFyQyZESA1JdU7UFwkxQf6NpxgU2Re3tLlPyXLt558SDxkqiOeg6iFFoK1TY4gUOrUjolo3umHGqRs= X-Received: by 2002:a17:90b:58cb:b0:313:f6fa:5bc6 with SMTP id 98e67ed59e1d1-31c9e75bb51mr30495909a91.20.1753119546882; Mon, 21 Jul 2025 10:39:06 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <602976q7-s2r2-o8n4-8s59-93pqq4ro3433@yvfgf.mnoonqbm.arg> <01r0s597-9ssr-s796-p54r-qs882628p4s7@yvfgf.mnoonqbm.arg> In-Reply-To: <01r0s597-9ssr-s796-p54r-qs882628p4s7@yvfgf.mnoonqbm.arg> From: Warner Losh Date: Mon, 21 Jul 2025 11:38:55 -0600 X-Gm-Features: Ac12FXwDB_z0Yh1eeEb8CuHb45L3WxGFg8P-uaz7sXlyFCJXzXawJkM47rsMNlM Message-ID: Subject: Re: mmccam -> no more cards/sdio but "mmcprobe" To: "Bjoern A. Zeeb" Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bm71Y3y0rz3nHN X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] So, We're getting through the 'reset' and 'identify' states in the state machine and entering the 'power off' state. And then progressing no further. So we get into the 'done' routine, but don't progress to sending the get ocr command. That's why we still have the probe routine. We're not setting the probe into INVALID state, so we should be calling xpt_schedule() to do the next single step of this process at the end of mmc_done(), but that doesn't trigger a new call to mmc_start(). I did some CAM cleanups that shouldn't have broken this, but might have (low probability, but with cam you never know, especially in the single step phase we do to do the probing). I'll check those out. Maybe it's easy. Warner On Mon, Jul 21, 2025 at 7:15=E2=80=AFAM Bjoern A. Zeeb wrote: > > On Sun, 20 Jul 2025, Warner Losh wrote: > > > On Sun, Jul 20, 2025, 7:20=E2=80=AFPM Warner Losh wrot= e: > > > >> > >> > >> On Sun, Jul 20, 2025, 5:24=E2=80=AFPM Warner Losh wro= te: > >> > >>> > >>> > >>> On Sun, Jul 20, 2025, 5:19=E2=80=AFPM Bjoern A. Zeeb < > >>> bzeeb-lists@lists.zabbadoz.net> wrote: > >>> > >>>> Hi, > >>>> > >>>> I've updated one of my trees to main after a longer while and I am > >>>> confused that I no longer see and SD card or SDIO (this is netbooted= ): > >>>> > >>>> # sysctl kern.features.mmccam > >>>> kern.features.mmccam: 1 > >>>> > >>>> # camcontrol devlist -v > >>>> scbus0 on dw_mmc_sim0 bus 0: > >>>> <> at scbus0 target 0 lun 0 (mmcprob= e0) > >>>> scbus1 on dw_mmc_sim1 bus 0: > >>>> <> at scbus1 target 0 lun 0 (mmcprob= e1) > >>>> scbus-1 on xpt0 bus 0: > >>>> <> at scbus-1 target -1 lun ffffffff > >>>> (xpt0) > >>>> > >>>> Where to start looking? > >>>> > >>> > >>> So those probes are put there to evaluate devices that were found. If > >>> they remain, then that never finished. Most likely never started. > >>> > >>> What hardware is this on? > >>> > >> > >> Thanks for the debug... > >> > >> As luck would have it, I just installed on emmc system (x86). I'm buil= ding > >> mmccam kernel now. > >> > > > > I can confirm this result. When was your last update? There was also > > sleeping on a non-sleepable lock witness warning... > > The locking issue I think I posted a while a ago. > > I cannot say which kernel last worked there; that was likely from 2024. > > I found an arm64 MMCCAM kernel from around 2025-03-18/26 which works on > the LS1088. Seems the last commit from main on that branch was > 12bff22669cf . > > # camcontrol devlist -v > scbus0 on sdhci_slot0 bus 0: > at scbus0 target 0 lun 0 (pass= 0,sdda0) > ... > > In either case the nvme does work by the way. It's just mmccam it seems > which does not. > > -- > Bjoern A. Zeeb r15:7