Re: [PATCH rdma-next v2] RDMA/mana_ib: Enable RDMA devices on the CDX bus
From: Zhiyue Qiu
Date: Thu Dec 03 2026 - 01:31:48 EST
Hi Leon,
> The commit message merely lists the code changes in the patch. It should
> explain why you are using pgprot_device() and why you report Microsoft
> vendor ID directly.
Thanks for pointing this out. The revised commit message now says:
On arm64, ioremap() maps the CDX doorbell pages in BAR0 as Device-nGnRE,
but pgprot_writecombine() maps them as Normal-NC in userspace. Using
pgprot_device() to match the kernel mapping fixes the observed CDX
lockup. PCI write-combining is unchanged.
mana_ib_query_device() reads the vendor ID through to_pci_dev(), but the
GDMA device on CDX is not a pci_dev. Both MANA transport ID tables match
only Microsoft's vendor ID (0x1414). Report PCI_VENDOR_ID_MICROSOFT
directly so userspace gets the same ID on either bus without a PCI cast.
> Instead, you rewrote the entire text. The original text was not limited to
> PCI, so all of the changes above are unnecessary.
I have updated the comment
> PCI code declares almost same code in probe function and not in
> mana_XXX_setup_hwc_irqs().
Moving the dma_param setup code to probe function
> Will you reuse dev after the device has been released?
>
> Why do you need devm_XXX interfaces if device can't be accessed after it
> is released?
The same CDX device can remain registered across driver unbind and
rebind, so we clear dev->dma_parms on unbind to avoid leaving a stale
pointer.
Thanks