[Intel-gfx] [RFC 2/2] drm/i915: Clean-up PPGTT on context destruction

2015-02-12 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com With full PPGTT enabled an object's VMA entry into a PPGTT VM needs to be cleaned up so that the PPGTT PDE PTE allocations can be freed. This problem only shows up with full PPGTT because an object's VMA is only cleaned-up when the object

[Intel-gfx] [RFC 0/2] Contain PPGTT memory leak/usage in true PPGTT mode

2015-02-12 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com This particular memory leak, if I can call it that, shows itself when i915 is in true PPGTT mode and you share a buffer object to another hardware context using flink. In the failure case harware context A creates an object does some rendering

[Intel-gfx] [RFC 1/2] drm/i915: Export active PPGTTs in debugfs

2015-02-12 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com It's possible to gather up basic information on all active VMs. Signed-off-by: Rafael Barbalho rafael.barba...@intel.com Cc: Daniel Vetter dan...@ffwll.ch Cc: Jon Bloomfield jon.bloomfi...@intel.com --- drivers/gpu/drm/i915/i915_debugfs.c | 41

[Intel-gfx] [PATCH] drm/i915: Correctly read backlight PWM for pipe B on vlv/chv

2014-07-29 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com Make the vlv/chv backlight setup more generic by actually looking at which pipe the panel is attached to and read the backlight PWM registers that were setup by the bios from that pipe. Cc: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off

[Intel-gfx] [PATCH] drm/i915: Fix read back of plane stride register

2014-07-28 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com According to the specifications bit 6 is actually valid in the stride register. Cc: Jesse Barnes jbar...@virtuousgeek.org Cc: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Rafael Barbalho rafael.barba...@intel.com --- drivers/gpu/drm

[Intel-gfx] [PATCH] drm/i915: Fix crash when failing to parse MIPI VBT

2014-07-24 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com This particular nasty presented itself while trying to register the intelfb device (intel_fbdev.c). During the process of registering the device the driver will disable the crtc via i9xx_crtc_disable. These will also disable the panel using

[Intel-gfx] [PATCH 3/5] android: Add makefile for the lib directory

2014-01-31 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com The lib directory should really be compiled as a static library on its own and be re-used by any tests or tools that require it. Signed-off-by: Rafael Barbalho rafael.barba...@intel.com --- lib/Android.mk | 31 +++ 1

[Intel-gfx] [PATCH 1/5] android: Handle the case when android doesn't have mmap64

2014-01-31 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com Not all versions of Android have the mmap64 call, thus a suitable alternative must be called. Signed-off-by: Rafael Barbalho rafael.barba...@intel.com --- lib/intel_gpu_tools.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/lib

[Intel-gfx] [PATCH 2/5] android: Clean-up common makefile directives

2014-01-31 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com All the Android.mk files had the same directives to find the path of libdrm libpciaccess. These are no longer required as the android system now allows the libraries being used to export include paths to dependant modules programs. Signed-off

[Intel-gfx] [PATCH 4/5] android: Add the generation of vesion.h config.h to lib

2014-01-31 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com The lib directory is used by all the tests tools so it should really be the place where the generate files are created. Signed-off-by: Rafael Barbalho rafael.barba...@intel.com --- lib/Android.mk | 33 + 1 file

[Intel-gfx] [PATCH 5/5] android: Change tests tools directory to use the lib directory

2014-01-31 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com Instead of recompiling the lib directory for every tool or tests we can just re-use the static library. This also has the nice side effect of fixing the android mm command to allow android users to only rebuild the local changes in either the test

[Intel-gfx] [PATCH] tests/gem_reloc_overflow: Add gen8+ specifc tests

2013-11-06 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com Broadwell introduces 64-bit relocation addresses which add extra corner cases. The test was refactored slightly with some tests that were in the source offset tests were moved to the more generic reloc test area. The source offset tests are now gen

[Intel-gfx] [PATCH] drm/i915: Cleaning up the relocate entry function

2013-08-21 Thread rafael . barbalho
From: Rafael Barbalho rafael.barba...@intel.com As the relocate entry function was getting a bit too big I've moved the code that used to use either the cpu or the gtt to for the relocation into two separate functions. Signed-off-by: Rafael Barbalho rafael.barba...@intel.com --- drivers/gpu/drm