From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [RFC PATCH v2 3/5] RDMA/hns: Size the doorbell bitmaps for PAGE_SIZE_MAX
Date: Wed, 02 Dec 2026 03:29:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-244782@kernel.org> (raw)
In-Reply-To: <20261202032044.1705331-4-ericcurtin17@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] RDMA/hns: build failure due to undeclared PAGE_SIZE_MAX
--
commit 9e38d632a1eb90afcf10550005a979cf315bbdfd
Author: Eric Curtin <eric.curtin@docker.com>
RDMA/hns: Size the doorbell bitmaps for PAGE_SIZE_MAX
This commit converts HNS_ROCE_DB_PER_PAGE into a macro and introduces
HNS_ROCE_DB_PER_PAGE_MAX based on PAGE_SIZE_MAX to size the order0 and
order1 bitmaps in struct hns_roce_db_pgdir.
> diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
> index 5890ee69247c2..1cd57a0477fa1 100644
> --- a/drivers/infiniband/hw/hns/hns_roce_device.h
> +++ b/drivers/infiniband/hw/hns/hns_roce_device.h
> @@ -166,9 +166,8 @@ enum {
> #define HNS_ROCE_DB_TYPE_COUNT 2
> #define HNS_ROCE_DB_UNIT_SIZE 4
>
> -enum {
> - HNS_ROCE_DB_PER_PAGE = PAGE_SIZE / 4
> -};
> +#define HNS_ROCE_DB_PER_PAGE (PAGE_SIZE / 4)
> +#define HNS_ROCE_DB_PER_PAGE_MAX (PAGE_SIZE_MAX / 4)
>
> enum hns_roce_reset_stage {
> HNS_ROCE_STATE_NON_RST,
> @@ -395,8 +394,9 @@ struct hns_roce_buf {
>
> struct hns_roce_db_pgdir {
> struct list_head list;
> - DECLARE_BITMAP(order0, HNS_ROCE_DB_PER_PAGE);
> - DECLARE_BITMAP(order1, HNS_ROCE_DB_PER_PAGE / HNS_ROCE_DB_TYPE_COUNT);
> + DECLARE_BITMAP(order0, HNS_ROCE_DB_PER_PAGE_MAX);
> + DECLARE_BITMAP(order1,
> + HNS_ROCE_DB_PER_PAGE_MAX / HNS_ROCE_DB_TYPE_COUNT);
> unsigned long *bits[HNS_ROCE_DB_TYPE_COUNT];
> u32 *page;
> dma_addr_t db_dma;
[Severity: High]
Where is PAGE_SIZE_MAX defined? No header in the tree defines
PAGE_SIZE_MAX, so expanding HNS_ROCE_DB_PER_PAGE_MAX in struct
hns_roce_db_pgdir fails to compile with an undeclared identifier error
whenever drivers/infiniband/hw/hns/ is built.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202032044.1705331-1-ericcurtin17@gmail.com?part=3
next prev parent reply other threads:[~2026-12-02 3:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261202032044.1705331-1-ericcurtin17@gmail.com>
2026-12-02 3:17 ` [RFC PATCH v2 1/5] RDMA/mthca: Make the direct buffer size limits macros Eric Curtin
2026-12-02 3:17 ` [RFC PATCH v2 2/5] RDMA/mlx5: Use PAGE_SIZE_MIN/MAX in build-time page size checks Eric Curtin
2026-12-02 3:28 ` sashiko-bot
2026-12-02 3:17 ` [RFC PATCH v2 3/5] RDMA/hns: Size the doorbell bitmaps for PAGE_SIZE_MAX Eric Curtin
2026-12-02 3:29 ` sashiko-bot [this message]
2026-12-02 3:17 ` [RFC PATCH v2 4/5] RDMA/efa: Check EFA_CHUNK_PAYLOAD_SIZE against PAGE_SIZE_MIN Eric Curtin
2026-12-02 3:31 ` sashiko-bot
2026-12-02 3:17 ` [RFC PATCH v2 5/5] RDMA: Avoid compile-time PAGE_SIZE in FRMR pools, IPoIB and uverbs Eric Curtin
2026-12-02 3:36 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-244782@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ericcurtin17@gmail.com \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox