diff options
author | Vipin K Parashar <vipin@linux.vnet.ibm.com> | 2016-06-06 14:56:37 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-05 15:14:13 +1000 |
commit | e761222593a1ae932cddbc81239b6a7cd98ddb70 (patch) | |
tree | cdbbcbe70925b552848b7f281bdb1fa4dfd532cd /.gitignore | |
parent | 5fc07eaa4ac13fbbf188072c58e0202b34aa7f35 (diff) | |
download | skiboot-e761222593a1ae932cddbc81239b6a7cd98ddb70.zip skiboot-e761222593a1ae932cddbc81239b6a7cd98ddb70.tar.gz skiboot-e761222593a1ae932cddbc81239b6a7cd98ddb70.tar.bz2 |
hw/xscom: Reset XSCOM engine after finite number of retries when busy
OPAL retries XSCOM read/write operations forever till it succeeds.
This can cause XSCOM ops to hang forever when XSCOM engine remains
busy for some reason. Changed it to retry XSCOM operations only
XSCOM_BUSY_MAX_RETRIES number of times instead of retrying forever.
Also added logic to reset XSCOM engine after XSCOM_BUSY_RESET_THRESHOLD
number of retries to unblock it when it remains busy.
Cc: stable # 9c2d82394fd2 ("xscom: Return OPAL_WRONG_STATE on XSCOM ops..")
Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com>
Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions