All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jacob Moroni" <jmoroni@google.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next 2/2] RDMA/irdma: Fix paged PBLE and virtual AEQ for PAGE_SIZE > 4K
Date: Thu, 22 Oct 2026 21:12:17 +0000	[thread overview]
Message-ID: <sashiko-outbox-182047@kernel.org> (raw)
In-Reply-To: <20261022210650.1182000-3-jmoroni@google.com>

> HMC page descriptors and the virtual AEQ PBL always assume 4K
> HW pages, but irdma_map_vm_page_list() returns one DMA address
> per PAGE_SIZE page and irdma_pble_get_paged_mem() sizes the chunk
> as PAGE_SIZE * pg_cnt.
> 
> This breaks when PAGE_SIZE is greater than 4K. For example, with
> a 64K PAGE_SIZE, the second HW page points to vaddr+64K whereas
> the driver assumes it to be at vaddr+4096, etc.
> 
> It also ends up using an incorrect chunk size which causes each
> paged chunk to claim 16x more PBL entries than what actually exist.
> 
> Fix these issues by taking into account the potential difference
> between the HW page size (4K) and the system PAGE_SIZE during
> allocation and mapping (so on a 64K kernel, each page ends up
> populating 16 PDs, etc.).
> 
> Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions")
> Fixes: 915cc7ac0f8e ("RDMA/irdma: Add miscellaneous utility definitions")
> Tested-by: Leah Li <leahlijuan@google.com>
> Signed-off-by: Jacob Moroni <jmoroni@google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261022210650.1182000-1-jmoroni@google.com?part=2


  reply	other threads:[~2026-10-22 21:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22 21:06 [PATCH rdma-next 0/2] RDMA/irdma: Fix FRWR and PBLE handling for PAGE_SIZE > 4K Jacob Moroni
2026-10-22 21:06 ` [PATCH rdma-next 1/2] RDMA/irdma: Fix FRWR logic " Jacob Moroni
2026-10-22 21:13   ` sashiko-bot
2026-10-28 19:59   ` Nikolova, Tatyana E
2026-10-22 21:06 ` [PATCH rdma-next 2/2] RDMA/irdma: Fix paged PBLE and virtual AEQ " Jacob Moroni
2026-10-22 21:12   ` sashiko-bot [this message]
2026-10-28 19:59   ` Nikolova, Tatyana E

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-182047@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jmoroni@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.