diff options
author | Xu Yu <yu.a.xu@intel.com> | 2017-05-24 10:39:55 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-15 14:29:51 +0200 |
commit | 97f6ef6464dbd235a4d9bdfc05d949aab24fc927 (patch) | |
tree | ba2515571e9bf4b5f1a9dd69d7c7aaf18008e644 /drivers/leds/leds-aat1290.c | |
parent | nvme: move nr_reconnects to nvme_ctrl (diff) | |
download | linux-97f6ef6464dbd235a4d9bdfc05d949aab24fc927.tar.xz linux-97f6ef6464dbd235a4d9bdfc05d949aab24fc927.zip |
nvme-pci: remap BAR0 to cover admin CQ doorbell for large stride
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_configure_admin_queue().
This patch fixes this issue by remapping BAR0 before accessing
admin CQ doorbell if the initial mapping is not enough.
Signed-off-by: Xu Yu <yu.a.xu@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/leds/leds-aat1290.c')
0 files changed, 0 insertions, 0 deletions