]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging/rdma/hfi1: Check interrupt registers mapping
authorKaike Wan <kaike.wan@intel.com>
Fri, 26 Feb 2016 21:33:23 +0000 (13:33 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:46 +0000 (20:45 -0500)
commit24487dd39cb24c23560c2dc726c6d3375f42a697
tree260aeeefd4fc7f240a740ecf628ddd32e595c76b
parentbf400235f392eabf60c865c95da823727cb00def
staging/rdma/hfi1: Check interrupt registers mapping

This patch tests the interrupt registers when the driver has no access to
its upstream component. In this case, it is highly likely that it is
running in a virtual machine (eg, Qemu-kvm guest). If the interrupt
registers are not mapped properly by the virtual machine monitor, an
error message will be printed and the probing will be terminated. This
will help the user identify the issue. On the other hand, if the driver
is running in a host or has access to its upstream component in some
other VM, it will do nothing.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c