Skip to contentSkip to conversation

firmware: stratix10-svc: build only on 64-bit ARM

PATCH RESEND In review Dinh Nguyen 2 participants 5 messages Apr 4, 2021 – Apr 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 firmware: stratix10-svc: build only on 64-bit ARM

From: Krzysztof Kozlowski <[email protected]>

The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
declared with attribute error: FIELD_GET: type of reg too small for mask _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
...
drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'

    priv->status.version = FIELD_GET(RSU_VERSION_MASK,
Fixes 4483397b0353 ("ARM: socfpga: drop ARCH_SOCFPGA")

---
v2: add Fixes tag

---
 drivers/firmware/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/Kconfig +1 -1
index 6a4e882e448d..08bd4d01fb04 100644
@@ -206,7 +206,7 @@ config FW_CFG_SYSFS_CMDLINE
 
 config INTEL_STRATIX10_SERVICE
 	tristate "Intel Stratix10 Service Layer"
-	depends on ARCH_INTEL_SOCFPGA && HAVE_ARM_SMCCC
+	depends on ARCH_INTEL_SOCFPGA && ARM64 && HAVE_ARM_SMCCC
 	default n
 	help
 	  Intel Stratix10 service layer runs at privileged exception level,
Signature · 1 line
2.25.1
#1 lore raw
Quoted 12 lines · Dinh Nguyen

From: Krzysztof Kozlowski <[email protected]>

The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
declared with attribute error: FIELD_GET: type of reg too small for mask _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
...
drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'

Quoted 3 lines
    priv->status.version = FIELD_GET(RSU_VERSION_MASK,
Fixes 4483397b0353 ("ARM: socfpga: drop ARCH_SOCFPGA")

Where is this commit id? I don't see it in Linus's tree, is it somewhere else?

thanks,

greg k-h

#2 lore raw
Quoted 15 lines · Greg KH
Quoted 14 lines · Dinh Nguyen

From: Krzysztof Kozlowski <[email protected]>

The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
declared with attribute error: FIELD_GET: type of reg too small for mask _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
...
drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'

     priv->status.version = FIELD_GET(RSU_VERSION_MASK,
Quoted 5 lines
Quoted 1 line
Fixes 4483397b0353 ("ARM: socfpga: drop ARCH_SOCFPGA")

Where is this commit id? I don't see it in Linus's tree, is it somewhere else?

It's in the for-next branch in the soc tree. This patch fixes a patch that was just recently submitted by Krzysztof.

Dinh

#3 lore raw
Quoted 18 lines · Dinh Nguyen
Quoted 15 lines · Greg KH
Quoted 14 lines · Dinh Nguyen

From: Krzysztof Kozlowski <[email protected]>

The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
declared with attribute error: FIELD_GET: type of reg too small for mask _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
...
drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'

     priv->status.version = FIELD_GET(RSU_VERSION_MASK,
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Fixes 4483397b0353 ("ARM: socfpga: drop ARCH_SOCFPGA")

Where is this commit id? I don't see it in Linus's tree, is it somewhere else?

It's in the for-next branch in the soc tree. This patch fixes a patch that was just recently submitted by Krzysztof.

Then it needs to go through that tree, while you sent it "To:" me, and I can't do anything with it at the moment :(

thanks,

greg k-h

#4 lore raw
Quoted 25 lines · Greg KH
Quoted 24 lines · Dinh Nguyen
Quoted 20 lines · Greg KH
Quoted 14 lines · Dinh Nguyen

From: Krzysztof Kozlowski <[email protected]>

The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
declared with attribute error: FIELD_GET: type of reg too small for mask _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
...
drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'
priv->status.version = FIELD_GET(RSU_VERSION_MASK,

Quoted 1 line
Fixes 4483397b0353 ("ARM: socfpga: drop ARCH_SOCFPGA")

Where is this commit id? I don't see it in Linus's tree, is it somewhere else?

Quoted 6 lines
Quoted 2 lines

It's in the for-next branch in the soc tree. This patch fixes a patch that was just recently submitted by Krzysztof.

Then it needs to go through that tree, while you sent it "To:" me, and I can't do anything with it at the moment :(

Ah okay, got it, thanks!

Dinh