Skip to content

Commit 938edb8

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: smarpqi, lpfc, qedi, megaraid_sas, libsas, zfcp, mpt3sas, hisi_sas. Additionally, we have a pile of annotation, unused variable and minor updates. The big API change is the updates for Christoph's DMA rework which include removing the DISABLE_CLUSTERING flag. And finally there are a couple of target tree updates" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (259 commits) scsi: isci: request: mark expected switch fall-through scsi: isci: remote_node_context: mark expected switch fall-throughs scsi: isci: remote_device: Mark expected switch fall-throughs scsi: isci: phy: Mark expected switch fall-through scsi: iscsi: Capture iscsi debug messages using tracepoints scsi: myrb: Mark expected switch fall-throughs scsi: megaraid: fix out-of-bound array accesses scsi: mpt3sas: mpt3sas_scsih: Mark expected switch fall-through scsi: fcoe: remove set but not used variable 'port' scsi: smartpqi: call pqi_free_interrupts() in pqi_shutdown() scsi: smartpqi: fix build warnings scsi: smartpqi: update driver version scsi: smartpqi: add ofa support scsi: smartpqi: increase fw status register read timeout scsi: smartpqi: bump driver version scsi: smartpqi: add smp_utils support scsi: smartpqi: correct lun reset issues scsi: smartpqi: correct volume status scsi: smartpqi: do not offline disks for transient did no connect conditions scsi: smartpqi: allow for larger raid maps ...
2 parents af7ddd8 + da79030 commit 938edb8

269 files changed

Lines changed: 8008 additions & 3868 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
* Cadence Universal Flash Storage (UFS) Controller
2+
3+
UFS nodes are defined to describe on-chip UFS host controllers.
4+
Each UFS controller instance should have its own node.
5+
Please see the ufshcd-pltfrm.txt for a list of all available properties.
6+
7+
Required properties:
8+
- compatible : Compatible list, contains the following controller:
9+
"cdns,ufshc"
10+
complemented with the JEDEC version:
11+
"jedec,ufs-2.0"
12+
13+
- reg : Address and length of the UFS register set.
14+
- interrupts : One interrupt mapping.
15+
- freq-table-hz : Clock frequency table.
16+
See the ufshcd-pltfrm.txt for details.
17+
- clocks : List of phandle and clock specifier pairs.
18+
- clock-names : List of clock input name strings sorted in the same
19+
order as the clocks property. "core_clk" is mandatory.
20+
Depending on a type of a PHY,
21+
the "phy_clk" clock can also be added, if needed.
22+
23+
Example:
24+
ufs@fd030000 {
25+
compatible = "cdns,ufshc", "jedec,ufs-2.0";
26+
reg = <0xfd030000 0x10000>;
27+
interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>;
28+
freq-table-hz = <0 0>, <0 0>;
29+
clocks = <&ufs_core_clk>, <&ufs_phy_clk>;
30+
clock-names = "core_clk", "phy_clk";
31+
};

‎Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Optional properties:
3333
- clocks : List of phandle and clock specifier pairs
3434
- clock-names : List of clock input name strings sorted in the same
3535
order as the clocks property.
36+
"ref_clk" indicates reference clock frequency.
37+
UFS host supplies reference clock to UFS device and UFS device
38+
specification allows host to provide one of the 4 frequencies (19.2 MHz,
39+
26 MHz, 38.4 MHz, 52MHz) for reference clock. This "ref_clk" entry is
40+
parsed and used to update the reference clock setting in device.
41+
Defaults to 26 MHz(as per specification) if not specified by host.
3642
- freq-table-hz : Array of <min max> operating frequencies stored in the same
3743
order as the clocks property. If this property is not
3844
defined or a value in the array is "0" then it is assumed

‎Documentation/scsi/scsi_mid_low_api.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,6 @@ of interest:
10981098
unchecked_isa_dma - 1=>only use bottom 16 MB of ram (ISA DMA addressing
10991099
restriction), 0=>can use full 32 bit (or better) DMA
11001100
address space
1101-
use_clustering - 1=>SCSI commands in mid level's queue can be merged,
1102-
0=>disallow SCSI command merging
11031101
no_async_abort - 1=>Asynchronous aborts are not supported
11041102
0=>Timed-out commands will be aborted asynchronously
11051103
hostt - pointer to driver's struct scsi_host_template from which

‎arch/ia64/hp/sim/simscsi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static struct scsi_host_template driver_template = {
347347
.sg_tablesize = SG_ALL,
348348
.max_sectors = 1024,
349349
.cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN,
350-
.use_clustering = DISABLE_CLUSTERING,
350+
.dma_boundary = PAGE_SIZE - 1,
351351
};
352352

353353
static int __init

‎block/blk-merge.c‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static struct bio *blk_bio_segment_split(struct request_queue *q,
195195
goto split;
196196
}
197197

198-
if (bvprvp && blk_queue_cluster(q)) {
198+
if (bvprvp) {
199199
if (seg_size + bv.bv_len > queue_max_segment_size(q))
200200
goto new_segment;
201201
if (!biovec_phys_mergeable(q, bvprvp, &bv))
@@ -295,7 +295,7 @@ static unsigned int __blk_recalc_rq_segments(struct request_queue *q,
295295
bool no_sg_merge)
296296
{
297297
struct bio_vec bv, bvprv = { NULL };
298-
int cluster, prev = 0;
298+
int prev = 0;
299299
unsigned int seg_size, nr_phys_segs;
300300
struct bio *fbio, *bbio;
301301
struct bvec_iter iter;
@@ -313,7 +313,6 @@ static unsigned int __blk_recalc_rq_segments(struct request_queue *q,
313313
}
314314

315315
fbio = bio;
316-
cluster = blk_queue_cluster(q);
317316
seg_size = 0;
318317
nr_phys_segs = 0;
319318
for_each_bio(bio) {
@@ -325,7 +324,7 @@ static unsigned int __blk_recalc_rq_segments(struct request_queue *q,
325324
if (no_sg_merge)
326325
goto new_segment;
327326

328-
if (prev && cluster) {
327+
if (prev) {
329328
if (seg_size + bv.bv_len
330329
> queue_max_segment_size(q))
331330
goto new_segment;
@@ -395,9 +394,6 @@ static int blk_phys_contig_segment(struct request_queue *q, struct bio *bio,
395394
{
396395
struct bio_vec end_bv = { NULL }, nxt_bv;
397396

398-
if (!blk_queue_cluster(q))
399-
return 0;
400-
401397
if (bio->bi_seg_back_size + nxt->bi_seg_front_size >
402398
queue_max_segment_size(q))
403399
return 0;
@@ -414,12 +410,12 @@ static int blk_phys_contig_segment(struct request_queue *q, struct bio *bio,
414410
static inline void
415411
__blk_segment_map_sg(struct request_queue *q, struct bio_vec *bvec,
416412
struct scatterlist *sglist, struct bio_vec *bvprv,
417-
struct scatterlist **sg, int *nsegs, int *cluster)
413+
struct scatterlist **sg, int *nsegs)
418414
{
419415

420416
int nbytes = bvec->bv_len;
421417

422-
if (*sg && *cluster) {
418+
if (*sg) {
423419
if ((*sg)->length + nbytes > queue_max_segment_size(q))
424420
goto new_segment;
425421
if (!biovec_phys_mergeable(q, bvprv, bvec))
@@ -465,12 +461,12 @@ static int __blk_bios_map_sg(struct request_queue *q, struct bio *bio,
465461
{
466462
struct bio_vec bvec, bvprv = { NULL };
467463
struct bvec_iter iter;
468-
int cluster = blk_queue_cluster(q), nsegs = 0;
464+
int nsegs = 0;
469465

470466
for_each_bio(bio)
471467
bio_for_each_segment(bvec, bio, iter)
472468
__blk_segment_map_sg(q, &bvec, sglist, &bvprv, sg,
473-
&nsegs, &cluster);
469+
&nsegs);
474470

475471
return nsegs;
476472
}

‎block/blk-settings.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ void blk_set_default_limits(struct queue_limits *lim)
5656
lim->alignment_offset = 0;
5757
lim->io_opt = 0;
5858
lim->misaligned = 0;
59-
lim->cluster = 1;
6059
lim->zoned = BLK_ZONED_NONE;
6160
}
6261
EXPORT_SYMBOL(blk_set_default_limits);
@@ -547,8 +546,6 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,
547546
t->io_min = max(t->io_min, b->io_min);
548547
t->io_opt = lcm_not_zero(t->io_opt, b->io_opt);
549548

550-
t->cluster &= b->cluster;
551-
552549
/* Physical block size a multiple of the logical block size? */
553550
if (t->physical_block_size & (t->logical_block_size - 1)) {
554551
t->physical_block_size = t->logical_block_size;

‎block/blk-sysfs.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ static ssize_t queue_max_integrity_segments_show(struct request_queue *q, char *
132132

133133
static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page)
134134
{
135-
if (blk_queue_cluster(q))
136-
return queue_var_show(queue_max_segment_size(q), (page));
137-
138-
return queue_var_show(PAGE_SIZE, (page));
135+
return queue_var_show(queue_max_segment_size(q), (page));
139136
}
140137

141138
static ssize_t queue_logical_block_size_show(struct request_queue *q, char *page)

‎drivers/firewire/sbp2.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,6 @@ static struct scsi_host_template scsi_driver_template = {
16101610
.eh_abort_handler = sbp2_scsi_abort,
16111611
.this_id = -1,
16121612
.sg_tablesize = SG_ALL,
1613-
.use_clustering = ENABLE_CLUSTERING,
16141613
.can_queue = 1,
16151614
.sdev_attrs = sbp2_scsi_sysfs_attrs,
16161615
};

‎drivers/infiniband/ulp/iser/iscsi_iser.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,6 @@ static struct scsi_host_template iscsi_iser_sht = {
997997
.eh_device_reset_handler= iscsi_eh_device_reset,
998998
.eh_target_reset_handler = iscsi_eh_recover_target,
999999
.target_alloc = iscsi_target_alloc,
1000-
.use_clustering = ENABLE_CLUSTERING,
10011000
.slave_alloc = iscsi_iser_slave_alloc,
10021001
.proc_name = "iscsi_iser",
10031002
.this_id = -1,

‎drivers/infiniband/ulp/srp/ib_srp.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,6 @@ static struct scsi_host_template srp_template = {
32153215
.can_queue = SRP_DEFAULT_CMD_SQ_SIZE,
32163216
.this_id = -1,
32173217
.cmd_per_lun = SRP_DEFAULT_CMD_SQ_SIZE,
3218-
.use_clustering = ENABLE_CLUSTERING,
32193218
.shost_attrs = srp_host_attrs,
32203219
.track_queue_depth = 1,
32213220
};

0 commit comments

Comments
 (0)