All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/selftest: Mark the mock struct file backpointer as invalid
@ 2017-03-20 13:30 Chris Wilson
  2017-03-20 13:39 ` Chris Wilson
  2017-03-20 14:46 ` ✓ Fi.CI.BAT: success for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2017-03-20 13:30 UTC (permalink / raw)
  To: intel-gfx

We do not use the struct file backpointer so struct drm_file, so mark it
as invalid when creating a mock file for i915 selftests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/selftests/mock_drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/selftests/mock_drm.c b/drivers/gpu/drm/i915/selftests/mock_drm.c
index 113dec05c7dc..8fd1c4ded60f 100644
--- a/drivers/gpu/drm/i915/selftests/mock_drm.c
+++ b/drivers/gpu/drm/i915/selftests/mock_drm.c
@@ -41,6 +41,7 @@ struct drm_file *mock_file(struct drm_i915_private *i915)
 		return ERR_PTR(err);
 
 	file = filp.private_data;
+	memset(&file->filp, POISON_INUSE, sizeof(file->filp));
 	file->authenticated = true;
 	return file;
 }
-- 
2.11.0

_______________________________________________
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/selftest: Mark the mock struct file backpointer as invalid
  2017-03-20 13:30 [PATCH] drm/i915/selftest: Mark the mock struct file backpointer as invalid Chris Wilson
@ 2017-03-20 13:39 ` Chris Wilson
  2017-03-20 14:46 ` ✓ Fi.CI.BAT: success for " Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2017-03-20 13:39 UTC (permalink / raw)
  To: intel-gfx

On Mon, Mar 20, 2017 at 01:30:21PM +0000, Chris Wilson wrote:
> We do not use the struct file backpointer so struct drm_file, so mark it
s/so/from/
> as invalid when creating a mock file for i915 selftests.

It is only used by legacy vm mmapping, not by i915.ko
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
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: success for drm/i915/selftest: Mark the mock struct file backpointer as invalid
  2017-03-20 13:30 [PATCH] drm/i915/selftest: Mark the mock struct file backpointer as invalid Chris Wilson
  2017-03-20 13:39 ` Chris Wilson
@ 2017-03-20 14:46 ` Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2017-03-20 14:46 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915/selftest: Mark the mock struct file backpointer as invalid
URL   : https://patchwork.freedesktop.org/series/21539/
State : success

== Summary ==

Series 21539v1 drm/i915/selftest: Mark the mock struct file backpointer as invalid
https://patchwork.freedesktop.org/api/1.0/series/21539/revisions/1/mbox/

fi-bdw-5557u     total:278  pass:267  dwarn:0   dfail:0   fail:0   skip:11  time: 466s
fi-bsw-n3050     total:278  pass:239  dwarn:0   dfail:0   fail:0   skip:39  time: 576s
fi-bxt-j4205     total:278  pass:259  dwarn:0   dfail:0   fail:0   skip:19  time: 538s
fi-bxt-t5700     total:278  pass:258  dwarn:0   dfail:0   fail:0   skip:20  time: 560s
fi-byt-j1900     total:278  pass:251  dwarn:0   dfail:0   fail:0   skip:27  time: 502s
fi-byt-n2820     total:278  pass:247  dwarn:0   dfail:0   fail:0   skip:31  time: 500s
fi-hsw-4770      total:278  pass:262  dwarn:0   dfail:0   fail:0   skip:16  time: 430s
fi-hsw-4770r     total:278  pass:262  dwarn:0   dfail:0   fail:0   skip:16  time: 434s
fi-ilk-650       total:278  pass:228  dwarn:0   dfail:0   fail:0   skip:50  time: 433s
fi-ivb-3520m     total:278  pass:260  dwarn:0   dfail:0   fail:0   skip:18  time: 505s
fi-ivb-3770      total:278  pass:260  dwarn:0   dfail:0   fail:0   skip:18  time: 495s
fi-kbl-7500u     total:278  pass:260  dwarn:0   dfail:0   fail:0   skip:18  time: 476s
fi-skl-6260u     total:278  pass:268  dwarn:0   dfail:0   fail:0   skip:10  time: 476s
fi-skl-6700hq    total:278  pass:261  dwarn:0   dfail:0   fail:0   skip:17  time: 603s
fi-skl-6700k     total:278  pass:256  dwarn:4   dfail:0   fail:0   skip:18  time: 485s
fi-skl-6770hq    total:278  pass:268  dwarn:0   dfail:0   fail:0   skip:10  time: 517s
fi-snb-2520m     total:278  pass:250  dwarn:0   dfail:0   fail:0   skip:28  time: 552s
fi-snb-2600      total:278  pass:249  dwarn:0   dfail:0   fail:0   skip:29  time: 417s

c19e7f792122951505d7a58d71cd4558d2e926dd drm-tip: 2017y-03m-20d-13h-29m-58s UTC integration manifest
d6fee0e drm/i915/selftest: Mark the mock struct file backpointer as invalid

== Logs ==

For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4229/
_______________________________________________
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:[~2017-03-20 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 13:30 [PATCH] drm/i915/selftest: Mark the mock struct file backpointer as invalid Chris Wilson
2017-03-20 13:39 ` Chris Wilson
2017-03-20 14:46 ` ✓ Fi.CI.BAT: success 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.