Skip to content

Commit ba2d620

Browse files
committed
Merge tag 'soc-fixes-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull ARM SoC fixes from Arnd BergmannL "The introduction of vmap-stack on 32-bit arm caused a regression on a few omap3/omap4 machines that pass a stack variable into a firmware interface. The early pre-ACPI AMD Seattle machines have been broken for a while, Ard Biesheuvel has a series to bring them back for now. A few machines with multiple DMA channels used on a device have the channels in the wrong order according to the binding, which causes a harmless warning. Reversing the order is easier than fixing the tools to suppress the warning" * tag 'soc-fixes-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: arm64: dts: ls1046a: Update i2c node dma properties arm64: dts: ls1043a: Update i2c dma properties ARM: dts: spear1340: Update serial node properties ARM: dts: spear13xx: Update SPI dma properties ARM: OMAP2+: Fix regression for smc calls for vmap stack dt: amd-seattle: add a description of the CPUs and caches dt: amd-seattle: disable IPMI controller and some GPIO blocks on B0 dt: amd-seattle: add description of the SATA/CCP SMMUs dt: amd-seattle: add a description of the PCIe SMMU dt: amd-seattle: fix PCIe legacy interrupt routing dt: amd-seattle: upgrade AMD Seattle XGBE to new SMMU binding dt: amd-seattle: remove Overdrive revision A0 support dt: amd-seattle: remove Husky platform
2 parents b012b32 + eeeb4f1 commit ba2d620

13 files changed

Lines changed: 309 additions & 212 deletions

arch/arm/boot/dts/spear1340.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@
134134
reg = <0xb4100000 0x1000>;
135135
interrupts = <0 105 0x4>;
136136
status = "disabled";
137-
dmas = <&dwdma0 12 0 1>,
138-
<&dwdma0 13 1 0>;
139-
dma-names = "tx", "rx";
137+
dmas = <&dwdma0 13 0 1>,
138+
<&dwdma0 12 1 0>;
139+
dma-names = "rx", "tx";
140140
};
141141

142142
thermal@e07008c4 {

arch/arm/boot/dts/spear13xx.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@
284284
#size-cells = <0>;
285285
interrupts = <0 31 0x4>;
286286
status = "disabled";
287-
dmas = <&dwdma0 4 0 0>,
288-
<&dwdma0 5 0 0>;
289-
dma-names = "tx", "rx";
287+
dmas = <&dwdma0 5 0 0>,
288+
<&dwdma0 4 0 0>;
289+
dma-names = "rx", "tx";
290290
};
291291

292292
rtc@e0580000 {

arch/arm/mach-omap2/omap-secure.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@ static void __init omap_optee_init_check(void)
5959
u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2,
6060
u32 arg3, u32 arg4)
6161
{
62+
static u32 buf[NR_CPUS][5];
63+
u32 *param;
64+
int cpu;
6265
u32 ret;
63-
u32 param[5];
66+
67+
cpu = get_cpu();
68+
param = buf[cpu];
6469

6570
param[0] = nargs;
6671
param[1] = arg1;
@@ -76,6 +81,8 @@ u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2,
7681
outer_clean_range(__pa(param), __pa(param + 5));
7782
ret = omap_smc2(idx, flag, __pa(param));
7883

84+
put_cpu();
85+
7986
return ret;
8087
}
8188

@@ -119,8 +126,8 @@ phys_addr_t omap_secure_ram_mempool_base(void)
119126
#if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM)
120127
u32 omap3_save_secure_ram(void __iomem *addr, int size)
121128
{
129+
static u32 param[5];
122130
u32 ret;
123-
u32 param[5];
124131

125132
if (size != OMAP3_SAVE_SECURE_RAM_SZ)
126133
return OMAP3_SAVE_SECURE_RAM_SZ;
@@ -153,8 +160,8 @@ u32 omap3_save_secure_ram(void __iomem *addr, int size)
153160
u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs,
154161
u32 arg1, u32 arg2, u32 arg3, u32 arg4)
155162
{
163+
static u32 param[5];
156164
u32 ret;
157-
u32 param[5];
158165

159166
param[0] = nargs+1; /* RX-51 needs number of arguments + 1 */
160167
param[1] = arg1;

arch/arm64/boot/dts/amd/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
dtb-$(CONFIG_ARCH_SEATTLE) += amd-overdrive.dtb \
3-
amd-overdrive-rev-b0.dtb amd-overdrive-rev-b1.dtb \
4-
husky.dtb
2+
dtb-$(CONFIG_ARCH_SEATTLE) += amd-overdrive-rev-b0.dtb amd-overdrive-rev-b1.dtb

arch/arm64/boot/dts/amd/amd-overdrive-rev-b0.dts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/dts-v1/;
1010

1111
/include/ "amd-seattle-soc.dtsi"
12+
/include/ "amd-seattle-cpus.dtsi"
1213

1314
/ {
1415
model = "AMD Seattle (Rev.B0) Development Board (Overdrive)";
@@ -36,14 +37,6 @@
3637
status = "ok";
3738
};
3839

39-
&gpio2 {
40-
status = "ok";
41-
};
42-
43-
&gpio3 {
44-
status = "ok";
45-
};
46-
4740
&gpio4 {
4841
status = "ok";
4942
};
@@ -79,10 +72,6 @@
7972
};
8073
};
8174

82-
&ipmi_kcs {
83-
status = "ok";
84-
};
85-
8675
&smb0 {
8776
/include/ "amd-seattle-xgbe-b.dtsi"
8877
};

arch/arm64/boot/dts/amd/amd-overdrive-rev-b1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/dts-v1/;
1010

1111
/include/ "amd-seattle-soc.dtsi"
12+
/include/ "amd-seattle-cpus.dtsi"
1213

1314
/ {
1415
model = "AMD Seattle (Rev.B1) Development Board (Overdrive)";

arch/arm64/boot/dts/amd/amd-overdrive.dts

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

0 commit comments

Comments
 (0)