Message ID | 20230829090020.5417-1-ranjan.kumar@broadcom.com |
---|---|
Headers | show |
Series | mpt3sas: Additional retries when reading specific registers | expand |
Ranjan, > Doorbell and Host diagnostic registers could return 0 even > after 3 retries and that leads to occasional resets of the > controllers, hence increased the retry count to thirty. Applied to 6.6/scsi-staging, thanks!
On Tue, 29 Aug 2023 14:30:18 +0530, Ranjan Kumar wrote: > Doorbell and Host diagnostic registers could return 0 even > after 3 retries and that leads to occasional resets of the > controllers, hence increased the retry count to thirty. > > v1->v2: > -added a new patch for volatile as suggested by Greg KH. > -renamed macro as suggested by Damien Le Moal. > > [...] Applied to 6.6/scsi-queue, thanks! [1/2] mpt3sas: Perform additional retries if Doorbell read returns 0 https://git.kernel.org/mkp/scsi/c/4ca10f3e3174 [2/2] mpt3sas: Removing volatile qualifier https://git.kernel.org/mkp/scsi/c/0854065092a7
The loop in _base_readl_ext_retry is wrong, it runs 30 times regardless of the result from readl. This results in the value being incorrect and the device being reset nearly continuously. if (ret_val == 0) continue; should be if (ret_val != 0) break; On 8/30/23 18:39, Martin K. Petersen wrote: > Ranjan, > >> Doorbell and Host diagnostic registers could return 0 even >> after 3 retries and that leads to occasional resets of the >> controllers, hence increased the retry count to thirty. > Applied to 6.6/scsi-staging, thanks! >