Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Prepare for error propagation

2022-02-08 Thread Daniele Ceraolo Spurio
On 2/7/2022 11:01 PM, Lucas De Marchi wrote: 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

[Intel-gfx] [PATCH 1/2] drm/i915/guc: Prepare for error propagation

2022-02-07 Thread Lucas De Marchi
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