diff options
author | Oliver O'Halloran | 2019-01-31 02:53:47 +0100 |
---|---|---|
committer | Michael Ellerman | 2019-02-01 00:13:51 +0100 |
commit | 5a3840a470c41ec0b85cd36ca80370330656b163 (patch) | |
tree | 94a15b3b0f571febd9d1a039d31f1235ffc22d1e /drivers/gpu/drm/arm/hdlcd_drv.c | |
parent | powerpc/radix: Fix kernel crash with mremap() (diff) | |
download | kernel-qcow2-linux-5a3840a470c41ec0b85cd36ca80370330656b163.tar.gz kernel-qcow2-linux-5a3840a470c41ec0b85cd36ca80370330656b163.tar.xz kernel-qcow2-linux-5a3840a470c41ec0b85cd36ca80370330656b163.zip |
powerpc/papr_scm: Use the correct bind address
When binding an SCM volume to a physical address the hypervisor has the
option to return early with a continue token with the expectation that
the guest will resume the bind operation until it completes. A quirk of
this interface is that the bind address will only be returned by the
first bind h-call and the subsequent calls will return
0xFFFF_FFFF_FFFF_FFFF for the bind address.
We currently do not save the address returned by the first h-call. As a
result we will use the junk address as the base of the bound region if
the hypervisor decides to split the bind across multiple h-calls. This
bug was found when testing with very large SCM volumes where the bind
process would take more time than they hypervisor's internal h-call time
limit would allow. This patch fixes the issue by saving the bind address
from the first call.
Cc: stable@vger.kernel.org
Fixes: b5beae5e224f ("powerpc/pseries: Add driver for PAPR SCM regions")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/gpu/drm/arm/hdlcd_drv.c')
0 files changed, 0 insertions, 0 deletions