WSL2-Linux-Kernel/drivers/gpu/drm
Philip Yang 4cc9092827 drm/prime: Support page array >= 4GB
commit b671cd3d456315f63171a670769356a196cf7fd0 upstream.

Without unsigned long typecast, the size is passed in as zero if page
array size >= 4GB, nr_pages >= 0x100000, then sg list converted will
have the first and the last chunk lost.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230821200201.24685-1-Philip.Yang@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 08:55:07 +01:00
..
amd Revert "drm/amd: flush any delayed gfxoff on suspend entry" 2024-02-23 08:55:05 +01:00
arm drm/komeda: drop all currently held locks if deadlock happens 2023-11-28 16:56:16 +00:00
armada drm/armada: Fix off-by-one error in armada_overlay_get_property() 2023-09-19 12:22:38 +02:00
aspeed drm/aspeed: Fix vga_pw sysfs output 2021-12-01 09:04:47 +01:00
ast drm/ast: Fix DRAM init on AST2200 2023-09-19 12:22:55 +02:00
atmel-hlcdc
bridge drm/bridge: nxp-ptn3460: simplify some error checking 2024-02-23 08:54:32 +01:00
etnaviv drm/etnaviv: fix dumping of active MMU context 2023-09-19 12:22:37 +02:00
exynos drm/exynos: Call drm_atomic_helper_shutdown() at shutdown/unbind time 2024-02-23 08:54:48 +01:00
fsl-dcu drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid() 2022-12-31 13:14:44 +01:00
gma500 drm/gma500: Fix BUG: sleeping function called from invalid context errors 2022-09-28 11:11:55 +02:00
gud
hisilicon drm/hisilicon: Add depends on MMU 2022-09-28 11:11:50 +02:00
hyperv drm/hyperv: Don't overwrite dirt_needed value set by host 2023-05-17 11:50:15 +02:00
i2c
i810
i915 drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern 2024-01-15 18:51:09 +01:00
imx drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning 2023-08-11 15:13:59 +02:00
ingenic drm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init() 2023-01-12 11:59:00 +01:00
kmb drm/kmb: Fix for build errors with Warray-bounds 2022-02-08 18:34:09 +01:00
lib
lima drm/lima/lima_drv: Add missing unwind goto in lima_pdev_probe() 2023-05-11 23:00:23 +09:00
mcde drm/mcde: Fix refcount leak in mcde_dsi_bind 2022-08-17 14:23:23 +02:00
mediatek drm/mediatek: Add spinlock for setting vblank event in atomic_begin 2023-12-20 15:17:38 +01:00
meson drm/meson: fix memory leak on ->hpd_notify callback 2023-10-06 13:18:24 +02:00
mga
mgag200 drm/mgag200: Fix PLL setup for G200_SE_A rev >=4 2023-01-12 11:59:20 +01:00
msm drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case 2024-02-23 08:54:56 +01:00
mxsfb drm: mxsfb: DRM_MXSFB should depend on ARCH_MXS || ARCH_MXC 2023-03-10 09:39:19 +01:00
nouveau nouveau/vmm: don't set addr on the fail path to avoid warning 2024-02-23 08:54:26 +01:00
omapdrm Revert "drm/omapdrm: Annotate dma-fence critical section in commit path" 2024-01-25 14:52:41 -08:00
panel drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33] 2024-02-23 08:54:35 +01:00
panfrost drm/panfrost: Fix the panfrost_mmu_map_fault_addr() error path 2023-04-13 16:48:25 +02:00
pl111 drm:pl111: Add of_node_put() when breaking out of for_each_available_child_of_node() 2022-10-26 12:34:51 +02:00
qxl drm/qxl: prevent memory leak 2023-11-28 16:56:21 +00:00
r128 drm/r128: fix build for UML 2021-10-15 15:05:10 +10:00
radeon gpu/drm/radeon: fix two memleaks in radeon_vm_init 2024-01-25 14:52:43 -08:00
rcar-du drm/rcar: stop using 'imply' for dependencies 2023-06-09 10:32:34 +02:00
rockchip drm/rockchip: vop: Fix color for RGB888/BGR888 format on VOP full 2023-12-03 07:31:21 +01:00
savage
scheduler
selftests drm/selftests/test-drm_dp_mst_helper: Fix memory leak in sideband_msg_req_encode_decode 2022-04-08 14:23:24 +02:00
shmobile
sis
sti drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid() 2022-12-31 13:14:44 +01:00
stm stm: ltdc: fix two incorrect NULL checks on list iterator 2022-06-09 10:23:28 +02:00
sun4i drm: sun4i_tcon: use devm_clk_get_enabled in `sun4i_tcon_init_clocks` 2023-07-23 13:46:59 +02:00
tdfx
tegra drm/tegra: dpaux: Fix incorrect return value of platform_get_irq 2023-09-19 12:22:38 +02:00
tidss drm/tidss: Fix atomic_flush check 2024-02-23 08:54:32 +01:00
tilcdc drm/tilcdc: Fix irq free on unload 2024-01-25 14:52:41 -08:00
tiny drm: gm12u320: Fix the timeout usage for usb_bulk_msg() 2023-09-23 11:10:01 +02:00
ttm drm/ttm: Reorder sys manager cleanup step 2023-11-08 17:26:47 +01:00
tve200
udl drm/udl: Restore display mode on resume 2022-10-26 12:34:24 +02:00
v3d drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
vboxvideo drm/vboxvideo: fix a NULL vs IS_ERR() check 2022-01-27 11:03:13 +01:00
vc4 drm/vc4: hdmi: Correct interlaced timings again 2023-03-10 09:39:21 +01:00
vgem drm/vgem: add missing mutex_destroy 2023-05-11 23:00:20 +09:00
via
virtio drm/virtio: Fix error code in virtio_gpu_object_shmem_init() 2023-03-11 13:57:40 +01:00
vkms drm/vkms: Fix null-ptr-deref in vkms_release() 2023-03-10 09:39:20 +01:00
vmwgfx drm: vmwgfx_surface.c: copy user-array safely 2023-11-28 16:56:16 +00:00
xen
xlnx drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask 2023-09-19 12:22:38 +02:00
zte
Kconfig Revert "drm: fb_helper: fix CONFIG_FB dependency" 2021-11-21 13:44:12 +01:00
Makefile
drm_agpsupport.c
drm_aperture.c drm/aperture: Run fbdev removal before internal helpers 2022-07-21 21:24:44 +02:00
drm_atomic.c drm/atomic: Fix potential use-after-free in nonblocking commits 2023-07-23 13:47:58 +02:00
drm_atomic_helper.c drm/atomic-helper: relax unregistered connector check 2023-10-25 11:58:58 +02:00
drm_atomic_state_helper.c
drm_atomic_uapi.c drm/atomic: Don't pollute crtc_state->mode_blob with error pointers 2022-02-23 12:03:08 +01:00
drm_auth.c
drm_blend.c
drm_bridge.c drm/bridge: Avoid uninitialized variable warning 2022-10-26 12:34:50 +02:00
drm_bridge_connector.c drm/bridge_connector: enable HPD by default if supported 2022-06-09 10:22:44 +02:00
drm_bufs.c
drm_cache.c
drm_client.c
drm_client_modeset.c drm/client: Fix memory leak in drm_client_modeset_probe 2023-07-27 08:46:55 +02:00
drm_color_mgmt.c
drm_connector.c drm/connector: send hotplug uevent on connector cleanup 2023-01-12 11:58:59 +01:00
drm_context.c
drm_crtc.c drm/crtc: fix uninitialized variable use 2024-01-25 14:52:31 -08:00
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_damage_helper.c
drm_debugfs.c
drm_debugfs_crc.c
drm_displayid.c drm/displayid: add displayid_get_header() and check bounds better 2023-05-24 17:36:43 +01:00
drm_dma.c
drm_dp_aux_bus.c drm/dp: Export symbol / kerneldoc fixes for DP AUX bus 2022-08-17 14:23:16 +02:00
drm_dp_aux_dev.c
drm_dp_cec.c
drm_dp_dual_mode_helper.c drm/display: Don't assume dual mode adaptors support i2c sub-addressing 2022-12-02 17:41:00 +01:00
drm_dp_helper.c drm/dp: Don't rewrite link config when setting phy test pattern 2022-10-26 12:35:42 +02:00
drm_dp_mst_topology.c drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper() 2023-11-08 17:26:37 +01:00
drm_dp_mst_topology_internal.h
drm_drv.c drm/drv: propagate errors from drm_modeset_register_all() 2024-01-25 14:52:42 -08:00
drm_dsc.c
drm_dumb_buffers.c
drm_edid.c drm/edid: fix AVI infoframe aspect ratio handling 2023-03-10 09:40:14 +01:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c drm/fb-helper: set x/yres_virtual in drm_fb_helper_check_var 2023-05-01 08:23:23 +09:00
drm_file.c drm/drm_file: fix use of uninitialized variable 2024-02-23 08:54:46 +01:00
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats 2023-03-10 09:39:19 +01:00
drm_framebuffer.c drm/framebuffer: Fix use of uninitialized variable 2024-02-23 08:54:47 +01:00
drm_gem.c drm/gem: Fix GEM handle release errors 2022-09-15 11:30:01 +02:00
drm_gem_atomic_helper.c
drm_gem_cma_helper.c drm/cma-helper: Set VM_DONTEXPAND for mmap 2022-02-23 12:03:09 +01:00
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap() 2023-08-16 18:21:58 +02:00
drm_gem_ttm_helper.c drm/ttm: fix locking in vmap/vunmap TTM GEM helpers 2022-07-29 17:25:05 +02:00
drm_gem_vram_helper.c drm/vram-helper: fix function names in vram helper doc 2023-07-23 13:46:58 +02:00
drm_hashtab.c
drm_hdcp.c
drm_internal.h drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker() 2022-11-26 09:24:37 +01:00
drm_ioc32.c
drm_ioctl.c drm: Prevent drm_copy_field() to attempt copying a NULL pointer 2022-10-26 12:35:38 +02:00
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c drm/mipi-dbi: align max_chunk to 2 in spi_transfer 2022-08-17 14:23:17 +02:00
drm_mipi_dsi.c drm/mipi-dsi: Fix detach call without attach 2024-02-23 08:54:47 +01:00
drm_mm.c
drm_mode_config.c drm: Fix potential null-ptr-deref due to drmm_mode_config_init() 2023-03-10 09:39:19 +01:00
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c drm/bridge: Add a function to abstract away panels 2022-08-17 14:23:24 +02:00
drm_panel.c
drm_panel_orientation_quirks.c drm: panel-orientation-quirks: Add quirk for One Mix 2S 2023-10-25 11:59:01 +02:00
drm_pci.c
drm_plane.c drm: Don't unref the same fb many times by mistake due to deadlock handling 2024-02-23 08:54:32 +01:00
drm_plane_helper.c drm/plane-helper: fix uninitialized variable reference 2021-11-18 19:17:00 +01:00
drm_prime.c drm/prime: Support page array >= 4GB 2024-02-23 08:55:07 +01:00
drm_print.c
drm_probe_helper.c drm/probe-helper: Cancel previous job before starting new one 2023-05-11 23:00:20 +09:00
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_syncobj.c drm/syncobj: fix DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE 2023-11-20 11:08:30 +01:00
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c