Skip to content
Commit e98d6209 authored by Maaz Mombasawala's avatar Maaz Mombasawala Committed by Greg Kroah-Hartman
Browse files

drm/vmwgfx: Refactor resource validation hashtable to use linux/hashtable implementation.



[ Upstream commit 9e931f2e ]

Vmwgfx's hashtab implementation needs to be replaced with linux/hashtable
to reduce maintenence burden.
As part of this effort, refactor the res_ht hashtable used for resource
validation during execbuf execution to use linux/hashtable implementation.
This also refactors vmw_validation_context to use vmw_sw_context as the
container for the hashtable, whereas before it used a vmwgfx_open_hash
directly. This makes vmw_validation_context less generic, but there is
no functional change since res_ht is the only instance where validation
context used a hashtable in vmwgfx driver.

Signed-off-by: default avatarMaaz Mombasawala <mombasawalam@vmware.com>
Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221022040236.616490-6-zack@kde.org


Stable-dep-of: a309c719 ("drm/vmwgfx: Remove rcu locks from user resources")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c00e42f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment