Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2018 18:18:30 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        Craig Leres <leres@freebsd.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Is it possible to disable da0?
Message-ID:  <818DD503-10CA-472F-A437-A1BB6A26CFBE@longcount.org>
In-Reply-To: <87cc687a-29f0-08d0-91a7-ff82c09f4938@freebsd.org>
References:  <87cc687a-29f0-08d0-91a7-ff82c09f4938@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Craig
  If the kernel hint may not work due to no media . You can try three other o=
ptions . Tweak devd to stop checking the device . It=E2=80=99s doable but I c=
an=E2=80=99t recall the details . Set a hint to stop loading the device that=
 the mmc / sd card reader hangs off . Check pciconf to pin down its address .=
 There are examples how to do this in the dpdk docs , they show how to do th=
is in the case of a nic . It should apply to all devices. Lastly most vendor=
s support turning the device off in bios or Uefi . =20


---
Mark Saad | nonesuch@longcount.org

> On Aug 29, 2018, at 8:07 PM, Craig Leres <leres@freebsd.org> wrote:
>=20
> I have a couple of foxconn netboxes that have SD slots that the system con=
figures as da0. Starting with FreeBSD 11 we see a wad of syslog messages fro=
m devd every few seconds:
>=20
>    Aug 29 16:57:39 xxx.lbl.gov devd: Processing event '!system=3DCAM subsy=
stem=3Dperiph type=3Derror device=3Dda0 serial=3D"20090516388200000" cam_sta=
tus=3D"0xcc" scsi_status=3D2 scsi_sense=3D"70 02 3a 00" CDB=3D"00 00 00 00 0=
0 00 " '
>    Aug 29 16:57:39 xxx.lbl.gov devd: Pushing table
>    Aug 29 16:57:39 xxx.lbl.gov devd: Processing notify event
>    Aug 29 16:57:39 xxx.lbl.gov devd: Popping table
>=20
> This is apparently because the slot doesn't not contain media. We don't us=
e SD cards with these systems so I tried adding:
>=20
>    hint.da.0.disabled=3D"1"
>=20
> to /boot/device.hints but /dev/da0 is still present after a reboot. Where a=
m I going wrong?
>=20
>        Craig
> % uname -a
> FreeBSD xxx.lbl.gov 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #2 r10: Wed Au=
g 15 09:23:29 PDT 2018 leres@steel.lbl.gov:/usr/src/sys/amd64/compile/LBLNET=
  amd64
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?818DD503-10CA-472F-A437-A1BB6A26CFBE>