]> Gentwo Git Trees - linux/.git/commit
drm/xe/pf: Set VF LMEM BAR size
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 27 May 2025 12:06:37 +0000 (14:06 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 12 Aug 2025 12:59:31 +0000 (05:59 -0700)
commit32a4d1b98e6663101fd0abfaf151c48feea7abb1
tree9b20539d8c7f3d7ea675f19a4fae7731150030b6
parentca994e8922f25f7fed2075098f185cf198109eaa
drm/xe/pf: Set VF LMEM BAR size

LMEM is partitioned between multiple VFs and we expect that the more
VFs we have, the less LMEM is assigned to each VF.
This means that we can achieve full LMEM BAR access without the need to
attempt full VF LMEM BAR resize via pci_resize_resource().

Always try to set the largest possible BAR size that allows to fit the
number of enabled VFs and inform the user in case the resize attempt is
not successful.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250527120637.665506-7-michal.winiarski@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/regs/xe_bars.h
drivers/gpu/drm/xe/xe_pci_sriov.c