Skip to contentSkip to conversation

ARM: configs: at91: sama5: Use make savedefconfig and clean leftovers

PATCH In review Tudor Ambarus 2 participants 4 messages Jul 16, 2021

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

PATCH 1/2 ARM: configs: at91: sama5: Use make savedefconfig and clean leftovers

Even since the addition CONFIG_VIDEO_HANTRO was set to n because it did not respect the dependency chain. It doesn't respect it now either, remove it.

Fixes a0e6830c95b7 ("ARM: configs: at91: sama5: enable the Hantro G1 engine")
---
 arch/arm/configs/sama5_defconfig | 1 -
 1 file changed, 1 deletion(-)
arch/arm/configs/sama5_defconfig +0 -1
index 17db3b3e2dd3..1ccf84091dd7 100644
@@ -207,7 +207,6 @@ CONFIG_AT_HDMAC=y
 CONFIG_AT_XDMAC=y
 CONFIG_STAGING=y
 CONFIG_STAGING_MEDIA=y
-CONFIG_VIDEO_HANTRO=m
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_AT91_ADC=y
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 ARM: configs: at91: Enable crypto software implementations

It's a good idea to enable at least the same amount of algs as the hardware IPs are supporting. Provide the posibility for the hw accelerated crypto alg to fallback to software implementation, in case they need it.

---
 arch/arm/configs/at91_dt_defconfig | 8 +++++++-
 arch/arm/configs/sama5_defconfig   | 7 +++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
arch/arm/configs/at91_dt_defconfig +7 -1
index 06c888a45eb3..d348ae0d5363 100644
@@ -213,7 +213,13 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
-CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
arch/arm/configs/sama5_defconfig +7 -0
index 1ccf84091dd7..e170676eed66 100644
@@ -230,6 +230,13 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
Signature · 1 line
2.25.1
#2 lore raw
In reply to Tudor Ambarus
Quoted 4 lines · Tudor Ambarus

Even since the addition CONFIG_VIDEO_HANTRO was set to n because it did not respect the dependency chain. It doesn't respect it now either, remove it.

Shouldn't you rather ensure it is enabled so we get it for sama5d4?

Quoted 21 lines
Fixes a0e6830c95b7 ("ARM: configs: at91: sama5: enable the Hantro G1 engine")
---
 arch/arm/configs/sama5_defconfig | 1 -
 1 file changed, 1 deletion(-)
arch/arm/configs/sama5_defconfig +0 -1
index 17db3b3e2dd3..1ccf84091dd7 100644
@@ -207,7 +207,6 @@ CONFIG_AT_HDMAC=y
 CONFIG_AT_XDMAC=y
 CONFIG_STAGING=y
 CONFIG_STAGING_MEDIA=y
-CONFIG_VIDEO_HANTRO=m
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_AT91_ADC=y
Signature · 1 line
2.25.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
Quoted 9 lines · Alexandre Belloni

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 4 lines · Tudor Ambarus

Even since the addition CONFIG_VIDEO_HANTRO was set to n because it did not respect the dependency chain. It doesn't respect it now either, remove it.

Shouldn't you rather ensure it is enabled so we get it for sama5d4?

CONFIG_VIDEO_HANTRO has the following dependency chain:
Depends on: STAGING [=y] && STAGING_MEDIA [=y] && MEDIA_SUPPORT [=y] && (ARCH_MXC [=n] || ARCH_ROCKCHIP [=n] || COMPILE_TEST [=n]) && VIDEO_DEV [=y] && VIDEO_V4L2 [=y]

Maybe a better fix is to add ARCH_AT91 in the list of supported archs. Emil, can you shed some light on this?

Quoted 28 lines
Quoted 20 lines
Fixes a0e6830c95b7 ("ARM: configs: at91: sama5: enable the Hantro G1 engine")
---
 arch/arm/configs/sama5_defconfig | 1 -
 1 file changed, 1 deletion(-)
arch/arm/configs/sama5_defconfig +0 -2
index 17db3b3e2dd3..1ccf84091dd7 100644
@@ -207,7 +207,6 @@ CONFIG_AT_HDMAC=y
 CONFIG_AT_XDMAC=y
 CONFIG_STAGING=y
 CONFIG_STAGING_MEDIA=y
-CONFIG_VIDEO_HANTRO=m
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_AT91_ADC=y
--
Quoted 2 lines

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com