linux/drivers/gpu/drm
Michał Winiarski 94eae6ee4c
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>
(cherry picked from commit 32a4d1b98e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2025-08-14 10:30:53 -04:00
..
adp drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API 2025-05-23 15:03:47 +02:00
amd drm fixes for 6.17-rc1 2025-08-08 06:48:14 +03:00
arm drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
armada drm/armada: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:07:32 +03:00
aspeed drm/aspeed: move to devm_platform_ioremap_resource() usage 2025-02-26 15:27:06 +01:00
ast drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
atmel-hlcdc
bridge treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
ci drm/ci: Uprev igt 2025-07-04 11:06:38 -07:00
clients drm/fbdev-client: Skip DRM clients if modesetting is absent 2025-07-06 14:05:07 +03:00
display drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
etnaviv drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
exynos Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
fsl-dcu drm/fsl-dcu: move to devm_platform_ioremap_resource() usage 2025-03-06 12:37:33 -05:00
gma500 Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
gud drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
hisilicon pci-v6.16-changes 2025-06-04 11:26:17 -07:00
hyperv drm/hyperv: Add support for drm_panic 2025-06-05 14:59:56 +02:00
i915 drm fixes for 6.17-rc1 2025-08-08 06:48:14 +03:00
imagination drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
imx drm/imx: Add i.MX8qxp Display Controller KMS 2025-05-14 15:11:31 +08:00
ingenic drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
kmb
lib drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
lima drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
logicvc
loongson PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
mcde drm/mcde: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:23 +02:00
mediatek drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
meson drm-misc-next for 6.17: 2025-06-18 08:09:35 +10:00
mgag200 drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
msm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
mxsfb drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
nouveau drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
nova rust: macros: remove module!'s deprecated author key 2025-06-24 01:01:13 +02:00
omapdrm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
panel drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
panfrost drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
panthor drm/sched: Rename DRM_GPU_SCHED_STAT_NOMINAL to DRM_GPU_SCHED_STAT_RESET 2025-07-15 08:27:00 -03:00
pl111 drm: pl111: fix inconsistent indenting warning 2025-03-07 10:25:10 +01:00
qxl drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:05:58 +03:00
radeon amd-drm-next-6.17-2025-07-17: 2025-07-21 11:57:43 +10:00
renesas drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
rockchip drm/gem/afbc: Eliminate redundant drm_get_format_info() 2025-07-16 20:06:22 +03:00
scheduler drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
sitronix drm/sitronix/st7571-i2c: Add support for the ST7567 Controller 2025-07-16 12:12:39 +02:00
solomon drm/ssd130x: fix ssd132x_clear_screen() columns 2025-06-12 14:04:56 +02:00
sprd drm/sprd: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:01 -04:00
sti drm/sti: hda: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
stm drm/bridge: stm_lvds: convert to devm_drm_bridge_alloc() API 2025-05-21 13:40:09 +02:00
sun4i drm: sun4i: de33: mixer: add mixer configuration for the H616 2025-06-02 09:59:10 +02:00
sysfb drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
tegra drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
tests drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
tidss drm/tidss: oldi: convert to devm_drm_bridge_alloc() API 2025-07-18 14:55:57 +03:00
tilcdc
tiny drm/bochs: Add support for drm_panic 2025-06-23 11:30:18 +02:00
ttm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
tve200
udl drm/gem-shmem: Do not map s/g table by default 2025-07-07 15:23:41 +02:00
v3d Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
vboxvideo drm/vboxvideo: Remove unused hgsmi_cursor_position 2025-02-28 09:05:10 +01:00
vc4 drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
vgem drm/vgem/vgem_drv convert to use faux_device 2025-07-07 15:24:14 +02:00
virtio virtio, vhost: features, fixes 2025-08-01 14:17:48 -07:00
vkms drm/vkms: convert to use faux_device 2025-07-07 15:24:03 +02:00
vmwgfx drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
xe drm/xe/pf: Set VF LMEM BAR size 2025-08-14 10:30:53 -04:00
xen drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:05:58 +03:00
xlnx drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_atomic_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic_state_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic_uapi.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_auth.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_blend.c drm/doc: document front-buffer rendering 2025-04-30 23:35:00 +02:00
drm_bridge_helper.c drm/bridge: Include <linux/export.h> 2025-06-16 09:02:25 +02:00
drm_bridge.c drm/bridge: Pass down connector to drm bridge detect hook 2025-07-14 18:23:18 +03:00
drm_buddy.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_cache.c drm/gpu: Remove dead checks on wbinvd_on_all_cpus()'s return value 2025-07-10 13:07:26 +02:00
drm_client_event.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_client_modeset.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_client.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_color_mgmt.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_connector.c drm/connector: move HDR sink metadata to display info 2025-06-23 21:44:55 +03:00
drm_crtc_helper_internal.h
drm_crtc_helper.c drm: Remove redundant statement in drm_crtc_helper_set_mode() 2025-03-27 14:02:57 +02:00
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_debugfs_crc.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_debugfs.c drm: add debugfs support on per client-id basis 2025-07-04 15:59:06 +02:00
drm_displayid_internal.h drm/edid: Refactor DisplayID timing block structs 2025-04-16 20:40:51 +03:00
drm_displayid.c
drm_draw_internal.h
drm_draw.c Merge drm/drm-next into drm-misc-next 2025-04-07 14:35:48 +02:00
drm_drv.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c drm-misc-next for 6.17: 2025-06-27 09:58:05 +10:00
drm_eld.c
drm_encoder.c
drm_exec.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_fb_dma_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_fb_helper.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_dma.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_shmem.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_ttm.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_file.c drm: add debugfs support on per client-id basis 2025-07-04 15:59:06 +02:00
drm_flip_work.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_format_helper.c drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_format_internal.h drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_fourcc.c drm: Pass pixel_format+modifier directly to drm_get_format_info() 2025-07-16 20:01:13 +03:00
drm_framebuffer.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_atomic_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem_dma_helper.c Revert "drm/gem-dma: Use dma_buf from GEM object instance" 2025-07-17 12:26:19 +02:00
drm_gem_framebuffer_helper.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_shmem_helper.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_ttm_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem_vram_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gpusvm.c drm/pagemap: Add a populate_mm op 2025-06-26 18:00:09 +02:00
drm_gpuvm.c drm/gpuvm: Add locking helpers 2025-07-04 11:09:43 -07:00
drm_internal.h drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_ioc32.c
drm_ioctl.c
drm_kms_helper_common.c
drm_lease.c
drm_managed.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_mipi_dbi.c drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_mipi_dsi.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_mm.c
drm_mode_config.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c drm: Make passing of format info to drm_helper_mode_fill_fb_struct() mandatory 2025-07-16 20:12:35 +03:00
drm_modeset_lock.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_of.c
drm_pagemap.c drm/xe: Implement and use the drm_pagemap populate_mm op 2025-06-26 18:00:10 +02:00
drm_panel_backlight_quirks.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panel_orientation_quirks.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panel.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panic_qr.rs Rust changes for v6.17 2025-08-03 13:49:10 -07:00
drm_panic.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_pci.c drm: Do not include <linux/export.h> 2025-06-16 09:00:09 +02:00
drm_plane_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_plane.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_prime.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_print.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_privacy_screen_x86.c
drm_privacy_screen.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_probe_helper.c drm/probe-helper: Do not fail from drmm_kms_helper_poll_init() 2025-03-24 09:31:03 +01:00
drm_property.c
drm_rect.c
drm_self_refresh_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_simple_kms_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_suballoc.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_syncobj.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
drm_trace_points.c
drm_trace.h
drm_vblank_work.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_vblank.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
drm_vma_manager.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_writeback.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
Kconfig pci-v6.16-changes 2025-06-04 11:26:17 -07:00
Kconfig.debug drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00
Makefile drm/gpusvm, drm/pagemap: Move migration functionality to drm_pagemap 2025-06-26 18:00:07 +02:00