Date: Tue, 27 Jan 2026 08:15:22 +0000 From: Poul-Henning Kamp <phk@phk.freebsd.dk> To: current@freebsd.org Subject: cam_da too noisy about SYNCHRONIZE CACHE Message-ID: <202601270815.60R8FMHK006897@critter.freebsd.dk>
index | next in thread | raw e-mail
I have a Rpi3B which runs 15.0 on a Seagate USB-SATA gadget.
Every few hours usually around XX:X0:30 it spits out:
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): MODE SENSE for CACHE page command failed.
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): Mode page 8 missing, disabling SYNCHRONIZE CACHE
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): Devices already quirked for NO_SYNC_CACHE, maybe remove quirk table
The relevant code in cam_da is:
if (mark_bad) {
bad:
xpt_print(done_ccb->ccb_h.path,
"Mode page 8 missing, disabling SYNCHRONIZE CACHE\n");
if (softc->quirks & DA_Q_NO_SYNC_CACHE)
xpt_print(done_ccb->ccb_h.path,
"Devices already quirked for NO_SYNC_CACHE, maybe remove quirk table\n");
softc->quirks |= DA_Q_NO_SYNC_CACHE;
softc->disk->d_flags &= ~DISKFLAG_CANFLUSHCACHE;
}
I can understand emitting the message the first time after a reboot, but
that program logic makes absolutely no sense to me ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202601270815.60R8FMHK006897>
