hisi_sas: SCSI_HISI_SAS should depend on HAS_DMA
Subsystems (2)
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
@@ -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
PATCH 2/2 hisi_sas: Restrict SCSI_HISI_SAS to arm64
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
@@ -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
Re: [PATCH 2/2] hisi_sas: Restrict SCSI_HISI_SAS to arm64
Quoted 14 lines · Geert Uytterhoeven
The HiSilicon SAS HBA is available in HiSilicon arm64 SoCs only. Restrict it to arm64, unless compile-testing.
Signed-off-by Geert Uytterhoeven <[email protected]>--- drivers/scsi/hisi_sas/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/scsi/hisi_sas/Kconfig +0
-0
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
Martin K. Petersen
AppliedRe: [PATCH 2/2] hisi_sas: Restrict SCSI_HISI_SAS to arm64
In reply to Geert UytterhoevenQuoted 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
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_DMAto fix this.Signed-off-by Geert Uytterhoeven <[email protected]>--- drivers/scsi/hisi_sas/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/scsi/hisi_sas/Kconfig +0
-0
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
Martin K. Petersen
AppliedQuoted 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