diff mbox

[4/4] infiniband: hns: add Hisilicon RoCE support(Kconfig)

Message ID 1457080877-13456-5-git-send-email-xavier.huwei@huawei.com (mailing list archive)
State Superseded
Headers show

Commit Message

Wei Hu (Xavier) March 4, 2016, 8:41 a.m. UTC
This submit add Kconfig.

Signed-off-by: Wei Hu(Xavier) <xavier.huwei@huawei.com>
Signed-off-by: oulijun <oulijun@huawei.com>
---
 drivers/infiniband/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

kernel test robot March 4, 2016, 12:10 p.m. UTC | #1
Hi Wei,

[auto build test ERROR on rdma/master]
[also build test ERROR on v4.5-rc6 next-20160303]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Wei-Hu-Xavier/infiniband-hns-Hisilicon-RoCE-support/20160304-163842
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma master
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/gma500/cdv_intel_dp.c: In function 'cdv_intel_dp_i2c_init':
   drivers/gpu/drm/gma500/cdv_intel_dp.c:868:2: warning: 'i2c_dp_aux_add_bus' is deprecated [-Wdeprecated-declarations]
     ret = i2c_dp_aux_add_bus(&intel_dp->adapter);
     ^
   drivers/gpu/drm/gma500/cdv_intel_dp.c:224:1: note: declared here
    i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
    ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_main.c:44:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_main.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_cmd.c:21:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_cmd.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.c:16:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.c:15:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.c: In function 'hns_roce_create_eq':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.c:591:23: warning: right shift count >= width of type [-Wshift-count-overflow]
      eq->buf_list[0].map >> ADDR_SHIFT_44);
                          ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_pd.c:19:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_pd.o] Error 1
   drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     .dpms = /*drm_helper_connector_dpms*/mdfld_dsi_connector_dpms,
                                          ^
   drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:39: note: (near initialization for 'mdfld_dsi_connector_funcs.dpms')
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_ah.c:18:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_ah.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_icm.c:17:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_mr.c:16:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_mr.o] Error 1
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_icm.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.c:16:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_cq.c:14:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_cq.o] Error 1
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.o] Error 1
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_alloc.c:17:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:22:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h: In function 'hns_roce_write64_k':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_device.h:711:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration]
     __raw_writeq(*(u64 *) val, dest);
     ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:21:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_set_sdb_ext':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:540:16: warning: right shift count >= width of type [-Wshift-count-overflow]
      sdb_dma_addr >> ADDR_SHIFT_44);
                   ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_raq_init':
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:819:23: warning: right shift count >= width of type [-Wshift-count-overflow]
      raq->e_raq_buf->map >> ADDR_SHIFT_44);
                          ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_v1_write_mtpt':
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:1348:27: warning: right shift count >= width of type [-Wshift-count-overflow]
      ((u32)(mr->pbl_dma_addr >> ADDR_SHIFT_32)));
                              ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_v1_write_cqc':
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:1530:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      (u64)tptr_addr >> ADDR_SHIFT_44);
      ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:1533:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cq_context->cqe_tptr_addr_l = (u32)((u64)tptr_addr >> ADDR_SHIFT_12);
                                         ^
   In file included from drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:21:0:
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_v1_m_sqp':
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:1964:22: warning: right shift count >= width of type [-Wshift-count-overflow]
       ((u32)(dma_handle >> ADDR_SHIFT_32)));
                         ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c: In function 'hns_roce_v1_m_qp':
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:2270:22: warning: right shift count >= width of type [-Wshift-count-overflow]
       ((u32)(dma_handle >> ADDR_SHIFT_32)));
                         ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:2282:24: warning: right shift count >= width of type [-Wshift-count-overflow]
       ((u32)(dma_handle_2 >> 32)) &
                           ^
   drivers/infiniband/hw/hisilicon/hns/hns_roce_common.h:31:18: note: in definition of macro 'roce_set_field'
      (origin) |= (((val) << (shift)) & (mask)); \
                     ^
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_alloc.o] Error 1
   cc1: some warnings being treated as errors
   make[5]: *** [drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.o] Error 1
   make[5]: Target '__build' not remade because of errors.
   make[4]: *** [drivers/infiniband/hw/hisilicon/hns] Error 2
   make[4]: Target '__build' not remade because of errors.
   make[3]: *** [drivers/infiniband/hw] Error 2
   make[3]: Target '__build' not remade because of errors.
   make[2]: *** [drivers/infiniband] Error 2
   drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: In function 'vmw_cmdbuf_header_submit':
   drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:297:25: warning: right shift count >= width of type [-Wshift-count-overflow]
      val = (header->handle >> 32);
                            ^
   drivers/isdn/icn/icn.c: In function 'icn_sendbuf':
   drivers/isdn/icn/icn.c:721:2: warning: #warning TODO test headroom or use skb->nb to flag ACK [-Wcpp]
    #warning TODO test headroom or use skb->nb to flag ACK
     ^
   drivers/ntb/test/ntb_perf.c: In function 'perf_copy':
   drivers/ntb/test/ntb_perf.c:213:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     vbase = (u64)(u64 *)mw->vbase;
             ^
   drivers/ntb/test/ntb_perf.c:214:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     dst_vaddr = (u64)(u64 *)dst;
                 ^
   make[2]: Target '__build' not remade because of errors.

coccinelle warnings: (new ones prefixed by >>)

>> drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.c:906:9-10: WARNING: return of 0/1 in function 'hns_roce_wq_overflow' with return type bool
--
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_v1_hw.c:1562:5-8: Unneeded variable: "ret". Return "0" on line 1587
--
>> drivers/infiniband/hw/hisilicon/hns/hns_roce_eq.c:292:3-4: Unneeded semicolon

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
Leon Romanovsky March 6, 2016, 2:29 p.m. UTC | #2
On Fri, Mar 04, 2016 at 04:41:17PM +0800, Wei Hu(Xavier) wrote:
> This submit add Kconfig.

It needs be part of previous patch.

> 
> Signed-off-by: Wei Hu(Xavier) <xavier.huwei@huawei.com>
> Signed-off-by: oulijun <oulijun@huawei.com>

................^^^^^^^...... -- Is this first name or second name?

> ---
>  drivers/infiniband/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
> index 8a8440c..c7a24bb 100644
> --- a/drivers/infiniband/Kconfig
> +++ b/drivers/infiniband/Kconfig
> @@ -73,7 +73,7 @@ source "drivers/infiniband/hw/mlx5/Kconfig"
>  source "drivers/infiniband/hw/nes/Kconfig"
>  source "drivers/infiniband/hw/ocrdma/Kconfig"
>  source "drivers/infiniband/hw/usnic/Kconfig"
> -
> +source "drivers/infiniband/hw/hisilicon/hns/Kconfig"
>  source "drivers/infiniband/ulp/ipoib/Kconfig"
>  
>  source "drivers/infiniband/ulp/srp/Kconfig"
> -- 
> 1.9.1
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Lijun Ou March 9, 2016, 11:23 a.m. UTC | #3
Hi dledford, thanks your reviewing

On 2016/3/6 22:29, Leon Romanovsky wrote:
> On Fri, Mar 04, 2016 at 04:41:17PM +0800, Wei Hu(Xavier) wrote:
>> This submit add Kconfig.
> 
> It needs be part of previous patch.
We were discussed your review. We will accept it in new patchset.
It will be send soon.

thanks
Lijun Ou
> 
>>
>> Signed-off-by: Wei Hu(Xavier) <xavier.huwei@huawei.com>
>> Signed-off-by: oulijun <oulijun@huawei.com>
> 
> ................^^^^^^^...... -- Is this first name or second name?
> 
>> ---
>>  drivers/infiniband/Kconfig | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
>> index 8a8440c..c7a24bb 100644
>> --- a/drivers/infiniband/Kconfig
>> +++ b/drivers/infiniband/Kconfig
>> @@ -73,7 +73,7 @@ source "drivers/infiniband/hw/mlx5/Kconfig"
>>  source "drivers/infiniband/hw/nes/Kconfig"
>>  source "drivers/infiniband/hw/ocrdma/Kconfig"
>>  source "drivers/infiniband/hw/usnic/Kconfig"
>> -
>> +source "drivers/infiniband/hw/hisilicon/hns/Kconfig"
>>  source "drivers/infiniband/ulp/ipoib/Kconfig"
>>  
>>  source "drivers/infiniband/ulp/srp/Kconfig"
>> -- 
>> 1.9.1
>>
> 
> .
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
index 8a8440c..c7a24bb 100644
--- a/drivers/infiniband/Kconfig
+++ b/drivers/infiniband/Kconfig
@@ -73,7 +73,7 @@  source "drivers/infiniband/hw/mlx5/Kconfig"
 source "drivers/infiniband/hw/nes/Kconfig"
 source "drivers/infiniband/hw/ocrdma/Kconfig"
 source "drivers/infiniband/hw/usnic/Kconfig"
-
+source "drivers/infiniband/hw/hisilicon/hns/Kconfig"
 source "drivers/infiniband/ulp/ipoib/Kconfig"
 
 source "drivers/infiniband/ulp/srp/Kconfig"