[PATCH 2/2] mtd: powernv_flash: Lock around concurrent access to OPAL
stewart at linux.vnet.ibm.com
Tue Jul 18 15:01:03 AEST 2017
Cyril Bur <cyrilbur at gmail.com> writes:
> OPAL can only manage one flash access at a time and will return an
> OPAL_BUSY error for each concurrent access to the flash. The simplest
> way to prevent this from happening is with a mutex.
> Signed-off-by: Cyril Bur <cyrilbur at gmail.com>
> This is to address https://github.com/open-power/skiboot/issues/80
part of me wants to say "let's only take the lock if we ever get back
OPAL_BUSY" or something like that (have a DT property to say the flash
supports concurrent ops?)
Although the other part of me says "you're overthinking this, get back
to the work you're meant to be doing" :)
OPAL Architect, IBM.
More information about the Linuxppc-dev