]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: platform: Fix using devices in PM Domains
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 29 May 2018 17:15:28 +0000 (19:15 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 8 Jun 2018 16:24:37 +0000 (10:24 -0600)
commit173c5c33107decd11e8a2ec13fbd0bf4ca1c9bf6
tree290a0b4591d24973b2903e6128c9c7771ad32c2f
parent6b8ba1bc1a46e2fa29bc9d32d3ce615a881cf0a1
vfio: platform: Fix using devices in PM Domains

If a device is part of a PM Domain (e.g. power and/or clock domain), its
power state is managed using Runtime PM.  Without Runtime PM, the device
may not be powered up or clocked, causing subtle failures, crashes, or
system lock-ups when the device is accessed by the guest.

Fix this by adding Runtime PM support, powering the device when the VFIO
device is opened by the guest.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c