]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits
authorHP van Braam <hp@tmm.cx>
Mon, 29 Apr 2024 14:34:46 +0000 (08:34 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 29 Apr 2024 14:37:30 +0000 (08:37 -0600)
commit86fbb05da1aed64eb9b09d7f3b2cd72048c959c1
treeae2a55d672b5a06abd9562cd821cdf2eed3482bd
parent5824df8d991c32def616c51994161e60e5b78948
ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits

Linux as an initiator periodically sends the following to SCSI cdrom
devices: 4a 01 00 00 10 00 00 00 08 00

According to the ctl_cmd_entry for this command this is invalid which
leads to a lot of failed SCSI commands.

The mask in this commit is based off of an early draft of the mmc
standard, https://www.t10.org/ftp/t10/document.97/97-108r0.pdf,
as well as subsequent standards (mmc2 through mmc6).

This solves the issue with Linux initiators.

Signed-off-by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1201
sys/cam/ctl/ctl_cmd_table.c