]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
skd: Submit requests to firmware before triggering the doorbell
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:12:46 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Sep 2017 08:57:20 +0000 (10:57 +0200)
commit2e41a42cf3d1fee9bfc636c5ca991e1112f7f695
treee63806a55363cb9e81dd921c2283cfa9f30d7241
parent3070df32bfdf79c544f80dd1e1181f7cb4760830
skd: Submit requests to firmware before triggering the doorbell

commit 5fbd545cd3fd311ea1d6e8be4cedddd0ee5684c7 upstream.

Ensure that the members of struct skd_msg_buf have been transferred
to the PCIe adapter before the doorbell is triggered. This patch
avoids that I/O fails sporadically and that the following error
message is reported:

(skd0:STM000196603:[0000:00:09.0]): Completion mismatch comp_id=0x0000 skreq=0x0400 new=0x0000

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/skd_main.c