[PATCH v6 01/26] drm/gpuvm: Pass map arguments through a struct
Danilo Krummrich
dakr at kernel.org
Tue Aug 12 16:51:12 UTC 2025
On Thu Aug 7, 2025 at 6:43 PM CEST, Himal Prasad Ghimiray wrote:
> @@ -2102,17 +2106,16 @@ op_unmap_cb(const struct drm_gpuvm_ops *fn, void *priv,
> static int
> __drm_gpuvm_sm_map(struct drm_gpuvm *gpuvm,
> const struct drm_gpuvm_ops *ops, void *priv,
> - u64 req_addr, u64 req_range,
> - struct drm_gem_object *req_obj, u64 req_offset)
> + const struct drm_gpuvm_map_req *req)
> {
> struct drm_gpuva *va, *next;
> - u64 req_end = req_addr + req_range;
> + u64 req_end = req->op_map.va.addr + req->op_map.va.range;
Forgot to add, please extract all previous values from req, such that the below
diff is minimal and the code remiains easier to read..
More information about the dri-devel
mailing list