Skip to content

Commit 80ede84

Browse files
committed
Merge tag 'v6.1.153' into 6.1-main
This is the 6.1.153 stable release # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCgAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAmjNaPcACgkQONu9yGCS # aT6/kBAA0Hljf+5fK4O0niyMjUNmB51lfbcY/SQRjm/DWckmzZVawjr6aEPtsYkF # 03kjJWz/nwYzxFgiG2GQzZx7pKzxATqzfXxikQ2Mji7xlZLmufRqF5iv7HfzCwj6 # LIpQpqi8ttlfc0rHchS+TKT1IxQZePLeCdjXp/oVSfY6qeQ8wUeY2rp1JKYLMAGp # JJP0OSXvIt71om9pRxHYMuydmPw+aGs/DhRp8C0wmYoQI9uvbcJfdKOs69A0vngV # ZUh9522bvwMM6WEOvcyLwlg0/j1rG4KKeySQER2nSzhb76rQzTLiccKihs+jrcH4 # g3EMTPJ6bBmiPPtlWRAwD8b3be9BTs74vD/F6t1iaBo5shzG04OekP3PQWx5yCCf # GgvGxN79Aul8GJ/2pWCO06dH8zWAqDRCKVgvDAsy+6+SwBRVacjGi+0LyqFLyc/3 # Ypt13mHGQlb2yYiOgxaGRT6U4Vdx0M6sqPPG2YxJR6NRlghMdMYEdiPZUZpXDbbn # b0XdT2XHv3Lfva3eU0hfIXxoDXpCwSPJxkX0G6+YLmnCucGpzvnLbZ0VI644B6Y1 # 1OMpIAIxn68uwESLXJpWCBjRvYUH1Td/I1GHn3wH8TXiS8x99XRUcdiymzIpCC6e # Do9YEyy7A0uYIDvxiwm39BhH3rNlYNYxTnDeiddoR8B7j9GyO6w= # =4NbS # -----END PGP SIGNATURE----- # gpg: Signature made Fri Sep 19 16:30:15 2025 CEST # gpg: using RSA key 647F28654894E3BD457199BE38DBBDC86092693E # gpg: Can't check signature: No public key
2 parents cc94a08 + 363a599 commit 80ede84

File tree

67 files changed

+667
-282
lines changed

Some content is hidden

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

67 files changed

+667
-282
lines changed

Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ properties:
4141
- const: dma_intr2
4242

4343
clocks:
44-
minItems: 1
44+
maxItems: 1
4545

4646
clock-names:
4747
const: sw_baud

Documentation/networking/can.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ The broadcast manager sends responses to user space in the same form:
740740
struct timeval ival1, ival2; /* count and subsequent interval */
741741
canid_t can_id; /* unique can_id for task */
742742
__u32 nframes; /* number of can_frames following */
743-
struct can_frame frames[0];
743+
struct can_frame frames[];
744744
};
745745
746746
The aligned payload 'frames' uses the same basic CAN frame structure defined

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 = 1
4-
SUBLEVEL = 152
4+
SUBLEVEL = 153
55
EXTRAVERSION =
66
NAME = Curry Ramen
77

arch/x86/kvm/cpuid.c

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,18 @@ void kvm_set_cpu_caps(void)
749749
0 /* SME */ | F(SEV) | 0 /* VM_PAGE_FLUSH */ | F(SEV_ES) |
750750
F(SME_COHERENT));
751751

752+
kvm_cpu_cap_mask(CPUID_8000_0021_EAX,
753+
BIT(0) /* NO_NESTED_DATA_BP */ |
754+
BIT(2) /* LFENCE Always serializing */ | 0 /* SmmPgCfgLock */ |
755+
BIT(5) /* The memory form of VERW mitigates TSA */ |
756+
BIT(6) /* NULL_SEL_CLR_BASE */ | 0 /* PrefetchCtlMsr */
757+
);
758+
if (cpu_feature_enabled(X86_FEATURE_LFENCE_RDTSC))
759+
kvm_cpu_caps[CPUID_8000_0021_EAX] |= BIT(2) /* LFENCE Always serializing */;
760+
if (!static_cpu_has_bug(X86_BUG_NULL_SEG))
761+
kvm_cpu_caps[CPUID_8000_0021_EAX] |= BIT(6) /* NULL_SEL_CLR_BASE */;
762+
kvm_cpu_caps[CPUID_8000_0021_EAX] |= BIT(9) /* NO_SMM_CTL_MSR */;
763+
752764
kvm_cpu_cap_mask(CPUID_C000_0001_EDX,
753765
F(XSTORE) | F(XSTORE_EN) | F(XCRYPT) | F(XCRYPT_EN) |
754766
F(ACE2) | F(ACE2_EN) | F(PHE) | F(PHE_EN) |
@@ -758,12 +770,15 @@ void kvm_set_cpu_caps(void)
758770
if (cpu_feature_enabled(X86_FEATURE_SRSO_NO))
759771
kvm_cpu_cap_set(X86_FEATURE_SRSO_NO);
760772

761-
kvm_cpu_cap_mask(CPUID_8000_0021_EAX, F(VERW_CLEAR));
773+
kvm_cpu_cap_check_and_set(X86_FEATURE_VERW_CLEAR);
762774

763775
kvm_cpu_cap_init_kvm_defined(CPUID_8000_0021_ECX,
764776
F(TSA_SQ_NO) | F(TSA_L1_NO)
765777
);
766778

779+
kvm_cpu_cap_check_and_set(X86_FEATURE_TSA_SQ_NO);
780+
kvm_cpu_cap_check_and_set(X86_FEATURE_TSA_L1_NO);
781+
767782
/*
768783
* Hide RDTSCP and RDPID if either feature is reported as supported but
769784
* probing MSR_TSC_AUX failed. This is purely a sanity check and
@@ -1250,21 +1265,7 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
12501265
break;
12511266
case 0x80000021:
12521267
entry->ebx = entry->edx = 0;
1253-
/*
1254-
* Pass down these bits:
1255-
* EAX 0 NNDBP, Processor ignores nested data breakpoints
1256-
* EAX 2 LAS, LFENCE always serializing
1257-
* EAX 6 NSCB, Null selector clear base
1258-
*
1259-
* Other defined bits are for MSRs that KVM does not expose:
1260-
* EAX 3 SPCL, SMM page configuration lock
1261-
* EAX 13 PCMSR, Prefetch control MSR
1262-
*/
1263-
entry->eax &= BIT(0) | BIT(2) | BIT(6);
1264-
if (static_cpu_has(X86_FEATURE_LFENCE_RDTSC))
1265-
entry->eax |= BIT(2);
1266-
if (!static_cpu_has_bug(X86_BUG_NULL_SEG))
1267-
entry->eax |= BIT(6);
1268+
cpuid_entry_override(entry, CPUID_8000_0021_EAX);
12681269
cpuid_entry_override(entry, CPUID_8000_0021_ECX);
12691270
break;
12701271
/*Add support for Centaur's CPUID instruction*/

drivers/dma/dw/rzn1-dmamux.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec,
4646
u32 mask;
4747
int ret;
4848

49-
if (dma_spec->args_count != RNZ1_DMAMUX_NCELLS)
50-
return ERR_PTR(-EINVAL);
49+
if (dma_spec->args_count != RNZ1_DMAMUX_NCELLS) {
50+
ret = -EINVAL;
51+
goto put_device;
52+
}
5153

5254
map = kzalloc(sizeof(*map), GFP_KERNEL);
53-
if (!map)
54-
return ERR_PTR(-ENOMEM);
55+
if (!map) {
56+
ret = -ENOMEM;
57+
goto put_device;
58+
}
5559

5660
chan = dma_spec->args[0];
5761
map->req_idx = dma_spec->args[4];
@@ -92,12 +96,15 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec,
9296
if (ret)
9397
goto clear_bitmap;
9498

99+
put_device(&pdev->dev);
95100
return map;
96101

97102
clear_bitmap:
98103
clear_bit(map->req_idx, dmamux->used_chans);
99104
free_map:
100105
kfree(map);
106+
put_device:
107+
put_device(&pdev->dev);
101108

102109
return ERR_PTR(ret);
103110
}

drivers/dma/idxd/init.c

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -175,27 +175,30 @@ static int idxd_setup_wqs(struct idxd_device *idxd)
175175
idxd->wq_enable_map = bitmap_zalloc_node(idxd->max_wqs, GFP_KERNEL, dev_to_node(dev));
176176
if (!idxd->wq_enable_map) {
177177
rc = -ENOMEM;
178-
goto err_bitmap;
178+
goto err_free_wqs;
179179
}
180180

181181
for (i = 0; i < idxd->max_wqs; i++) {
182182
wq = kzalloc_node(sizeof(*wq), GFP_KERNEL, dev_to_node(dev));
183183
if (!wq) {
184184
rc = -ENOMEM;
185-
goto err;
185+
goto err_unwind;
186186
}
187187

188188
idxd_dev_set_type(&wq->idxd_dev, IDXD_DEV_WQ);
189189
conf_dev = wq_confdev(wq);
190190
wq->id = i;
191191
wq->idxd = idxd;
192-
device_initialize(wq_confdev(wq));
192+
device_initialize(conf_dev);
193193
conf_dev->parent = idxd_confdev(idxd);
194194
conf_dev->bus = &dsa_bus_type;
195195
conf_dev->type = &idxd_wq_device_type;
196196
rc = dev_set_name(conf_dev, "wq%d.%d", idxd->id, wq->id);
197-
if (rc < 0)
198-
goto err;
197+
if (rc < 0) {
198+
put_device(conf_dev);
199+
kfree(wq);
200+
goto err_unwind;
201+
}
199202

200203
mutex_init(&wq->wq_lock);
201204
init_waitqueue_head(&wq->err_queue);
@@ -206,15 +209,20 @@ static int idxd_setup_wqs(struct idxd_device *idxd)
206209
wq->enqcmds_retries = IDXD_ENQCMDS_RETRIES;
207210
wq->wqcfg = kzalloc_node(idxd->wqcfg_size, GFP_KERNEL, dev_to_node(dev));
208211
if (!wq->wqcfg) {
212+
put_device(conf_dev);
213+
kfree(wq);
209214
rc = -ENOMEM;
210-
goto err;
215+
goto err_unwind;
211216
}
212217

213218
if (idxd->hw.wq_cap.op_config) {
214219
wq->opcap_bmap = bitmap_zalloc(IDXD_MAX_OPCAP_BITS, GFP_KERNEL);
215220
if (!wq->opcap_bmap) {
221+
kfree(wq->wqcfg);
222+
put_device(conf_dev);
223+
kfree(wq);
216224
rc = -ENOMEM;
217-
goto err_opcap_bmap;
225+
goto err_unwind;
218226
}
219227
bitmap_copy(wq->opcap_bmap, idxd->opcap_bmap, IDXD_MAX_OPCAP_BITS);
220228
}
@@ -225,13 +233,7 @@ static int idxd_setup_wqs(struct idxd_device *idxd)
225233

226234
return 0;
227235

228-
err_opcap_bmap:
229-
kfree(wq->wqcfg);
230-
231-
err:
232-
put_device(conf_dev);
233-
kfree(wq);
234-
236+
err_unwind:
235237
while (--i >= 0) {
236238
wq = idxd->wqs[i];
237239
if (idxd->hw.wq_cap.op_config)
@@ -240,11 +242,10 @@ static int idxd_setup_wqs(struct idxd_device *idxd)
240242
conf_dev = wq_confdev(wq);
241243
put_device(conf_dev);
242244
kfree(wq);
243-
244245
}
245246
bitmap_free(idxd->wq_enable_map);
246247

247-
err_bitmap:
248+
err_free_wqs:
248249
kfree(idxd->wqs);
249250

250251
return rc;

drivers/dma/qcom/bam_dma.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,13 +1277,17 @@ static int bam_dma_probe(struct platform_device *pdev)
12771277
if (bdev->controlled_remotely || bdev->powered_remotely) {
12781278
ret = of_property_read_u32(pdev->dev.of_node, "num-channels",
12791279
&bdev->num_channels);
1280-
if (ret)
1280+
if (ret) {
12811281
dev_err(bdev->dev, "num-channels unspecified in dt\n");
1282+
return ret;
1283+
}
12821284

12831285
ret = of_property_read_u32(pdev->dev.of_node, "qcom,num-ees",
12841286
&bdev->num_ees);
1285-
if (ret)
1287+
if (ret) {
12861288
dev_err(bdev->dev, "num-ees unspecified in dt\n");
1289+
return ret;
1290+
}
12871291
}
12881292

12891293
if (bdev->controlled_remotely || bdev->powered_remotely)

drivers/dma/ti/edma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,8 +2072,8 @@ static int edma_setup_from_hw(struct device *dev, struct edma_soc_info *pdata,
20722072
* priority. So Q0 is the highest priority queue and the last queue has
20732073
* the lowest priority.
20742074
*/
2075-
queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1, sizeof(s8),
2076-
GFP_KERNEL);
2075+
queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1,
2076+
sizeof(*queue_priority_map), GFP_KERNEL);
20772077
if (!queue_priority_map)
20782078
return -ENOMEM;
20792079

drivers/edac/altera_edac.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ static ssize_t altr_sdr_mc_err_inject_write(struct file *file,
127127

128128
ptemp = dma_alloc_coherent(mci->pdev, 16, &dma_handle, GFP_KERNEL);
129129
if (!ptemp) {
130-
dma_free_coherent(mci->pdev, 16, ptemp, dma_handle);
131130
edac_printk(KERN_ERR, EDAC_MC,
132131
"Inject: Buffer Allocation error\n");
133132
return -ENOMEM;

drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,6 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)
368368
dma_fence_put(ring->vmid_wait);
369369
ring->vmid_wait = NULL;
370370
ring->me = 0;
371-
372-
if (!ring->is_mes_queue)
373-
ring->adev->rings[ring->idx] = NULL;
374371
}
375372

376373
/**

0 commit comments

Comments
 (0)