drm/i915/kvmgt: Fix compilation error
PATCH 1/1 drm/i915/kvmgt: Fix compilation error
gvt_pin_guest_page extracted some of the gvt_dma_map_page functionality:
commit 79e542f5af79 ("drm/i915/kvmgt: Support setting dma map for huge pages")
And yet, part of it was reintroduced in:
commit 39b4cbadb9a9 ("drm/i915/kvmgt: Check the pfn got from vfio_pin_pages")
Causing kvmgt part to no longer build. Let's remove it.
--- drivers/gpu/drm/i915/gvt/kvmgt.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/i915/gvt/kvmgt.c +0 -6
@@ -185,12 +185,6 @@ static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn,if (ret)return ret; -if (!pfn_valid (pfn)) { -gvt_vgpu_err ("pfn 0x%lx is not mem backed\n" , pfn); -vfio_unpin_pages (mdev_dev (vgpu->vdev.mdev), &gfn,1 ); -return -EINVAL ; - } -/* Setup DMA mapping. */ *dma_addr =dma_map_page (dev, page,0 , size,PCI_DMA_BIDIRECTIONAL ); ret =dma_mapping_error (dev, *dma_addr);
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915/kvmgt: Fix compilation error
== Series Details ==
== Series Details ==
Series: drm/i915/kvmgt: Fix compilation error
URL : https://patchwork.freedesktop.org/series/46413/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
930c096d74cb drm/i915/kvmgt: Fix compilation error
-:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#10:
commit 79e542f5af79 ("drm/i915/kvmgt: Support setting dma map for huge pages")total: 0 errors, 1 warnings, 0 checks, 12 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Michał Winiarski (2018-07-12 16:53:30)
Quoted 5 lines
gvt_pin_guest_pageextracted some of thegvt_dma_map_pagefunctionality:
commit79e542f5af79("drm/i915/kvmgt: Support setting dma map for huge pages")And yet, part of it was reintroduced in:
commit39b4cbadb9a9("drm/i915/kvmgt: Check the pfn got fromvfio_pin_pages")
As you pointed out on irc, this is a silent merge conflict between gvt-fixes and gvt-next.
I've hopefully expunged it from drm-tip (probably not in the preferred manner) and let's hope it disappears neatly on a future backmerge. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/kvmgt: Fix compilation error
In reply to Michał Winiarski== Series Details ==
== Series Details ==
Series: drm/i915/kvmgt: Fix compilation error
URL : https://patchwork.freedesktop.org/series/46413/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4477 -> Patchwork_9635 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/46413/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_9635 that come from known issues:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_suspend@basic-s4-devices:
{fi-kbl-8809g}: INCOMPLETE (fdo#107139) -> DMESG-WARN (fdo#107139) {name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139
== Participating hosts (47 -> 41) ==
Missing (6): fi-ilk-m540 fi-bxt-dsi fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600
== Build changes ==
* Linux: CI_DRM_4477 -> Patchwork_9635
CI_DRM_4477: 9d5886daf8cf0b0624c1d7b04e51c55fbca1684b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4553: 9d25d62bb6ff62694e5226b02d79075eab304402 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9635: 930c096d74cb6dcf6d82071bea66d24cf2f2667a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
930c096d74cb drm/i915/kvmgt: Fix compilation error
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9635/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Micha?? Winiarski
gvt_pin_guest_pageextracted some of thegvt_dma_map_pagefunctionality:
commit79e542f5af79("drm/i915/kvmgt: Support setting dma map for huge pages")And yet, part of it was reintroduced in:
commit39b4cbadb9a9("drm/i915/kvmgt: Check the pfn got fromvfio_pin_pages")Causing kvmgt part to no longer build. Let's remove it.
yeah, this change is correct. I found it too when merging against upstreams for gvt staging tree, not caught by conflict though. Once we backmerge upstream gvt requires this fix.
Thanks!
Quoted 28 lines
Reported-by Tomasz Lis <[email protected]>Signed-off-by Micha?? Winiarski <[email protected]>Cc Changbin Du <[email protected]>Cc Zhenyu Wang <[email protected]>--- drivers/gpu/drm/i915/gvt/kvmgt.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gvt/kvmgt.c +0
-6@@ -185,12 +185,6 @@ static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn,if (ret)return ret; -if (!pfn_valid (pfn)) { -gvt_vgpu_err ("pfn 0x%lx is not mem backed\n" , pfn); -vfio_unpin_pages (mdev_dev (vgpu->vdev.mdev), &gfn,1 ); -return -EINVAL ; - } -/* Setup DMA mapping. */ *dma_addr =dma_map_page (dev, page,0 , size,PCI_DMA_BIDIRECTIONAL ); ret =dma_mapping_error (dev, *dma_addr);Signature · 1 line
2.17.1
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx