* [PATCH] drm/i915: Convert open-coded use of vma_pages()
@ 2016-10-11 9:06 Chris Wilson
2016-10-11 9:27 ` Matthew Auld
2016-10-11 10:50 ` ✗ Fi.CI.BAT: warning for " Patchwork
0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2016-10-11 9:06 UTC (permalink / raw)
To: intel-gfx
If we want to know how many pages a VMA spans, we can use vma_pages() to
find out. We have one such invocation inside our faulthandler, so
convert it. (We have two other that want the size in bytes rather than
pages, food for future thought.)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 84f4953c7408..7a210c3a6d10 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1794,8 +1794,7 @@ int i915_gem_fault(struct vm_area_struct *area, struct vm_fault *vmf)
view.params.partial.offset = rounddown(page_offset, chunk_size);
view.params.partial.size =
min_t(unsigned int, chunk_size,
- (area->vm_end - area->vm_start) / PAGE_SIZE -
- view.params.partial.offset);
+ vma_pages(area) - view.params.partial.offset);
/* If the partial covers the entire object, just create a
* normal VMA.
--
2.9.3
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: Convert open-coded use of vma_pages()
2016-10-11 9:06 [PATCH] drm/i915: Convert open-coded use of vma_pages() Chris Wilson
@ 2016-10-11 9:27 ` Matthew Auld
2016-10-11 10:50 ` ✗ Fi.CI.BAT: warning for " Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Auld @ 2016-10-11 9:27 UTC (permalink / raw)
To: Chris Wilson; +Cc: Intel Graphics Development
On 11 October 2016 at 10:06, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> If we want to know how many pages a VMA spans, we can use vma_pages() to
> find out. We have one such invocation inside our faulthandler, so
> convert it. (We have two other that want the size in bytes rather than
> pages, food for future thought.)
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* ✗ Fi.CI.BAT: warning for drm/i915: Convert open-coded use of vma_pages()
2016-10-11 9:06 [PATCH] drm/i915: Convert open-coded use of vma_pages() Chris Wilson
2016-10-11 9:27 ` Matthew Auld
@ 2016-10-11 10:50 ` Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2016-10-11 10:50 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: Convert open-coded use of vma_pages()
URL : https://patchwork.freedesktop.org/series/13575/
State : warning
== Summary ==
Series 13575v1 drm/i915: Convert open-coded use of vma_pages()
https://patchwork.freedesktop.org/api/1.0/series/13575/revisions/1/mbox/
Test drv_module_reload_basic:
skip -> PASS (fi-skl-6260u)
Test kms_pipe_crc_basic:
Subgroup nonblocking-crc-pipe-b:
pass -> DMESG-WARN (fi-ilk-650)
Subgroup nonblocking-crc-pipe-b-frame-sequence:
pass -> DMESG-WARN (fi-ilk-650)
Subgroup suspend-read-crc-pipe-a:
pass -> DMESG-WARN (fi-byt-j1900)
Test kms_psr_sink_crc:
Subgroup psr_basic:
dmesg-warn -> PASS (fi-skl-6700hq)
Test vgem_basic:
Subgroup unload:
pass -> SKIP (fi-ivb-3770)
skip -> PASS (fi-ilk-650)
pass -> SKIP (fi-skl-6770hq)
pass -> SKIP (fi-bsw-n3050)
skip -> PASS (fi-bxt-t5700)
fi-bdw-5557u total:248 pass:231 dwarn:0 dfail:0 fail:0 skip:17
fi-bsw-n3050 total:248 pass:204 dwarn:0 dfail:0 fail:0 skip:44
fi-bxt-t5700 total:248 pass:217 dwarn:0 dfail:0 fail:0 skip:31
fi-byt-j1900 total:248 pass:213 dwarn:2 dfail:0 fail:1 skip:32
fi-byt-n2820 total:248 pass:211 dwarn:0 dfail:0 fail:1 skip:36
fi-hsw-4770 total:248 pass:224 dwarn:0 dfail:0 fail:0 skip:24
fi-hsw-4770r total:248 pass:224 dwarn:0 dfail:0 fail:0 skip:24
fi-ilk-650 total:248 pass:183 dwarn:2 dfail:0 fail:2 skip:61
fi-ivb-3520m total:248 pass:221 dwarn:0 dfail:0 fail:0 skip:27
fi-ivb-3770 total:248 pass:221 dwarn:0 dfail:0 fail:0 skip:27
fi-kbl-7200u total:248 pass:222 dwarn:0 dfail:0 fail:0 skip:26
fi-skl-6260u total:248 pass:232 dwarn:0 dfail:0 fail:0 skip:16
fi-skl-6700hq total:248 pass:224 dwarn:0 dfail:0 fail:0 skip:24
fi-skl-6700k total:248 pass:221 dwarn:1 dfail:0 fail:0 skip:26
fi-skl-6770hq total:248 pass:230 dwarn:1 dfail:0 fail:1 skip:16
fi-snb-2520m total:248 pass:211 dwarn:0 dfail:0 fail:0 skip:37
fi-snb-2600 total:248 pass:209 dwarn:0 dfail:0 fail:0 skip:39
Results at /archive/results/CI_IGT_test/Patchwork_2670/
f79322df75bf6193458ec601a345ba6bd86befca drm-intel-nightly: 2016y-10m-11d-09h-16m-03s UTC integration manifest
56763195 drm/i915: Convert open-coded use of vma_pages()
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-11 10:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 9:06 [PATCH] drm/i915: Convert open-coded use of vma_pages() Chris Wilson
2016-10-11 9:27 ` Matthew Auld
2016-10-11 10:50 ` ✗ Fi.CI.BAT: warning for " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.