#
be649680 |
| 28-Feb-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314270 through r314419.
|
#
3f072d69 |
| 27-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Send TERMINATE to firmware when aborting active ATIO.
MFC after: 2 weeks
|
#
a6036a44 |
| 26-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Fix residual length reporting in target mode.
This allows to properly handle cases when target wants to receive or send more data then initiator wants to send or receive. Previously in such cases i
Fix residual length reporting in target mode.
This allows to properly handle cases when target wants to receive or send more data then initiator wants to send or receive. Previously in such cases isp(4) returned CAM_DATA_RUN_ERR, while now it returns resid > 0.
MFC after: 2 weeks
show more ...
|
#
d630701f |
| 25-Feb-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314178 through r314269.
|
#
87de303c |
| 24-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Respecting r314204 tighten ATIO cleanup requirements.
Every ATIO must complete with either successfully sent status or XPT_ABORT.
MFC after: 2 weeks
|
#
5c0b756a |
| 24-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Fix missing xpt_done() for ATIO/INOT on missing LUN.
MFC after: 2 weeks
|
#
6ae9acde |
| 23-Feb-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r313896 through r314128.
|
#
cfbeb41c |
| 22-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Slightly polish isp_dump_atpd().
MFC after: 2 weeks
|
#
8290ea90 |
| 22-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Fix multiple problems around LUN disable under load.
- Move private data about ATIOs/INOTs from per-LUN to per-channel data. This allows active commands to continue operation after LUN destruction.
Fix multiple problems around LUN disable under load.
- Move private data about ATIOs/INOTs from per-LUN to per-channel data. This allows active commands to continue operation after LUN destruction. This also simplifies lookup of the data by tag in some situations. - Unify three restart_queue processing implementations. - Complete all ATIOs from restart_queue on LUN disable. - Delete ATIO private data when command completed or aborted, not depending on the ATIO being requeued, that was ugly hack and could never happen. CAM should always call ether XPT_CONT_TARGET_IO with status or XPT_ABORT. - Implement XPT_ABORT for queued ATIOs/INOTs to allow CAM do graceful shutdown, not depending on LUN disable, as it is done in ahd(4)/targ(4). - Unify isp_endcmd() arguments to make it more usable in generic code. - Remove never really used LUN state reference counter.
MFC after: 2 weeks
show more ...
|
#
26719198 |
| 21-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Remove duplicate INOT allocation.
For some reason isp_handle_platform_notify_fc() allocated INOT just before calling isp_handle_platform_target_tmf(), which also allocates INOT. It seems to be a br
Remove duplicate INOT allocation.
For some reason isp_handle_platform_notify_fc() allocated INOT just before calling isp_handle_platform_target_tmf(), which also allocates INOT. It seems to be a braino introduced in r196008.
MFC after: 2 weeks
show more ...
|
#
069f5ef9 |
| 21-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Remove ancient __FreeBSD_version checks.
MFC after: 2 weeks
|
#
91d226ca |
| 19-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Remove broken remnants of obsolete INOT API.
MFC after: 2 weeks
|
#
0d965629 |
| 19-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Missed addition to r313936.
CTIO waitq present only in ISP_TARGET_MODE.
MFC after: 2 weeks
|
#
09ddc7ad |
| 19-Feb-2017 |
Alexander Motin <mav@FreeBSD.org> |
Move CTIO waitq from per-LUN to per-channel.
All resources lack of which may put CTIO into the queue are either per-channel or potentially per-queue, but none of them are per-LUN.
This is a first s
Move CTIO waitq from per-LUN to per-channel.
All resources lack of which may put CTIO into the queue are either per-channel or potentially per-queue, but none of them are per-LUN.
This is a first step to fix live LUN disabling. Before this change any CTIOs held in a queue in time of disabling were just leaked.
MFC after: 2 weeks
show more ...
|
#
91b95f3d |
| 04-Jan-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r311132 through r311305.
|
#
4195c7de |
| 04-Jan-2017 |
Alan Somers <asomers@FreeBSD.org> |
Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name)
The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq are fixed-length strings. AFAICT the only place they're read is in sbin/c
Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name)
The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq are fixed-length strings. AFAICT the only place they're read is in sbin/camcontrol/camcontrol.c, which assumes they'll be null-terminated. However, the kernel doesn't null-terminate them. A bunch of copy-pasted code uses strncpy to write them, and doesn't guarantee null-termination. For at least 4 drivers (mpr, mps, ciss, and hyperv), the hba_vid field actually overflows. You can see the result by doing "camcontrol negotiate da0 -v".
This change null-terminates those fields everywhere they're set in the kernel. It also shortens a few strings to ensure they'll fit within the 16-character field.
PR: 215474 Reported by: Coverity CID: 1009997 1010000 1010001 1010002 1010003 1010004 1010005 CID: 1331519 1010006 1215097 1010007 1288967 1010008 1306000 CID: 1211924 1010009 1010010 1010011 1010012 1010013 1010014 CID: 1147190 1010017 1010016 1010018 1216435 1010020 1010021 CID: 1010022 1009666 1018185 1010023 1010025 1010026 1010027 CID: 1010028 1010029 1010030 1010031 1010033 1018186 1018187 CID: 1010035 1010036 1010042 1010041 1010040 1010039 Reviewed by: imp, sephe, slm MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9037 Differential Revision: https://reviews.freebsd.org/D9038
show more ...
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
873b0260 |
| 20-May-2016 |
Alexander Motin <mav@FreeBSD.org> |
Pass proper for 23xx arguments to isp_endcmd().
|
#
96b5475b |
| 20-May-2016 |
Alexander Motin <mav@FreeBSD.org> |
Pass task management response information from CTL through CAM to isp(4), utilizing previously unused arg field of struct ccb_notify_acknowledge.
This makes new QUERY TASK, QUERY TASK SET and QUERY
Pass task management response information from CTL through CAM to isp(4), utilizing previously unused arg field of struct ccb_notify_acknowledge.
This makes new QUERY TASK, QUERY TASK SET and QUERY ASYNC EVENT requests really functional for CAM target mode drivers.
show more ...
|
#
514a71eb |
| 19-May-2016 |
Alexander Motin <mav@FreeBSD.org> |
Fix delaying requests to unknown virtual ports 2s after init.
This code was originally implemented 7 years ago, but never really worked due to trivial error. I think this functionality may be not r
Fix delaying requests to unknown virtual ports 2s after init.
This code was originally implemented 7 years ago, but never really worked due to trivial error. I think this functionality may be not required. Initiators supporting optional periodic command status checks detected those terminated commands and retried them 3 seconds later. But thinking about less featured initiators and the fact that it is our race makes virtual ports "unknown" it may be good to have this feature.
show more ...
|
#
352427b3 |
| 19-May-2016 |
Alexander Motin <mav@FreeBSD.org> |
Add proper reporting for early task management errors.
This covers unknown requests and requests to unknown virtual ports. Previously it "worked" only because of timeout handling on initiator.
|
#
daa0dffb |
| 16-May-2016 |
Alexander Motin <mav@FreeBSD.org> |
Reduce verbosity of "now sending synthesized status" message.
MFC after: 1 week
|
#
a123f26e |
| 12-Apr-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
53791a95 |
| 12-Apr-2016 |
Alexander Motin <mav@FreeBSD.org> |
Reimplement ISP_TSK_MGMT IOCTL via asynchronous request.
I am not sure this code is not completely dead, but it used DMA scratch are without good reason and asked to be refactored.
|
Revision tags: release/10.3.0 |
|
#
7d536dc8 |
| 10-Mar-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
a2531862 |
| 10-Mar-2016 |
Warner Losh <imp@FreeBSD.org> |
Move to new value for XPT_GET_SIM_KNOB to avoid clash with XPT_ATA_IO.
|