Skip to contentSkip to conversation

hisi_sas: SCSI_HISI_SAS should depend on HAS_DMA

PATCH Applied Geert Uytterhoeven 3 participants 6 messages Jan 15, 2016 – Jan 20, 2016

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

PATCH 2/2 hisi_sas: Restrict SCSI_HISI_SAS to arm64

In reply to Geert Uytterhoeven

The HiSilicon SAS HBA is available in HiSilicon arm64 SoCs only. Restrict it to arm64, unless compile-testing.

---
 drivers/scsi/hisi_sas/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +1 -0
index 2c05021636a5fea6..b67661836c9fa26f 100644
@@ -1,6 +1,7 @@
 config SCSI_HISI_SAS
 	tristate "HiSilicon SAS"
 	depends on HAS_DMA
+	depends on ARM64 || COMPILE_TEST
 	select SCSI_SAS_LIBSAS
 	select BLK_DEV_INTEGRITY
 	help
Signature · 1 line
1.9.1
#0 lore raw

PATCH 1/2 hisi_sas: SCSI_HISI_SAS should depend on HAS_DMA

If NO_DMA=y:

ERROR: "dma_map_sg" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_unmap_sg" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_unmap_sg" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_set_mask" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_map_sg" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_destroy" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_free_coherent" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_free" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_supported" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_create" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!

Add a dependency on HAS_DMA to fix this.

---
 drivers/scsi/hisi_sas/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +1 -0
index 37a0c7156087905b..2c05021636a5fea6 100644
@@ -1,5 +1,6 @@
 config SCSI_HISI_SAS
 	tristate "HiSilicon SAS"
+	depends on HAS_DMA
 	select SCSI_SAS_LIBSAS
 	select BLK_DEV_INTEGRITY
 	help
Signature · 1 line
1.9.1
Reviewed-by on v1 1/2
#4 lore raw
Quoted 29 lines · Geert Uytterhoeven

If NO_DMA=y:

ERROR: "dma_map_sg" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_unmap_sg" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined!
ERROR: "dma_unmap_sg" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_set_mask" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_map_sg" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_destroy" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_free_coherent" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_free" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_supported" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
ERROR: "dma_pool_create" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!

Add a dependency on HAS_DMA to fix this.

---
  drivers/scsi/hisi_sas/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +0 -0
index 37a0c7156087905b..2c05021636a5fea6 100644

drivers/scsi/hisi_sas/Kconfig line 6

Quoted 6 lines
drivers/scsi/hisi_sas/Kconfig +1 -0
@@ -1,5 +1,6 @@
  config SCSI_HISI_SAS
  	tristate "HiSilicon SAS"
+	depends on HAS_DMA
  	select SCSI_SAS_LIBSAS
  	select BLK_DEV_INTEGRITY
  	help
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] hisi_sas: Restrict SCSI_HISI_SAS to arm64

In reply to Geert Uytterhoeven
Quoted 14 lines · Geert Uytterhoeven

The HiSilicon SAS HBA is available in HiSilicon arm64 SoCs only. Restrict it to arm64, unless compile-testing.

---
  drivers/scsi/hisi_sas/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/scsi/hisi_sas/Kconfig +0 -0
index 2c05021636a5fea6..b67661836c9fa26f 100644

drivers/scsi/hisi_sas/Kconfig line 7

Quoted 7 lines
drivers/scsi/hisi_sas/Kconfig +1 -0
@@ -1,6 +1,7 @@
  config SCSI_HISI_SAS
  	tristate "HiSilicon SAS"
  	depends on HAS_DMA
+	depends on ARM64 || COMPILE_TEST
  	select SCSI_SAS_LIBSAS
  	select BLK_DEV_INTEGRITY
  	help
#3 lore raw

Re: [PATCH 2/2] hisi_sas: Restrict SCSI_HISI_SAS to arm64

In reply to Geert Uytterhoeven
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Geert" == Geert Uytterhoeven <[email protected]> writes:

Geert> The HiSilicon SAS HBA is available in HiSilicon arm64 SoCs only. Geert> Restrict it to arm64, unless compile-testing.

Applied to 4.5/scsi-fixes.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#5 lore raw
In reply to Geert Uytterhoeven
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Geert" == Geert Uytterhoeven <[email protected]> writes:

Geert> If NO_DMA=y: ERROR: "dma_map_sg"
Geert> [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] undefined! ERROR:
Geert> "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_v1_hw.ko] Geert> undefined! ERROR: "dma_unmap_sg"

Geert> Add a dependency on HAS_DMA to fix this.

Applied to 4.5/scsi-fixes.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering