If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, but INFINIBAND_HNS is y, building fails: drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_exit': hns_roce_hw_v2.c:(.exit.text+0xd): undefined reference to `hnae3_unregister_client' drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_init': hns_roce_hw_v2.c:(.init.text+0xd): undefined reference to `hnae3_register_client' Also if INFINIBAND_HNS_HIP06 is selected and HNS_DSAF is m, but INFINIBAND_HNS is y, building fails: drivers/infiniband/hw/hns/hns_roce_hw_v1.o: In function `hns_roce_v1_reset': hns_roce_hw_v1.c:(.text+0x39fa): undefined reference to `hns_dsaf_roce_reset' hns_roce_hw_v1.c:(.text+0x3a25): undefined reference to `hns_dsaf_roce_reset' Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: dd74282df573 ("RDMA/hns: Initialize the PCI device for hip08 RoCE") Fixes: 08805fdbeb2d ("RDMA/hns: Split hw v1 driver from hns roce driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190724065443.53068-1-yuehaibing@huawei.com Signed-off-by: Doug Ledford <dledford@redhat.com>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config INFINIBAND_HNS
|
|
bool "HNS RoCE Driver"
|
|
depends on NET_VENDOR_HISILICON
|
|
depends on ARM64 || (COMPILE_TEST && 64BIT)
|
|
---help---
|
|
This is a RoCE/RDMA driver for the Hisilicon RoCE engine. The engine
|
|
is used in Hisilicon Hip06 and more further ICT SoC based on
|
|
platform device.
|
|
|
|
To compile HIP06 or HIP08 driver as module, choose M here.
|
|
|
|
config INFINIBAND_HNS_HIP06
|
|
tristate "Hisilicon Hip06 Family RoCE support"
|
|
depends on INFINIBAND_HNS && HNS && HNS_DSAF && HNS_ENET
|
|
---help---
|
|
RoCE driver support for Hisilicon RoCE engine in Hisilicon Hip06 and
|
|
Hip07 SoC. These RoCE engines are platform devices.
|
|
|
|
To compile this driver, choose Y here: if INFINIBAND_HNS is m, this
|
|
module will be called hns-roce-hw-v1
|
|
|
|
config INFINIBAND_HNS_HIP08
|
|
tristate "Hisilicon Hip08 Family RoCE support"
|
|
depends on INFINIBAND_HNS && PCI && HNS3
|
|
---help---
|
|
RoCE driver support for Hisilicon RoCE engine in Hisilicon Hip08 SoC.
|
|
The RoCE engine is a PCI device.
|
|
|
|
To compile this driver, choose Y here: if INFINIBAND_HNS is m, this
|
|
module will be called hns-roce-hw-v2.
|