From: Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: Dan aloni <alonid-IGuEOkGjbyfby3iVrkZq2A@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Eli Cohen <eli-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>,
Julian Satran <julians-IGuEOkGjbyfby3iVrkZq2A@public.gmane.org>
Subject: Re: [PATCH] ib: mlx4 map fix for large hugetlb areas
Date: Mon, 6 Jun 2011 22:27:43 +0300 [thread overview]
Message-ID: <20110606192743.GA418@mtldesk30> (raw)
In-Reply-To: <BANLkTikatAo9FYO=iuNzCk2X9x_mAr3mZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, Jun 06, 2011 at 09:09:42AM -0700, Roland Dreier wrote:
> On Mon, Jun 6, 2011 at 4:29 AM, Dan aloni <alonid-IGuEOkGjbyfby3iVrkZq2A@public.gmane.org> wrote:
> > --- a/drivers/infiniband/hw/mlx4/mr.c
> > +++ b/drivers/infiniband/hw/mlx4/mr.c
> > @@ -140,7 +140,7 @@ static int handle_hugetlb_user_mr(struct ib_pd *pd, struct mlx4_ib_mr *mr,
> > int off = start & (HPAGE_SIZE - 1);
> >
> > n = DIV_ROUND_UP(off + umem->length, HPAGE_SIZE);
> > - arr = kmalloc(n * sizeof *arr, GFP_KERNEL);
> > + arr = vmalloc(n * sizeof *arr);
> > if (!arr)
> > return -ENOMEM;
> >
>
> I'm not able to find anywhere in the mlx4 driver where this patch
> would have a chance at applying??
>
I submitted this patch about 2 years ago. As far as I recall there was
a problem to obtain the huge page size for powerpc archs and that's
were the patch died. We're are using it in OFED for x86_64 and it
gives significant improvement when registering huge pages. I will
re-submit an up to date version.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-06-06 19:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 11:29 [PATCH] ib: mlx4 map fix for large hugetlb areas Dan aloni
2011-06-06 16:09 ` Roland Dreier
[not found] ` <BANLkTikatAo9FYO=iuNzCk2X9x_mAr3mZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-06 19:27 ` Eli Cohen [this message]
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=20110606192743.GA418@mtldesk30 \
--to=eli-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=alonid-IGuEOkGjbyfby3iVrkZq2A@public.gmane.org \
--cc=eli-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org \
--cc=julians-IGuEOkGjbyfby3iVrkZq2A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org \
/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.