]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: Avoid using SIFMT_2M for allocation of any tables in no_huge_page mode
authorKnut Omang <knut.omang@oracle.com>
Fri, 16 Sep 2016 09:32:32 +0000 (11:32 +0200)
committerKnut Omang <knut.omang@oracle.com>
Mon, 3 Oct 2016 12:02:21 +0000 (14:02 +0200)
commitd212f7fb8698b209199382792321456f326d7cb3
treeb8cdc01761167a32f00036b3101d16ed3d6c8134
parenteeea605e09592ffcd968ecfefb927182367632c7
sif: Avoid using SIFMT_2M for allocation of any tables in no_huge_page mode

The feature mask no_huge_pages, enabled for Xen due to
DMA address alignment issues with huge pages, did not apply
to allocation of CQs, RQs, and SQs, only to the tableworks.
This causes allocation of queues of these types
larger than 4M in total size to fail on Xen PV domains
such as dom0.

Orabug: 24683830

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_cq.c
drivers/infiniband/hw/sif/sif_rq.c
drivers/infiniband/hw/sif/sif_sq.c