2019-05-20 19:08:10 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-07-12 14:29:27 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:30 -04:00
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-16 10:19:24 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2016-09-11 19:35:39 +02:00
|
|
|
|
2020-03-24 08:25:26 +01:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2023-10-10 17:20:42 +08:00
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
2024-01-30 13:48:42 -08:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:15 +09:00
|
|
|
|
2024-10-01 15:35:57 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2008-03-02 18:30:15 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-03-25 09:26:50 +09:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2009-09-18 17:33:03 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-01-05 00:05:25 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-01-05 00:05:25 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-01-05 00:05:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-08 00:03:59 -06:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-12-16 17:53:51 -05:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2017-01-26 10:00:37 +01:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
|
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:47 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-07 14:56:18 -08:00
|
|
|
|
2018-07-21 01:10:04 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-07 14:56:18 -08:00
|
|
|
|
2018-07-21 01:10:04 -04:00
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-03-11 10:43:35 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 09:55:26 +02:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2018-07-21 01:10:04 -04:00
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 13:21:27 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 13:21:27 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:44 -08:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2024-01-30 13:48:44 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-22 12:11:28 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2017-12-23 12:48:13 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-12-23 12:48:11 -05:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2018-02-03 13:38:35 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-26 10:00:37 +01:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:18:02 -05:00
|
|
|
|
2022-01-08 20:28:50 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2023-10-10 17:20:51 +08:00
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
2020-04-22 19:42:18 +09:00
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-03 15:39:02 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-27 10:30:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2021-04-27 10:30:15 +02:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2022-01-08 20:28:47 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:42 +08:00
|
|
|
|
2024-06-19 09:38:03 +08:00
|
|
|
|
2023-10-10 17:20:42 +08:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-06 17:04:33 +03:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-19 09:38:03 +08:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-19 09:38:03 +08:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2015-11-20 17:38:28 +01:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:25 +03:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-27 10:30:13 +02:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2021-04-27 10:30:13 +02:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-27 10:30:13 +02:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2021-04-27 10:30:13 +02:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-07 09:07:20 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:01 +00:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
2014-12-04 11:49:25 -05:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
2019-01-29 09:33:07 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-01-23 01:32:00 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-01-29 09:33:07 +01:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 13:25:00 -08:00
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-30 18:08:47 +09:00
|
|
|
|
2019-01-29 09:33:07 +01:00
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-29 09:33:07 +01:00
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 13:25:00 -08:00
|
|
|
|
|
|
|
|
|
2019-10-30 18:08:47 +09:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-01-29 09:33:07 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-03-09 13:44:30 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
|
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2017-05-17 09:55:26 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-29 01:48:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2009-05-15 00:40:33 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
|
|
|
|
|
2017-01-26 10:00:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-23 01:12:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-10-29 01:48:31 -04:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2008-06-19 10:02:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-29 01:48:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-19 10:02:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2012-03-08 10:48:29 -05:00
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-08 10:48:29 -05:00
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:39 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2007-01-05 00:05:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:38 -08:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2024-01-30 13:48:39 -08:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2024-01-30 13:48:39 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2017-05-19 12:39:36 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
|
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-07-23 15:48:19 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
scsi: scsi_debug: Fix out-of-bound read in resp_readcap16()
The following warning was observed running syzkaller:
[ 3813.830724] sg_write: data in/out 65466/242 bytes for SCSI command 0x9e-- guessing data in;
[ 3813.830724] program syz-executor not setting count and/or reply_len properly
[ 3813.836956] ==================================================================
[ 3813.839465] BUG: KASAN: stack-out-of-bounds in sg_copy_buffer+0x157/0x1e0
[ 3813.841773] Read of size 4096 at addr ffff8883cf80f540 by task syz-executor/1549
[ 3813.846612] Call Trace:
[ 3813.846995] dump_stack+0x108/0x15f
[ 3813.847524] print_address_description+0xa5/0x372
[ 3813.848243] kasan_report.cold+0x236/0x2a8
[ 3813.849439] check_memory_region+0x240/0x270
[ 3813.850094] memcpy+0x30/0x80
[ 3813.850553] sg_copy_buffer+0x157/0x1e0
[ 3813.853032] sg_copy_from_buffer+0x13/0x20
[ 3813.853660] fill_from_dev_buffer+0x135/0x370
[ 3813.854329] resp_readcap16+0x1ac/0x280
[ 3813.856917] schedule_resp+0x41f/0x1630
[ 3813.858203] scsi_debug_queuecommand+0xb32/0x17e0
[ 3813.862699] scsi_dispatch_cmd+0x330/0x950
[ 3813.863329] scsi_request_fn+0xd8e/0x1710
[ 3813.863946] __blk_run_queue+0x10b/0x230
[ 3813.864544] blk_execute_rq_nowait+0x1d8/0x400
[ 3813.865220] sg_common_write.isra.0+0xe61/0x2420
[ 3813.871637] sg_write+0x6c8/0xef0
[ 3813.878853] __vfs_write+0xe4/0x800
[ 3813.883487] vfs_write+0x17b/0x530
[ 3813.884008] ksys_write+0x103/0x270
[ 3813.886268] __x64_sys_write+0x77/0xc0
[ 3813.886841] do_syscall_64+0x106/0x360
[ 3813.887415] entry_SYSCALL_64_after_hwframe+0x44/0xa9
This issue can be reproduced with the following syzkaller log:
r0 = openat(0xffffffffffffff9c, &(0x7f0000000040)='./file0\x00', 0x26e1, 0x0)
r1 = syz_open_procfs(0xffffffffffffffff, &(0x7f0000000000)='fd/3\x00')
open_by_handle_at(r1, &(0x7f00000003c0)=ANY=[@ANYRESHEX], 0x602000)
r2 = syz_open_dev$sg(&(0x7f0000000000), 0x0, 0x40782)
write$binfmt_aout(r2, &(0x7f0000000340)=ANY=[@ANYBLOB="00000000deff000000000000000000000000000000000000000000000000000047f007af9e107a41ec395f1bded7be24277a1501ff6196a83366f4e6362bc0ff2b247f68a972989b094b2da4fb3607fcf611a22dd04310d28c75039d"], 0x126)
In resp_readcap16() we get "int alloc_len" value -1104926854, and then pass
the huge arr_len to fill_from_dev_buffer(), but arr is only 32 bytes. This
leads to OOB in sg_copy_buffer().
To solve this issue, define alloc_len as u32.
Link: https://lore.kernel.org/r/20211013033913.2551004-2-yebin10@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-10-13 11:39:12 +08:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2012-03-08 00:03:59 -06:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-08 00:03:59 -06:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2022-11-02 12:32:48 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2022-11-02 12:32:48 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
scsi: scsi_debug: Fix out-of-bound read in resp_readcap16()
The following warning was observed running syzkaller:
[ 3813.830724] sg_write: data in/out 65466/242 bytes for SCSI command 0x9e-- guessing data in;
[ 3813.830724] program syz-executor not setting count and/or reply_len properly
[ 3813.836956] ==================================================================
[ 3813.839465] BUG: KASAN: stack-out-of-bounds in sg_copy_buffer+0x157/0x1e0
[ 3813.841773] Read of size 4096 at addr ffff8883cf80f540 by task syz-executor/1549
[ 3813.846612] Call Trace:
[ 3813.846995] dump_stack+0x108/0x15f
[ 3813.847524] print_address_description+0xa5/0x372
[ 3813.848243] kasan_report.cold+0x236/0x2a8
[ 3813.849439] check_memory_region+0x240/0x270
[ 3813.850094] memcpy+0x30/0x80
[ 3813.850553] sg_copy_buffer+0x157/0x1e0
[ 3813.853032] sg_copy_from_buffer+0x13/0x20
[ 3813.853660] fill_from_dev_buffer+0x135/0x370
[ 3813.854329] resp_readcap16+0x1ac/0x280
[ 3813.856917] schedule_resp+0x41f/0x1630
[ 3813.858203] scsi_debug_queuecommand+0xb32/0x17e0
[ 3813.862699] scsi_dispatch_cmd+0x330/0x950
[ 3813.863329] scsi_request_fn+0xd8e/0x1710
[ 3813.863946] __blk_run_queue+0x10b/0x230
[ 3813.864544] blk_execute_rq_nowait+0x1d8/0x400
[ 3813.865220] sg_common_write.isra.0+0xe61/0x2420
[ 3813.871637] sg_write+0x6c8/0xef0
[ 3813.878853] __vfs_write+0xe4/0x800
[ 3813.883487] vfs_write+0x17b/0x530
[ 3813.884008] ksys_write+0x103/0x270
[ 3813.886268] __x64_sys_write+0x77/0xc0
[ 3813.886841] do_syscall_64+0x106/0x360
[ 3813.887415] entry_SYSCALL_64_after_hwframe+0x44/0xa9
This issue can be reproduced with the following syzkaller log:
r0 = openat(0xffffffffffffff9c, &(0x7f0000000040)='./file0\x00', 0x26e1, 0x0)
r1 = syz_open_procfs(0xffffffffffffffff, &(0x7f0000000000)='fd/3\x00')
open_by_handle_at(r1, &(0x7f00000003c0)=ANY=[@ANYRESHEX], 0x602000)
r2 = syz_open_dev$sg(&(0x7f0000000000), 0x0, 0x40782)
write$binfmt_aout(r2, &(0x7f0000000340)=ANY=[@ANYBLOB="00000000deff000000000000000000000000000000000000000000000000000047f007af9e107a41ec395f1bded7be24277a1501ff6196a83366f4e6362bc0ff2b247f68a972989b094b2da4fb3607fcf611a22dd04310d28c75039d"], 0x126)
In resp_readcap16() we get "int alloc_len" value -1104926854, and then pass
the huge arr_len to fill_from_dev_buffer(), but arr is only 32 bytes. This
leads to OOB in sg_copy_buffer().
To solve this issue, define alloc_len as u32.
Link: https://lore.kernel.org/r/20211013033913.2551004-2-yebin10@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-10-13 11:39:12 +08:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2021-10-13 11:39:13 +08:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2007-01-05 00:05:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-13 11:39:13 +08:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
2021-10-13 11:39:13 +08:00
|
|
|
|
2006-10-20 09:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-22 11:20:40 +00:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-17 17:47:37 -05:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:42 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2024-01-30 13:48:42 -08:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2024-01-30 13:48:40 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-01-30 13:48:42 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:40 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:15 +09:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:40 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
2024-01-30 13:48:43 -08:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:40 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2024-01-30 13:48:40 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:41 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2021-11-18 14:03:28 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-08 10:13:02 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
2022-06-08 10:13:02 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-08 10:13:02 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2024-10-18 10:16:55 +00:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2024-10-18 10:16:55 +00:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2024-10-18 10:16:55 +00:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 21:27:28 +09:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
2013-09-18 21:27:28 +09:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2013-09-18 21:27:28 +09:00
|
|
|
|
|
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
2013-09-18 21:27:28 +09:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:39 +02:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
|
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
|
|
|
|
|
2013-06-29 17:59:19 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:26 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-06-29 17:59:18 +09:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2013-09-18 21:27:24 +09:00
|
|
|
|
2013-09-18 21:27:26 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-06-29 17:59:18 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
|
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
2014-02-26 22:56:58 +09:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
2013-09-18 21:27:28 +09:00
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
|
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 21:27:25 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2018-02-03 13:38:35 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2011-03-11 10:43:35 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:03 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
|
|
|
|
|
2019-02-08 13:25:00 -08:00
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-08 16:01:57 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2009-09-18 17:33:03 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2016-09-11 19:35:39 +02:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2013-09-18 21:27:26 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2016-09-11 19:35:39 +02:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-18 17:33:03 -04:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2009-09-18 17:33:03 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-09-18 21:27:26 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:02 +09:00
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2013-08-26 22:08:41 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2013-08-26 22:08:41 +09:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2013-06-29 17:59:17 +09:00
|
|
|
|
2012-03-08 00:03:59 -06:00
|
|
|
|
2013-04-16 22:11:58 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2008-03-30 00:59:56 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2014-02-26 22:57:03 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2021-06-08 23:39:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-11 02:05:25 -08:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2017-12-23 12:48:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2013-04-16 22:11:55 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2017-10-29 10:47:19 -04:00
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2019-01-25 12:46:09 -05:00
|
|
|
|
2013-04-16 22:11:55 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-12-04 11:49:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
treewide: kzalloc() -> kcalloc()
The kzalloc() function has a 2-factor argument form, kcalloc(). This
patch replaces cases of:
kzalloc(a * b, gfp)
with:
kcalloc(a * b, gfp)
as well as handling cases of:
kzalloc(a * b * c, gfp)
with:
kzalloc(array3_size(a, b, c), gfp)
as it's slightly less ugly than:
kzalloc_array(array_size(a, b), c, gfp)
This does, however, attempt to ignore constant size factors like:
kzalloc(4 * 1024, gfp)
though any constants defined via macros get caught up in the conversion.
Any factors with a sizeof() of "unsigned char", "char", and "u8" were
dropped, since they're redundant.
The Coccinelle script used for this was:
// Fix redundant parens around sizeof().
@@
type TYPE;
expression THING, E;
@@
(
kzalloc(
- (sizeof(TYPE)) * E
+ sizeof(TYPE) * E
, ...)
|
kzalloc(
- (sizeof(THING)) * E
+ sizeof(THING) * E
, ...)
)
// Drop single-byte sizes and redundant parens.
@@
expression COUNT;
typedef u8;
typedef __u8;
@@
(
kzalloc(
- sizeof(u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * COUNT
+ COUNT
, ...)
)
// 2-factor product with sizeof(type/expression) and identifier or constant.
@@
type TYPE;
expression THING;
identifier COUNT_ID;
constant COUNT_CONST;
@@
(
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_ID)
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_ID
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_CONST)
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_CONST
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_ID)
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_ID
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_CONST)
+ COUNT_CONST, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_CONST
+ COUNT_CONST, sizeof(THING)
, ...)
)
// 2-factor product, only identifiers.
@@
identifier SIZE, COUNT;
@@
- kzalloc
+ kcalloc
(
- SIZE * COUNT
+ COUNT, SIZE
, ...)
// 3-factor product with 1 sizeof(type) or sizeof(expression), with
// redundant parens removed.
@@
expression THING;
identifier STRIDE, COUNT;
type TYPE;
@@
(
kzalloc(
- sizeof(TYPE) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
)
// 3-factor product with 2 sizeof(variable), with redundant parens removed.
@@
expression THING1, THING2;
identifier COUNT;
type TYPE1, TYPE2;
@@
(
kzalloc(
- sizeof(TYPE1) * sizeof(TYPE2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
)
// 3-factor product, only identifiers, with redundant parens removed.
@@
identifier STRIDE, SIZE, COUNT;
@@
(
kzalloc(
- (COUNT) * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
)
// Any remaining multi-factor products, first at least 3-factor products,
// when they're not all constants...
@@
expression E1, E2, E3;
constant C1, C2, C3;
@@
(
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(
- (E1) * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * (E3)
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- E1 * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
)
// And then all remaining 2 factors products when they're not all constants,
// keeping sizeof() as the second factor argument.
@@
expression THING, E1, E2;
type TYPE;
constant C1, C2, C3;
@@
(
kzalloc(sizeof(THING) * C2, ...)
|
kzalloc(sizeof(TYPE) * C2, ...)
|
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(C1 * C2, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (E2)
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * E2
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (E2)
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * E2
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * E2
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * (E2)
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- E1 * E2
+ E1, E2
, ...)
)
Signed-off-by: Kees Cook <keescook@chromium.org>
2018-06-12 14:03:40 -07:00
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-26 12:33:48 -05:00
|
|
|
|
|
|
|
|
|
2014-11-24 21:27:12 -05:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2016-04-25 12:16:30 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2014-02-26 22:57:03 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:44 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-08-05 12:20:02 +02:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
2016-05-31 17:15:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-04 15:06:37 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-11 23:00:31 -08:00
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-21 11:14:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:21 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-04 15:06:37 -05:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2022-11-11 23:06:12 -08:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2021-11-09 13:57:27 -05:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-22 15:12:23 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-22 15:12:23 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-12 21:39:43 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
2021-08-09 16:03:44 -07:00
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:13 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2018-07-21 01:10:04 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2021-10-07 13:29:04 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2017-05-17 09:55:26 +02:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-07 11:35:26 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-07 11:35:26 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2022-04-21 11:30:22 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2017-05-17 09:55:26 +02:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 09:55:26 +02:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:16 +09:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2023-12-17 17:53:57 +01:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:49 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2008-03-20 11:09:17 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-10-22 11:07:53 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2024-10-22 11:07:53 -07:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-10-22 11:07:55 -07:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
2008-03-25 09:26:50 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2024-10-22 11:07:55 -07:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2014-11-03 20:15:14 +01:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
2023-10-10 17:20:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-22 11:07:53 -07:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2024-10-22 11:07:53 -07:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
scsi: scsi_debug: Add interface to manage error injection for a single device
This new facility uses the debugfs pseudo file system which is typically
mounted under the /sys/kernel/debug directory and requires root permissions
to access.
The interface file is found at /sys/kernel/debug/scsi_debug/<h:c:t:l>/error
where <h:c:t:l> identifies the device (logical unit (LU)) to inject errors
on.
For the following description the ${error} environment variable is assumed
to be set to/sys/kernel/debug/scsi_debug/1:0:0:0/error where 1:0:0:0 is a
pseudo device (LU) owned by the scsi_debug driver. Rules are written to
${error} in the normal sysfs fashion (e.g. 'echo "0 -2 0x12" > ${error}').
More than one rule can be active on a device at a time and inactive rules
(i.e. those whose error count is 0) remain in the rule listing. The
existing rules can be read with 'cat ${error}' with oneline output for each
rule.
The interface format is line-by-line, each line is an error injection rule.
Each rule contains integers separated by spaces, the first three columns
correspond to "Error code", "Error count" and "SCSI command", other
columns depend on Error code.
General rule format:
+--------+------+-------------------------------------------------------+
| Column | Type | Description |
+--------+------+-------------------------------------------------------+
| 1 | u8 | Error code |
| | | 0: timeout SCSI command |
| | | 1: fail queuecommand, make queuecommand return |
| | | given value |
| | | 2: fail command, finish command with SCSI status, |
| | | sense key and ASC/ASCQ values |
| | | 3: make abort commands for specific command fail |
| | | 4: make reset lun for specific command fail |
+--------+------+-------------------------------------------------------+
| 2 | s32 | Error count |
| | | 0: this rule will be ignored |
| | | positive: the rule will always take effect |
| | | negative: the rule takes effect n times where -n is |
| | | the value given. Ignored after n times |
+--------+------+-------------------------------------------------------+
| 3 | x8 | SCSI command opcode, 0xff for all commands |
+--------+------+-------------------------------------------------------+
| ... | xxx | Error type specific fields |
+--------+------+-------------------------------------------------------+
Notes:
- When multiple error inject rules are added for the same SCSI command,
the one with smaller error code will take effect (and the others will be
ignored).
- If the same error (i.e. same Error code and SCSI command) is added, the
older one will be overwritten..
- Currently, the basic types are (u8/u16/u32/u64/s8/s16/s32/s64) and the
hexadecimal types (x8/x16/x32/x64).
- Where a hexadecimal value is expected (e.g. Column 3: SCSI command
opcode) the "0x" prefix is optional on the value (e.g. the INQUIRY
opcode can be given as '0x12' or '12').
- When the Error count is negative, reading ${error} will show that value
incrementing, stopping when it gets to 0.
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-3-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-10 17:20:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2023-03-27 07:43:07 +00:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2023-03-27 07:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:07 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:07 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2023-04-16 17:56:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:07 +00:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:07 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-16 17:56:54 +00:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:07 +00:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-10-10 17:20:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:08 +00:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:08 +00:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:08 +00:00
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:09 +00:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:09 +00:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:09 +00:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:10 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-03-24 08:25:26 +01:00
|
|
|
|
2020-09-02 17:14:33 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-09-02 17:14:34 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-09-02 17:14:33 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-09-02 17:14:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-24 08:25:26 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-09-02 17:14:33 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-26 22:08:40 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:04 +00:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:21 -04:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
|
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2020-04-21 11:14:21 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2015-07-28 16:54:24 +03:00
|
|
|
|
2016-04-25 12:16:32 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-07-28 16:54:24 +03:00
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2014-08-05 12:20:46 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
2023-03-13 09:31:11 +00:00
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:00 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2014-08-05 12:20:46 +02:00
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
2024-12-02 13:00:45 +00:00
|
|
|
|
2020-04-21 11:14:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2016-04-25 12:16:30 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:30 -04:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-09 20:44:02 -06:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-09 20:44:02 -06:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-09 20:44:02 -06:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2020-04-21 11:14:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2021-10-07 13:29:04 -07:00
|
|
|
|
2020-04-21 11:14:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2023-03-13 09:31:13 +00:00
|
|
|
|
2018-07-21 01:10:04 -04:00
|
|
|
|
2023-03-13 09:31:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2014-08-05 12:20:46 +02:00
|
|
|
|
|
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2021-10-07 13:29:04 -07:00
|
|
|
|
2014-08-05 12:20:46 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:50 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:18 +09:00
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
2023-10-10 17:20:51 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2014-02-26 22:57:04 +09:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2007-06-11 11:36:40 -07:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2016-04-25 12:16:29 -04:00
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
2017-10-02 16:26:33 +02:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2018-02-03 13:38:35 -05:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2022-01-08 20:28:50 -05:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2015-12-16 17:53:51 -05:00
|
|
|
|
2017-01-26 10:00:37 +01:00
|
|
|
|
2020-04-21 11:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
2009-05-15 00:40:33 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2019-02-08 18:37:25 -05:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2022-04-21 11:30:23 -07:00
|
|
|
|
2020-04-22 19:42:18 +09:00
|
|
|
|
2020-04-22 19:42:19 +09:00
|
|
|
|
2020-04-22 19:42:20 +09:00
|
|
|
|
2023-10-10 17:20:51 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-05-06 00:40:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-26 08:52:19 -08:00
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2023-03-27 07:43:08 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2023-03-27 07:43:08 +00:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:08 +00:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2014-12-04 11:49:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
scsi: scsi_debug: Only allow sdebug_max_queue be modified when no shosts
The shost->can_queue value is initially used to set per-HW queue context
tag depth in the block layer. This ensures that the shost is not sent too
many commands which it can deal with. However lowering sdebug_max_queue
separately means that we can easily overload the shost, as in the following
example:
$ cat /sys/bus/pseudo/drivers/scsi_debug/max_queue
192
$ cat /sys/class/scsi_host/host0/can_queue
192
$ echo 100 > /sys/bus/pseudo/drivers/scsi_debug/max_queue
$ cat /sys/class/scsi_host/host0/can_queue
192
$ fio --filename=/dev/sda --direct=1 --rw=read --bs=4k --iodepth=256
--runtime=1200 --numjobs=10 --time_based --group_reporting
--name=iops-test-job --eta-newline=1 --readonly --ioengine=io_uring
--hipri --exitall_on_error
iops-test-job: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=io_uring, iodepth=256
...
fio-3.28
Starting 10 processes
[ 111.269885] scsi_io_completion_action: 400 callbacks suppressed
[ 111.269885] blk_print_req_error: 400 callbacks suppressed
[ 111.269889] I/O error, dev sda, sector 440 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[ 111.269892] sd 0:0:0:0: [sda] tag#132 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s
[ 111.269897] sd 0:0:0:0: [sda] tag#132 CDB: Read(10) 28 00 00 00 01 68 00 00 08 00
[ 111.277058] I/O error, dev sda, sector 360 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[...]
Ensure that this cannot happen by allowing sdebug_max_queue be modified
only when we have no shosts. As such, any shost->can_queue value will match
sdebug_max_queue, and sdebug_max_queue cannot be modified separately.
Since retired_max_queue is no longer set, remove support.
Continue to apply the restriction that sdebug_host_max_queue cannot be
modified when sdebug_host_max_queue is set. Adding support for that would
mean extra code, and no one has complained about this restriction
previously.
A command like the following may be used to remove a shost:
echo -1 > /sys/bus/pseudo/drivers/scsi_debug/add_host
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230327074310.1862889-11-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-03-27 07:43:09 +00:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
scsi: scsi_debug: Only allow sdebug_max_queue be modified when no shosts
The shost->can_queue value is initially used to set per-HW queue context
tag depth in the block layer. This ensures that the shost is not sent too
many commands which it can deal with. However lowering sdebug_max_queue
separately means that we can easily overload the shost, as in the following
example:
$ cat /sys/bus/pseudo/drivers/scsi_debug/max_queue
192
$ cat /sys/class/scsi_host/host0/can_queue
192
$ echo 100 > /sys/bus/pseudo/drivers/scsi_debug/max_queue
$ cat /sys/class/scsi_host/host0/can_queue
192
$ fio --filename=/dev/sda --direct=1 --rw=read --bs=4k --iodepth=256
--runtime=1200 --numjobs=10 --time_based --group_reporting
--name=iops-test-job --eta-newline=1 --readonly --ioengine=io_uring
--hipri --exitall_on_error
iops-test-job: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=io_uring, iodepth=256
...
fio-3.28
Starting 10 processes
[ 111.269885] scsi_io_completion_action: 400 callbacks suppressed
[ 111.269885] blk_print_req_error: 400 callbacks suppressed
[ 111.269889] I/O error, dev sda, sector 440 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[ 111.269892] sd 0:0:0:0: [sda] tag#132 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s
[ 111.269897] sd 0:0:0:0: [sda] tag#132 CDB: Read(10) 28 00 00 00 01 68 00 00 08 00
[ 111.277058] I/O error, dev sda, sector 360 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[...]
Ensure that this cannot happen by allowing sdebug_max_queue be modified
only when we have no shosts. As such, any shost->can_queue value will match
sdebug_max_queue, and sdebug_max_queue cannot be modified separately.
Since retired_max_queue is no longer set, remove support.
Continue to apply the restriction that sdebug_host_max_queue cannot be
modified when sdebug_host_max_queue is set. Adding support for that would
mean extra code, and no one has complained about this restriction
previously.
A command like the following may be used to remove a shost:
echo -1 > /sys/bus/pseudo/drivers/scsi_debug/add_host
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230327074310.1862889-11-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-03-27 07:43:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
scsi: scsi_debug: Only allow sdebug_max_queue be modified when no shosts
The shost->can_queue value is initially used to set per-HW queue context
tag depth in the block layer. This ensures that the shost is not sent too
many commands which it can deal with. However lowering sdebug_max_queue
separately means that we can easily overload the shost, as in the following
example:
$ cat /sys/bus/pseudo/drivers/scsi_debug/max_queue
192
$ cat /sys/class/scsi_host/host0/can_queue
192
$ echo 100 > /sys/bus/pseudo/drivers/scsi_debug/max_queue
$ cat /sys/class/scsi_host/host0/can_queue
192
$ fio --filename=/dev/sda --direct=1 --rw=read --bs=4k --iodepth=256
--runtime=1200 --numjobs=10 --time_based --group_reporting
--name=iops-test-job --eta-newline=1 --readonly --ioengine=io_uring
--hipri --exitall_on_error
iops-test-job: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=io_uring, iodepth=256
...
fio-3.28
Starting 10 processes
[ 111.269885] scsi_io_completion_action: 400 callbacks suppressed
[ 111.269885] blk_print_req_error: 400 callbacks suppressed
[ 111.269889] I/O error, dev sda, sector 440 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[ 111.269892] sd 0:0:0:0: [sda] tag#132 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s
[ 111.269897] sd 0:0:0:0: [sda] tag#132 CDB: Read(10) 28 00 00 00 01 68 00 00 08 00
[ 111.277058] I/O error, dev sda, sector 360 op 0x0:(READ) flags 0x1200000 phys_seg 1 prio class 2
[...]
Ensure that this cannot happen by allowing sdebug_max_queue be modified
only when we have no shosts. As such, any shost->can_queue value will match
sdebug_max_queue, and sdebug_max_queue cannot be modified separately.
Since retired_max_queue is no longer set, remove support.
Continue to apply the restriction that sdebug_host_max_queue cannot be
modified when sdebug_host_max_queue is set. Adding support for that would
mean extra code, and no one has complained about this restriction
previously.
A command like the following may be used to remove a shost:
echo -1 > /sys/bus/pseudo/drivers/scsi_debug/add_host
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230327074310.1862889-11-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-03-27 07:43:09 +00:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2014-11-24 20:27:51 -05:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-06-06 00:11:24 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:15 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:45 -05:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2015-02-13 14:37:51 -08:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2012-09-06 12:04:33 +02:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:29 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:29 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:29 -04:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-09 13:04:08 +03:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2006-09-16 20:30:47 -04:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2022-01-08 20:28:50 -05:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:17 -04:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-05-06 00:40:28 -04:00
|
|
|
|
2017-12-05 00:05:49 -05:00
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
2024-01-30 13:48:45 -08:00
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-02-26 22:56:59 +09:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2008-03-30 00:59:57 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:31 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2008-06-05 00:12:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-15 17:37:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2009-05-15 00:40:33 -04:00
|
|
|
|
|
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-30 22:44:43 -04:00
|
|
|
|
2009-05-15 00:40:33 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2009-05-15 00:40:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-09 20:23:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:21 +09:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2020-04-22 19:42:17 +09:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-30 00:59:55 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2015-11-26 20:22:50 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-08 02:08:11 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2010-08-19 11:49:00 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:10 +00:00
|
|
|
|
|
|
|
|
|
2009-10-15 14:45:27 -04:00
|
|
|
|
|
|
|
|
|
2010-09-06 17:24:28 -07:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2010-09-06 17:24:28 -07:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-04-06 00:46:07 -07:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-04-06 00:46:07 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2023-10-10 17:20:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-06 17:24:28 -07:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2006-07-11 20:53:22 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-09-06 17:24:28 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:42 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2008-03-20 11:09:18 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2008-03-20 11:09:16 +09:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2022-11-17 08:44:21 +00:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2022-11-17 08:44:21 +00:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-11-17 08:44:21 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-03-20 11:09:18 +09:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2022-11-12 21:10:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:02 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2022-04-08 21:37:03 -07:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-13 14:25:11 +01:00
|
|
|
|
|
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
|
|
|
|
|
2014-11-13 14:25:11 +01:00
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-13 09:31:12 +00:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:03 +00:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:18:02 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:18:02 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:18:02 -05:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:18:02 -05:00
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-15 10:00:43 -07:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-15 10:00:43 -07:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
2022-04-04 13:55:47 +09:00
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2022-03-01 20:30:09 +09:00
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
2023-03-27 07:43:06 +00:00
|
|
|
|
|
|
|
|
|
2022-03-01 20:30:09 +09:00
|
|
|
|
2021-02-15 13:10:47 +05:30
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:33 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2023-10-10 17:20:46 +08:00
|
|
|
|
2023-10-10 17:20:47 +08:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-26 08:52:19 -08:00
|
|
|
|
2021-08-09 16:03:44 -07:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
2017-12-07 14:56:18 -08:00
|
|
|
|
2015-07-28 16:54:21 +03:00
|
|
|
|
2020-08-21 00:22:49 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2023-10-10 17:20:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 14:29:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-30 22:44:42 -04:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-24 11:55:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2020-04-21 11:14:20 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2018-07-12 13:35:42 -04:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2018-07-12 13:35:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
|
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2018-04-10 13:00:36 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2018-02-09 21:36:39 -05:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2018-01-10 16:57:31 -05:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2018-02-14 11:05:57 +01:00
|
|
|
|
2014-11-24 20:46:29 -05:00
|
|
|
|
|
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-07 15:33:25 +00:00
|
|
|
|
2013-03-31 01:46:06 -04:00
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-22 11:07:53 -07:00
|
|
|
|
2024-10-22 11:07:55 -07:00
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
2016-04-25 12:16:29 -04:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
|
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
2016-04-04 14:48:10 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2014-06-02 22:56:49 +09:00
|
|
|
|
2018-12-13 16:17:03 +01:00
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
2024-12-16 10:48:52 -08:00
|
|
|
|
2014-11-13 14:25:11 +01:00
|
|
|
|
2023-03-27 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
2023-10-10 17:20:50 +08:00
|
|
|
|
|
|
|
|
|
2008-03-02 18:30:16 +09:00
|
|
|
|
|
|
|
|
|
2018-02-09 21:12:43 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-11-24 23:04:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-03-25 17:29:05 -04:00
|
|
|
|
2025-01-07 15:33:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
2017-09-08 16:14:18 -07:00
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
|
|
|
|
|
2020-08-19 23:20:33 +08:00
|
|
|
|
scsi: scsi_debug: Support hostwide tags
Many SCSI HBAs support a hostwide tagset, whereby each command submitted to
the HW from all submission queues must have a unique tag identifier.
Normally this unique tag will be in the range [0, max queue], where "max
queue" is the depth of each of the submission queues.
Add support for this hostwide tag feature, via module parameter
"host_max_queue". A non-zero value means that the feature is enabled. In
this case, the submission queues are not exposed to upper layer, i.e. from
blk-mq prespective, the device has a single hw queue. There are 2 reasons
for this:
a. It is assumed that the host can support nr_hw_queues * can_queue
commands, but this is not true for hostwide tags
b. For nr_hw_queues != 0, the request tag is not unique over all HW
queues, and some HBA drivers want to use this tag for the hostwide tag
However, like many SCSI HBA drivers today - megaraid sas being an example -
the full set of HW submission queues are still used in the LLDD driver. So
instead of using a complicated "reply_map" to create a per-CPU submission
queue mapping like megaraid_sas (as it depends on a PCI device + MSIs) -
use a simple algorithm:
hwq = cpu % queue count
If the host_max_queue param is set non-zero, then the max queue depth is
fixed at this value also.
If and when hostwide shared tags are supported in blk-mq/scsi mid-layer,
then the policy to set nr_hw_queues = 0 for hostwide tags can be revised.
Link: https://lore.kernel.org/r/1594297400-24756-3-git-send-email-john.garry@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-09 20:23:20 +08:00
|
|
|
|
2020-08-19 23:20:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 21:50:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 13:10:46 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:25 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
2016-09-11 19:35:41 +02:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
2009-01-04 03:08:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 12:16:28 -04:00
|
|
|
|
|
|
|
|
|
2016-05-06 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2015-07-28 16:54:20 +03:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-21 11:14:18 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-26 11:55:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-07-13 21:35:22 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2008-03-20 11:09:18 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-03-13 09:31:04 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-03-20 11:09:18 +09:00
|
|
|
|
|
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2020-04-22 19:42:16 +09:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-12-23 12:48:10 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-03 15:39:02 -03:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-14 22:48:04 +09:00
|
|
|
|
2008-03-30 00:59:58 +09:00
|
|
|
|