diff options
| author | Lucas De Marchi <[email protected]> | 2022-02-08 07:01:40 +0000 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2022-02-09 07:21:28 +0000 |
| commit | f4044ca1967098b44bd2d569ddb99352b599551e (patch) | |
| tree | 6f6908b05435b6f1b8da38603e7c9de1a9471ded /drivers/gpu/drm/lima/lima_gem.c | |
| parent | Merge drm/drm-next into drm-intel-gt-next (diff) | |
| download | kernel-f4044ca1967098b44bd2d569ddb99352b599551e.tar.gz kernel-f4044ca1967098b44bd2d569ddb99352b599551e.zip | |
drm/i915/guc: Prepare for error propagation
Currently guc_mmio_reg_add() relies on having enough memory available in
the array to add a new slot. It uses
`GEM_BUG_ON(count >= regset->size);` to protect going above the
threshold.
In order to allow guc_mmio_reg_add() to handle the memory allocation by
itself, it must return an error in case of failures. Adjust return code
so this error can be propagated to the callers of guc_mmio_reg_add() and
guc_mmio_regset_init().
No intended change in behavior.
Cc: Matt Roper <[email protected]>
Cc: John Harrison <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions
