Skip to content

Commit ba6d10a

Browse files
committed
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley: "This is mostly update of the usual drivers: qla2xxx, hpsa, lpfc, ufs, mpt3sas, ibmvscsi, megaraid_sas, bnx2fc and hisi_sas as well as the removal of the osst driver (I heard from Willem privately that he would like the driver removed because all his test hardware has failed). Plus number of minor changes, spelling fixes and other trivia. The big merge conflict this time around is the SPDX licence tags. Following discussion on linux-next, we believe our version to be more accurate than the one in the tree, so the resolution is to take our version for all the SPDX conflicts" Note on the SPDX license tag conversion conflicts: the SCSI tree had done its own SPDX conversion, which in some cases conflicted with the treewide ones done by Thomas & co. In almost all cases, the conflicts were purely syntactic: the SCSI tree used the old-style SPDX tags ("GPL-2.0" and "GPL-2.0+") while the treewide conversion had used the new-style ones ("GPL-2.0-only" and "GPL-2.0-or-later"). In these cases I picked the new-style one. In a few cases, the SPDX conversion was actually different, though. As explained by James above, and in more detail in a pre-pull-request thread: "The other problem is actually substantive: In the libsas code Luben Tuikov originally specified gpl 2.0 only by dint of stating: * This file is licensed under GPLv2. In all the libsas files, but then muddied the water by quoting GPLv2 verbatim (which includes the or later than language). So for these files Christoph did the conversion to v2 only SPDX tags and Thomas converted to v2 or later tags" So in those cases, where the spdx tag substantially mattered, I took the SCSI tree conversion of it, but then also took the opportunity to turn the old-style "GPL-2.0" into a new-style "GPL-2.0-only" tag. Similarly, when there were whitespace differences or other differences to the comments around the copyright notices, I took the version from the SCSI tree as being the more specific conversion. Finally, in the spdx conversions that had no conflicts (because the treewide ones hadn't been done for those files), I just took the SCSI tree version as-is, even if it was old-style. The old-style conversions are perfectly valid, even if the "-only" and "-or-later" versions are perhaps more descriptive. * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (185 commits) scsi: qla2xxx: move IO flush to the front of NVME rport unregistration scsi: qla2xxx: Fix NVME cmd and LS cmd timeout race condition scsi: qla2xxx: on session delete, return nvme cmd scsi: qla2xxx: Fix kernel crash after disconnecting NVMe devices scsi: megaraid_sas: Update driver version to 07.710.06.00-rc1 scsi: megaraid_sas: Introduce various Aero performance modes scsi: megaraid_sas: Use high IOPS queues based on IO workload scsi: megaraid_sas: Set affinity for high IOPS reply queues scsi: megaraid_sas: Enable coalescing for high IOPS queues scsi: megaraid_sas: Add support for High IOPS queues scsi: megaraid_sas: Add support for MPI toolbox commands scsi: megaraid_sas: Offload Aero RAID5/6 division calculations to driver scsi: megaraid_sas: RAID1 PCI bandwidth limit algorithm is applicable for only Ventura scsi: megaraid_sas: megaraid_sas: Add check for count returned by HOST_DEVICE_LIST DCMD scsi: megaraid_sas: Handle sequence JBOD map failure at driver level scsi: megaraid_sas: Don't send FPIO to RL Bypass queue scsi: megaraid_sas: In probe context, retry IOC INIT once if firmware is in fault scsi: megaraid_sas: Release Mutex lock before OCR in case of DCMD timeout scsi: megaraid_sas: Call disable_irq from process IRQ poll scsi: megaraid_sas: Remove few debug counters from IO path ...
2 parents 64b08df + baf23ed commit ba6d10a

File tree

133 files changed

+5179
-8874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+5179
-8874
lines changed

Documentation/scsi/osst.txt

Lines changed: 0 additions & 218 deletions
This file was deleted.

Documentation/scsi/ufs.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ send SG_IO with the applicable sg_io_v4:
158158
If you wish to read or write a descriptor, use the appropriate xferp of
159159
sg_io_v4.
160160

161+
The userspace tool that interacts with the ufs-bsg endpoint and uses its
162+
upiu-based protocol is available at:
163+
164+
https://github.com/westerndigitalcorporation/ufs-tool
165+
166+
For more detailed information about the tool and its supported
167+
features, please see the tool's README.
161168

162169
UFS Specifications can be found at,
163170
UFS - http://www.jedec.org/sites/default/files/docs/JESD220.pdf

MAINTAINERS

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11779,16 +11779,6 @@ S: Maintained
1177911779
F: drivers/mtd/nand/onenand/
1178011780
F: include/linux/mtd/onenand*.h
1178111781

11782-
ONSTREAM SCSI TAPE DRIVER
11783-
M: Willem Riede <[email protected]>
11784-
11785-
11786-
S: Maintained
11787-
F: Documentation/scsi/osst.txt
11788-
F: drivers/scsi/osst.*
11789-
F: drivers/scsi/osst_*.h
11790-
F: drivers/scsi/st.h
11791-
1179211782
OP-TEE DRIVER
1179311783
M: Jens Wiklander <[email protected]>
1179411784
S: Maintained
@@ -12680,8 +12670,7 @@ S: Orphan
1268012670
F: drivers/scsi/pmcraid.*
1268112671

1268212672
PMC SIERRA PM8001 DRIVER
12683-
M: Jack Wang <[email protected]>
12684-
12673+
M: Jack Wang <[email protected]>
1268512674
1268612675
S: Supported
1268712676
F: drivers/scsi/pm8001/

arch/m68k/mac/config.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,10 @@ static const struct resource mac_scsi_iifx_rsrc[] __initconst = {
911911
.flags = IORESOURCE_MEM,
912912
.start = 0x50008000,
913913
.end = 0x50009FFF,
914+
}, {
915+
.flags = IORESOURCE_MEM,
916+
.start = 0x50008000,
917+
.end = 0x50009FFF,
914918
},
915919
};
916920

@@ -1012,10 +1016,12 @@ int __init mac_platform_init(void)
10121016
case MAC_SCSI_IIFX:
10131017
/* Addresses from The Guide to Mac Family Hardware.
10141018
* $5000 8000 - $5000 9FFF: SCSI DMA
1019+
* $5000 A000 - $5000 BFFF: Alternate SCSI
10151020
* $5000 C000 - $5000 DFFF: Alternate SCSI (DMA)
10161021
* $5000 E000 - $5000 FFFF: Alternate SCSI (Hsk)
1017-
* The SCSI DMA custom IC embeds the 53C80 core. mac_scsi does
1018-
* not make use of its DMA or hardware handshaking logic.
1022+
* The A/UX header file sys/uconfig.h says $50F0 8000.
1023+
* The "SCSI DMA" custom IC embeds the 53C80 core and
1024+
* supports Programmed IO, DMA and PDMA (hardware handshake).
10191025
*/
10201026
platform_device_register_simple("mac_scsi", 0,
10211027
mac_scsi_iifx_rsrc, ARRAY_SIZE(mac_scsi_iifx_rsrc));

drivers/infiniband/ulp/srp/ib_srp.c

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,6 @@ static void srp_handle_qp_err(struct ib_cq *cq, struct ib_wc *wc,
23402340
static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd)
23412341
{
23422342
struct srp_target_port *target = host_to_target(shost);
2343-
struct srp_rport *rport = target->rport;
23442343
struct srp_rdma_ch *ch;
23452344
struct srp_request *req;
23462345
struct srp_iu *iu;
@@ -2350,16 +2349,6 @@ static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd)
23502349
u32 tag;
23512350
u16 idx;
23522351
int len, ret;
2353-
const bool in_scsi_eh = !in_interrupt() && current == shost->ehandler;
2354-
2355-
/*
2356-
* The SCSI EH thread is the only context from which srp_queuecommand()
2357-
* can get invoked for blocked devices (SDEV_BLOCK /
2358-
* SDEV_CREATED_BLOCK). Avoid racing with srp_reconnect_rport() by
2359-
* locking the rport mutex if invoked from inside the SCSI EH.
2360-
*/
2361-
if (in_scsi_eh)
2362-
mutex_lock(&rport->mutex);
23632352

23642353
scmnd->result = srp_chkready(target->rport);
23652354
if (unlikely(scmnd->result))
@@ -2428,13 +2417,7 @@ static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd)
24282417
goto err_unmap;
24292418
}
24302419

2431-
ret = 0;
2432-
2433-
unlock_rport:
2434-
if (in_scsi_eh)
2435-
mutex_unlock(&rport->mutex);
2436-
2437-
return ret;
2420+
return 0;
24382421

24392422
err_unmap:
24402423
srp_unmap_data(scmnd, ch, req);
@@ -2456,7 +2439,7 @@ static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd)
24562439
ret = SCSI_MLQUEUE_HOST_BUSY;
24572440
}
24582441

2459-
goto unlock_rport;
2442+
return ret;
24602443
}
24612444

24622445
/*

drivers/message/fusion/mptbase.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6001,13 +6001,12 @@ mpt_findImVolumes(MPT_ADAPTER *ioc)
60016001
if (mpt_config(ioc, &cfg) != 0)
60026002
goto out;
60036003

6004-
mem = kmalloc(iocpage2sz, GFP_KERNEL);
6004+
mem = kmemdup(pIoc2, iocpage2sz, GFP_KERNEL);
60056005
if (!mem) {
60066006
rc = -ENOMEM;
60076007
goto out;
60086008
}
60096009

6010-
memcpy(mem, (u8 *)pIoc2, iocpage2sz);
60116010
ioc->raid_data.pIocPg2 = (IOCPage2_t *) mem;
60126011

60136012
mpt_read_ioc_pg_3(ioc);

0 commit comments

Comments
 (0)