Discussion:
Is it possible to disable da0?
Craig Leres
2018-08-30 00:07:22 UTC
Permalink
I have a couple of foxconn netboxes that have SD slots that the system
configures as da0. Starting with FreeBSD 11 we see a wad of syslog
messages from devd every few seconds:

Aug 29 16:57:39 xxx.lbl.gov devd: Processing event '!system=CAM
subsystem=periph type=error device=da0 serial="20090516388200000"
cam_status="0xcc" scsi_status=2 scsi_sense="70 02 3a 00" CDB="00 00 00
00 00 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

This is apparently because the slot doesn't not contain media. We don't
use SD cards with these systems so I tried adding:

hint.da.0.disabled="1"

to /boot/device.hints but /dev/da0 is still present after a reboot.
Where am I going wrong?

Craig
% uname -a
FreeBSD xxx.lbl.gov 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #2 r10: Wed
Aug 15 09:23:29 PDT 2018
***@steel.lbl.gov:/usr/src/sys/amd64/compile/LBLNET amd64
Mark Saad
2018-08-30 22:18:30 UTC
Permalink
Craig
If the kernel hint may not work due to no media . You can try three other options . Tweak devd to stop checking the device . It’s doable but I can’t 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 this in the case of a nic . It should apply to all devices. Lastly most vendors support turning the device off in bios or Uefi .


---
Aug 29 16:57:39 xxx.lbl.gov devd: Processing event '!system=CAM subsystem=periph type=error device=da0 serial="20090516388200000" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 3a 00" CDB="00 00 00 00 00 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
hint.da.0.disabled="1"
to /boot/device.hints but /dev/da0 is still present after a reboot. Where am I going wrong?
Craig
% uname -a
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
Craig Leres
2018-08-31 00:58:41 UTC
Permalink
Post by Mark Saad
If the kernel hint may not work due to no media . You can try three other options . Tweak devd to stop checking the device . It’s doable but I can’t 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 this in the case of a nic . It should apply to all devices. Lastly most vendors support turning the device off in bios or Uefi .
Thanks; turns out adding -q to devd_flags solves this for me. I didn't
try it before because a found an old post that said it *didn't* work.
But it does.

Craig

Loading...