Go to file
martin d16ec04f8a Pull up following revision(s) (requested by buhrow in ticket #1916):
sys/dev/pci/mpii.c: revision 1.30

Fixes for PR kern/57133:

I can now explain why this assert is firing and have a fix for it.  It is a  regression introduced in R1.22 of mpii.c.

        If a request comes in and the IOC returns a MPII_SCSIIO_STATUS_CHECK_COND condition, after
 a successful transfer, or one that is a recovered error,
 mpii(4) correctly sets the xs->error to XS_SENSE, but incorrectly sets xs->resid to 0 before
 returning the xfer to the upper scsi layers.  Once the upper layers get it, they notice the
 XS_SENSE check condition and because it's a retryable error, they increment xs_requeuecnt, set
 ERESTART and send the xfer request down to the mpii(4) layer again for a retry. What they do
 not do is reset xs->resid equal to xs->datalen.  When the xfer comes down to mpii(4) again, the
 assert happens.  The fix is for the mpii(4) driver to leave xs->resid alone when it encounters
 a MPII_SCSIIO_STATUS_CHECK_COND condition.

This bug affects NetBSD-10, netbsd-9 and netbsd-8.
2023-10-26 15:13:38 +00:00
bin Pull up following revision(s) (requested by kre in ticket #1779): 2022-10-27 16:16:50 +00:00
common Pull up following revision(s) (requested by skrll in ticket #1672): 2021-04-26 18:39:26 +00:00
compat Apply patch, requested by mrg in ticket #1684 (no corresponding 2021-06-21 17:43:18 +00:00
crypto Pull up following revision(s) (requested by mrg in ticket #1895): 2023-09-06 08:03:45 +00:00
dist/pf Pull up following revision(s) (requested by maxv in ticket #978): 2018-08-25 11:21:53 +00:00
distrib Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
doc Tickets #1914 and #1915 2023-10-18 14:46:35 +00:00
etc Pull up following revision(s) (requested by riastradh in ticket #1843): 2023-06-21 21:50:34 +00:00
external Pull up following revision(s) (requested by gutteridge in ticket #1850): 2023-07-07 18:49:27 +00:00
extsrc
games Pull up following revision(s) (requested by nia in ticket #1544): 2020-04-30 16:21:14 +00:00
include Pull up following revision(s) (requested by is in ticket #1625): 2020-11-29 11:18:54 +00:00
lib Pull up following revision(s) (requested by riastradh in ticket #1898): 2023-10-02 13:09:01 +00:00
libexec Pull up following revision(s) (requested by lukem in ticket #1907): 2023-10-03 10:14:13 +00:00
regress Pull up following revision(s) (requested by maxv in ticket #282): 2017-09-23 17:27:02 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Pull up following revision(s) (requested by msaitoh in ticket #1741): 2022-05-15 12:15:53 +00:00
share Pull up following revision(s) (requested by gutteridge in ticket #1899): 2023-10-02 13:36:06 +00:00
sys Pull up following revision(s) (requested by buhrow in ticket #1916): 2023-10-26 15:13:38 +00:00
tests Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
tools Apply patch, requested by maya in ticket #1070: 2018-10-26 15:12:53 +00:00
usr.bin Pull up following revision(s) (requested by riastradh in ticket #1879): 2023-08-04 13:12:00 +00:00
usr.sbin Pull up following revision(s) (requested by msaitoh in ticket #1892): 2023-08-23 18:10:06 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh Pull up the following revision (requested by martin in ticket #1807): 2023-03-13 21:36:29 +00:00