Re: [PATCH v2] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-23 Thread Christoph Hellwig
On Mon, May 22, 2017 at 01:09:21PM +0800, Xu Yu wrote: > The existing driver initially maps 8192 bytes of BAR0 which is > intended to cover doorbells of admin SQ and CQ. However, if a > large stride, e.g. 10, is used, the doorbell of admin CQ will > be out of 8192 bytes. Consequently, a page fault

[PATCH v2] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-21 Thread Xu Yu
The existing driver initially maps 8192 bytes of BAR0 which is intended to cover doorbells of admin SQ and CQ. However, if a large stride, e.g. 10, is used, the doorbell of admin CQ will be out of 8192 bytes. Consequently, a page fault will be raised when the admin CQ doorbell is accessed in nvme_c