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=1796182574; b=fEcJFSWcSppBAibNApkFLJVyG/pkKbzdUktMm5PDUk6M2Vtb21v6QUo2f8L0VktJ8rzG bMpk0dW8mbqezMyww5q2on5d7dwwOcESWDykMc+6s7QD+YPyK9nVS9O2f7qUW9y4l5QrG 3EOhV9lQs4qfHTeqhopxKDbBNIuOzg05R8w5886RX0fWhgx7dsSltp+DuE0js+ycIIVLy lDHr30Snbe32N2wL19tJlax7xD9kKQpIJWP5oXioYy1nHL1FnFtM3xuI+FwZloknWDlUd KBHuN4/FOGj/C3OHA5XVCsnN9jB4/XlCjxlpyvtPI2YRWOUEQ7MTxLCU7LAlObUFpNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796182574; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=BAKjPSFNRG9anrv1Yu8mRFAXACHjZfbtesFkpOFASLo=; b=mWbkqSI6m3O7qrc2CMd9rjdlMqPBYxDauIlntoND0t8vTO4oIXMNNjihfjClD4dGvFcI OtQCfvfOCEtnfzCvXMjcyqYhCpBlrUaEdLaJv9MhHi+pnLTlPv/DrlxvFUs2vz5v8GMXA SPjPnEtDeLBvq53KkNo6GLsOyOkxvLxV/nmiO090x+y86xUETWjd44yg8HfdxUIvdreL4 nnW9oms2K2iH9ErTjWRCvjDglInS5crprxKwOrQmTIfdKB6KsZWTxgQiVXaUuWihDtjh+ bgScONxO77/fynz5SX32JpBCUXB3QSuQEztwS6ypTqaxJBjvXYVLx0mzU4+GZViWTqw== 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=fNK+r6B6; 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 0F9C0606A335 for ; Wed, 2 Dec 2026 03:36:13 +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=fNK+r6B6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A1631F0089F; Wed, 2 Dec 2026 03:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796182573; bh=BAKjPSFNRG9anrv1Yu8mRFAXACHjZfbtesFkpOFASLo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fNK+r6B63dG0VLlBZEZ/X1lB7xUizXi12bMpE4MRpXhZxHQme1ST18Jvk++54TtsC gB6AYCpfTaGPuDK7H4F6qDoQYbmSdg9efKthc3GlvWnHitXDjLAWcJUOOsy2yek/PA Ff0QtLIuBN6HgbdgUXO96DwOfcahCkn4foAud8isa1vGHsdCOe72RUO0PkttkRUCeB O9QRdQpKtG10vQG+KLJ0vZZIEPDXRzoNbl5ESEkstqQF9DprKm6YA1TuPXFLhFhELg n0D/VOxo3mMfI04OiDTHfIRa7hOJz/c02y+Y6v4OB3+0fZG356KWrQBg5pLfdqfNyA VZAdrTKtMxC4g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v2 5/5] RDMA: Avoid compile-time PAGE_SIZE in FRMR pools, IPoIB and uverbs Reply-To: sashiko-reviews@lists.linux.dev To: "Eric Curtin" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261202032044.1705331-6-ericcurtin17@gmail.com> References: <20261202032044.1705331-1-ericcurtin17@gmail.com> <20261202032044.1705331-6-ericcurtin17@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 03:36:13 +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 1 potential issue to consider: - [High] RDMA: undeclared identifier PAGE_SIZE_MIN in ipoib.h and uverbs_ioctl.h -- commit 9e5b709f6747c196f7838e46f6a5bb87fdb0b541 Author: Eric Curtin RDMA: Avoid compile-time PAGE_SIZE in FRMR pools, IPoIB and uverbs This commit replaces compile-time uses of PAGE_SIZE in FRMR pools, IPoIB, and uverbs with runtime allocations or PAGE_SIZE_MIN-based macros to support boot-time page size selection. > diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ul= p/ipoib/ipoib.h > index 143e03b649021..34a19e96d0a0a 100644 > --- a/drivers/infiniband/ulp/ipoib/ipoib.h > +++ b/drivers/infiniband/ulp/ipoib/ipoib.h > @@ -70,8 +70,6 @@ enum { > =20 > IPOIB_CM_MTU =3D 0x10000 - 0x10, /* padding to align header to 16 */ > IPOIB_CM_BUF_SIZE =3D IPOIB_CM_MTU + IPOIB_ENCAP_LEN, > - IPOIB_CM_HEAD_SIZE =3D IPOIB_CM_BUF_SIZE % PAGE_SIZE, > - IPOIB_CM_RX_SG =3D ALIGN(IPOIB_CM_BUF_SIZE, PAGE_SIZE) / PAGE_SIZE, > IPOIB_RX_RING_SIZE =3D 256, > IPOIB_TX_RING_SIZE =3D 128, > IPOIB_MAX_QUEUE_SIZE =3D 8192, > @@ -118,6 +116,13 @@ enum { > IPOIB_RTNL_CHILD =3D 2, > }; > =20 > +#define IPOIB_CM_HEAD_SIZE ((int)(IPOIB_CM_BUF_SIZE % PAGE_SIZE)) > +#define IPOIB_CM_HEAD_SIZE_MIN ((int)(IPOIB_CM_BUF_SIZE % PAGE_SIZE_MIN)) > +#define IPOIB_CM_RX_SG \ > + ((unsigned int)(ALIGN(IPOIB_CM_BUF_SIZE, PAGE_SIZE) / PAGE_SIZE)) > +#define IPOIB_CM_RX_SG_MAX \ > + ((int)(ALIGN(IPOIB_CM_BUF_SIZE, PAGE_SIZE_MIN) / PAGE_SIZE_MIN)) > + > #define IPOIB_OP_RECV (1ul << 31) > #ifdef CONFIG_INFINIBAND_IPOIB_CM > #define IPOIB_OP_CM (1ul << 30) > @@ -259,7 +264,7 @@ struct ipoib_cm_tx { > =20 > struct ipoib_cm_rx_buf { > struct sk_buff *skb; > - u64 mapping[IPOIB_CM_RX_SG]; > + u64 mapping[IPOIB_CM_RX_SG_MAX]; > }; [Severity: High] Where is PAGE_SIZE_MIN defined? PAGE_SIZE_MIN is not defined anywhere in the tree, so expanding IPOIB_CM_RX_SG_MAX in struct ipoib_cm_rx_buf, IPOIB_CM_HEAD_SIZE_MIN in ipoib_init_module(), or UVERBS_ATTR_IDRS_ARR() in include/rdma/uverbs_ioctl.h breaks the build with an undeclared identifier error when CONFIG_INFINIBAND_IPOIB or consumers such as drivers/infiniband/hw/mlx5/fs.c are compiled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202032044.1705= 331-1-ericcurtin17@gmail.com?part=3D5