ntb.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: am jom <amjom66@gmail.com>
To: ntb@lists.linux.dev
Subject: Problem with 8G dma memory allocation
Date: Tue, 3 Oct 2023 01:45:04 +0330	[thread overview]
Message-ID: <CAJXBUywjYMh3xqJ=ePByWjzeP4LRE7Bc3K5qAcZuXG=tBx+20g@mail.gmail.com> (raw)

I have a Supermicro x10drs-2u board, Intel Xeon E5, 2600v3, with PLX
NTB switch. I have installed Centos 7 and mainline linux kernel 6.5.3
with added PLX driver from TrueNAS. There 2 main boards with PLX ntb
devices already attached in hardware through a bus named M2

CMA and DMA are active and I can reserve like 8G, CMA memory at 4G.
There are other network devices using CMA and they are working. I know
that ntb_hw_plx.ko by Truenas needs 8G memory space

When i load ntb_transport.ko module, the related kernel thread crashes
by the following error message:

Unable to alloc MW buff of size 8,589,934,592

The problem is with dma_alloc_coherent() which fails and has errors
and it seems that it can not find any CMA reserved memory as the crash
dump reports (by dmesg) invalid operation in _alloc_pages() at last
and the "cma" term is not seen in the crash dump .

for CMA alignment i chose 2, and 2 areas and 8G size. what size and
alignment should i set by the kernel config variables?

Is there any kernel i can use to drive PLX ntb bridge device? Kernel
detects several PLX devices regarding this switch like PEX8717,
PEX8732 and 87d0 and ntb_hw_plx.ko is being attached to 8732 network
device

                 reply	other threads:[~2023-10-02 22:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAJXBUywjYMh3xqJ=ePByWjzeP4LRE7Bc3K5qAcZuXG=tBx+20g@mail.gmail.com' \
    --to=amjom66@gmail.com \
    --cc=ntb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).