It is possible to race between unreference of the underlying BO and
importing it from prime_fd/name. Verify that the behaviour of libdrm
is consistent for prime/flink.
v2: more comments in source file, dropped extra whitespace
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
Cc: Thomas
/show_bug.cgi?id=91317
Testcase: igt/gem_reg_read
Tested-by: Michał Winiarski michal.winiar...@intel.com
Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
Cc: Michał Winiarski michal.winiar...@intel.com
Cc: sta...@vger.kernel.org
---
drivers/gpu/drm/i915/intel_uncore.c | 26
(reg | 1) flag to get a proper 36b timestamp,
shifting the value on x86_64 if we can't.
v2: More iterations of monotonic test, comments, minor fixups (Chris)
Cc: Chris Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
tests/gem_reg_read.c | 137
to get a proper 36b timestamp,
shifting the value on x86_64 if we can't.
Cc: Chris Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
tests/gem_reg_read.c | 123 ++-
1 file changed, 103 insertions(+), 20
(reg | 1) flag to get a proper 36b timestamp,
shifting the value on x86_64 if we can't.
v2: More iterations of monotonic test, comments, minor fixups (Chris)
v3: Skip tests if reg_read is not supported
Cc: Chris Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski michal.winiar
, the worker should only overwrite the obj-userptr.work pointer
if and only if it is the active one. Currently we clear it for a
secondary worker with the effect that we may rarely force a second
lookup.
Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
Whole series:
Tested-by: Michał Winiarski
fixes, s/posix_memalign/mmap (Tvrtko), merge tests into
single function, call set_tiling after get_pages, comments, GUP slowpath
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
Cc: Chris Wilson ch...@chris-wilson.co.uk
Cc: Tvrtko Ursulin tvrtko.ursu...@intel.com
---
tests
When the the memory backing the userptr object is freed by the user, it's
possible to trigger recursive deadlock caused by operations done on
different BO mapped in that region, triggering invalidate.
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
tests/gem_userptr_blits.c | 83
On Mon, Jun 29, 2015 at 12:17:33PM +0100, Chris Wilson wrote:
Michał Winiarski found a really evil way to trigger a struct_mutex
deadlock with userptr. He found that if he allocated a userptr bo and
then GTT mmaped another bo, or even itself, at the same address as the
userptr using MAP_FIXED
It was possible for invalidate range start mmu notifier callback to race
with releasing userptr object. If the object is released prior to
taking a spinlock in the callback, we'll encounter a null pointer
dereference.
Cc: Chris Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski
Testcase: igt/gem_userptr_blits/stress-mm-invalidate-close-overlap
Cc: Chris Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
drivers/gpu/drm/i915/i915_gem_userptr.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers
Wilson ch...@chris-wilson.co.uk
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
tests/gem_userptr_blits.c | 71 +--
1 file changed, 69 insertions(+), 2 deletions(-)
diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c
index
macros. Added comments.
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
drivers/gpu/drm/i915/intel_uncore.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_uncore.c
b/drivers/gpu/drm/i915/intel_uncore.c
index 0b0f4f8
shuffling bytes around and that would just break other
scenarios)
If not, what's your opinion on solution where we setparam from userspace, and
that adjusts kernel behaviour (if param is set we use 2x32 read)?
--
Michał Winiarski
Intel VPG
___
Intel-gfx
of timestamp in
architecture independent way (using two consecutive reads).
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
drivers/gpu/drm/i915/i915_sysfs.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c
b/drivers/gpu/drm
These registers are used as a temporary storage by MI_MATH command when
performing ALU operations.
Signed-off-by: Michał Winiarski michal.winiar...@intel.com
---
drivers/gpu/drm/i915/i915_cmd_parser.c | 16
drivers/gpu/drm/i915/i915_reg.h| 3 +++
2 files changed, 19
601 - 616 of 616 matches
Mail list logo