NetBSD/sys
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
..
altq Pull up following revision(s) (requested by riastradh in ticket #1831): 2023-06-21 20:15:53 +00:00
arch Pull up following revision(s) (requested by rin in ticket #1897): 2023-09-15 15:44:20 +00:00
coda Pull up following revision(s) (requested by hannken in ticket #1622): 2020-11-14 12:59:06 +00:00
compat Pull up following revision(s) (requested by riastradh in ticket #1841): 2023-06-21 21:26:16 +00:00
conf Pull up following revision(s) (requested by gutteridge in ticket #1781): 2023-01-03 16:41:52 +00:00
crypto
ddb
dev Pull up following revision(s) (requested by buhrow in ticket #1916): 2023-10-26 15:13:38 +00:00
dist/pf
external Pull up following revision(s) (requested by riastradh in ticket #1876): 2023-08-01 17:29:15 +00:00
fs Pull up following revision(s) (requested by riastradh in ticket #1872): 2023-08-01 15:32:23 +00:00
gdbscripts
ipkdb
kern Apply patch, requested by riastradh in ticket #1882 (issue solved differently 2023-08-04 13:58:11 +00:00
lib
miscfs Pull up following revision(s) (requested by shm in ticket #1748): 2022-06-17 15:27:10 +00:00
modules
net Pull up following revision(s) (requested by kardel in ticket #1893): 2023-08-23 18:25:04 +00:00
net80211
netatalk Pull up following revision(s) (requested by riastradh in ticket #1866): 2023-07-31 16:16:05 +00:00
netbt
netcan
netinet Pull up following revision(s) (requested by christos in ticket #1662): 2021-03-09 15:56:51 +00:00
netinet6 Pull up following revision(s) (requested by ozaki-r in ticket #1884): 2023-08-04 14:38:09 +00:00
netipsec Pull up following revision(s) (requested by knakahara in ticket #1612): 2020-10-08 17:50:11 +00:00
netisdn
netkey
netmpls
netnatm
netsmb
nfs Pull up following revision(s) (requested by riastradh in ticket #1810): 2023-03-30 12:01:25 +00:00
opencrypto
rump Regen for ticket #1685 2021-06-21 14:56:46 +00:00
secmodel
stand
sys Pull up following revision(s) (requested by riastradh in ticket #1819): 2023-04-01 16:43:17 +00:00
ufs Pull up following revision(s) (requested by hannken in ticket #1739): 2022-04-27 16:55:18 +00:00
uvm Pull up following revision(s) (requested by riastradh in ticket #1880): 2023-08-04 13:15:25 +00:00
Makefile