]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Move vm bind bo validation to a helper function
authorNirmoy Das <nirmoy.das@intel.com>
Tue, 30 Apr 2024 16:25:26 +0000 (18:25 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Mon, 6 May 2024 16:14:10 +0000 (18:14 +0200)
commite7192f0162a069bc80a519c087bd2a2f18597d52
tree2cd1b68b5c0b9b522dd36f4c69bc11283d3c3ff6
parentc462f81b695a7cfde5ba3b0ea1a52c6abaa52a0b
drm/xe: Move vm bind bo validation to a helper function

Move vm bind bo validation to a helper function to make the
xe_vm_bind_ioctl() more readable.

v2: Capture ret value of xe_vm_bind_ioctl_validate_bo(Matt B).
    Remove redundant coh_mode param.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Oak Zeng <oak.zeng@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240430162529.21588-3-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
drivers/gpu/drm/xe/xe_vm.c