Skip to contentSkip to conversation

scsi: hisi_sas: select CONFIG_RAS

PATCH In review Arnd Bergmann 3 participants 5 messages Nov 2, 2017 – Nov 3, 2017

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

PATCH 1/1 scsi: hisi_sas: select CONFIG_RAS

The driver now uses the RAS infrastructure, and fails to link if that is disabled:

drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function `fatal_ecc_int_v2_hw':
hisi_sas_v2_hw.c:(.text+0xb08): undefined reference to __tracepoint_non_standard_event' drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function fatal_axi_int_v2_hw':
hisi_sas_v2_hw.c:(.text+0x1b34): undefined reference to `__tracepoint_non_standard_event'

This adds an explicit Kconfig 'select RAS' statement. I don't know if the driver uses the interface correctly, as no other driver seems to do it like this, but the change fixes the link error.

Fixes dfeb5021f001 ("scsi: hisi_sas: report ECC and AXI errors in v2 hw to userspace")
---
 drivers/scsi/hisi_sas/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +1 -0
index d42f29a5eb65..6ad8a6251d21 100644
@@ -4,6 +4,7 @@ config SCSI_HISI_SAS
 	depends on ARM64 || COMPILE_TEST
 	select SCSI_SAS_LIBSAS
 	select BLK_DEV_INTEGRITY
+	select RAS
 	depends on ATA
 	help
 		This driver supports HiSilicon's SAS HBA, including support based
Signature · 1 line
2.9.0
#1 lore raw

+ Shiju, who authored the original patch

Hi Arnd,

Thanks for this.

Quoted 23 lines · Arnd Bergmann

The driver now uses the RAS infrastructure, and fails to link if that is disabled:

drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function `fatal_ecc_int_v2_hw':
hisi_sas_v2_hw.c:(.text+0xb08): undefined reference to __tracepoint_non_standard_event' drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function fatal_axi_int_v2_hw':
hisi_sas_v2_hw.c:(.text+0x1b34): undefined reference to `__tracepoint_non_standard_event'

This adds an explicit Kconfig 'select RAS' statement. I don't know if the driver uses the interface correctly, as no other driver seems to do it like this, but the change fixes the link error.

Fixes dfeb5021f001 ("scsi: hisi_sas: report ECC and AXI errors in v2 hw to userspace")
---
 drivers/scsi/hisi_sas/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +0 -0
index d42f29a5eb65..6ad8a6251d21 100644

drivers/scsi/hisi_sas/Kconfig config SCSI_HISI_SAS · line 7

Quoted 4 lines
drivers/scsi/hisi_sas/Kconfig +1 -0
@@ -4,6 +4,7 @@ config SCSI_HISI_SAS
 	depends on ARM64 || COMPILE_TEST
 	select SCSI_SAS_LIBSAS
 	select BLK_DEV_INTEGRITY
+	select RAS

My impression is that we don't want this. Correction: shouldn't want this.

Do you have the .config for the broken build? I couldn't recreate this by turning off CONFIG_RAS.

John

Quoted 4 lines
drivers/scsi/hisi_sas/Kconfig +0 -0
 	depends on ATA
 	help
 		This driver supports HiSilicon's SAS HBA, including support based
#2 lore raw
Quoted 15 lines · John Garry

+ Shiju, who authored the original patch

drivers/scsi/hisi_sas/Kconfig config SCSI_HISI_SAS · line 7

Quoted 8 lines

index d42f29a5eb65..6ad8a6251d21 100644

drivers/scsi/hisi_sas/Kconfig +1 -0
@@ -4,6 +4,7 @@ config SCSI_HISI_SAS
        depends on ARM64 || COMPILE_TEST
        select SCSI_SAS_LIBSAS
        select BLK_DEV_INTEGRITY
+       select RAS

My impression is that we don't want this. Correction: shouldn't want this.

Quoted 2 lines

Do you have the .config for the broken build? I couldn't recreate this by turning off CONFIG_RAS.

Uploaded to https://pastebin.com/A1rJYhDr
Maybe you were missing support for tracing in your configuration?

Arnd

#3 lore raw
Quoted 16 lines · Arnd Bergmann
Quoted 15 lines · John Garry

+ Shiju, who authored the original patch

drivers/scsi/hisi_sas/Kconfig config SCSI_HISI_SAS · line 7

Quoted 8 lines

index d42f29a5eb65..6ad8a6251d21 100644

drivers/scsi/hisi_sas/Kconfig +1 -0
@@ -4,6 +4,7 @@ config SCSI_HISI_SAS
        depends on ARM64 || COMPILE_TEST
        select SCSI_SAS_LIBSAS
        select BLK_DEV_INTEGRITY
+       select RAS

My impression is that we don't want this. Correction: shouldn't want this.

Quoted 6 lines
Quoted 2 lines

Do you have the .config for the broken build? I couldn't recreate this by turning off CONFIG_RAS.

Uploaded to https://pastebin.com/A1rJYhDr
Maybe you were missing support for tracing in your configuration?

Thanks Arnd, I can see it now.

However, as you said, it looks like this interface is not being used correctly, and I tend to agree.

Actually this interface is intended for logging UEFI CPER non-standard records from kernel RAS/APEI framework to userspace. It is not intended for kernel peripheral driver logging (like this case). Until we get a community concensus on whether this is acceptable, I would rather revert the original patch.

Thanks,
John

Quoted 4 lines

Arnd

.

#4 lore raw

John,

Quoted 5 lines

Actually this interface is intended for logging UEFI CPER non-standard records from kernel RAS/APEI framework to userspace. It is not intended for kernel peripheral driver logging (like this case). Until we get a community concensus on whether this is acceptable, I would rather revert the original patch.

OK, dropped it for now.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering