New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable OpRegion and graphics stolen memory for GVT-d #4360
Projects
Comments
[External_System_ID] ACRN-6044 |
wenlingz
pushed a commit
that referenced
this issue
Jan 17, 2020
Add 64M@0xDB000000 for GVT-d usage as below. Currently, use 64M for graphics stolen memory, gop driver and uos IGD driver will use this memory region. start end size Note [0x 00000000, 0x 000A0000] 640K [0x 000A0000, 0x 00100000] 384K [0x 00100000, 0x 7ff00000] 2G-1M lowmem-1M [0x 80000000, 0x 88000000] 128M [lowmem, +128M] [0x DB000000, 0x DF000000] 64MB graphics stolen memory for GVT-d [0x DF000000, 0x E0000000] 16M gvt [0x e0000000, 0x100000000] 512M [0x100000000, 0x140000000] 1G Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
wenlingz
pushed a commit
that referenced
this issue
Jan 17, 2020
gop driver and uos IGD driver will use graphics stolen memory(gsm) when enable GVT-d. This patch pass-thru gsm to uos gpu. After set physical GPU gsm size 64MB in host BIOS: Here is the steps: (1) set gsm gpa(guest physical addrress) 0xDB000000; (2) get gsm hpa(host physical addrress); (3) build EPT mapping for gsm. v1 -> v2: * initialize the EPT mapping for passthrough GPU gsm region in passthru_init instead of reading the BDSM config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
wenlingz
pushed a commit
that referenced
this issue
Jan 17, 2020
uos IGD driver need opregion when enable GVT-d. This patch pass-thru opregion to uos gpu. Here is the steps: (1) set opregion gpa(guest physical addrress) 0xDFFFD000; (2) get opregion hpa(host physical addrress); (3) build EPT mapping for opregion. v1 -> v2: * initialize the EPT mapping for passthrough GPU opregion region in passthru_init instead of reading the ASLS config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 22, 2020
Add 64M@0xDB000000 for GVT-d usage as below. Currently, use 64M for graphics stolen memory, gop driver and uos IGD driver will use this memory region. start end size Note [0x 00000000, 0x 000A0000] 640K [0x 000A0000, 0x 00100000] 384K [0x 00100000, 0x 7ff00000] 2G-1M lowmem-1M [0x 80000000, 0x 88000000] 128M [lowmem, +128M] [0x DB000000, 0x DF000000] 64MB graphics stolen memory for GVT-d [0x DF000000, 0x E0000000] 16M gvt [0x e0000000, 0x100000000] 512M [0x100000000, 0x140000000] 1G Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 22, 2020
gop driver and uos IGD driver will use graphics stolen memory(gsm) when enable GVT-d. This patch pass-thru gsm to uos gpu. After set physical GPU gsm size 64MB in host BIOS: Here is the steps: (1) set gsm gpa(guest physical addrress) 0xDB000000; (2) get gsm hpa(host physical addrress); (3) build EPT mapping for gsm. v1 -> v2: * initialize the EPT mapping for passthrough GPU gsm region in passthru_init instead of reading the BDSM config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 22, 2020
uos IGD driver need opregion when enable GVT-d. This patch pass-thru opregion to uos gpu. Here is the steps: (1) set opregion gpa(guest physical addrress) 0xDFFFD000; (2) get opregion hpa(host physical addrress); (3) build EPT mapping for opregion. v1 -> v2: * initialize the EPT mapping for passthrough GPU opregion region in passthru_init instead of reading the ASLS config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 23, 2020
Add 64M@0xDB000000 for GVT-d usage as below. Currently, use 64M for graphics stolen memory, gop driver and uos IGD driver will use this memory region. start end size Note [0x 00000000, 0x 000A0000] 640K [0x 000A0000, 0x 00100000] 384K [0x 00100000, 0x 7ff00000] 2G-1M lowmem-1M [0x 80000000, 0x 88000000] 128M [lowmem, +128M] [0x DB000000, 0x DF000000] 64MB graphics stolen memory for GVT-d [0x DF000000, 0x E0000000] 16M gvt [0x e0000000, 0x100000000] 512M [0x100000000, 0x140000000] 1G Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 23, 2020
gop driver and uos IGD driver will use graphics stolen memory(gsm) when enable GVT-d. This patch pass-thru gsm to uos gpu. After set physical GPU gsm size 64MB in host BIOS: Here is the steps: (1) set gsm gpa(guest physical addrress) 0xDB000000; (2) get gsm hpa(host physical addrress); (3) build EPT mapping for gsm. v1 -> v2: * initialize the EPT mapping for passthrough GPU gsm region in passthru_init instead of reading the BDSM config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 23, 2020
uos IGD driver need opregion when enable GVT-d. This patch pass-thru opregion to uos gpu. Here is the steps: (1) set opregion gpa(guest physical addrress) 0xDFFFD000; (2) get opregion hpa(host physical addrress); (3) build EPT mapping for opregion. v1 -> v2: * initialize the EPT mapping for passthrough GPU opregion region in passthru_init instead of reading the ASLS config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: projectacrn#4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 23, 2020
The IOMMU for GPU doesn't support the snoop_control. So the iommu_snoop is disabled. This can fix the issue of consolefb in SOS. Signed-off-by: Junming Liu <junming.liu@intel.com> Tracked-On: projectacrn#4360
xinyunliu
pushed a commit
to xinyunliu/acrn-hypervisor
that referenced
this issue
Jan 23, 2020
Allow the IOMMU for GPU PCI device. Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Junming Liu <junming.liu@intel.com> Tracked-On: projectacrn#4360
wenlingz
pushed a commit
that referenced
this issue
Jan 23, 2020
Add 64M@0xDB000000 for GVT-d usage as below. Currently, use 64M for graphics stolen memory, gop driver and uos IGD driver will use this memory region. start end size Note [0x 00000000, 0x 000A0000] 640K [0x 000A0000, 0x 00100000] 384K [0x 00100000, 0x 7ff00000] 2G-1M lowmem-1M [0x 80000000, 0x 88000000] 128M [lowmem, +128M] [0x DB000000, 0x DF000000] 64MB graphics stolen memory for GVT-d [0x DF000000, 0x E0000000] 16M gvt [0x e0000000, 0x100000000] 512M [0x100000000, 0x140000000] 1G Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
wenlingz
pushed a commit
that referenced
this issue
Jan 23, 2020
gop driver and uos IGD driver will use graphics stolen memory(gsm) when enable GVT-d. This patch pass-thru gsm to uos gpu. After set physical GPU gsm size 64MB in host BIOS: Here is the steps: (1) set gsm gpa(guest physical addrress) 0xDB000000; (2) get gsm hpa(host physical addrress); (3) build EPT mapping for gsm. v1 -> v2: * initialize the EPT mapping for passthrough GPU gsm region in passthru_init instead of reading the BDSM config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
wenlingz
pushed a commit
that referenced
this issue
Jan 23, 2020
uos IGD driver need opregion when enable GVT-d. This patch pass-thru opregion to uos gpu. Here is the steps: (1) set opregion gpa(guest physical addrress) 0xDFFFD000; (2) get opregion hpa(host physical addrress); (3) build EPT mapping for opregion. v1 -> v2: * initialize the EPT mapping for passthrough GPU opregion region in passthru_init instead of reading the ASLS config space v2 -> v3: * add EPT unmap when deinit * change some micro name Tracked-On: #4360 Signed-off-by: Junming Liu <junming.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Liu XinYun <xinyun.liu@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
wenlingz
pushed a commit
that referenced
this issue
Jan 23, 2020
The IOMMU for GPU doesn't support the snoop_control. So the iommu_snoop is disabled. This can fix the issue of consolefb in SOS. Signed-off-by: Junming Liu <junming.liu@intel.com> Tracked-On: #4360
wenlingz
pushed a commit
that referenced
this issue
Jan 23, 2020
Allow the IOMMU for GPU PCI device. Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Junming Liu <junming.liu@intel.com> Tracked-On: #4360
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enable OpRegion and graphics stolen memory for GVT-d
The text was updated successfully, but these errors were encountered: