linux-stable/drivers/gpu/drm/vmwgfx
Deepak R Varma aec70c3912 drm/vmwgfx: replace idr_init() by idr_init_base()
idr_init() uses base 0 which is an invalid identifier for this driver.
The idr_alloc for this driver uses 1 as start value for ID range. The
new function idr_init_base allows IDR to set the ID lookup from base 1.
This avoids all lookups that otherwise starts from 0 since 0 is always
unused / available.

References: commit 6ce711f275 ("idr: Make 1-based IDRs more efficient")

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201105190718.GA89863@localhost
2021-04-29 14:54:54 -04:00
..
device_include
Kconfig drm/vmwgfx: Make console emulation depend on DRM_FBDEV_EMULATION 2021-04-26 10:45:30 +02:00
Makefile drm/vmwgfx: Make console emulation depend on DRM_FBDEV_EMULATION 2021-04-26 10:45:30 +02:00
ttm_lock.c
ttm_lock.h
ttm_memory.c drm/ttm: fix error handling if no BO can be swapped out v4 2021-04-23 14:08:04 +02:00
ttm_memory.h drm/ttm: move memory accounting into vmwgfx v4 2021-02-09 17:27:33 +01:00
ttm_object.c drm/vmwgfx: replace idr_init() by idr_init_base() 2021-04-29 14:54:54 -04:00
ttm_object.h drm/ttm: move memory accounting into vmwgfx v4 2021-02-09 17:27:33 +01:00
vmwgfx_binding.c drm/vmwgfx/vmwgfx_binding: Provide some missing param descriptions and remove others 2021-01-19 14:19:07 -05:00
vmwgfx_binding.h
vmwgfx_blit.c drm/ttm: device naming cleanup 2021-01-21 14:51:45 +01:00
vmwgfx_bo.c drm/ttm: remove special handling for non GEM drivers 2021-04-23 14:42:43 +02:00
vmwgfx_cmd.c drm/vmwgfx/vmwgfx_fifo: Demote non-conformant kernel-doc header 2021-01-19 14:18:38 -05:00
vmwgfx_cmdbuf.c drm/vmwgfx/vmwgfx_cmdbuf: Fix misnaming of 'headers' should be plural 2021-01-19 14:19:05 -05:00
vmwgfx_cmdbuf_res.c drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret' 2021-01-19 14:18:47 -05:00
vmwgfx_context.c drm/vmwgfx/vmwgfx_context: Demote kernel-doc abuses 2021-01-19 14:18:42 -05:00
vmwgfx_cotable.c drm/vmwgfx/vmwgfx_cotable: Fix a couple of simple documentation problems 2021-01-19 14:19:06 -05:00
vmwgfx_drv.c drm/vmwgfx: replace idr_init() by idr_init_base() 2021-04-29 14:54:54 -04:00
vmwgfx_drv.h drm/vmwgfx: Make console emulation depend on DRM_FBDEV_EMULATION 2021-04-26 10:45:30 +02:00
vmwgfx_execbuf.c gpu: drm: vmwgfx: convert comma to semicolon 2021-04-29 14:54:54 -04:00
vmwgfx_fb.c drm/vmwgfx: Cleanup the cmd/fifo split 2021-01-14 12:15:49 -05:00
vmwgfx_fence.c drm/vmwgfx/vmwgfx_fence: Add, remove and demote various documentation params/headers 2021-01-19 14:18:41 -05:00
vmwgfx_fence.h
vmwgfx_gmr.c drm/vmwgfx: use min_t to replace min 2021-04-29 14:54:54 -04:00
vmwgfx_gmrid_manager.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_ioctl.c drm/vmwgfx/vmwgfx_ioctl: Provide missing '@' sign required by kernel-doc 2021-01-19 14:18:35 -05:00
vmwgfx_irq.c drm/vmwgfx: Remove the throttling code 2021-01-14 12:14:10 -05:00
vmwgfx_kms.c drm/atomic: Pass the full state to planes atomic disable and update 2021-02-25 08:05:28 +01:00
vmwgfx_kms.h drm/atomic: Pass the full state to planes atomic disable and update 2021-02-25 08:05:28 +01:00
vmwgfx_ldu.c drm: Use state helper instead of the plane state pointer 2021-02-25 08:05:28 +01:00
vmwgfx_mob.c drm/vmwgfx: Make sure we unpin no longer needed buffers 2021-01-20 17:04:56 -05:00
vmwgfx_msg.c drm/vmwgfx/vmwgfx_msg: Fix misspelling of 'msg' 2021-01-19 14:19:08 -05:00
vmwgfx_msg.h
vmwgfx_overlay.c drm/vmwgfx/vmwgfx_overlay: Demote kernel-doc abuses to standard comment blocks 2021-01-19 14:18:40 -05:00
vmwgfx_page_dirty.c mm: use is_cow_mapping() across tree where proper 2021-03-13 11:27:30 -08:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: clean up vmw_move_notify v2 2021-03-16 16:30:25 +01:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c drm: Use state helper instead of the plane state pointer 2021-02-25 08:05:28 +01:00
vmwgfx_shader.c drm/vmwgfx/vmwgfx_shader: Demote kernel-doc abuses and fix-up worthy headers 2021-01-19 14:18:45 -05:00
vmwgfx_simple_resource.c
vmwgfx_so.c drm/vmwgfx: Fix a typo 2021-04-29 14:54:54 -04:00
vmwgfx_so.h
vmwgfx_stdu.c drm: Use state helper instead of the plane state pointer 2021-02-25 08:05:28 +01:00
vmwgfx_streamoutput.c drm/vmwgfx: Cleanup the cmd/fifo split 2021-01-14 12:15:49 -05:00
vmwgfx_surface.c drm/vmwgfx/vmwgfx_surface: Fix some kernel-doc related issues 2021-01-19 14:18:44 -05:00
vmwgfx_thp.c drm/ttm: move the page_alignment into the BO v2 2021-04-23 16:23:02 +02:00
vmwgfx_ttm_buffer.c drm/vmwgfx: clean up vmw_move_notify v2 2021-03-16 16:30:25 +01:00
vmwgfx_ttm_glue.c mm: use is_cow_mapping() across tree where proper 2021-03-13 11:27:30 -08:00
vmwgfx_va.c
vmwgfx_validation.c drm/vmwgfx/vmwgfx_validation: Use flexible-array member instead of zero-length array 2021-04-29 14:54:54 -04:00
vmwgfx_validation.h