Re: [PATCH v2 4/5] accel/ethosu: propagate SRAM initialization errors
Rob Herring <[email protected]>
| Newsgroups | org.freedesktop.lists.dri-devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jul 17, 2026 at 02:11:44PM +0800, GuoHan Zhao wrote: > ethosu_sram_init() returns -ENOMEM if allocation from a declared SRAM > pool fails. ethosu_init() ignores the error after recording the pool size. > Probe then registers a device with a nonzero SRAM size and a zero sramphys > address, allowing jobs to program address zero for SRAM. > > Propagate the error and synchronously suspend the device before the probe > path releases the scheduler. If the SRAM is not available for some reason, then we should just set the SRAM size reported to 0 rather than failing probe. Rob