Thread (3 messages) 3 messages, 2 authors, 2017-07-18

Re: [PATCH 2/2] mtd: powernv_flash: Lock around concurrent access to OPAL

flat view

From: Stewart Smith <hidden>
Date: 2017-07-18 05:01:15

Cyril Bur [off-list ref] 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 <redacted>
---
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" :)

-- 
Stewart Smith
OPAL Architect, IBM.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help