Date: Tue, 9 Jan 2024 20:38:17 -0700 From: Warner Losh <imp@bsdimp.com> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: Emmanuel Vadot <manu@bidouilliste.com>, =?UTF-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: MMCCAM hang Message-ID: <CANCZdfp2B9SPtuLPPWoivPe=VE9Sg%2Bc=Tc-tKc7sN-=mTVa7gw@mail.gmail.com> In-Reply-To: <4759s3r7-4no5-777q-8r01-4192909p2sp4@yvfgf.mnoonqbm.arg> References: <nsors8o2-25pn-pr36-7rp6-3rp47psp7q69@yvfgf.mnoonqbm.arg> <CANCZdfrVyap71Q1=q8FJ8X9Fe2Wpj4tC8GQH0VHmgGrmerYwQQ@mail.gmail.com> <49DE81A1-7DF5-48BF-A334-961A73B91E53@gmail.com> <20240109114822.522d91fea8cf170af4d895b7@bidouilliste.com> <5299p2p7-4r17-7o65-3569-o4pn3pq8r597@yvfgf.mnoonqbm.arg> <084r150q-076r-9rpn-89p2-87osq1p82orp@yvfgf.mnoonqbm.arg> <4759s3r7-4no5-777q-8r01-4192909p2sp4@yvfgf.mnoonqbm.arg>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000b1825060e8f2a10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That makes sense. The threads you posted showed several blocked on IO while sdhci was resetting. That's going to keep any I/O from happening. I guess I'm not surprised it's the wrong quirks... Many years ago when I was playing with a new, somewhat buggy SDHCI PCIe add-in card having the wrong quirks would cause super weird behavior. In my case, it was an infinite stream of interrupts... You should be able to disable the FreeBSD device like any other FreeBSD device hint.sdhci.0.disabled=3D1 we'll probe the device (which for FDT checks the compat settings) and then never call attach, but instead print a message saying it is disabled. One can also create an overlay that sets its status to something other than okay, but that's quite a bit trickier and can't be done on the fly from the boot loader. Warner On Tue, Jan 9, 2024, 1:57=E2=80=AFPM Bjoern A. Zeeb <bzeeb-lists@lists.zabb= adoz.net> wrote: > On Tue, 9 Jan 2024, Bjoern A. Zeeb wrote: > > Problem was in sdhci for the specific chipset; wrong quirk/errata > information. > > I'll put a patch up in Phab the next days. > > -- > Bjoern A. Zeeb r15:7 > --0000000000000b1825060e8f2a10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"auto">That makes sense. The threads you posted= showed several blocked on IO while sdhci was resetting. That's going t= o keep any I/O from happening. I guess I'm not surprised it's the w= rong quirks... Many years ago when I was playing with a new, somewhat buggy= SDHCI PCIe add-in card having the wrong quirks would cause super weird beh= avior. In my case, it was an infinite stream of interrupts... <br><div dir= =3D"auto"><br></div><div dir=3D"auto">You should be able to disable the Fre= eBSD device like any other FreeBSD device</div><div dir=3D"auto"><br></div>= <div>hint.sdhci.0.disabled=3D1</div><div><br></div><div>we'll probe the= device (which for FDT checks the compat settings) and then never call atta= ch, but instead print a message saying it is disabled.</div><div><br></div>= <div>One can also create an overlay that sets its status to something other= than okay, but that's quite a bit trickier and can't be done on th= e fly from the boot loader.</div><div><br></div><div>Warner<br></div></div>= </div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">= On Tue, Jan 9, 2024, 1:57=E2=80=AFPM Bjoern A. Zeeb <<a href=3D"mailto:b= zeeb-lists@lists.zabbadoz.net" target=3D"_blank">bzeeb-lists@lists.zabbadoz= .net</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1= ex">On Tue, 9 Jan 2024, Bjoern A. Zeeb wrote:<br> <br> Problem was in sdhci for the specific chipset; wrong quirk/errata informati= on.<br> <br> I'll put a patch up in Phab the next days.<br> <br> -- <br> Bjoern A. Zeeb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7<br> </blockquote></div> --0000000000000b1825060e8f2a10--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp2B9SPtuLPPWoivPe=VE9Sg%2Bc=Tc-tKc7sN-=mTVa7gw>