Date: Wed, 28 Jan 2026 14:52:56 -0700 From: Warner Losh <imp@bsdimp.com> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: current@freebsd.org Subject: Re: cam_da too noisy about SYNCHRONIZE CACHE Message-ID: <CANCZdfofiP6ZtaaHVKrdSxbz2nQNnxL170F9Oj39ULnFadFmHQ@mail.gmail.com> In-Reply-To: <202601270815.60R8FMHK006897@critter.freebsd.dk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Jan 27, 2026 at 1:15 AM Poul-Henning Kamp <phk@phk.freebsd.dk>
wrote:
> 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 ?
>
That should have all been behind bootverbose. My bad for letting it linger
for so long. I added this verbosity when I was worried about people
complaining that I broke their drive. I fixed it too well: They've only
complained about the messages...
Warner
[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jan 27, 2026 at 1:15 AM Poul-Henning Kamp <<a href="mailto:phk@phk.freebsd.dk">phk@phk.freebsd.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a Rpi3B which runs 15.0 on a Seagate USB-SATA gadget.<br>
<br>
Every few hours usually around XX:X0:30 it spits out:<br>
<br>
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): MODE SENSE for CACHE page command failed.<br>
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): Mode page 8 missing, disabling SYNCHRONIZE CACHE<br>
Jan 27 00:40:30 rpi3b kernel: (da0:umass-sim0:0:0:0): Devices already quirked for NO_SYNC_CACHE, maybe remove quirk table<br>
<br>
The relevant code in cam_da is:<br>
<br>
if (mark_bad) {<br>
bad:<br>
xpt_print(done_ccb->ccb_h.path,<br>
"Mode page 8 missing, disabling SYNCHRONIZE CACHE\n");<br>
if (softc->quirks & DA_Q_NO_SYNC_CACHE)<br>
xpt_print(done_ccb->ccb_h.path,<br>
"Devices already quirked for NO_SYNC_CACHE, maybe remove quirk table\n");<br>
softc->quirks |= DA_Q_NO_SYNC_CACHE;<br>
softc->disk->d_flags &= ~DISKFLAG_CANFLUSHCACHE;<br>
}<br>
<br>
I can understand emitting the message the first time after a reboot, but<br>
that program logic makes absolutely no sense to me ?<br></blockquote><div><br></div><div>That should have all been behind bootverbose. My bad for letting it linger for so long. I added this verbosity when I was worried about people complaining that I broke their drive. I fixed it too well: They've only complained about the messages...</div><div><br></div><div>Warner </div></div></div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfofiP6ZtaaHVKrdSxbz2nQNnxL170F9Oj39ULnFadFmHQ>
