summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-da9052.c
diff options
context:
space:
mode:
authorSumit.Saxena@avagotech.com <Sumit.Saxena@avagotech.com>2014-09-12 18:57:23 +0530
committerChristoph Hellwig <hch@lst.de>2014-09-16 09:14:23 -0700
commitdb4fc864ae2a27153f7f0c2af169ad4447cb82bc (patch)
tree5130089ac1139d7b60552a559d52bfb885ae2b13 /drivers/rtc/rtc-da9052.c
parent0756040952582c4e7c2f23ff2af882c0f0c7a516 (diff)
downloadblackbird-op-linux-db4fc864ae2a27153f7f0c2af169ad4447cb82bc.tar.gz
blackbird-op-linux-db4fc864ae2a27153f7f0c2af169ad4447cb82bc.zip
megaraid_sas : Update threshold based reply post host index register
Resending the patch. Addressed the review comments from Tomas Henzl. Current driver updates reply post host index to let firmware know that replies are processed, while returning from ISR function, only if there is no oustanding replies in reply queue. Driver will free the request frame immediately from ISR but reply post host index is not yet updated. It means freed request can be used by submission path and there may be a tight loop in request/reply path. In such condition, firmware may crash when it tries to post reply and there is no free reply post descriptor. Eventually two things needs to be change to avoid this issue. Increase reply queue depth (double than request queue) to accommodate worst case scenario. Update reply post host index to firmware once it reach to some pre-defined threshold value. This change will make sure that firmware will always have some buffer of reply descriptor and will never find empty reply descriptor in completion path. Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com> Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/rtc/rtc-da9052.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud