mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 01:05:08 +07:00
3870502a66
If NO_DMA=y: ERROR: "dma_set_mask" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_unmap_single" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_unmap_page" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_mapping_error" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_map_page" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_supported" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_map_single" [drivers/net/ethernet/hisilicon/hns/hns_enet_drv.ko] undefined! ERROR: "dma_set_mask" [drivers/net/ethernet/hisilicon/hns/hns_dsaf.ko] undefined! ERROR: "dma_supported" [drivers/net/ethernet/hisilicon/hns/hns_dsaf.ko] undefined! ERROR: "dma_unmap_single" [drivers/net/ethernet/hisilicon/hns/hnae.ko] undefined! ERROR: "dma_unmap_page" [drivers/net/ethernet/hisilicon/hns/hnae.ko] undefined! ERROR: "dma_mapping_error" [drivers/net/ethernet/hisilicon/hns/hnae.ko] undefined! ERROR: "dma_map_page" [drivers/net/ethernet/hisilicon/hns/hnae.ko] undefined! ERROR: "dma_map_single" [drivers/net/ethernet/hisilicon/hns/hnae.ko] undefined! ERROR: "dma_alloc_coherent" [drivers/net/ethernet/hisilicon/hix5hd2_gmac.ko] undefined! ERROR: "dma_mapping_error" [drivers/net/ethernet/hisilicon/hix5hd2_gmac.ko] undefined! ERROR: "dma_map_single" [drivers/net/ethernet/hisilicon/hix5hd2_gmac.ko] undefined! ERROR: "dma_unmap_single" [drivers/net/ethernet/hisilicon/hix5hd2_gmac.ko] undefined! ERROR: "dma_free_coherent" [drivers/net/ethernet/hisilicon/hix5hd2_gmac.ko] undefined! ERROR: "dma_alloc_coherent" [drivers/net/ethernet/hisilicon/hip04_eth.ko] undefined! ERROR: "dma_mapping_error" [drivers/net/ethernet/hisilicon/hip04_eth.ko] undefined! ERROR: "dma_map_single" [drivers/net/ethernet/hisilicon/hip04_eth.ko] undefined! ERROR: "dma_unmap_single" [drivers/net/ethernet/hisilicon/hip04_eth.ko] undefined! ERROR: "dma_free_coherent" [drivers/net/ethernet/hisilicon/hip04_eth.ko] undefined! As this affects all of HNS_ENET, HNS_DSAF, HNS, HIX5HD2_GMAC, and HIP04_ETH, add a dependency on HAS_DMA to the main NET_VENDOR_HISILICON symbol to fix this. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
#
|
|
# HISILICON device configuration
|
|
#
|
|
|
|
config NET_VENDOR_HISILICON
|
|
bool "Hisilicon devices"
|
|
default y
|
|
depends on OF && HAS_DMA
|
|
depends on ARM || ARM64 || COMPILE_TEST
|
|
---help---
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the questions about Hisilicon devices. If you say Y, you will be asked
|
|
for your specific card in the following questions.
|
|
|
|
if NET_VENDOR_HISILICON
|
|
|
|
config HIX5HD2_GMAC
|
|
tristate "Hisilicon HIX5HD2 Family Network Device Support"
|
|
select PHYLIB
|
|
help
|
|
This selects the hix5hd2 mac family network device.
|
|
|
|
config HIP04_ETH
|
|
tristate "HISILICON P04 Ethernet support"
|
|
select MARVELL_PHY
|
|
select MFD_SYSCON
|
|
select HNS_MDIO
|
|
---help---
|
|
If you wish to compile a kernel for a hardware with hisilicon p04 SoC and
|
|
want to use the internal ethernet then you should answer Y to this.
|
|
|
|
config HNS_MDIO
|
|
tristate
|
|
select PHYLIB
|
|
---help---
|
|
This selects the HNS MDIO support. It is needed by HNS_DSAF to access
|
|
the PHY
|
|
|
|
config HNS
|
|
tristate "Hisilicon Network Subsystem Support (Framework)"
|
|
---help---
|
|
This selects the framework support for Hisilicon Network Subsystem. It
|
|
is needed by any driver which provides HNS acceleration engine or make
|
|
use of the engine
|
|
|
|
config HNS_DSAF
|
|
tristate "Hisilicon HNS DSAF device Support"
|
|
select HNS
|
|
select HNS_MDIO
|
|
---help---
|
|
This selects the DSAF (Distributed System Area Frabric) network
|
|
acceleration engine support. The engine is used in Hisilicon hip05,
|
|
Hi1610 and further ICT SoC
|
|
|
|
config HNS_ENET
|
|
tristate "Hisilicon HNS Ethernet Device Support"
|
|
select PHYLIB
|
|
select HNS
|
|
---help---
|
|
This selects the general ethernet driver for HNS. This module make
|
|
use of any HNS AE driver, such as HNS_DSAF
|
|
|
|
endif # NET_VENDOR_HISILICON
|