From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796303943; b=h59c2+5eWKxqaR33Ssh+llbgPw1aT/V3vV+YpCyvYRgV72Kzl/jziW823MqWx0ggmzNF DjK9a/beL4+CsPY3/aLrkLWDZx+pNjsKSp1jVXbBVY+Amq6H6qGEHlkbnY3keoeTb0LJM rUy1wAWaN/AaMutCx6DERm9qVJF1bgnrzs0n9Bj7uKdy8dh0TmjLvsGesqMAyqHD1CFpf Fu7RL5LfRTQsSRov7yaOQR5hJaxbt5YO4cQe0kZS4S/mqy73ykeGBPCLgPr5toqc1Gcn+ /GDNZAyOrgOrctwoYnx9Tt/fzuwvSyR//WKgBoq3/6sCSP3sAtq33YXhVcx9lgz9vYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796303943; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=bDGiKlXdPJuK3Tl8Y2jgwxipxfYe02PAm8se66Qm2Q0=; b=xtfZtLDlM18iwIh3nNgRgFznKWKF3YDJmIliVFtFdr3NtEThJjYnOUvsOwGCueHI1zWW 120N+Aa3E6aE7gPd57JDeQIP1kKgAVIfsFFmCwQLxcZNHJy+dLgaCqZyvV+szvXBYTKoK GiWgFVR1AIN+p7OLqIPIdfXUKALxjeYMAMvSjrC7qikzhdxiu73zEbTi5f8O3yYWmMhIB i95SwDO+7i73+05GQtrwYIul3VQdpbB5FbnKFt9ugg7UXet6mlHN9ZZKXg0HEgKzaen2s LUV1SfvaJ/lILxhNIW2Jpxu/5CJswqZ4zXgccqMuHzbRQfoC3VbGRny+dBFgFPGX5CA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fyz6XWX6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66215606A32F for ; Thu, 3 Dec 2026 13:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fyz6XWX6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0AC81F00896; Thu, 3 Dec 2026 13:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796303943; bh=bDGiKlXdPJuK3Tl8Y2jgwxipxfYe02PAm8se66Qm2Q0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fyz6XWX6xZgMx/6Wqhv5lxp3rUjJ36/kyllMSFDox4y27jCwHBMYjGDlt0/0c/AI3 DN9ySsmbFqMP3xvQDDFLHs41hDDpB4vM2vf44RmuqvJb9twsSHy+QqfIyZ8Rl1YI30 r5Mq73HYBYvSZe7ckeM5+yrhjC5E3IWPmfRoARJBwucqgGT8XbDeRG+lhTK/Vkqy9H zK+X+wTl+FOtoe6QKr5DaNmfITx/DsJEageWQX0j/dK+taMFO2fCMq8jhNFqKL0Q4N ALEtLpWR6djIaliP61yYgayDRaqZSOHQxVbyJjnpCGAD7tmi80n8lqaHwJ8oLRkyxK BtYgAxSxqdW2w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH rdma v10 1/7] RDMA/zrdma: Add build infrastructure and module skeleton Reply-To: sashiko-reviews@lists.linux.dev To: "Yanze Zhang" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261203124928.48716-2-zhang.yanze@zte.com.cn> References: <20261203124928.48716-1-zhang.yanze@zte.com.cn> <20261203124928.48716-2-zhang.yanze@zte.com.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 13:19:02 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [High] RDMA/zrdma: auxiliary driver binds to nonexistent dinghai10e.rdma_aux device - [High] RDMA/zrdma: non-functional verbs ops and unused resources fail v2 review - [Low] RDMA/zrdma: commit message omits RDMA_DRIVER_ZRDMA UAPI addition - [Low] RDMA/zrdma: UAPI ABI header zrdma_abi.h diverges from *-abi.h convention -- commit 3691a422452232635cbbadb8369d21180b5db92d Author: Yanze Zhang RDMA/zrdma: Add build infrastructure and module skeleton This commit adds the MAINTAINERS entry, Kconfig, Makefile, RDMA driver ID, and a minimal auxiliary driver skeleton for the ZTE DingHai RDMA driver. > diff --git a/MAINTAINERS b/MAINTAINERS > index 222b7fc2c3aab..de75c93ca3a86 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -31025,6 +31025,13 @@ L: netdev@vger.kernel.org > S: Maintained > F: drivers/net/ethernet/zte/ > =20 > +ZTE DINGHAI ZRDMA DRIVER > +M: Yanze Zhang > +L: linux-rdma@vger.kernel.org > +S: Supported > +F: drivers/infiniband/hw/zrdma/ > +F: include/uapi/rdma/zrdma_abi.h [Severity: Low] Should this UAPI header be named include/uapi/rdma/zrdma-abi.h to match the rest of the RDMA subsystem? Every existing provider ABI header under include/uapi/rdma/ uses a hyphenated -abi.h suffix (including bnxt_re-abi.h and vmw_pvrdma-abi.h). Because this header is exported to userspace (added in commit "RDMA/zrdma: Add core data structures and ABI definitions"), its filename becomes permanent once merged. [ ... ] > diff --git a/drivers/infiniband/hw/zrdma/zrdma_main.c b/drivers/infiniban= d/hw/zrdma/zrdma_main.c > new file mode 100644 > index 0000000000000..da42494a43c69 > --- /dev/null > +++ b/drivers/infiniband/hw/zrdma/zrdma_main.c [ ... ] > +/* The name has to match the auxiliary device that the DingHai PF > + * driver creates. > + */ > +static const struct auxiliary_device_id zxdh_auxiliary_id_table[] =3D { > + { > + .name =3D "dinghai10e.rdma_aux", > + }, > + {}, > +}; [Severity: High] Does anything in the tree actually create the "dinghai10e.rdma_aux" auxiliary device? In drivers/net/ethernet/zte/dinghai/en_pf.c, zxdh_pf_probe() returns immediately after devlink_register(devlink) without registering any auxiliary device, and the DingHai PF driver does not use AUXILIARY_BUS at all. None of the later patches in this series add auxiliary device creation to dinghai10e either, leaving zxdh_probe() and zxdh_remove() unreachable and the driver unable to bind on DingHai hardware. [ ... ] > diff --git a/include/uapi/rdma/ib_user_ioctl_verbs.h b/include/uapi/rdma/= ib_user_ioctl_verbs.h > index ca8b8b8d28f24..676e784fe5418 100644 > --- a/include/uapi/rdma/ib_user_ioctl_verbs.h > +++ b/include/uapi/rdma/ib_user_ioctl_verbs.h > @@ -258,6 +258,7 @@ enum rdma_driver_id { > RDMA_DRIVER_ERDMA, > RDMA_DRIVER_MANA, > RDMA_DRIVER_IONIC, > + RDMA_DRIVER_ZRDMA, > }; [Severity: High] As reported by Leon Romanovsky on v2 [1], should this series be committing a permanent RDMA_DRIVER_ZRDMA UAPI driver ID when the driver is still not functional and still carries unused definitions and resources? Even at the end of the series, zxdh_dev_ops in zrdma_verbs.c omits all CQ, QP, MR, AH, SRQ, and post/poll verbs. 12 of the 17 ops checked by ib_device_check_mandatory() are NULL, so ib_register_device() sets kverbs_provider false and neither kernel nor userspace can run RDMA. In addition, unused code remains at the end of the series: zxdh_set_hw_rsrc() and zxdh_initialize_hw_rsrc() allocate qp_cnt_8k_idxs and eight resource bitmaps that are never used (only allocated_pds is used), and enum zxdh_mmap_flag defines unused ZXDH_MMAP_PFN and ZXDH_MMAP_HMC values. [Severity: Low] The commit message does not mention adding RDMA_DRIVER_ZRDMA to the public UAPI header include/uapi/rdma/ib_user_ioctl_verbs.h. Should this UAPI addition be documented in the changelog, or moved to the verbs patch that consumes it? [1] https://lore.kernel.org/r/20260705112915.GB15188@unreal --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203124928.4871= 6-1-zhang.yanze@zte.com.cn?part=3D1