dma_resv lockdep annotations/priming
Subsystems (5)
cover dma_resv lockdep annotations/priming
Hi all,
Essentially just a resend of the latest revision, since the series is stuck on the nouveau patch. Ilia tried it on an nv5 and it didn't explode, but he noticed some instability. No call yet on whether that was just the kernel upgrade of a few versions, or my patch.
So yeah I need to get some review/testing on that patch to land the other two, and I'd really like to land these to make sure all the locking rework in i915 doesn't miss one of these details.
Thanks, Daniel
Daniel Vetter (3):
dma_resv: prime lockdep annotations
drm/nouveau: slowpath for pushbuf ioctl
drm/ttm: remove ttm_bo_wait_unreserved
drivers/dma-buf/dma-resv.c | 24 +++++++++++ drivers/gpu/drm/nouveau/nouveau_gem.c | 57 ++++++++++++++++++--------- drivers/gpu/drm/ttm/ttm_bo.c | 36 ----------------- drivers/gpu/drm/ttm/ttm_bo_util.c | 1 - drivers/gpu/drm/ttm/ttm_bo_vm.c | 18 +++------ include/drm/ttm/ttm_bo_api.h | 4 -- 6 files changed, 67 insertions(+), 73 deletions(-)
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/3 dma_resv: prime lockdep annotations
Full audit of everyone:
- i915, radeon, amdgpu should be clean per their maintainers.
- vram helpers should be fine, they don't do command submission, so really no business holding struct_mutex while doing copy_*_user. But I haven't checked them all.
- panfrost seems to dma_resv_lock only in panfrost_job_push, which looks clean.
- v3d holds dma_resv locks in the tail of its v3d_submit_cl_ioctl(), copying from/to userspace happens all in v3d_lookup_bos which is outside of the critical section.
- vmwgfx has a bunch of ioctls that do their own copy_*_user:
- vmw_execbuf_process: First this does some copies in vmw_execbuf_cmdbuf() and also in the vmw_execbuf_process() itself. Then comes the usual ttm reserve/validate sequence, then actual submission/fencing, then unreserving, and finally some more copy_to_user in vmw_execbuf_copy_fence_user. Glossing over tons of details, but looks all safe.
- vmw_fence_event_ioctl: No ttm_reserve/dma_resv_lock anywhere to be seen, seems to only create a fence and copy it out.
- a pile of smaller ioctl in vmwgfx_ioctl.c, no reservations to be found there.
Summary: vmwgfx seems to be fine too.
- virtio: There's virtio_gpu_execbuffer_ioctl, which does all the copying from userspace before even looking up objects through their handles, so safe. Plus the getparam/getcaps ioctl, also both safe.
- qxl only has qxl_execbuffer_ioctl, which calls into qxl_process_single_command. There's a lovely comment before the __copy_from_user_inatomic that the slowpath should be copied from i915, but I guess that never happened. Try not to be unlucky and get your CS data evicted between when it's written and the kernel tries to read it. The only other copy_from_user is for relocs, but those are done before qxl_release_reserve_list(), which seems to be the only thing reserving buffers (in the ttm/dma_resv sense) in that code. So looks safe.
- A debugfs file in nouveau_debugfs_pstate_set() and the usif ioctl in usif_ioctl() look safe. nouveau_gem_ioctl_pushbuf() otoh breaks this everywhere and needs to be fixed up.
v2: Thomas pointed at that vmwgfx calls dma_resv_init while it holds a dma_resv lock of a different object already. Christian mentioned that ttm core does this too for ghost objects. intel-gfx-ci highlighted that i915 has similar issues.
Unfortunately we can't do this in the usual module init functions, because kernel threads don't have an ->mm - we have to wait around for some user thread to do this.
Solution is to spawn a worker (but only once). It's horrible, but it works.
v3: We can allocate mm! (Chris). Horrible worker hack out, clean initcall solution in.
v4: Annotate with __init (Rob Herring)
--- drivers/dma-buf/dma-resv.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
drivers/dma-buf/dma-resv.c +24 -0
@@ -34,6 +34,7 @@#include <linux/dma-resv.h> #include <linux/export.h> +#include <linux/sched/mm.h> /** * DOC: Reservation Object Overview
@@ -95,6 +96,29 @@ static void dma_resv_list_free(struct dma_resv_list *list)kfree_rcu (list, rcu); } +#if IS_ENABLED (CONFIG_LOCKDEP ) +static void __init dma_resv_lockdep (void ) +{ +struct mm_struct *mm =mm_alloc (); +struct dma_resv obj; + +if (!mm) +return ; + +dma_resv_init (&obj); + +down_read (&mm->mmap_sem); +ww_mutex_lock (&obj.lock,NULL ); +fs_reclaim_acquire (GFP_KERNEL ); +fs_reclaim_release (GFP_KERNEL ); +ww_mutex_unlock (&obj.lock); +up_read (&mm->mmap_sem); + +mmput (mm); +} +subsys_initcall (dma_resv_lockdep); +#endif +/** * dma_resv_init - initialize a reservation object * @obj: the reservation object
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/3] dma_resv: prime lockdep annotations
Quoted 72 lines · Daniel Vetter
Full audit of everyone:
- i915, radeon, amdgpu should be clean per their maintainers.
- vram helpers should be fine, they don't do command submission, so really no business holding
struct_mutexwhile doing copy_*_user. But I haven't checked them all.- panfrost seems to
dma_resv_lockonly inpanfrost_job_push, which looks clean.- v3d holds
dma_resvlocks in the tail of itsv3d_submit_cl_ioctl(), copying from/to userspace happens all inv3d_lookup_boswhich is outside of the critical section.- vmwgfx has a bunch of ioctls that do their own copy_*_user:
-vmw_execbuf_process: First this does some copies invmw_execbuf_cmdbuf()and also in thevmw_execbuf_process()itself. Then comes the usual ttm reserve/validate sequence, then actual submission/fencing, then unreserving, and finally some morecopy_to_userinvmw_execbuf_copy_fence_user. Glossing over tons of details, but looks all safe.
-vmw_fence_event_ioctl: No ttm_reserve/dma_resv_lock anywhere to be seen, seems to only create a fence and copy it out.
- a pile of smaller ioctl invmwgfx_ioctl.c, no reservations to be found there.
Summary: vmwgfx seems to be fine too.- virtio: There's
virtio_gpu_execbuffer_ioctl, which does all the copying from userspace before even looking up objects through their handles, so safe. Plus the getparam/getcaps ioctl, also both safe.- qxl only has
qxl_execbuffer_ioctl, which calls intoqxl_process_single_command. There's a lovely comment before the__copy_from_user_inatomicthat the slowpath should be copied from i915, but I guess that never happened. Try not to be unlucky and get your CS data evicted between when it's written and the kernel tries to read it. The only othercopy_from_useris for relocs, but those are done beforeqxl_release_reserve_list(), which seems to be the only thing reserving buffers (in the ttm/dma_resv sense) in that code. So looks safe.- A debugfs file in
nouveau_debugfs_pstate_set()and the usif ioctl inusif_ioctl()look safe.nouveau_gem_ioctl_pushbuf()otoh breaks this everywhere and needs to be fixed up.v2: Thomas pointed at that vmwgfx calls
dma_resv_initwhile it holds adma_resvlock of a different object already. Christian mentioned that ttm core does this too for ghost objects. intel-gfx-ci highlighted that i915 has similar issues.Unfortunately we can't do this in the usual module init functions, because kernel threads don't have an ->mm - we have to wait around for some user thread to do this.
Solution is to spawn a worker (but only once). It's horrible, but it works.
v3: We can allocate mm! (Chris). Horrible worker hack out, clean initcall solution in.
v4: Annotate with
__init(Rob Herring)Cc Rob Herring <[email protected]>Cc Alex Deucher <[email protected]>Cc Christian König <[email protected]>Cc Chris Wilson <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Rob Herring <[email protected]>Cc Tomeu Vizoso <[email protected]>Cc Eric Anholt <[email protected]>Cc Dave Airlie <[email protected]>
Quoted 8 lines
Cc Gerd Hoffmann <[email protected]>Cc Ben Skeggs <[email protected]>Cc "VMware Graphics" <[email protected]>Cc Thomas Hellstrom <[email protected]>Reviewed-by Christian König <[email protected]>Reviewed-by Chris Wilson <[email protected]>Tested-by Chris Wilson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Including the vmwgfx audit,
Thanks,
Thomas
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kbuild test robot
build botRe: [PATCH 1/3] dma_resv: prime lockdep annotations
In reply to Daniel VetterI love your patch! Yet something to improve:
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[cannot apply to v5.4-rc4 next-20191021]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/dma_resv-lockdep-annotations-priming/20191022-015539 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7d194c2100ad2a6dded545887d02754948ca5241 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
All error/warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/sparc/include/asm/current.h:15,
from include/linux/mutex.h:14,
from include/linux/ww_mutex.h:20,
from include/linux/dma-resv.h:42,
from drivers/dma-buf/dma-resv.c:35:
>> drivers/dma-buf/dma-resv.c:119:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
subsys_initcall(dma_resv_lockdep);
^
include/linux/init.h:197:50: note: in definition of macro '___define_initcall'
__attribute__((__section__(#__sec ".init"))) = fn;
^~
>> include/linux/init.h:224:30: note: in expansion of macro '__define_initcall'
#define subsys_initcall(fn) __define_initcall(fn, 4)
^~~~~~~~~~~~~~~~~
>> drivers/dma-buf/dma-resv.c:119:1: note: in expansion of macro 'subsys_initcall'
subsys_initcall(dma_resv_lockdep);
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/sparc/include/asm/current.h:15,
from include/linux/mutex.h:14,
from include/linux/ww_mutex.h:20,
from include/linux/dma-resv.h:42,
from drivers//dma-buf/dma-resv.c:35:
drivers//dma-buf/dma-resv.c:119:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
subsys_initcall(dma_resv_lockdep);
^
include/linux/init.h:197:50: note: in definition of macro '___define_initcall'
__attribute__((__section__(#__sec ".init"))) = fn;
^~
>> include/linux/init.h:224:30: note: in expansion of macro '__define_initcall'
#define subsys_initcall(fn) __define_initcall(fn, 4)
^~~~~~~~~~~~~~~~~
drivers//dma-buf/dma-resv.c:119:1: note: in expansion of macro 'subsys_initcall'
subsys_initcall(dma_resv_lockdep);
^~~~~~~~~~~~~~~cc1: some warnings being treated as errors
vim +119 drivers/dma-buf/dma-resv.c
> 35 #include <linux/dma-resv.h>
36 #include <linux/export.h>
37 #include <linux/sched/mm.h>
38
39 /**
40 * DOC: Reservation Object Overview
41 *
42 * The reservation object provides a mechanism to manage shared and
43 * exclusive fences associated with a buffer. A reservation object
44 * can have attached one exclusive fence (normally associated with
45 * write operations) or N shared fences (read operations). The RCU
46 * mechanism is used to protect read access to fences from locked
47 * write-side updates.
48 */
49
50 DEFINE_WD_CLASS(reservation_ww_class);
51 EXPORT_SYMBOL(reservation_ww_class);
52
53 struct lock_class_key reservation_seqcount_class;
54 EXPORT_SYMBOL(reservation_seqcount_class);
55
56 const char reservation_seqcount_string[] = "reservation_seqcount";
57 EXPORT_SYMBOL(reservation_seqcount_string);
58
59 /**
60 * dma_resv_list_alloc - allocate fence list
61 * @shared_max: number of fences we need space for
62 *
63 * Allocate a new dma_resv_list and make sure to correctly initialize
64 * shared_max.
65 */
66 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max)
67 {
68 struct dma_resv_list *list;
69
70 list = kmalloc(offsetof(typeof(*list), shared[shared_max]), GFP_KERNEL);
71 if (!list)
72 return NULL;
73
74 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) /
75 sizeof(*list->shared);
76
77 return list;
78 }
79
80 /**
81 * dma_resv_list_free - free fence list
82 * @list: list to free
83 *
84 * Free a dma_resv_list and make sure to drop all references.
85 */
86 static void dma_resv_list_free(struct dma_resv_list *list)
87 {
88 unsigned int i;
89
90 if (!list)
91 return;
92
93 for (i = 0; i < list->shared_count; ++i)
94 dma_fence_put(rcu_dereference_protected(list->shared[i], true));
95
96 kfree_rcu(list, rcu);
97 }
98
99 #if IS_ENABLED(CONFIG_LOCKDEP)
100 static void __init dma_resv_lockdep(void)
101 {
102 struct mm_struct *mm = mm_alloc();
103 struct dma_resv obj;
104
105 if (!mm)
106 return;
107
108 dma_resv_init(&obj);
109
110 down_read(&mm->mmap_sem);
111 ww_mutex_lock(&obj.lock, NULL);
112 fs_reclaim_acquire(GFP_KERNEL);
113 fs_reclaim_release(GFP_KERNEL);
114 ww_mutex_unlock(&obj.lock);
115 up_read(&mm->mmap_sem);
116
117 mmput(mm);
118 }
> 119 subsys_initcall(dma_resv_lockdep); 120 #endif
121
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 20191021145017.17384-1-daniel.vetter-/[email protected]
PATCH 2/3 drm/nouveau: slowpath for pushbuf ioctl
We can't copy_*_user while holding reservations, that will (soon even for nouveau) lead to deadlocks. And it breaks the cross-driver contract around dma_resv.
Fix this by adding a slowpath for when we need relocations, and by pushing the writeback of the new presumed offsets to the very end.
Aside from "it compiles" entirely untested unfortunately.
--- drivers/gpu/drm/nouveau/nouveau_gem.c | 57 ++++++++++++++++++--------- 1 file changed, 38 insertions(+), 19 deletions(-)
drivers/gpu/drm/nouveau/nouveau_gem.c +38 -19
@@ -484,12 +484,9 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv,static int validate_list (struct nouveau_channel *chan,struct nouveau_cli *cli, -struct list_head *list,struct drm_nouveau_gem_pushbuf_bo *pbbo, -uint64_t user_pbbo_ptr) +struct list_head *list,struct drm_nouveau_gem_pushbuf_bo *pbbo) {struct nouveau_drm *drm = chan->drm; -struct drm_nouveau_gem_pushbuf_bo __user *upbbo = - (void __force __user *)(uintptr_t )user_pbbo_ptr;struct nouveau_bo *nvbo;int ret, relocs =0 ;
@@ -533,10 +530,6 @@ validate_list(struct nouveau_channel *chan, struct nouveau_cli *cli, b->presumed.offset = nvbo->bo.offset; b->presumed.valid =0 ; relocs++; - -if (copy_to_user (&upbbo[nvbo->pbbo_index].presumed, - &b->presumed,sizeof (b->presumed))) -return -EFAULT ; } }
@@ -547,8 +540,8 @@ static int nouveau_gem_pushbuf_validate(struct nouveau_channel *chan, struct drm_file *file_priv, struct drm_nouveau_gem_pushbuf_bo *pbbo, - uint64_t user_buffers, int nr_buffers, - struct validate_op *op, int *apply_relocs) + int nr_buffers, + struct validate_op *op, bool *apply_relocs) { struct nouveau_cli *cli = nouveau_cli(file_priv);int ret;
@@ -565,7 +558,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,return ret; } - ret =validate_list (chan, cli, &op->list, pbbo, user_buffers); + ret =validate_list (chan, cli, &op->list, pbbo);if (unlikely (ret <0 )) {if (ret != -ERESTARTSYS )NV_PRINTK (err, cli,"validating bo list\n" );
@@ -605,16 +598,12 @@ u_memcpya(uint64_t user, unsigned nmemb, unsigned size)static int nouveau_gem_pushbuf_reloc_apply (struct nouveau_cli *cli,struct drm_nouveau_gem_pushbuf *req, +struct drm_nouveau_gem_pushbuf_reloc *reloc,struct drm_nouveau_gem_pushbuf_bo *bo) { -struct drm_nouveau_gem_pushbuf_reloc *reloc =NULL ;int ret =0 ;unsigned i; - reloc =u_memcpya (req->relocs, req->nr_relocs,sizeof (*reloc)); -if (IS_ERR (reloc)) -return PTR_ERR (reloc); -for (i =0 ; i < req->nr_relocs; i++) {struct drm_nouveau_gem_pushbuf_reloc *r = &reloc[i];struct drm_nouveau_gem_pushbuf_bo *b;
@@ -693,11 +682,13 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,struct nouveau_drm *drm =nouveau_drm (dev);struct drm_nouveau_gem_pushbuf *req = data;struct drm_nouveau_gem_pushbuf_push *push; +struct drm_nouveau_gem_pushbuf_reloc *reloc =NULL ;struct drm_nouveau_gem_pushbuf_bo *bo;struct nouveau_channel *chan =NULL ;struct validate_op op;struct nouveau_fence *fence =NULL ; -int i, j, ret =0 , do_reloc =0 ; +int i, j, ret =0 ; +bool do_reloc = false;if (unlikely (!abi16))return -ENOMEM ;
@@ -755,7 +746,8 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data, }/* Validate buffer list */ - ret =nouveau_gem_pushbuf_validate (chan, file_priv, bo, req->buffers, +revalidate: + ret =nouveau_gem_pushbuf_validate (chan, file_priv, bo, req->nr_buffers, &op, &do_reloc);if (ret) {if (ret != -ERESTARTSYS )
@@ -765,7 +757,18 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,/* Apply any relocations that are required */ if (do_reloc) { - ret =nouveau_gem_pushbuf_reloc_apply (cli, req, bo); +if (!reloc) { +validate_fini (&op, chan,NULL , bo); + reloc =u_memcpya (req->relocs, req->nr_relocs,sizeof (*reloc)); +if (IS_ERR (reloc)) { + ret =PTR_ERR (reloc); + goto out_prevalid; + } + + goto revalidate; + } + + ret =nouveau_gem_pushbuf_reloc_apply (cli, req, reloc, bo);if (ret) {NV_PRINTK (err, cli,"reloc apply: %d\n" , ret); goto out;
@@ -851,6 +854,22 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,validate_fini (&op, chan, fence, bo);nouveau_fence_unref (&fence); +if (do_reloc) { +struct drm_nouveau_gem_pushbuf_bo __user *upbbo = +u64_to_user_ptr (req->buffers); + +for (i =0 ; i < req->nr_buffers; i++) { +if (bo[i].presumed.valid) +continue ; + +if (copy_to_user (&upbbo[i].presumed, &bo[i].presumed, +sizeof (bo[i].presumed))) { + ret = -EFAULT ; +break ; + } + } +u_free (reloc); + } out_prevalid:u_free (bo);u_free (push);
Signature · 6 lines
2.23.0 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
Re: [PATCH 2/3] drm/nouveau: slowpath for pushbuf ioctl
Quoted 8 lines · Daniel Vetter
We can't copy_*_user while holding reservations, that will (soon even for nouveau) lead to deadlocks. And it breaks the cross-driver contract around
dma_resv.Fix this by adding a slowpath for when we need relocations, and by pushing the writeback of the new presumed offsets to the very end.
Quoted 7 lines
Aside from "it compiles" entirely untested unfortunately.
Signed-off-by Daniel Vetter <[email protected]>Cc Ilia Mirkin <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Ben Skeggs <[email protected]>
Ping for review/testing/ack, I'd really like to get this in. -Daniel
Quoted 142 lines
--- drivers/gpu/drm/nouveau/nouveau_gem.c | 57 ++++++++++++++++++--------- 1 file changed, 38 insertions(+), 19 deletions(-)drivers/gpu/drm/nouveau/nouveau_gem.c +38
-20@@ -484,12 +484,9 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv,static int validate_list (struct nouveau_channel *chan,struct nouveau_cli *cli, -struct list_head *list,struct drm_nouveau_gem_pushbuf_bo *pbbo, -uint64_t user_pbbo_ptr) +struct list_head *list,struct drm_nouveau_gem_pushbuf_bo *pbbo) {struct nouveau_drm *drm = chan->drm; -struct drm_nouveau_gem_pushbuf_bo __user *upbbo = - (void __force __user *)(uintptr_t )user_pbbo_ptr;struct nouveau_bo *nvbo;int ret, relocs =0 ;@@ -533,10 +530,6 @@ validate_list(struct nouveau_channel *chan, struct nouveau_cli *cli, b->presumed.offset = nvbo->bo.offset; b->presumed.valid =0 ; relocs++; - -if (copy_to_user (&upbbo[nvbo->pbbo_index].presumed, - &b->presumed,sizeof (b->presumed))) -return -EFAULT ; } }@@ -547,8 +540,8 @@ static int nouveau_gem_pushbuf_validate(struct nouveau_channel *chan, struct drm_file *file_priv, struct drm_nouveau_gem_pushbuf_bo *pbbo, - uint64_t user_buffers, int nr_buffers, - struct validate_op *op, int *apply_relocs) + int nr_buffers, + struct validate_op *op, bool *apply_relocs) { struct nouveau_cli *cli = nouveau_cli(file_priv);int ret;@@ -565,7 +558,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,return ret; } - ret =validate_list (chan, cli, &op->list, pbbo, user_buffers); + ret =validate_list (chan, cli, &op->list, pbbo);if (unlikely (ret <0 )) {if (ret != -ERESTARTSYS )NV_PRINTK (err, cli,"validating bo list\n" );@@ -605,16 +598,12 @@ u_memcpya(uint64_t user, unsigned nmemb, unsigned size)static int nouveau_gem_pushbuf_reloc_apply (struct nouveau_cli *cli,struct drm_nouveau_gem_pushbuf *req, +struct drm_nouveau_gem_pushbuf_reloc *reloc,struct drm_nouveau_gem_pushbuf_bo *bo) { -struct drm_nouveau_gem_pushbuf_reloc *reloc =NULL ;int ret =0 ;unsigned i; - reloc =u_memcpya (req->relocs, req->nr_relocs,sizeof (*reloc)); -if (IS_ERR (reloc)) -return PTR_ERR (reloc); -for (i =0 ; i < req->nr_relocs; i++) {struct drm_nouveau_gem_pushbuf_reloc *r = &reloc[i];struct drm_nouveau_gem_pushbuf_bo *b;@@ -693,11 +682,13 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,struct nouveau_drm *drm =nouveau_drm (dev);struct drm_nouveau_gem_pushbuf *req = data;struct drm_nouveau_gem_pushbuf_push *push; +struct drm_nouveau_gem_pushbuf_reloc *reloc =NULL ;struct drm_nouveau_gem_pushbuf_bo *bo;struct nouveau_channel *chan =NULL ;struct validate_op op;struct nouveau_fence *fence =NULL ; -int i, j, ret =0 , do_reloc =0 ; +int i, j, ret =0 ; +bool do_reloc = false;if (unlikely (!abi16))return -ENOMEM ;@@ -755,7 +746,8 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data, }/* Validate buffer list */ - ret =nouveau_gem_pushbuf_validate (chan, file_priv, bo, req->buffers, +revalidate: + ret =nouveau_gem_pushbuf_validate (chan, file_priv, bo, req->nr_buffers, &op, &do_reloc);if (ret) {if (ret != -ERESTARTSYS )@@ -765,7 +757,18 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,/* Apply any relocations that are required */ if (do_reloc) { - ret =nouveau_gem_pushbuf_reloc_apply (cli, req, bo); +if (!reloc) { +validate_fini (&op, chan,NULL , bo); + reloc =u_memcpya (req->relocs, req->nr_relocs,sizeof (*reloc)); +if (IS_ERR (reloc)) { + ret =PTR_ERR (reloc); + goto out_prevalid; + } + + goto revalidate; + } + + ret =nouveau_gem_pushbuf_reloc_apply (cli, req, reloc, bo);if (ret) {NV_PRINTK (err, cli,"reloc apply: %d\n" , ret); goto out;@@ -851,6 +854,22 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,validate_fini (&op, chan, fence, bo);nouveau_fence_unref (&fence); +if (do_reloc) { +struct drm_nouveau_gem_pushbuf_bo __user *upbbo = +u64_to_user_ptr (req->buffers); + +for (i =0 ; i < req->nr_buffers; i++) { +if (bo[i].presumed.valid) +continue ; + +if (copy_to_user (&upbbo[i].presumed, &bo[i].presumed, +sizeof (bo[i].presumed))) { + ret = -EFAULT ; +break ; + } + } +u_free (reloc); + } out_prevalid:u_free (bo);u_free (push); --2.23.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/3 drm/ttm: remove ttm_bo_wait_unreserved
In reply to Daniel VetterWith nouveau fixed all ttm-using drives have the correct nesting of mmap_sem vs dma_resv, and we can just lock the buffer.
Assuming I didn't screw up anything with my audit of course.
v2:
- Dont forget wu_mutex (Christian König)
- Keep the mmap_sem-less wait optimization (Thomas)
- Use _lock_interruptible to be good citizens (Thomas)
--- drivers/gpu/drm/ttm/ttm_bo.c | 36 ------------------------------- drivers/gpu/drm/ttm/ttm_bo_util.c | 1 - drivers/gpu/drm/ttm/ttm_bo_vm.c | 18 +++++----------- include/drm/ttm/ttm_bo_api.h | 4 ---- 4 files changed, 5 insertions(+), 54 deletions(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -36
@@ -162,7 +162,6 @@ static void ttm_bo_release_list(struct kref *list_kref)dma_fence_put (bo->moving);if (!ttm_bo_uses_embedded_gem_object (bo))dma_resv_fini (&bo->base._resv); -mutex_destroy (&bo->wu_mutex); bo->destroy (bo);ttm_mem_global_free (bdev->glob->mem_glob, acc_size); }
@@ -1320,7 +1319,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,INIT_LIST_HEAD (&bo->ddestroy);INIT_LIST_HEAD (&bo->swap);INIT_LIST_HEAD (&bo->io_reserve_lru); -mutex_init (&bo->wu_mutex); bo->bdev = bdev; bo->type = type; bo->num_pages = num_pages;
@@ -1955,37 +1953,3 @@ void ttm_bo_swapout_all(struct ttm_bo_device *bdev) ; }EXPORT_SYMBOL (ttm_bo_swapout_all); - -/** -* ttm_bo_wait_unreserved - interruptible wait for a buffer object to become -* unreserved -* -* @bo: Pointer to buffer -*/ -int ttm_bo_wait_unreserved (struct ttm_buffer_object *bo) -{ -int ret; - -/* -* In the absense of a wait_unlocked API, -* Use the bo::wu_mutex to avoid triggering livelocks due to -* concurrent use of this function. Note that this use of -* bo::wu_mutex can go away if we change locking order to -* mmap_sem -> bo::reserve. -*/ - ret =mutex_lock_interruptible (&bo->wu_mutex); -if (unlikely (ret !=0 )) -return -ERESTARTSYS ; -if (!dma_resv_is_locked (bo->base.resv)) - goto out_unlock; - ret =dma_resv_lock_interruptible (bo->base.resv,NULL ); -if (ret == -EINTR ) - ret = -ERESTARTSYS ; -if (unlikely (ret !=0 )) - goto out_unlock; -dma_resv_unlock (bo->base.resv); - -out_unlock: -mutex_unlock (&bo->wu_mutex); -return ret; -}
drivers/gpu/drm/ttm/ttm_bo_util.c +0 -1
@@ -508,7 +508,6 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,INIT_LIST_HEAD (&fbo->base.lru);INIT_LIST_HEAD (&fbo->base.swap);INIT_LIST_HEAD (&fbo->base.io_reserve_lru); -mutex_init (&fbo->base.wu_mutex); fbo->base.moving =NULL ;drm_vma_node_reset (&fbo->base.base.vma_node);atomic_set (&fbo->base.cpu_writers,0 );
drivers/gpu/drm/ttm/ttm_bo_vm.c +5 -13
@@ -125,30 +125,22 @@ static vm_fault_t ttm_bo_vm_fault(struct vm_fault *vmf) &bdev->man[bo->mem.mem_type];struct vm_area_struct cvma; -/* -* Work around locking order reversal in fault / nopfn -* between mmap_sem and bo_reserve: Perform a trylock operation -* for reserve, and if it fails, retry the fault after waiting -* for the buffer to become unreserved. -*/ if (unlikely (!dma_resv_trylock (bo->base.resv))) {if (vmf->flags &FAULT_FLAG_ALLOW_RETRY ) {if (!(vmf->flags &FAULT_FLAG_RETRY_NOWAIT )) {ttm_bo_get (bo);up_read (&vmf->vma->vm_mm->mmap_sem); - (void )ttm_bo_wait_unreserved (bo); +if (!dma_resv_lock_interruptible (bo->base.resv, +NULL )) +dma_resv_unlock (bo->base.resv);ttm_bo_put (bo); }return VM_FAULT_RETRY ; } -/* -* If we'd want to change locking order to -* mmap_sem -> bo::reserve, we'd use a blocking reserve here -* instead of retrying the fault... -*/ -return VM_FAULT_NOPAGE ; +if (dma_resv_lock_interruptible (bo->base.resv,NULL )) +return VM_FAULT_NOPAGE ; }/*
include/drm/ttm/ttm_bo_api.h +0 -4
@@ -155,7 +155,6 @@ struct ttm_tt;* @offset: The current GPU offset, which can have different meanings * depending on the memory type. For SYSTEM type memory, it should be 0. * @cur_placement: Hint of current placement. -* @wu_mutex: Wait unreserved mutex. * * Base class for TTM buffer object, that deals with data placement and CPU * mappings. GPU mappings are really up to the driver, but for simpler GPUs
@@ -229,8 +228,6 @@ struct ttm_buffer_object {uint64_t offset;/* GPU address space is independent of CPU word size */ struct sg_table *sg; - -struct mutex wu_mutex; };/**
@@ -763,7 +760,6 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,int ttm_bo_swapout (struct ttm_bo_global *glob,struct ttm_operation_ctx *ctx);void ttm_bo_swapout_all (struct ttm_bo_device *bdev); -int ttm_bo_wait_unreserved (struct ttm_buffer_object *bo);/** * ttm_bo_uses_embedded_gem_object - check if the given bo uses the
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for dma_resv lockdep annotations/priming
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: dma_resv lockdep annotations/priming
URL : https://patchwork.freedesktop.org/series/68312/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip a1051ffcc702 dma_resv: prime lockdep annotations -:77: WARNING:BAD_SIGN_OFF: Duplicate signature #77: Cc: Rob Herring <[email protected]>
-:83: WARNING:BAD_SIGN_OFF: email address '"VMware Graphics" <[email protected]>' might be better as 'VMware Graphics <[email protected]>' #83:
Cc: "VMware Graphics" <[email protected]>
-:123: ERROR:TRAILING_WHITESPACE: trailing whitespace #123: FILE: drivers/dma-buf/dma-resv.c:116:
+^I$
-:131: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 1 errors, 3 warnings, 0 checks, 36 lines checkedd8744a28f0bd drm/nouveau: slowpath for pushbuf ioctl
-:155: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 122 lines checked02fe220bfcb5 drm/ttm: remove ttm_bo_wait_unreserved
-:25: WARNING:BAD_SIGN_OFF: email address '"VMware Graphics" <[email protected]>' might be better as 'VMware Graphics <[email protected]>' #25:
Cc: "VMware Graphics" <[email protected]>
-:166: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 2 warnings, 0 checks, 81 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for dma_resv lockdep annotations/priming
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: dma_resv lockdep annotations/priming
URL : https://patchwork.freedesktop.org/series/68312/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7141 -> Patchwork_14903
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/index.html
Known issues
------------
Here are the changes found in Patchwork_14903 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- fi-skl-6600u: [PASS][1] -> [INCOMPLETE][2] ([fdo#107807])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-skl-6600u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-skl-6600u/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-icl-u2: [PASS][3] -> [DMESG-FAIL][4] ([fdo#111678])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][5] -> [FAIL][6] ([fdo#111045] / [fdo#111096])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_create@basic-files:
- {fi-icl-dsi}: [INCOMPLETE][7] ([fdo#107713] / [fdo#109100]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-icl-dsi/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-icl-dsi/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-kbl-7500u: [DMESG-WARN][9] ([fdo#105128] / [fdo#107139]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-kbl-7500u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-kbl-7500u/igt@[email protected]
* igt@i915_selftest@live_gem_contexts:
- fi-cfl-8109u: [DMESG-FAIL][11] ([fdo#112050 ]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-cfl-8109u/igt@i915_selftest@live_gem_contexts.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-cfl-8109u/igt@i915_selftest@live_gem_contexts.html
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][13] ([fdo#102614]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/fi-hsw-peppy/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/fi-hsw-peppy/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#105128]: https://bugs.freedesktop.org/show_bug.cgi?id=105128
[fdo#107139]: https://bugs.freedesktop.org/show_bug.cgi?id=107139
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111647]: https://bugs.freedesktop.org/show_bug.cgi?id=111647
[fdo#111678]: https://bugs.freedesktop.org/show_bug.cgi?id=111678
[fdo#111764]: https://bugs.freedesktop.org/show_bug.cgi?id=111764
[fdo#112050 ]: https://bugs.freedesktop.org/show_bug.cgi?id=112050
Participating hosts (53 -> 43)
------------------------------
Missing (10): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-u3 fi-pnv-d510 fi-icl-y fi-icl-guc fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7141 -> Patchwork_14903
CI-20190529: 20190529
CI_DRM_7141: a109221528d0b9d4f24065aed372c6b45e251bd6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5235: da9abbab69be80dd00812a4607a4ea2dffcc4544 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14903: 02fe220bfcb51fa3f79fa5e36950762382d2a29e @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
02fe220bfcb5 drm/ttm: remove ttm_bo_wait_unreserved d8744a28f0bd drm/nouveau: slowpath for pushbuf ioctl a1051ffcc702 dma_resv: prime lockdep annotations
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for dma_resv lockdep annotations/priming
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: dma_resv lockdep annotations/priming
URL : https://patchwork.freedesktop.org/series/68312/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7141_full -> Patchwork_14903_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_14903_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_ctx_switch@legacy-default-queue:
- {shard-tglb}: [PASS][1] -> [INCOMPLETE][2] +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb8/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_14903_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_exec@basic-invalid-context-vcs1:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#112080]) +7 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb5/igt@[email protected]
* igt@gem_ctx_isolation@rcs0-s3:
- shard-apl: [PASS][5] -> [DMESG-WARN][6] ([fdo#108566]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-apl5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-apl7/igt@[email protected]
* igt@gem_ctx_isolation@vcs1-clean:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#109276] / [fdo#112080]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@fifo-bsd1:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#109276]) +11 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@preempt-bsd:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#111325]) +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb2/igt@[email protected]
* igt@gem_tiled_pread_pwrite:
- shard-iclb: [PASS][13] -> [INCOMPLETE][14] ([fdo#107713] / [fdo#109100])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb7/igt@gem_tiled_pread_pwrite.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb7/igt@gem_tiled_pread_pwrite.html
* igt@gem_userptr_blits@sync-unmap-cycles:
- shard-hsw: [PASS][15] -> [DMESG-WARN][16] ([fdo#111870]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-hsw5/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-hsw1/igt@[email protected]
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-b:
- shard-hsw: [PASS][17] -> [INCOMPLETE][18] ([fdo#103540]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-hsw7/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-hsw5/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-varying-size:
- shard-apl: [PASS][19] -> [INCOMPLETE][20] ([fdo#103927]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-apl8/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-apl5/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][21] -> [FAIL][22] ([fdo#105363]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-skl: [PASS][23] -> [INCOMPLETE][24] ([fdo#109507])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl5/igt@[email protected]
* igt@kms_flip_tiling@flip-changes-tiling-y:
- shard-skl: [PASS][25] -> [FAIL][26] ([fdo#107931] / [fdo#108303])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl9/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [PASS][27] -> [FAIL][28] ([fdo#103167]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][29] -> [FAIL][30] ([fdo#103166])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb5/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#109441]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb7/igt@kms_psr@psr2_no_drrs.html
* igt@kms_setmode@basic:
- shard-hsw: [PASS][33] -> [FAIL][34] ([fdo#99912])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-hsw6/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-hsw4/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend:
- shard-kbl: [PASS][35] -> [INCOMPLETE][36] ([fdo#103665])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-kbl3/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-kbl2/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@vcs1-s3:
- shard-iclb: [SKIP][37] ([fdo#109276] / [fdo#112080]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb1/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [SKIP][39] ([fdo#110841]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb1/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb8/igt@[email protected]
* igt@gem_exec_parallel@rcs0-contexts:
- shard-apl: [INCOMPLETE][41] ([fdo#103927]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-apl1/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-apl3/igt@[email protected]
* igt@gem_exec_schedule@independent-bsd2:
- shard-iclb: [SKIP][43] ([fdo#109276]) -> [PASS][44] +9 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][45] ([fdo#111325]) -> [PASS][46] +5 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb8/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-hsw: [DMESG-WARN][47] ([fdo#111870]) -> [PASS][48] +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-hsw1/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-hsw7/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [DMESG-WARN][49] ([fdo#108566]) -> [PASS][50] +8 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-apl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-apl4/igt@[email protected]
- {shard-tglb}: [INCOMPLETE][51] ([fdo#111832] / [fdo#111850]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb5/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb6/igt@[email protected]
* igt@i915_pm_rpm@cursor:
- {shard-tglb}: [INCOMPLETE][53] -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb8/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb5/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-25:
- shard-skl: [DMESG-WARN][55] ([fdo#106107]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl9/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl2/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-skl: [FAIL][57] ([fdo#102670]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl8/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl4/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-cpu-xtiled:
- shard-snb: [SKIP][59] ([fdo#109271]) -> [PASS][60] +2 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-snb6/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-snb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][61] ([fdo#103167]) -> [PASS][62] +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb5/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-pwrite.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-suspend:
- {shard-tglb}: [INCOMPLETE][63] ([fdo#111832] / [fdo#111850] / [fdo#111884]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt:
- {shard-tglb}: [FAIL][65] ([fdo#103167]) -> [PASS][66] +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-msflip-blt:
- {shard-tglb}: [INCOMPLETE][67] ([fdo#111884]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-msflip-blt.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-msflip-blt.html
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][69] ([fdo#108145]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][71] ([fdo#108145] / [fdo#110403]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-skl10/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-skl9/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-iclb: [INCOMPLETE][73] ([fdo#107713]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb7/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb7/igt@[email protected]
* igt@perf_pmu@busy-no-semaphores-vcs1:
- shard-iclb: [SKIP][75] ([fdo#112080]) -> [PASS][76] +6 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb3/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb1/igt@[email protected]
* igt@perf_pmu@enable-race-vcs0:
- {shard-tglb}: [INCOMPLETE][77] ([fdo#111899]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-tglb2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-tglb5/igt@[email protected]
#### Warnings ####
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [SKIP][79] ([fdo#109276]) -> [FAIL][80] ([fdo#111330]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7141/shard-iclb5/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/shard-iclb4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102670]: https://bugs.freedesktop.org/show_bug.cgi?id=102670
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107931]: https://bugs.freedesktop.org/show_bug.cgi?id=107931
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108303]: https://bugs.freedesktop.org/show_bug.cgi?id=108303
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110548]: https://bugs.freedesktop.org/show_bug.cgi?id=110548
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#111703]: https://bugs.freedesktop.org/show_bug.cgi?id=111703
[fdo#111747]: https://bugs.freedesktop.org/show_bug.cgi?id=111747
[fdo#111795 ]: https://bugs.freedesktop.org/show_bug.cgi?id=111795
[fdo#111832]: https://bugs.freedesktop.org/show_bug.cgi?id=111832
[fdo#111850]: https://bugs.freedesktop.org/show_bug.cgi?id=111850
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#111884]: https://bugs.freedesktop.org/show_bug.cgi?id=111884
[fdo#111899]: https://bugs.freedesktop.org/show_bug.cgi?id=111899
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7141 -> Patchwork_14903
CI-20190529: 20190529
CI_DRM_7141: a109221528d0b9d4f24065aed372c6b45e251bd6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5235: da9abbab69be80dd00812a4607a4ea2dffcc4544 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14903: 02fe220bfcb51fa3f79fa5e36950762382d2a29e @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14903/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx