[PATCH v2] drm/i915/gvt: Add support for opregion virtualization

Zhang, Xiaolin xiaolin.zhang at intel.com
Mon Sep 4 07:37:17 UTC 2017


On 09/04/2017 10:38 AM, Zhenyu Wang wrote:
> On 2017.09.04 18:04:42 +0800, Xiaolin Zhang wrote:
>> opregion emulated with a copy from host which leads to some display
>> bugs such as guest resolution adjustment failure due to host opregion
>> fail to claim port D support. with a fake opregion table provided
>> to fully emulate opregion to meet guest port requirment.
>>
>> v1 - initial patch
>> v2 - reforamt opregion arrary with 0x02x output
>>
> We need to publish the program you use to generate this virtual opregion
> somewhere, maybe igt tool, so can review the setting and make future modification
> able to do.
Yes, I used the igt tool to dump one nuci7 opregion and save it as a
binary array.
>
> Anyway still think to only provide virtual VBT but ignore all optional
> mailbox support. How about your test with guest OSes?
I will continue to investigate it. the VBT is part of opregion and
driver will parse opregion region to get all
information including VBT during intel_opregion_setup and later directly
used by intel_bios_init for port configuration.

test was passed under NUC i5 with guest OS 16.04 replaced kernel with
4.12 stable branch kernel. I will test it on BDW platform.

BTW,  what kind of configuration test must be done?
>> +/*
>> + * emulated OpRegion info: version 1040, support Mailbox from 1 to 4.
>> + * emulated VBT info: VBT signature SKYLAKE, version 1.0 and BDB version 206,
>> + * 3 child devices with DP-B, DP-C, DP-D
>> + *
>> + */
> What's the port active setting?
>
There are 3 active port configuration as below:

        Device type: 0x60d6 (DisplayPort/HDMI/DVI)
            DisplayPort output
        Port: 0x07 (DP-B)
        Device type: 0x60d6 (DisplayPort/HDMI/DVI)
            DisplayPort output
        Port: 0x08 (DP-C)
        Device type: 0x60d6 (DisplayPort/HDMI/DVI)
            DisplayPort output
        Port: 0x09 (DP-D)


BRs

Xiaolinn



More information about the intel-gvt-dev mailing list