Skip to content

Commit 9a5a149

Browse files
committed
Merge tag 'soc-fixes-6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull ARM SoC fixes from Arnd Bergmann: "AngeloGioacchino Del Regno is stepping in as co-maintainer for the MediaTek SoC platform and starts by sending some dts fixes for the mt8195 platform that had been pending for a while. On the ixp4xx platform, Krzysztof Halasa steps down as co-maintainer, reflecting that Linus Walleij has been handling this on his own for the past few years. Generic RISC-V kernels are now marked as incompatible with the RZ/Five platform that requires custom hacks both for managing its DMA bounce buffers and for addressing low virtual memory. Finally, there is one bugfix for the AMDTEE firmware driver to prevent a use-after-free bug" * tag 'soc-fixes-6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: IXP4xx MAINTAINERS entries arm64: dts: mediatek: mt8195: Set DSU PMU status to fail arm64: dts: mediatek: fix t-phy unit name arm64: dts: mediatek: mt8195-demo: update and reorder reserved memory regions arm64: dts: mediatek: mt8195-demo: fix the memory size to 8GB MAINTAINERS: Add Angelo as MediaTek SoC co-maintainer soc: renesas: Make ARCH_R9A07G043 (riscv version) depend on NONPORTABLE tee: amdtee: fix use-after-free vulnerability in amdtee_close_session
2 parents 9b1ad4b + 26de148 commit 9a5a149

File tree

7 files changed

+50
-32
lines changed

7 files changed

+50
-32
lines changed

MAINTAINERS

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,21 +2221,28 @@ F: arch/arm/boot/dts/ti/omap/omap3-igep*
22212221
ARM/INTEL IXP4XX ARM ARCHITECTURE
22222222
M: Linus Walleij <[email protected]>
22232223
M: Imre Kaloz <[email protected]>
2224-
M: Krzysztof Halasa <[email protected]>
22252224
L: [email protected] (moderated for non-subscribers)
22262225
S: Maintained
22272226
F: Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml
22282227
F: Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt
22292228
F: Documentation/devicetree/bindings/interrupt-controller/intel,ixp4xx-interrupt.yaml
22302229
F: Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion*
2230+
F: Documentation/devicetree/bindings/rng/intel,ixp46x-rng.yaml
22312231
F: Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.yaml
22322232
F: arch/arm/boot/dts/intel/ixp/
22332233
F: arch/arm/mach-ixp4xx/
22342234
F: drivers/bus/intel-ixp4xx-eb.c
2235+
F: drivers/char/hw_random/ixp4xx-rng.c
22352236
F: drivers/clocksource/timer-ixp4xx.c
22362237
F: drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c
22372238
F: drivers/gpio/gpio-ixp4xx.c
22382239
F: drivers/irqchip/irq-ixp4xx.c
2240+
F: drivers/net/ethernet/xscale/ixp4xx_eth.c
2241+
F: drivers/net/wan/ixp4xx_hss.c
2242+
F: drivers/soc/ixp4xx/ixp4xx-npe.c
2243+
F: drivers/soc/ixp4xx/ixp4xx-qmgr.c
2244+
F: include/linux/soc/ixp4xx/npe.h
2245+
F: include/linux/soc/ixp4xx/qmgr.h
22392246

22402247
ARM/INTEL KEEMBAY ARCHITECTURE
22412248
M: Paul J. Murphy <[email protected]>
@@ -2337,7 +2344,7 @@ F: drivers/rtc/rtc-mt7622.c
23372344

23382345
ARM/Mediatek SoC support
23392346
M: Matthias Brugger <[email protected]>
2340-
R: AngeloGioacchino Del Regno <[email protected]>
2347+
M: AngeloGioacchino Del Regno <[email protected]>
23412348
23422349
L: [email protected] (moderated for non-subscribers)
23432350
L: [email protected] (moderated for non-subscribers)
@@ -10630,22 +10637,6 @@ L: [email protected]
1063010637
S: Maintained
1063110638
F: drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c
1063210639

10633-
INTEL IXP4XX QMGR, NPE, ETHERNET and HSS SUPPORT
10634-
M: Krzysztof Halasa <[email protected]>
10635-
S: Maintained
10636-
F: drivers/net/ethernet/xscale/ixp4xx_eth.c
10637-
F: drivers/net/wan/ixp4xx_hss.c
10638-
F: drivers/soc/ixp4xx/ixp4xx-npe.c
10639-
F: drivers/soc/ixp4xx/ixp4xx-qmgr.c
10640-
F: include/linux/soc/ixp4xx/npe.h
10641-
F: include/linux/soc/ixp4xx/qmgr.h
10642-
10643-
INTEL IXP4XX RANDOM NUMBER GENERATOR SUPPORT
10644-
M: Deepak Saxena <[email protected]>
10645-
S: Maintained
10646-
F: Documentation/devicetree/bindings/rng/intel,ixp46x-rng.yaml
10647-
F: drivers/char/hw_random/ixp4xx-rng.c
10648-
1064910640
INTEL KEEM BAY DRM DRIVER
1065010641
M: Anitha Chrisanthus <[email protected]>
1065110642
M: Edmund Dea <[email protected]>

arch/arm64/boot/dts/mediatek/mt7622.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@
905905
status = "disabled";
906906
};
907907

908-
sata_phy: t-phy@1a243000 {
908+
sata_phy: t-phy {
909909
compatible = "mediatek,mt7622-tphy",
910910
"mediatek,generic-tphy-v1";
911911
#address-cells = <2>;

arch/arm64/boot/dts/mediatek/mt7986a.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
};
435435
};
436436

437-
pcie_phy: t-phy@11c00000 {
437+
pcie_phy: t-phy {
438438
compatible = "mediatek,mt7986-tphy",
439439
"mediatek,generic-tphy-v2";
440440
#address-cells = <2>;

arch/arm64/boot/dts/mediatek/mt8195-demo.dts

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,16 @@
4848

4949
memory@40000000 {
5050
device_type = "memory";
51-
reg = <0 0x40000000 0 0x80000000>;
51+
reg = <0 0x40000000 0x2 0x00000000>;
5252
};
5353

5454
reserved-memory {
5555
#address-cells = <2>;
5656
#size-cells = <2>;
5757
ranges;
5858

59-
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */
60-
bl31_secmon_reserved: secmon@54600000 {
61-
no-map;
62-
reg = <0 0x54600000 0x0 0x200000>;
63-
};
64-
65-
/* 12 MiB reserved for OP-TEE (BL32)
59+
/*
60+
* 12 MiB reserved for OP-TEE (BL32)
6661
* +-----------------------+ 0x43e0_0000
6762
* | SHMEM 2MiB |
6863
* +-----------------------+ 0x43c0_0000
@@ -75,6 +70,34 @@
7570
no-map;
7671
reg = <0 0x43200000 0 0x00c00000>;
7772
};
73+
74+
scp_mem: memory@50000000 {
75+
compatible = "shared-dma-pool";
76+
reg = <0 0x50000000 0 0x2900000>;
77+
no-map;
78+
};
79+
80+
vpu_mem: memory@53000000 {
81+
compatible = "shared-dma-pool";
82+
reg = <0 0x53000000 0 0x1400000>; /* 20 MB */
83+
};
84+
85+
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */
86+
bl31_secmon_mem: memory@54600000 {
87+
no-map;
88+
reg = <0 0x54600000 0x0 0x200000>;
89+
};
90+
91+
snd_dma_mem: memory@60000000 {
92+
compatible = "shared-dma-pool";
93+
reg = <0 0x60000000 0 0x1100000>;
94+
no-map;
95+
};
96+
97+
apu_mem: memory@62000000 {
98+
compatible = "shared-dma-pool";
99+
reg = <0 0x62000000 0 0x1400000>; /* 20 MB */
100+
};
78101
};
79102
};
80103

arch/arm64/boot/dts/mediatek/mt8195.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
314314
cpus = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>,
315315
<&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
316+
status = "fail";
316317
};
317318

318319
dmic_codec: dmic-codec {

drivers/soc/renesas/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ if RISCV
333333

334334
config ARCH_R9A07G043
335335
bool "RISC-V Platform support for RZ/Five"
336+
depends on NONPORTABLE
336337
select ARCH_RZG2L
337338
select AX45MP_L2_CACHE if RISCV_DMA_NONCOHERENT
338339
select DMA_GLOBAL_POOL

drivers/tee/amdtee/core.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ static int copy_ta_binary(struct tee_context *ctx, void *ptr, void **ta,
217217
return rc;
218218
}
219219

220+
/* mutex must be held by caller */
220221
static void destroy_session(struct kref *ref)
221222
{
222223
struct amdtee_session *sess = container_of(ref, struct amdtee_session,
223224
refcount);
224225

225-
mutex_lock(&session_list_mutex);
226226
list_del(&sess->list_node);
227227
mutex_unlock(&session_list_mutex);
228228
kfree(sess);
@@ -272,7 +272,8 @@ int amdtee_open_session(struct tee_context *ctx,
272272
if (arg->ret != TEEC_SUCCESS) {
273273
pr_err("open_session failed %d\n", arg->ret);
274274
handle_unload_ta(ta_handle);
275-
kref_put(&sess->refcount, destroy_session);
275+
kref_put_mutex(&sess->refcount, destroy_session,
276+
&session_list_mutex);
276277
goto out;
277278
}
278279

@@ -290,7 +291,8 @@ int amdtee_open_session(struct tee_context *ctx,
290291
pr_err("reached maximum session count %d\n", TEE_NUM_SESSIONS);
291292
handle_close_session(ta_handle, session_info);
292293
handle_unload_ta(ta_handle);
293-
kref_put(&sess->refcount, destroy_session);
294+
kref_put_mutex(&sess->refcount, destroy_session,
295+
&session_list_mutex);
294296
rc = -ENOMEM;
295297
goto out;
296298
}
@@ -331,7 +333,7 @@ int amdtee_close_session(struct tee_context *ctx, u32 session)
331333
handle_close_session(ta_handle, session_info);
332334
handle_unload_ta(ta_handle);
333335

334-
kref_put(&sess->refcount, destroy_session);
336+
kref_put_mutex(&sess->refcount, destroy_session, &session_list_mutex);
335337

336338
return 0;
337339
}

0 commit comments

Comments
 (0)