Re: [PATCH V12 for-next] RDMA/hns: Dump detailed driver-specific CQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 01, 2019 at 07:13:35PM +0800, Lijun Ou wrote:
> This patch adds support of resource track for hip08 and take
> dumping cq context state used for debugging as an example.
> More resources track supports for hns driver will be added in future.
> 
> The output should be as follows.
> $ ./rdma res show cq dev hnseth0 -d
> dev hnseth0 cqe 1023 users 2 poll-ctx WORKQUEUE pid 0 comm [ib_core] drv_state 2 drv_ceq
> n 0 drv_cqn 0 drv_hopnum 1 drv_pi 0 drv_ci 0 drv_coalesce 0 drv_period 0 drv_cnt 0
> 
> Signed-off-by: Tao Tian <tiantao6@xxxxxxxxxx>
> Signed-off-by: Yangyang Li <liyangyang20@xxxxxxxxxx>
> Signed-off-by: chenglang <chenglang@xxxxxxxxxx>
> Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx>
> Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
> v11->v12:
> 1. Remove the unncessary commit information line
> 
> v10->v11:
> 1. Add commit information.
> 
> v9->v10:
> 1. Remove the unncessary codes from Leon Romanovsky's reviews.
> 
> v8->v9:
> 1. resolve the merge conflict becasuse the recent
>    patches("[PATCH V2 for-next 0/8] Hns updates") received.
> 
> v7->v8:
> 1. Remove the prefix for all fields of cq context in the driver because
>    the prefix had been added in rdmatool..
> 2. resolve the merge conflict becasuse the other patches received.
> 
> v6->v7:
> 1. Add prefix for all fields of cq context.
> 2. Remove unnecessary commit information.
> 
> v5->v6:
> 1. resolve the merge conflict.
> 2. add prefix for some common fields of cq context.
> 
> v4->v5:
> 1.Change the cqe and maxcnt in the driver output to a proper name.
> 
> v3->v4:
> 1.print values in the granularity of parameterable fields.
> 
> v2->v3:
> 1.Modify the output message.
> 
> v1->v2:
> 1.Fixed the warning about the SPDX tag.
> 2.Add the output of rdmatool to the commit message.
> 3.Modify the function pointer to register res.
> ---
>  drivers/infiniband/hw/hns/Makefile             |   4 +-
>  drivers/infiniband/hw/hns/hns_roce_cmd.h       |   1 +
>  drivers/infiniband/hw/hns/hns_roce_device.h    |   8 ++
>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c     |   5 +
>  drivers/infiniband/hw/hns/hns_roce_hw_v2.h     |   3 +
>  drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c |  36 +++++++
>  drivers/infiniband/hw/hns/hns_roce_main.c      |   1 +
>  drivers/infiniband/hw/hns/hns_roce_restrack.c  | 124 +++++++++++++++++++++++++
>  8 files changed, 180 insertions(+), 2 deletions(-)
>  create mode 100644 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c
>  create mode 100644 drivers/infiniband/hw/hns/hns_roce_restrack.c

Applied to for-next, thanks

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux