Skip to contentSkip to conversation

ARC: [plat-axs10x] Enable SWAP

PATCH In review Alexey Brodkin 2 participants 4 messages Aug 2, 2018 – Aug 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: [plat-axs10x] Enable SWAP

SWAP support on ARC was fixed earlier by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP")
so now we may safely enable it on platforms that have external media like USB and SD-card.

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc stable at vger.kernel.org # 6e3761145a9b: ARC: Fix CONFIG_SWAP
---
 arch/arc/configs/axs101_defconfig     | 1 -
 arch/arc/configs/axs103_defconfig     | 1 -
 arch/arc/configs/axs103_smp_defconfig | 1 -
 3 files changed, 3 deletions(-)
arch/arc/configs/axs101_defconfig +0 -1
index 3dbb2b3f60af..96b7258a76be 100644
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
arch/arc/configs/axs103_defconfig +0 -1
index 4d7b85d4b2dc..72fc21ef1334 100644
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
arch/arc/configs/axs103_smp_defconfig +0 -1
index 92417e2e39f3..2ac89bd00e28 100644
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Alexey Brodkin

SWAP support on ARC was fixed earlier by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP")
so now we may safely enable it on platforms that have external media like USB and SD-card.

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc stable at vger.kernel.org # 6e3761145a9b: ARC: Fix CONFIG_SWAP

Does this really qualify as a fix for backport ?

Quoted 4 lines
---
 arch/arc/configs/axs101_defconfig     | 1 -
 arch/arc/configs/axs103_defconfig     | 1 -
 arch/arc/configs/axs103_smp_defconfig | 1 -

Also hsdk ?

#2 lore raw

Hi Vineet,

Quoted 9 lines · Vineet Gupta
Quoted 7 lines · Alexey Brodkin

SWAP support on ARC was fixed earlier by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP")
so now we may safely enable it on platforms that have external media like USB and SD-card.

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc stable at vger.kernel.org # 6e3761145a9b: ARC: Fix CONFIG_SWAP
Quoted 8 lines

Does this really qualify as a fix for backport ?

Quoted 4 lines
---
 arch/arc/configs/axs101_defconfig     | 1 -
 arch/arc/configs/axs103_defconfig     | 1 -
 arch/arc/configs/axs103_smp_defconfig | 1 -

Also hsdk ?

Exactly - in HSDK we happened to have SWAP from the very beginning so my intention was to align other boards so we get exactly the same behavior on all boards once SWAP was fixed by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP").

Otherwise since this is just a matter of toggling a config option we may leave it up to user to decide if he/she wants to have SWAP enabled.

That said it should be fine in either way.

-Alexey

#3 lore raw
Quoted 4 lines · Alexey Brodkin

Exactly - in HSDK we happened to have SWAP from the very beginning so my intention was to align other boards so we get exactly the same behavior on all boards once SWAP was fixed by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP").

I figured this - the patch was pushed to my for-curr yesterday for 4.19 !