qxl-wddm-dod: prevent failure of power on transition

On return from S3 the driver may receive failure when
calls DxgkCbAcquirePostDisplayOwnership. In general the
driver is not expected to use this method when returns
from S3 but it is not simple to distinguish between S3
and S4 power transition (possible, due to hybrid sleep).
Current commit avoids returning error on power transition
and obtains best known default video mode info instead.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Acked-by: Marek Kedzierski <mkedzier@redhat.com>
This commit is contained in:
Yuri Benditovich 2019-02-28 10:42:17 +02:00 committed by Frediano Ziglio
parent 7f81d670e4
commit 6c7100de51

View File

@ -5211,9 +5211,10 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint(TRACE_LEVEL_ERROR, ("QxlDod::AcquireDisplayInfo failed with status 0x%X Width = %d\n", DbgPrint(TRACE_LEVEL_WARNING, ("QxlDod::AcquireDisplayInfo failed with status 0x%X Width = %d\n",
Status, DispInfo.Width)); Status, DispInfo.Width));
return STATUS_UNSUCCESSFUL; DispInfo.Width = 0;
Status = STATUS_SUCCESS;
} }
if (DispInfo.Width == 0) if (DispInfo.Width == 0)