8786 Commits

Author SHA1 Message Date
Bart Van Assche
9ece5279ad Add the qla2x00t-32gbit/trace/events/qla.h file to the output of scripts/generate-kernel-patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-08 15:23:43 +00:00
Bart Van Assche
0233c0e1d6 Merge branch 'svn-trunk' 2020-05-06 09:55:17 -07:00
Bart Van Assche
178eef8917 qla2x00t-32gbit: Revert two changes that had been checked in accidentally
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:55:10 +00:00
Bart Van Assche
f99de361ed Update svn:ignore properties
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8874 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:28:22 +00:00
Bart Van Assche
4b89d3bf12 Merge branch 'svn-trunk' 2020-05-06 09:07:43 -07:00
Bart Van Assche
66184b6b25 qla2x00t-32gbit: make 1-bit bit-fields unsigned int
The bitfields mpi_fw_dump_reading and mpi_fw_dumped are currently signed
which is not recommended as the representation is an implementation defined
behaviour.  Fix this by making the bit-fields unsigned ints.

Link: https://lore.kernel.org/r/20200428102013.1040598-1-colin.king@canonical.com
Fixes: cbb01c2f2f63 ("scsi: qla2xxx: Fix MPI failure AEN (8200) handling")
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit 78b874b7cbf09fbfadfa5f18a347ebef7bbb49fe upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8873 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:06:41 +00:00
Bart Van Assche
582746f829 qla2x00t-32gbit: Fix MPI failure AEN (8200) handling
Today, upon an MPI failure AEN, on top of collecting an MPI dump, a regular
firmware dump is also taken and then chip reset. This is disruptive to IOs
and not required. Make the firmware dump collection, followed by chip
reset, optional (not done by default).

Firmware dump buffer and MPI dump buffer are independent of each
other with this change and each can have dump that was taken at two
different times for two different issues. The MPI dump is saved in a
separate buffer and is retrieved differently from firmware dump.

To collect full dump on MPI failure AEN, a module parameter is
introduced:
    ql2xfulldump_on_mpifail (default: 0)

Link: https://lore.kernel.org/r/20200331104015.24868-2-njavali@marvell.com
Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit cbb01c2f2f630f1497f703c51ff21538ae2d86b8 upstream ]



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8872 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:05:56 +00:00
Bart Van Assche
28e8c3fa48 qla2x00t-32gbit: Use ARRAY_SIZE() instead of open-coding it
This patch does not change any functionality.

Link: https://lore.kernel.org/r/20200413021359.21725-1-bvanassche@acm.org
Cc: Nilesh Javali <njavali@marvell.com>
Cc: Quinn Tran <qutran@marvell.com>
Cc: Himanshu Madhani <himanshu.madhani@oracle.com>
Cc: Martin Wilck <mwilck@suse.com>
Cc: Daniel Wagner <dwagner@suse.de>
Cc: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit d221aed19c80d83c2de2fa5e8a5ba045065c6d4b upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8871 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:05:02 +00:00
Bart Van Assche
bf6dcb17a0 qla2x00t-32gbit: Split qla2x00_configure_local_loop()
The size of the function qla2x00_configure_local_loop() hurts its
readability. Hence split that function. This patch does not change any
functionality.

Link: https://lore.kernel.org/r/20200405225905.17171-1-bvanassche@acm.org
Cc: Nilesh Javali <njavali@marvell.com>
Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Quinn Tran <qutran@marvell.com>
Cc: Martin Wilck <mwilck@suse.com>
Cc: Daniel Wagner <dwagner@suse.de>
Cc: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit 21e855cdfeb91cf2fe92cd608c3f1d657fc73c5c upstream ]



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:04:06 +00:00
Bart Van Assche
72a90c1b5a qla2x00t-32gbit: Remove non functional code
Remove code which has no functional use anymore since commit 3c75ad1d87c7
("scsi: qla2xxx: Remove defer flag to indicate immeadiate port loss").
    
While at it remove also the stale function documentation.

Link: https://lore.kernel.org/r/20200206135443.110701-1-dwagner@suse.de
Reviewed-by: Arun Easi <aeasi@marvell.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit 1b72e86ddbbc7fb55771bf649d81c2513830a6a5 upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:03:08 +00:00
Bart Van Assche
2286974744 qla2x00t-32gbit: Add ring buffer for tracing debug logs
Having this log in a ring buffer helps to diagnose qla2xxx driver and
firmware issues instead of having to reproduce the problem with
extended_logging enabled. This saves cycles and helps when it is hard
to reproduce problem.
    
Link: https://lore.kernel.org/r/1581557368-32080-1-git-send-email-rajan.shanmugavelu@oracle.com
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Rajan Shanmugavelu <rajan.shanmugavelu@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

[ commit 598a90f2002c4c4daee24d76d24e8270c7075eef upstream ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 16:01:42 +00:00
Bart Van Assche
6b05410dd0 Merge branch 'svn-trunk' 2020-05-06 08:10:24 -07:00
Bart Van Assche
afc46c6053 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 15:10:15 +00:00
Bart Van Assche
3f97a8d3cb iscsi-scst, srpt: Fix the build against MOFED 5
Reported-by: Grant Albitz <Cryptz@Cryptz.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8866 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-06 03:26:38 +00:00
Bart Van Assche
d483590da4 Merge branch 'svn-trunk' 2020-04-23 15:13:32 -07:00
Bart Van Assche
102797b00b qla2x00t-32gbit: Port to Linux kernel v5.7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-21 02:26:16 +00:00
Bart Van Assche
540dc57576 qla2x00t: Port to Linux kernel v5.7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-21 02:25:58 +00:00
Bart Van Assche
ab29dc4430 scst: Port to Linux kernel v5.7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8863 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-21 02:25:32 +00:00
Bart Van Assche
a3a4a1c425 Merge branch 'svn-trunk' 2020-04-11 10:14:57 -07:00
Bart Van Assche
40f36a6873 scst_user: Set replies_done to zero if replies_cnt == 0
This patch prevents that fileio_tgt becomese unresponsive.

Reported-by: James McCarthy <mccarthy1029@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-11 17:11:33 +00:00
Bart Van Assche
c3bd722119 Merge branch 'svn-trunk' 2020-04-08 07:50:41 -07:00
Bart Van Assche
32c2db1acf nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-08 14:41:35 +00:00
Bart Van Assche
cd681b0c6b Merge branch 'svn-trunk' 2020-04-04 16:39:57 -07:00
Bart Van Assche
a8b636e09f scst/src/dev_handlers/scst_user: Remove two casts from dev_user_reply_get_cmd()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 23:39:48 +00:00
Bart Van Assche
b2facc91c9 scst/src/dev_handlers/scst_user: Simplify dev_user_reply_get_multi()
Remove multiple pointer casts. This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 23:24:47 +00:00
Bart Van Assche
1db9c3c8b2 scst/kernel/in-tree/Makefile.drivers.Linux.patch: Port to kernel v5.6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8849 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 22:59:14 +00:00
Bart Van Assche
920d4e0d6d Merge branch 'svn-trunk' 2020-04-02 19:13:21 -07:00
Bart Van Assche
fcfb8f873d scst/kernel/in-tree/Makefile.scst: Add scst_local_cmd.o
Signed-off-by: Sietse van Zanen <sietse@wizdom.nu>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:10:40 +00:00
Bart Van Assche
cc2cb177c4 Merge branch 'svn-trunk' 2020-04-02 19:07:26 -07:00
Bart Van Assche
cff108855e scst/src/Makefile: Sort source file names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:07:01 +00:00
Bart Van Assche
647f056f6b Remove more references to the removed scst_proc.c source file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:06:24 +00:00
Bart Van Assche
a56369ed09 Merge branch 'svn-trunk' 2020-03-31 18:22:55 -07:00
Bart Van Assche
4dc7c91610 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-01 01:22:46 +00:00
Bart Van Assche
ef8d85d8b3 Merge branch 'svn-trunk' 2020-03-30 22:08:23 -07:00
Bart Van Assche
4850c2c7c9 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-31 05:08:15 +00:00
Bart Van Assche
62d7d2ba9c Merge branch 'svn-trunk' 2020-03-20 10:26:15 -07:00
Bart Van Assche
a2b4edd4d2 scst/src/scst_local_cmd.h: Remove a duplicate declaration
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:55 +00:00
Bart Van Assche
6c543c089e scst_targ: Sort scst_local_fns[] alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:38 +00:00
Bart Van Assche
33ae08da62 scripts/kernel-functions: Apply the -fno-PIE to more kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:16 +00:00
Bart Van Assche
ad089822f0 qla2x00t-32gbit: Fix the build against kernel v3.18 and older
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:24:37 +00:00
Bart Van Assche
347bbf8736 qla2x00t-32gbit: Fix the build against kernel v4.9 and older
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8839 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:24:01 +00:00
Bart Van Assche
5ebd20d839 scst/include/backport.h: Backport cpu_to_be32_array()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:23:00 +00:00
Bart Van Assche
2eefc34854 Merge branch 'svn-trunk' 2020-03-14 15:32:55 -07:00
Bart Van Assche
eb67ff6780 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-14 22:32:47 +00:00
Bart Van Assche
1fd202e493 Merge branch 'svn-trunk' 2020-03-08 19:21:43 -07:00
Bart Van Assche
8f34137fce qla2x00t-32gbit: Improve coding style conformance
Do not surround single line statements with braces. Do not split strings
across multiple lines. Do not use 'return;' at the end of a function. Use
tabs to indent. Remove superfluous parentheses.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-09 02:21:33 +00:00
Bart Van Assche
1199f4247f qla2x00t-32gbit: Suppress complaints about using smp_processor_id()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-09 02:18:12 +00:00
Bart Van Assche
5f2da29510 Merge branch 'svn-trunk' 2020-03-08 13:52:35 -07:00
Bart Van Assche
cd68a96ef9 scst-dkms.spec.in: Do not install the */conftest/*/*.ko kernel modules
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8834 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-08 20:49:11 +00:00
Bart Van Assche
b044a48cf8 RPM build: Add support for CentOSPlus
See also https://sourceforge.net/p/scst/tickets/34/ .

This was reported by Brandon Thetford.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-08 20:28:01 +00:00