Skip to content

Commit 397911f

Browse files
committed
Merge branch 'linux-6.6.y' 6.6.162 of https://github.com/deepin-community/kernel into linux-6.6.y
Signed-off-by: gfdgd_xi <3025613752@qq.com>
2 parents b698879 + 9e39d6e commit 397911f

236 files changed

Lines changed: 54017 additions & 59539 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.

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7431,3 +7431,89 @@
74317431
xmon commands.
74327432
off xmon is disabled.
74337433

7434+
ps3stor.cli_ver=
7435+
[HW] Version used for the communication between
7436+
the driver and the CLI.
7437+
Format: <uint>
7438+
7439+
ps3stor.g_aer_handle_support=
7440+
[HW] Enable/disable PCIe AER handling by the driver.
7441+
Format: <uint> {0 = disable, 1 = enable}
7442+
Default: 1
7443+
7444+
ps3stor.g_device_busy_threshold=
7445+
[HW] Device busy threshold value.
7446+
Format: <uint>
7447+
Default: 8
7448+
7449+
ps3stor.g_direct_check_stream_enable=
7450+
[HW] Enable/disable stream detection on the direct path.
7451+
Format: <uint> {0 = disable, 1 = enable}
7452+
Default: 1
7453+
7454+
ps3stor.g_direct_to_normal_enable=
7455+
[HW] Enable/disable switching from the direct
7456+
path to the normal path.
7457+
Format: <uint> {0 = disable, 1 = enable}
7458+
Default: 1
7459+
7460+
ps3stor.g_enable_heartbeat=
7461+
[HW] Enable/disable the heartbeat query feature.
7462+
Format: <uint> {0 = disable, 1 = enable}
7463+
Default: 1
7464+
7465+
ps3stor.g_latency_perf_mode_enable=
7466+
[HW] Enable/disable latency performance mode.
7467+
Format: <uint> {0 = disable, 1 = enable}
7468+
Default: 0
7469+
7470+
ps3stor.g_log_path=
7471+
[HW] Directory the host driver log file is saved
7472+
in. The path must be shorter than 80 chars.
7473+
Format: <string>
7474+
Default: /var/log
7475+
7476+
ps3stor.g_ps3_r1x_lock_enable=
7477+
[HW] R1x write conflict check feature enable/disable.
7478+
Format: <uint> {0 = disable, 1 = enable}
7479+
Default: 0
7480+
7481+
ps3stor.g_ps3_tagset_enable=
7482+
[HW] Enable/disable the shared host tagset.
7483+
Format: <int> {0 = disable, 1 = enable}
7484+
Default: 1
7485+
7486+
ps3stor.g_scsi_cmd_timeout=
7487+
[HW] SCSI command timeout, in seconds.
7488+
Format: <uint> {10-255}
7489+
Default: 0 (the driver default of 90s is used)
7490+
7491+
ps3stor.g_smp_affinity_enable=
7492+
[HW] Enable/disable the SMP affinity feature.
7493+
Format: <int> {0 = disable, 1 = enable}
7494+
Default: 1
7495+
7496+
ps3stor.g_throttle_que_depth=
7497+
[HW] IOC queue depth used when throttled due to
7498+
SCSI command timeouts.
7499+
Format: <uint>
7500+
Default: 16
7501+
7502+
ps3stor.g_use_clustering=
7503+
[HW] Enable/disable the SCSI mid-layer bio merge
7504+
feature.
7505+
Format: <uint> {0 = disable, 1 = enable}
7506+
Default: 1
7507+
7508+
ps3stor.g_version_verbose=
7509+
[HW] Display detailed version information about
7510+
the ps3stor driver.
7511+
Format: <string>
7512+
7513+
ps3stor.max_sgl_entries=
7514+
[HW] Preferred maximum number of SGEs used for a
7515+
single I/O. The actual value is determined by the
7516+
driver.
7517+
Format: <int> {128, 256, 262, 512}
7518+
Default: 262
7519+

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 6
4-
SUBLEVEL = 161
4+
SUBLEVEL = 162
55
EXTRAVERSION =
66
NAME = Pinguïn Aangedreven
77

‎arch/arm64/configs/deepin_arm64_desktop_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ CONFIG_SCSI_PM8001=m
11061106
CONFIG_SCSI_BFA_FC=m
11071107
CONFIG_SCSI_VIRTIO=m
11081108
CONFIG_SCSI_CHELSIO_FCOE=m
1109-
CONFIG_SCSI_LINKDATA_PS3STOR=m
1109+
CONFIG_SCSI_PS3STOR=m
11101110
CONFIG_SCSI_DH=y
11111111
CONFIG_SCSI_DH_RDAC=m
11121112
CONFIG_SCSI_DH_HP_SW=m

‎arch/loongarch/configs/deepin_loongarch_desktop_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ CONFIG_PCMCIA_AHA152X=m
10421042
CONFIG_PCMCIA_FDOMAIN=m
10431043
CONFIG_PCMCIA_QLOGIC=m
10441044
CONFIG_PCMCIA_SYM53C500=m
1045-
CONFIG_SCSI_LINKDATA_PS3STOR=m
1045+
CONFIG_SCSI_PS3STOR=m
10461046
CONFIG_SCSI_DH=y
10471047
CONFIG_SCSI_DH_RDAC=m
10481048
CONFIG_SCSI_DH_HP_SW=m

‎arch/x86/configs/deepin_x86_desktop_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ CONFIG_PCMCIA_AHA152X=m
10811081
CONFIG_PCMCIA_FDOMAIN=m
10821082
CONFIG_PCMCIA_QLOGIC=m
10831083
CONFIG_PCMCIA_SYM53C500=m
1084-
CONFIG_SCSI_LINKDATA_PS3STOR=m
1084+
CONFIG_SCSI_PS3STOR=m
10851085
CONFIG_SCSI_DH=y
10861086
CONFIG_SCSI_DH_RDAC=m
10871087
CONFIG_SCSI_DH_HP_SW=m

‎drivers/block/xen-blkback/common.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,10 @@ struct xen_blkif {
318318
unsigned int nr_ring_pages;
319319
bool multi_ref;
320320
/* All rings for this device. */
321+
rwlock_t rings_lock;
321322
struct xen_blkif_ring *rings;
322323
unsigned int nr_rings;
324+
323325
unsigned long buffer_squeeze_end;
324326
};
325327

‎drivers/block/xen-blkback/xenbus.c‎

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,23 @@ static void xen_update_blkif_status(struct xen_blkif *blkif)
127127
return;
128128
}
129129

130-
static int xen_blkif_alloc_rings(struct xen_blkif *blkif)
130+
static int xen_blkif_alloc_rings(struct xen_blkif *blkif,
131+
unsigned int nr_rings)
131132
{
132133
unsigned int r;
134+
struct xen_blkif_ring *rings;
133135

134-
blkif->rings = kcalloc(blkif->nr_rings, sizeof(struct xen_blkif_ring),
135-
GFP_KERNEL);
136-
if (!blkif->rings)
136+
rings = kcalloc(nr_rings, sizeof(struct xen_blkif_ring), GFP_KERNEL);
137+
if (!rings)
137138
return -ENOMEM;
138139

140+
write_lock(&blkif->rings_lock);
141+
142+
blkif->rings = rings;
143+
blkif->nr_rings = nr_rings;
144+
145+
write_unlock(&blkif->rings_lock);
146+
139147
for (r = 0; r < blkif->nr_rings; r++) {
140148
struct xen_blkif_ring *ring = &blkif->rings[r];
141149

@@ -175,6 +183,7 @@ static struct xen_blkif *xen_blkif_alloc(domid_t domid)
175183
blkif->domid = domid;
176184
atomic_set(&blkif->refcnt, 1);
177185
init_completion(&blkif->drain_complete);
186+
rwlock_init(&blkif->rings_lock);
178187

179188
/*
180189
* Because freeing back to the cache may be deferred, it is not
@@ -269,6 +278,7 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif)
269278
struct pending_req *req, *n;
270279
unsigned int j, r;
271280
bool busy = false;
281+
struct xen_blkif_ring *rings;
272282

273283
for (r = 0; r < blkif->nr_rings; r++) {
274284
struct xen_blkif_ring *ring = &blkif->rings[r];
@@ -335,10 +345,16 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif)
335345
* blkif->rings was allocated in connect_ring, so we should free it in
336346
* here.
337347
*/
338-
kfree(blkif->rings);
348+
write_lock(&blkif->rings_lock);
349+
350+
rings = blkif->rings;
339351
blkif->rings = NULL;
340352
blkif->nr_rings = 0;
341353

354+
write_unlock(&blkif->rings_lock);
355+
356+
kfree(rings);
357+
342358
return 0;
343359
}
344360

@@ -386,6 +402,7 @@ void xen_blkif_interface_fini(void)
386402
unsigned int i; \
387403
unsigned long long result = 0; \
388404
\
405+
read_lock(&blkif->rings_lock); \
389406
if (!blkif->rings) \
390407
goto out; \
391408
\
@@ -396,6 +413,7 @@ void xen_blkif_interface_fini(void)
396413
} \
397414
\
398415
out: \
416+
read_unlock(&blkif->rings_lock); \
399417
return sprintf(buf, format, result); \
400418
} \
401419
static DEVICE_ATTR(name, 0444, show_##name, NULL)
@@ -1104,8 +1122,7 @@ static int connect_ring(struct backend_info *be)
11041122
requested_num_queues, xenblk_max_queues);
11051123
return -ENOSYS;
11061124
}
1107-
blkif->nr_rings = requested_num_queues;
1108-
if (xen_blkif_alloc_rings(blkif))
1125+
if (xen_blkif_alloc_rings(blkif, requested_num_queues))
11091126
return -ENOMEM;
11101127

11111128
pr_info("%s: using %d queues, protocol %d (%s) %s\n", dev->nodename,

‎drivers/net/xen-netback/interface.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,6 @@ void xenvif_disconnect_data(struct xenvif *vif)
809809

810810
xenvif_disconnect_queue(queue);
811811
}
812-
813-
xenvif_mcast_addr_list_free(vif);
814812
}
815813

816814
void xenvif_disconnect_ctrl(struct xenvif *vif)

‎drivers/net/xen-netback/xenbus.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ static void backend_disconnect(struct backend_info *be)
267267
vif->num_queues = 0;
268268
synchronize_net();
269269

270+
xenvif_mcast_addr_list_free(vif);
271+
270272
for (queue_index = 0; queue_index < num_queues; ++queue_index)
271273
xenvif_deinit_queue(&vif->queues[queue_index]);
272274

@@ -837,6 +839,7 @@ static void connect(struct backend_info *be)
837839
err:
838840
if (be->vif->num_queues > 0)
839841
xenvif_disconnect_data(be->vif); /* Clean up existing queues */
842+
synchronize_net();
840843
for (queue_index = 0; queue_index < be->vif->num_queues; ++queue_index)
841844
xenvif_deinit_queue(&be->vif->queues[queue_index]);
842845
vfree(be->vif->queues);

‎drivers/scsi/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ obj-$(CONFIG_SCSI_ENCLOSURE) += ses.o
157157
obj-$(CONFIG_SCSI_HISI_SAS) += hisi_sas/
158158
obj-$(CONFIG_VHBA) += vhba/
159159

160-
obj-$(CONFIG_SCSI_LINKDATA_PS3STOR) += linkdata/
160+
obj-$(CONFIG_SCSI_PS3STOR) += linkdata/
161161

162162
# This goes last, so that "real" scsi devices probe earlier
163163
obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o

0 commit comments

Comments
 (0)