]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: epsc: For Xen dom0 configure resources for all 32 VFs at driver load
authorKnut Omang <knut.omang@oracle.com>
Fri, 22 Jul 2016 12:49:23 +0000 (14:49 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 12 Aug 2016 19:18:12 +0000 (12:18 -0700)
commit21305b26a7be289cd59bfbf246e7846df8da1b3a
treeed2f7875cf0c48a1c704e65d08088525ddfacd2b
parenta72da015c906eda437d5a77aa5cc15525bd796fe
sif: epsc: For Xen dom0 configure resources for all 32 VFs at driver load

As of EPSC API version 2.9 firmware can distribute resources based on
the number of PCI functions the PF driver requests support for.
Older firmware will just ignore the value.

This commit enforces no VFs configured as the default setting
but enable all 32 VFs if a Xen PV domain is detected.

To allow overriding this behaviour we add a new module parameter
vf_max which can be used to override the number of VFs configured
for instance for use with other virtualization engines than Xen
and for debugging/tuning purposes. The vf_max parameter takes the
following values:

-2:  Use NVRAM configured firmware defaults (backward compat mode)
-1  (now default) : Exadata mode as described above
0-32:  Configure explicitly for that many VFs (only selected values
     are supported by firmware)

Orabug: 24424521

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_dev.h
drivers/infiniband/hw/sif/sif_epsc.c
drivers/infiniband/hw/sif/sif_hwi.c
drivers/infiniband/hw/sif/sif_main.c