git: e6c96c7af717 - main - Revert "isp: Fix abort issue introduced by previous commit"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Jan 2025 18:21:03 UTC
The branch main has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=e6c96c7af717b459aea4126590ba413d29f283bf
commit e6c96c7af717b459aea4126590ba413d29f283bf
Author: Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2025-01-08 18:20:09 +0000
Commit: Alexander Motin <mav@FreeBSD.org>
CommitDate: 2025-01-08 18:20:09 +0000
Revert "isp: Fix abort issue introduced by previous commit"
This reverts commit 1f7c379c07168029694a9a33bc437b05cdee623e.
Leaked unintended changes. I'm sorry.
---
etc/mtree/BSD.include.dist | 2 --
include/Makefile | 2 +-
sys/conf/files.amd64 | 2 --
sys/dev/isp/isp_freebsd.c | 19 ++-----------------
sys/dev/isp/isp_freebsd.h | 3 +--
sys/modules/Makefile | 2 --
usr.sbin/Makefile | 1 -
7 files changed, 4 insertions(+), 27 deletions(-)
diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist
index 0a2dbea23d5a..ad1b8a5f7413 100644
--- a/etc/mtree/BSD.include.dist
+++ b/etc/mtree/BSD.include.dist
@@ -149,8 +149,6 @@
..
io
..
- ixnvdimm
- ..
mfi
..
mlx5
diff --git a/include/Makefile b/include/Makefile
index 0c71f1518a91..16d641b42a90 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -50,7 +50,7 @@ LDIRS= geom net net80211 netgraph netinet netinet6 \
LSUBDIRS= dev/acpica dev/agp dev/ciss dev/filemon dev/firewire \
dev/hwpmc dev/hyperv \
- dev/ic dev/iicbus dev/io dev/ixnvdimm dev/mfi dev/mmc \
+ dev/ic dev/iicbus dev/io dev/mfi dev/mmc \
dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/pwm \
dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wg \
fs/devfs fs/fdescfs fs/msdosfs fs/nfs fs/nullfs \
diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64
index 571e61f6b264..0584fc29d039 100644
--- a/sys/conf/files.amd64
+++ b/sys/conf/files.amd64
@@ -235,8 +235,6 @@ dev/ixl/i40e_adminq.c optional ixl pci \
compile-with "${NORMAL_C} -I$S/dev/ixl"
dev/ixl/i40e_dcb.c optional ixl pci \
compile-with "${NORMAL_C} -I$S/dev/ixl"
-dev/ixnvdimm/ixnvdimm.c optional ixnvdimm
-dev/ixnvdimm/ixnvdimm_copy.S optional ixnvdimm
dev/ncthwm/ncthwm.c optional ncthwm superio
dev/qlxge/qls_dbg.c optional qlxge pci
dev/qlxge/qls_dump.c optional qlxge pci
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index b496eae1b466..d5aa7a54142e 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -986,16 +986,6 @@ isp_target_start_ctio(ispsoftc_t *isp, union ccb *ccb, enum Start_Ctio_How how)
continue;
}
- /*
- * Is this command a dead duck?
- */
- if (atp->dead) {
- isp_prt(isp, ISP_LOGERR, "%s: [0x%x] not sending a CTIO for a dead command", __func__, cso->tag_id);
- ccb->ccb_h.status = CAM_REQ_ABORTED;
- xpt_done(ccb);
- continue;
- }
-
/*
* Check to make sure we're still in target mode.
*/
@@ -2513,19 +2503,14 @@ isp_action(struct cam_sim *sim, union ccb *ccb)
}
/*
- * Target should abort all affected tasks before ACK-ing INOT,
+ * Target should abort all affected CCBs before ACK-ing INOT,
* but if/since it doesn't, add this hack to allow tag reuse.
- * We can not do it if some CTIOs are in progress, or we won't
- * handle the completions. In such case just block new ones.
*/
uint32_t rsp = (ccb->ccb_h.flags & CAM_SEND_STATUS) ? ccb->cna2.arg : 0;
if (ntp->nt.nt_ncode == NT_ABORT_TASK && (rsp & 0xff) == 0 &&
(atp = isp_find_atpd(isp, XS_CHANNEL(ccb), ccb->cna2.seq_id)) != NULL) {
- if (atp->ctcnt == 0 &&
- isp_abort_atpd(isp, XS_CHANNEL(ccb), atp) == 0)
+ if (isp_abort_atpd(isp, XS_CHANNEL(ccb), atp) == 0)
isp_put_atpd(isp, XS_CHANNEL(ccb), atp);
- else
- atp->dead = 1;
}
if (isp_handle_platform_target_notify_ack(isp, &ntp->nt, rsp)) {
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 73390fa14769..5bb3dd43b6de 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -104,9 +104,8 @@ typedef struct atio_private_data {
uint16_t ctcnt; /* number of CTIOs currently active */
uint8_t seqno; /* CTIO sequence number */
uint8_t cdb0;
- uint16_t srr_notify_rcvd : 1,
+ uint8_t srr_notify_rcvd : 1,
sendst : 1,
- dead : 1,
tattr : 3,
state : 3;
void * ests;
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 3451928e2e53..294cb5a224de 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -203,7 +203,6 @@ SUBDIR= \
${_ix} \
${_ixv} \
${_ixl} \
- ${_ixnvdimm} \
jme \
kbdmux \
kgssapi \
@@ -835,7 +834,6 @@ _enic= enic
_iavf= iavf
_ioat= ioat
_ixl= ixl
-_ixnvdimm= ixnvdimm
_nvdimm= nvdimm
_pms= pms
_qat= qat
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index 2eeff6980836..e039cea6ee16 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -34,7 +34,6 @@ SUBDIR= adduser \
ifmcstat \
iostat \
iovctl \
- ixnvdimm \
kldxref \
mailwrapper \
makefs \