[Intel-gfx] [PATCH 4/4] drm/i915/fbc: enable FBC on gen 9+ too

2016-04-04 Thread Paulo Zanoni
on them too to make sure we fix FBC on them. Also, it seems KBL is passing the tests. If you reached this commit through git bisect or if you just want more information about FBC, please see: commit a98ee79317b4091cafb502b4ffdbbbe1335e298c Author: Paulo Zanoni Date: Tue Feb 16 18:4

[Intel-gfx] [PATCH 2/4] drm/i915/fbc: sanitize i915.enable_fbc during FBC init

2016-04-04 Thread Paulo Zanoni
BC is disabled, so it won't force TearFree. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index fc3c094..3d84ce3 10

[Intel-gfx] [PATCH igt 1/3] kms_frontbuffer_tracking: prefer the BLT drawing method

2016-04-04 Thread Paulo Zanoni
. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index b4fbbc5..c6d6bc0 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests

[Intel-gfx] [PATCH 2/4] drm/i915/fbc: sanitize i915.enable_fbc during FBC init

2016-04-13 Thread Paulo Zanoni
C was disabled, so it wouldn't force TearFree. v2: Extract intel_sanitize_fbc_option() (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c

[Intel-gfx] [PATCH 4/4] drm/i915/fbc: enable FBC on gen 9+ too

2016-04-13 Thread Paulo Zanoni
on them too to make sure we fix FBC on them. Also, it seems KBL is passing the tests. If you reached this commit through git bisect or if you just want more information about FBC, please see: commit a98ee79317b4091cafb502b4ffdbbbe1335e298c Author: Paulo Zanoni Date: Tue Feb 16 18:4

Re: [Intel-gfx] [PATCH] drm/i915: Remove early pre-production RPS workarounds for BXT

2017-01-26 Thread Paulo Zanoni
Em Qua, 2017-01-25 às 17:26 +, Chris Wilson escreveu: > Remove WaGsvDisableTurbo and WaRsUseTimeoutMode as these were only > for > pre-production Broxton devices, and this code is now defunct. Can you please also patch intel_detect_preproduction_hw()? Thanks, Paulo > > Signed-off-by: Chris

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Make intel_detect_preproduction_hw easier to extend

2017-01-26 Thread Paulo Zanoni
Em Qui, 2017-01-26 às 15:02 +0200, Ville Syrjälä escreveu: > On Thu, Jan 26, 2017 at 12:50:28PM +, Chris Wilson wrote: > > > > As we add new generations, we should keep detecting new system > > development platforms that were temporarily enabled (via > > "i915.alpha_support") and now supersede

[Intel-gfx] [PATCH] drm/i915: make i915_stolen_to_physical() return phys_addr_t

2017-01-26 Thread Paulo Zanoni
#x27;phys_addr_t'. The return value is actually a physical address and everything else in the stolen memory code seems to be using phys_addr_t, so fix i915_stolen_to_physical() to use phys_addr_t. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_gem_stolen.c | 16 +--- 1

Re: [Intel-gfx] [PATCH] drm/i915: make i915_stolen_to_physical() return phys_addr_t

2017-01-27 Thread Paulo Zanoni
Em Sex, 2017-01-27 às 15:59 +0200, Ville Syrjälä escreveu: > On Thu, Jan 26, 2017 at 06:19:07PM -0200, Paulo Zanoni wrote: > > > > The i915_stolen_to_physical() function has 'unsigned long' as its > > return type but it returns the 'base' variable, which i

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Treat stolen memory as DMA addresses

2017-01-27 Thread Paulo Zanoni
rough the scatterlists used to program the GTT > entries), > we should treat it as dma_addr_t throughout. I'm not a specialist here, but from what I could learn/understand, this seems good. The patch seems to do what it says, so: Reviewed-by: Paulo Zanoni But now that I looked some m

Re: [Intel-gfx] [PATCH] drm/i915: Sanity check the computed size and base of stolen memory

2017-01-27 Thread Paulo Zanoni
Em Sex, 2017-01-27 às 17:20 +, Chris Wilson escreveu: > Just do a quick check that the stolen memory address range doesn't > overflow our chosen integer type. Reviewed-by: Paulo Zanoni > > Signed-off-by: Chris Wilson > --- >  drivers/gpu/drm/i915/i915_gem_stolen.c |

[Intel-gfx] [PATCH 1/4] drm/i915: kill {bdw, bxt}_modeset_calc_cdclk

2017-02-17 Thread Paulo Zanoni
e VCO. Further patches could unify them even more if that's desired. While at it, merge some lines that can fit 80 columns in those functions. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_cdclk.c | 120 ++--- 1 file changed, 30 insertions(+), 90

[Intel-gfx] [PATCH 4/4] drm/i915: reorganize the get_cdclk assignment

2017-02-17 Thread Paulo Zanoni
. Possible disadvantages with the new code: - A few lines bigger. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_cdclk.c | 103 ++--- 1 file changed, 62 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_cdclk.c b/drivers/gp

[Intel-gfx] [PATCH 3/4] drm/i915: remove potentially confusing IS_G4X checks

2017-02-17 Thread Paulo Zanoni
rying to check which functions run on each platform may end up getting confused while reading the code. Fix the potential confusion by limiting the else if statements to only check for the platform that was not already checked earlier in the if ladder. Signed-off-by: Paulo Zanoni --- drivers/gp

[Intel-gfx] [PATCH 2/4] drm/i915: add intel_calc_cdclk()

2017-02-17 Thread Paulo Zanoni
: Paulo Zanoni --- drivers/gpu/drm/i915/intel_cdclk.c | 84 -- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_cdclk.c b/drivers/gpu/drm/i915/intel_cdclk.c index d505ff1..6efc5f4 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/4] Small clocking code refactor

2017-02-17 Thread Paulo Zanoni
Hi I've been trying to understand the clocking code and spotted some possible improvements. None of these changes are actually necessary for anything, but IMHO they make the code a little easier to read and later extend. Feel free to bikeshed or even NAK my proposals. Thanks, Paulo Paulo Z

Re: [Intel-gfx] [PATCH 4/4] drm/i915: reorganize the get_cdclk assignment

2017-02-17 Thread Paulo Zanoni
Em Sex, 2017-02-17 às 16:05 +0200, Ville Syrjälä escreveu: > On Fri, Feb 17, 2017 at 11:22:07AM -0200, Paulo Zanoni wrote: > > > > Possible problems of the current if-ladder: > >   - It's a huge if ladder with almost a different check for each of > > o

Re: [Intel-gfx] [PATCH 2/4] drm/i915: add intel_calc_cdclk()

2017-02-17 Thread Paulo Zanoni
Em Sex, 2017-02-17 às 15:49 +0200, Ville Syrjälä escreveu: > On Fri, Feb 17, 2017 at 11:22:05AM -0200, Paulo Zanoni wrote: > > > > Each x_modeset_calc_cdclk() has to do the same platform checks > > twice, > > so extract them to a single function. This way, the platfor

[Intel-gfx] [PATCH 3/3] drm/i915: reorganize the get_cdclk assignment

2017-02-20 Thread Paulo Zanoni
. Possible disadvantages with the new code: - A few lines bigger. v2: Don't unsort the list. Now the list almost matches the enum definition, with the exception of CHV, KBL and GLK, which are listed along their predecessors (Ville). Cc: Ville Syrjälä Signed-off-by: Paulo Zanoni --- drive

[Intel-gfx] [PATCH 2/3] drm/i915: remove potentially confusing IS_G4X checks

2017-02-20 Thread Paulo Zanoni
rying to check which functions run on each platform may end up getting confused while reading the code. Fix the potential confusion by limiting the else if statements to only check for the platform that was not already checked earlier in the if ladder. Signed-off-by: Paulo Zanoni --- drivers/gp

[Intel-gfx] [PATCH 1/3] drm/i915: unify the x_modeset_calc_cdclk() functions

2017-02-20 Thread Paulo Zanoni
had 2 different patches addressing these problems, but wiht Ville's suggestion I think it makes more sense to keep everything in a single patch (Ville). Cc: Ville Syrjälä Cc: Rodrigo Vivi Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 4 +- drivers/gp

[Intel-gfx] [PATCH 0/3] Small clocking code refactor, v2.

2017-02-20 Thread Paulo Zanoni
With Ville's comments addressed. The main difference now is that what used to be patches 1 and 2 are now just patch 1. Paulo Zanoni (3): drm/i915: unify the x_modeset_calc_cdclk() functions drm/i915: remove potentially confusing IS_G4X checks drm/i915: reorganize the get_cdclk assig

Re: [Intel-gfx] [PATCH i-g-t] kms_frontbuffer_tracking: Fix badstride test skipping with atomic

2017-02-21 Thread Paulo Zanoni
xpections/expectations/ Reviewed-by: Paulo Zanoni > > Cc: Maarten Lankhorst > Cc: Paulo Zanoni > Signed-off-by: Ander Conselvan de Oliveira r...@intel.com> > --- >  tests/kms_frontbuffer_tracking.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [Intel-gfx] [PATCH 3/3] drm/i915: reorganize the get_cdclk assignment

2017-02-21 Thread Paulo Zanoni
Em Ter, 2017-02-21 às 13:51 +0200, Ville Syrjälä escreveu: > On Mon, Feb 20, 2017 at 05:00:42PM -0300, Paulo Zanoni wrote: > > > > Possible problems of the current if-ladder: > >   - It's a huge if ladder with almost a different check for each of > > o

Re: [Intel-gfx] [PATCH 3/3] drm/i915: reorganize the get_cdclk assignment

2017-02-21 Thread Paulo Zanoni
Em Ter, 2017-02-21 às 14:26 +0200, Ander Conselvan De Oliveira escreveu: > On Mon, 2017-02-20 at 17:00 -0300, Paulo Zanoni wrote: > > > > Possible problems of the current if-ladder: > >   - It's a huge if ladder with almost a different check for each of > > o

[Intel-gfx] [PATCH] drm/i915: move the {skl, bxt}_{i, uni}nit_cdclk declarations

2017-02-21 Thread Paulo Zanoni
Move the {skl,bxt}_{i,uni}nit_cdclk declarations to the place where the intel_cdclk.c functions are declared since these functions have moved there. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_drv.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Avoid BIT(max) - 1 and use GENMASK(max - 1, 0)

2017-02-24 Thread Paulo Zanoni
Em Qua, 2017-02-08 às 15:12 +0200, Joonas Lahtinen escreveu: > "BIT(max) - 1" will overflow when max = 32, and GCC will complain. > We already have GENMASK for generating the mask, use it! > > v2: Majestic off by one spotted (Chris) > > Signed-off-by: Joonas Lahtinen > Cc: Chris Wilson > --- >

[Intel-gfx] [PATCH] drm/i915: revert a few more watermark commits

2015-10-09 Thread Paulo Zanoni
e brief testing, it also seems that this commit prevents the machine from completely freezing when we run igt/kms_fbc_crc (see fd.o #92355). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92355 Cc: Matt Roper Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 4 + drive

[Intel-gfx] [PATCH 09/18] drm/i915: don't disable_fbc() if FBC is already disabled

2015-10-20 Thread Paulo Zanoni
uot;you touched registers while the device is suspended" WARNs. But this was some time ago and I can't remember exactly which conditions were necessary to reproduce the problem. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[Intel-gfx] [PATCH 07/18] drm/i915: fix the __intel_fbc_update() comments

2015-10-20 Thread Paulo Zanoni
Don't try to list in comments the cases where we should enable or disable FBC: it varies a lot with the hardware generations and the code should be the documentation. Also notice that there's already a huge gap between the comments and what's in the code. Signed-off-by: Paulo Zanon

[Intel-gfx] [PATCH 08/18] drm/i915: pass the crtc as an argument to intel_fbc_update()

2015-10-20 Thread Paulo Zanoni
p track of the previously selected CRTC when we do invalidate/flush. We're also going to continue the enable/disable/activate/deactivate concept in the next patches. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 3 +- drivers/gpu/drm/i915/intel_drv.h | 2 +-

[Intel-gfx] [PATCH 04/18] drm/i915: extract crtc_is_valid() on the FBC code

2015-10-20 Thread Paulo Zanoni
We're going to kill intel_fbc_find_crtc(), that's why a big part of the logic moved from intel_fbc_find_crtc() to crtc_is_valid(). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) di

[Intel-gfx] [PATCH 12/18] drm/i915: introduce intel_fbc_{enable, disable}

2015-10-20 Thread Paulo Zanoni
will just start/stop FBC without changing its associated pipe. This is the same naming scheme we use in other features, such as PSR. This will also help in case we decide to move FBC to pipe_config or something else later. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 03/18] drm/i915: only nuke FBC when a drawing operation triggers a flush

2015-10-20 Thread Paulo Zanoni
There's no need to stop and restart FBC: a nuke should be fine. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 9477379..b9

[Intel-gfx] [PATCH 15/18] drm/i915: alloc/free the FBC CFB during enable/disable

2015-10-20 Thread Paulo Zanoni
ible to implement a way to free+alloc the CFB during said stride change, but it would involve a lot of book-keeping - exactly as mentioned above - just for a rare case, so for now I'll keep it simple and just deactivate FBC. Besides, we may not even need to disable FBC since we do CFB over-allo

[Intel-gfx] [PATCH 13/18] drm/i915: remove too-frequent FBC debug message

2015-10-20 Thread Paulo Zanoni
If we run igt/kms_frontbuffer_tracking, this message will appear thousands of times, eating a significant part of our dmesg buffer. It's part of the expected FBC behavior, so let's just silence it. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 -- 1 file

[Intel-gfx] [PATCH 16/18] drm/i915: move adjusted_mode checks from fbc_update to fbc_enable

2015-10-20 Thread Paulo Zanoni
These things can't change without a full modeset. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 48d8cfc..af

[Intel-gfx] [PATCH 10/18] drm/i915: introduce is_active/activate/deactivate to the FBC terminology

2015-10-20 Thread Paulo Zanoni
full correct terminology is not complete yet, so there is still some confusion that will be solved in the next patches. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 10 ++- drivers/gpu/drm/i915/intel_display.c | 4 +- driver

[Intel-gfx] [PATCH 18/18] drm/i915: check for FBC planes in the same place as the pipes

2015-10-20 Thread Paulo Zanoni
This moves the pre-gen4 check from update() to enable(). The HAS_DDI in the original code is not needed since only gen 2/3 have the plane swapping code. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a

[Intel-gfx] [PATCH 17/18] drm/i915: move clock frequency checks from fbc_update to fbc_enable

2015-10-20 Thread Paulo Zanoni
These also can't change without a full modeset. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index af22bc8..7f54b6f 1

[Intel-gfx] [PATCH 06/18] drm/i915: use struct intel_crtc *crtc at __intel_fbc_update()

2015-10-20 Thread Paulo Zanoni
combination drm_crtc *crtc + intel_crtc *intel_crtc, and on the mentioned commit we'll get rid of the drm_crtc variable, so let's do an intermediate commit with the rename, so on the next commit we'll have just struct intel_crtc *crtc. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i

[Intel-gfx] [PATCH 11/18] drm/i915: refactor FBC deactivation at init

2015-10-20 Thread Paulo Zanoni
Make sure we deactivate FBC at intel_fbc_init(), so we can remove the call from intel_display.c. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 3 --- drivers/gpu/drm/i915/intel_fbc.c | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers

[Intel-gfx] [PATCH 02/18] drm/i915: don't stop+start FBC at every flip

2015-10-20 Thread Paulo Zanoni
at happened right at that time." So I guess we're fine for flips. But I can't really say I tested FBC on these ancient platforms - nor that I'll ever propose enabling FBC by default on them exactly because of problems like these. Testcase: igt/kms_frontbuffer_tracking/fbc*-flipt

[Intel-gfx] [PATCH 01/18] drm/i915: change no_fbc_reason from enum to string

2015-10-20 Thread Paulo Zanoni
. Credits-to: Damien Lespiau Cc: Damien Lespiau Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 19 + drivers/gpu/drm/i915/intel_drv.h| 1 - drivers/gpu/drm/i915/intel_fbc.c| 77

[Intel-gfx] [PATCH 00/18] Yet another FBC series

2015-10-20 Thread Paulo Zanoni
always do more and more code reworks, but this series kills the last real bugs I can see on HSW+, so it will be time to consider enabling FBC on these platforms after we merge the series. Thanks, Paulo Paulo Zanoni (18): drm/i915: change no_fbc_reason from enum to string drm/i915: don't st

[Intel-gfx] [PATCH 14/18] drm/i915: fix the CFB size check

2015-10-20 Thread Paulo Zanoni
me later. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 5dab0e0..bf855b2 100644 --- a/drivers/gpu/drm/i915/intel_fbc.c +++ b/drivers/gpu/

[Intel-gfx] [PATCH 05/18] drm/i915: set dev_priv->fbc.crtc before scheduling the enable work

2015-10-20 Thread Paulo Zanoni
simpler. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/intel_fbc.c | 25 ++--- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index f04f56f

[Intel-gfx] [PATCH igt 3/4] kms_frontbuffer_tracking: add stridechange subtest

2015-10-20 Thread Paulo Zanoni
everything still works as expected. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 47 +++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 2c0295c..e183a06

[Intel-gfx] [PATCH igt 2/4] kms_frontbuffer_tracking: add flag to not assert feature status

2015-10-20 Thread Paulo Zanoni
This will be used by the stridechange subtest. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 421f949

[Intel-gfx] [PATCH igt 1/4] kms_frontbuffer_tracking: unset crtcs after getting the base blue CRC

2015-10-20 Thread Paulo Zanoni
This fixes the failures for cases where you use --run-subtest to run single subtests that don't use any drawing patterns. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_frontbuffer_tracking.c b/

[Intel-gfx] [PATCH igt 4/4] kms_frontbuffer_tracking: remove opt.only_feature

2015-10-20 Thread Paulo Zanoni
w which of the tests marked as skipped were actual FBC tests. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 29 ++--- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index e18

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-23 Thread Paulo Zanoni
-3243,8 +3278,11 @@ int main(int argc, char *argv[]) > igt_subtest_f("%s-%s-draw-%s", > feature_str(t.feature), > format_str(t.format), > - igt_draw

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-26 Thread Paulo Zanoni
2015-10-26 12:59 GMT-02:00 David Weinehall : > On Fri, Oct 23, 2015 at 11:50:46AM -0200, Paulo Zanoni wrote: > > [snip] > >> It's not clear to me, please clarify: now the tests that were >> previously completely hidden will be listed in --list-subtests and >> wil

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-26 Thread Paulo Zanoni
2015-10-26 15:30 GMT-02:00 David Weinehall : > On Mon, Oct 26, 2015 at 02:44:18PM -0200, Paulo Zanoni wrote: >> 2015-10-26 12:59 GMT-02:00 David Weinehall : >> > On Fri, Oct 23, 2015 at 11:50:46AM -0200, Paulo Zanoni wrote: >> > >> > [snip] >> > >&g

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-26 Thread Paulo Zanoni
"%s-%s-%s-%s-multidraw", >> feature_str(t.feature), >> pipes_str(t.pipes), >> plane_str(t.plane), >> - fbs_str(t.fbs)) >> + fbs_str(t.fbs)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> multidraw_subtest(&t); >> + } >> TEST_MODE_ITER_END >> >> TEST_MODE_ITER_BEGIN(t) >> @@ -3224,8 +3256,11 @@ int main(int argc, char *argv[]) >> t.method != IGT_DRAW_MMAP_GTT) >> continue; >> >> - igt_subtest_f("%s-farfromfence", feature_str(t.feature)) >> + igt_subtest_f("%s-farfromfence", feature_str(t.feature)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> farfromfence_subtest(&t); >> + } >> TEST_MODE_ITER_END >> >> TEST_MODE_ITER_BEGIN(t) >> @@ -3243,8 +3278,11 @@ int main(int argc, char *argv[]) >> igt_subtest_f("%s-%s-draw-%s", >> feature_str(t.feature), >> format_str(t.format), >> - igt_draw_get_method_name(t.method)) >> + igt_draw_get_method_name(t.method)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> format_draw_subtest(&t); >> + } >> } >> TEST_MODE_ITER_END >> >> @@ -3256,8 +3294,11 @@ int main(int argc, char *argv[]) >> continue; >> igt_subtest_f("%s-%s-scaledprimary", >> feature_str(t.feature), >> - fbs_str(t.fbs)) >> + fbs_str(t.fbs)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> scaledprimary_subtest(&t); >> + } >> TEST_MODE_ITER_END >> >> TEST_MODE_ITER_BEGIN(t) >> @@ -3268,19 +3309,31 @@ int main(int argc, char *argv[]) >> t.method != IGT_DRAW_MMAP_CPU) >> continue; >> >> - igt_subtest_f("%s-modesetfrombusy", feature_str(t.feature)) >> + igt_subtest_f("%s-modesetfrombusy", feature_str(t.feature)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> modesetfrombusy_subtest(&t); >> + } >> >> if (t.feature & FEATURE_FBC) >> - igt_subtest_f("%s-badstride", feature_str(t.feature)) >> + igt_subtest_f("%s-badstride", >> feature_str(t.feature)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> badstride_subtest(&t); >> + } >> >> if (t.feature & FEATURE_PSR) >> - igt_subtest_f("%s-slowdraw", feature_str(t.feature)) >> + igt_subtest_f("%s-slowdraw", feature_str(t.feature)) >> { >> + if (t.slow) >> + igt_slow_combinatorial(); >> slow_draw_subtest(&t); >> + } >> >> - igt_subtest_f("%s-suspend", feature_str(t.feature)) >> + igt_subtest_f("%s-suspend", feature_str(t.feature)) { >> + if (t.slow) >> + igt_slow_combinatorial(); >> suspend_subtest(&t); >> + } >> TEST_MODE_ITER_END >> >> igt_fixture >> -- >> 2.6.1 >> >> ___ >> Intel-gfx mailing list >> Intel-gfx@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/intel-gfx > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Paulo Zanoni ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 16/26] drm/i915: remove too-frequent FBC debug message

2015-10-27 Thread Paulo Zanoni
If we run igt/kms_frontbuffer_tracking, this message will appear thousands of times, eating a significant part of our dmesg buffer. It's part of the expected FBC behavior, so let's just silence it. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 -- 1 file

[Intel-gfx] [PATCH 05/26] drm/i915: extract fbc_on_pipe_a_only()

2015-10-27 Thread Paulo Zanoni
Make the code easier to read. Suggested-by: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 7d8e996..4d6ebc7

[Intel-gfx] [PATCH 03/26] drm/i915: rename intel_fbc_nuke to intel_fbc_recompress

2015-10-27 Thread Paulo Zanoni
Although the term "nuke" is part of the FBC spec, it's not very intuitive, so let's rename it to make it easier for people that are not familiar with the spec. Requested-by: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 7 --- 1 file c

[Intel-gfx] [PATCH 06/26] drm/i915: remove unnecessary check for crtc->primary->fb

2015-10-27 Thread Paulo Zanoni
We already check if the CRTC is visible, and it shouldn't be possible to have a visible CRTC without an FB. This was noticed by both Chris and Ville on different ocasions. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[Intel-gfx] [PATCH 04/26] drm/i915: only nuke FBC when a drawing operation triggers a flush

2015-10-27 Thread Paulo Zanoni
There's no need to stop and restart FBC: a nuke should be fine. The specific check for ORIGIN_FLIP is not needed anymore since we have an early return for the ORIGIN_FLIP && dev_priv->fbc.enabled case. v2: Make it simpler (Chris). Signed-off-by: Paulo Zanoni --- driv

[Intel-gfx] [PATCH 14/26] drm/i915: refactor FBC deactivation at init

2015-10-27 Thread Paulo Zanoni
Make sure we deactivate FBC at intel_fbc_init(), so we can remove the call from intel_display.c. v2: Keep/improve the comment (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 3 --- drivers/gpu/drm/i915/intel_fbc.c | 8 ++-- 2 files changed, 6 insertions

[Intel-gfx] [PATCH 02/26] drm/i915: don't stop+start FBC at every flip

2015-10-27 Thread Paulo Zanoni
kms_frontbuffer_tracking/fbc*-fliptrack Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 3 + drivers/gpu/drm/i915/intel_display.c | 1 - drivers/gpu/drm/i915/intel_drv.h | 2

[Intel-gfx] [PATCH 08/26] drm/i915: set dev_priv->fbc.crtc before scheduling the enable work

2015-10-27 Thread Paulo Zanoni
introduce enable/disable + activate/deactivate, this will be even simpler as we'll set the CRTC at enable time. So all the activate/deactivate/update code can just look at the single CRTC variable regardless of the current state. v2: Improve commit message (Chris). Signed-off-by: Paulo Zanoni --

[Intel-gfx] [PATCH 01/26] drm/i915: change no_fbc_reason from enum to string

2015-10-27 Thread Paulo Zanoni
. Credits-to: Damien Lespiau Cc: Damien Lespiau Reviewed-by: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 19 + drivers/gpu/drm/i915/intel_drv.h| 1 - drivers/gpu/drm/i915/intel_fbc.c| 77

[Intel-gfx] [PATCH 11/26] drm/i915: pass the crtc as an argument to intel_fbc_update()

2015-10-27 Thread Paulo Zanoni
p track of the previously selected CRTC when we do invalidate/flush. We're also going to continue the enable/disable/activate/deactivate concept in the next patches. v2: Rebase. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 3 +- drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH 21/26] drm/i915: check for FBC planes in the same place as the pipes

2015-10-27 Thread Paulo Zanoni
This moves the pre-gen4 check from update() to enable(). The HAS_DDI in the original code is not needed since only gen 2/3 have the plane swapping code. v2: Rebase. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions

[Intel-gfx] [PATCH 13/26] drm/i915: introduce is_active/activate/deactivate to the FBC terminology

2015-10-27 Thread Paulo Zanoni
This patch by itself has no benefits other than making review and rebase easier. Please see the next patches for more details on the conversion. v2: - Rebase. - Improve commit message (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm

[Intel-gfx] [PATCH 22/26] drm/i915: clarify that checking the FB stride for CFB is intentional

2015-10-27 Thread Paulo Zanoni
8f7 Author: Paulo Zanoni Date: Thu Oct 1 19:55:57 2015 -0300 drm/i915: fix CFB size calculation Requested-by: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/

[Intel-gfx] [PATCH 00/26] Yet another FBC series, v2

2015-10-27 Thread Paulo Zanoni
know, every review request is implemented here. Thanks Chris for the reviews so far! Paulo Paulo Zanoni (26): drm/i915: change no_fbc_reason from enum to string drm/i915: don't stop+start FBC at every flip drm/i915: rename intel_fbc_nuke to intel_fbc_recompress drm/i915: only nuke FBC

[Intel-gfx] [PATCH 07/26] drm/i915: extract crtc_is_valid() on the FBC code

2015-10-27 Thread Paulo Zanoni
We're going to kill intel_fbc_find_crtc(), that's why a big part of the logic moved from intel_fbc_find_crtc() to crtc_is_valid(). v2: - Rebase due to pipe_a_only change. - Split the multiline conditional (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH 10/26] drm/i915: fix the __intel_fbc_update() comments

2015-10-27 Thread Paulo Zanoni
Don't try to list in comments the cases where we should enable or disable FBC: it varies a lot with the hardware generations and the code should be the documentation. Also notice that there's already a huge gap between the comments and what's in the code. Signed-off-by: Paulo Zanon

[Intel-gfx] [PATCH 24/26] drm/i915: wait for a vblank instead of 50ms when enabling FBC

2015-10-27 Thread Paulo Zanoni
Instead of waiting for 50ms, just wait until the next vblank, since it's the minimum requirement. This moves PC7 residency on my specific BDW machine running Cinnamon from 60-70% to 84-89%. Without FBC, I get 20-25%. I'm using a 3200x1800 eDP panel. Signed-off-by: Paulo Zanoni --- d

[Intel-gfx] [PATCH 25/26] drm/i915: remove in_dbg_master check from intel_fbc.c

2015-10-27 Thread Paulo Zanoni
he code as suggested by Daniel or we add some nice comments explaining why is FBC so special. Cc: Jason Wessel Cc: Jesse Barnes Cc: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH 23/26] drm/i915: use a single intel_fbc_work struct

2015-10-27 Thread Paulo Zanoni
king the work function a normal work instead of a delayed work, and it will be responsible for sleeping the appropriate amount of time itself. This way, after it wakes up it can grab the lock, ask "were we delayed or cancelled?" and then go back to sleep, enable FBC or give up. Signed-off-by

[Intel-gfx] [PATCH 15/26] drm/i915: introduce intel_fbc_{enable, disable}

2015-10-27 Thread Paulo Zanoni
ts the very basic code on enable() and disable(). The next commits will take care of moving more stuff from update() to the new functions. v2: - Rebase. - Improve commit message (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_dis

[Intel-gfx] [PATCH 09/26] drm/i915: use struct intel_crtc *crtc at __intel_fbc_update()

2015-10-27 Thread Paulo Zanoni
combination drm_crtc *crtc + intel_crtc *intel_crtc, and on the mentioned commit we'll get rid of the drm_crtc variable, so let's do an intermediate commit with the rename, so on the next commit we'll have just struct intel_crtc *crtc. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i

[Intel-gfx] [PATCH 18/26] drm/i915: alloc/free the FBC CFB during enable/disable

2015-10-27 Thread Paulo Zanoni
ible to implement a way to free+alloc the CFB during said stride change, but it would involve a lot of book-keeping - exactly as mentioned above - just for a rare case, so for now I'll keep it simple and just deactivate FBC. Besides, we may not even need to disable FBC since we do CFB over-allo

[Intel-gfx] [PATCH 20/26] drm/i915: move clock frequency checks from fbc_update to fbc_enable

2015-10-27 Thread Paulo Zanoni
These also can't change without a full modeset. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 6aa9af8..a9f133a 1

[Intel-gfx] [PATCH 17/26] drm/i915: fix the CFB size check

2015-10-27 Thread Paulo Zanoni
me later. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 17f098d..29d61d1 100644 --- a/drivers/gpu/drm/i915/intel_fbc.c +++ b/drivers/gpu/

[Intel-gfx] [PATCH 12/26] drm/i915: don't disable_fbc() if FBC is already disabled

2015-10-27 Thread Paulo Zanoni
uot;you touched registers while the device is suspended" WARNs. But this was some time ago and I can't remember exactly which conditions were necessary to reproduce the problem. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[Intel-gfx] [PATCH 19/26] drm/i915: move adjusted_mode checks from fbc_update to fbc_enable

2015-10-27 Thread Paulo Zanoni
These things can't change without a full modeset. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 0ba25b9..6a

[Intel-gfx] [PATCH 26/26] drm/i915: kill fbc.uncompressed_size

2015-10-27 Thread Paulo Zanoni
Directly call intel_fbc_calculate_cfb_size() in the only place that actually needs it, and use the proper check before removing the stolen node. IMHO, this change makes our code easier to understand. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-28 Thread Paulo Zanoni
continue; > > - igt_subtest_f("%s-%s-draw-%s", > - feature_str(t.feature), > - format_str(t.format), > - igt_draw_get_method_name(t.method)) > + igt_subtest_slow_f(t.slow, > + "%s-%s-draw-%s", > + feature_str(t.feature), > + format_str(t.format), > + igt_draw_get_method_name(t.method)) > format_draw_subtest(&t); > } > TEST_MODE_ITER_END > @@ -3275,9 +3288,10 @@ int main(int argc, char *argv[]) > t.plane != PLANE_PRI || > t.method != IGT_DRAW_MMAP_CPU) > continue; > - igt_subtest_f("%s-%s-scaledprimary", > - feature_str(t.feature), > - fbs_str(t.fbs)) > + igt_subtest_slow_f(t.slow, > + "%s-%s-scaledprimary", > + feature_str(t.feature), > + fbs_str(t.fbs)) > scaledprimary_subtest(&t); > TEST_MODE_ITER_END > > @@ -3289,22 +3303,32 @@ int main(int argc, char *argv[]) > t.method != IGT_DRAW_MMAP_CPU) > continue; > > - igt_subtest_f("%s-modesetfrombusy", feature_str(t.feature)) > + igt_subtest_slow_f(t.slow, > + "%s-modesetfrombusy", > + feature_str(t.feature)) > modesetfrombusy_subtest(&t); > > if (t.feature & FEATURE_FBC) { > - igt_subtest_f("%s-badstride", feature_str(t.feature)) > + igt_subtest_slow_f(t.slow, > + "%s-badstride", > + feature_str(t.feature)) > badstride_subtest(&t); > > - igt_subtest_f("%s-stridechange", > feature_str(t.feature)) > + igt_subtest_slow_f(t.slow, > + "%s-stridechange", > + feature_str(t.feature)) > stridechange_subtest(&t); > } > > if (t.feature & FEATURE_PSR) > - igt_subtest_f("%s-slowdraw", feature_str(t.feature)) > + igt_subtest_slow_f(t.slow, > + "%s-slowdraw", > + feature_str(t.feature)) > slow_draw_subtest(&t); > > - igt_subtest_f("%s-suspend", feature_str(t.feature)) > + igt_subtest_slow_f(t.slow, > + "%s-suspend", > + feature_str(t.feature)) > suspend_subtest(&t); > TEST_MODE_ITER_END > > -- > 2.6.2 > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Paulo Zanoni ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 03/14] drm/i915: Enable PCH FIFO underruns later on ILK/SNB/IVB

2015-10-29 Thread Paulo Zanoni
ble_pipe(intel_crtc); > > ironlake_pfit_disable(intel_crtc, false); > -- > 2.4.10 > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Paulo Zanoni ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 2/3] Unify handling of slow/combinatorial tests

2015-10-30 Thread Paulo Zanoni
2015-10-30 5:56 GMT-02:00 David Weinehall : > On Wed, Oct 28, 2015 at 02:12:15PM -0200, Paulo Zanoni wrote: >> 2015-10-28 9:29 GMT-02:00 David Weinehall : >> > Some tests should not be run by default, due to their slow, >> > and sometimes superfluous, nature. >> &

[Intel-gfx] [PATCH 13/13] drm/i915: remove newline from a no_fbc_reason message

2015-11-04 Thread Paulo Zanoni
Newlines are not needed and they're not used by the other messages. I added the newline by mistake. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 12/13] drm/i915: remove in_dbg_master check from intel_fbc.c

2015-11-04 Thread Paulo Zanoni
he code as suggested by Daniel or we add some nice comments explaining why is FBC so special. v2: Rebase due to new patch order. Cc: Jason Wessel Cc: Jesse Barnes Cc: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 6 -- 1 file changed, 6 deletions(-) diff

[Intel-gfx] [PATCH 01/13] drm/i915: rename intel_fbc_nuke to intel_fbc_recompress

2015-11-04 Thread Paulo Zanoni
Although the term "nuke" is part of the FBC spec, it's not very intuitive, so let's rename it to make it easier for people that are not familiar with the spec. Requested-by: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 7 --- 1 file c

[Intel-gfx] [PATCH 09/13] drm/i915: remove too-frequent FBC debug message

2015-11-04 Thread Paulo Zanoni
If we run igt/kms_frontbuffer_tracking, this message will appear thousands of times, eating a significant part of our dmesg buffer. It's part of the expected FBC behavior, so let's just silence it. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 -- 1 file

[Intel-gfx] [PATCH 05/13] drm/i915: use struct intel_crtc *crtc at __intel_fbc_update()

2015-11-04 Thread Paulo Zanoni
combination drm_crtc *crtc + intel_crtc *intel_crtc, and on the mentioned commit we'll get rid of the drm_crtc variable, so let's do an intermediate commit with the rename, so on the next commit we'll have just struct intel_crtc *crtc. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i

[Intel-gfx] [PATCH 08/13] drm/i915: refactor FBC deactivation at init

2015-11-04 Thread Paulo Zanoni
el_fbc_disable() from intel_modeset_init() won't work. It's better to make sure intel_fbc_init() already puts the hardware in the expected state, so we can put nice assertions in the other functions. v2: Keep/improve the comment (Chris). v3: Improve the commit message a little bit. Sign

[Intel-gfx] [PATCH 07/13] drm/i915: don't disable_fbc() if FBC is already disabled

2015-11-04 Thread Paulo Zanoni
uot;you touched registers while the device is suspended" WARNs. But this was some time ago and I can't remember exactly which conditions were necessary to reproduce the problem. v2: Rebase to new series order. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file ch

[Intel-gfx] [PATCH 00/13] Yet another FBC series, v3 part 1

2015-11-04 Thread Paulo Zanoni
changes are needed, please go check the complete series (the short answer is: most of the changes are needed for the new model with enable/disable + activate/deactivate). After all these patches are merged I'll resend the rest. Thanks for all the reviews so far, Paulo Paulo Zanoni (13): drm

[Intel-gfx] [PATCH 10/13] drm/i915: fix the CFB size check

2015-11-04 Thread Paulo Zanoni
me later. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index dee99c9..e99aacc 100644 --- a/drivers/gpu/drm/i915/intel_fbc.c +++ b/drivers/gpu/

[Intel-gfx] [PATCH 03/13] drm/i915: remove unnecessary check for crtc->primary->fb

2015-11-04 Thread Paulo Zanoni
We already check if the CRTC is visible, and it shouldn't be possible to have a visible CRTC without an FB. This was noticed by both Chris and Ville on different ocasions. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[Intel-gfx] [PATCH 11/13] drm/i915: clarify that checking the FB stride for CFB is intentional

2015-11-04 Thread Paulo Zanoni
8f7 Author: Paulo Zanoni Date: Thu Oct 1 19:55:57 2015 -0300 drm/i915: fix CFB size calculation Requested-by: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/

[Intel-gfx] [PATCH 02/13] drm/i915: extract fbc_on_pipe_a_only()

2015-11-04 Thread Paulo Zanoni
Make the code easier to read. Suggested-by: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 19a3e93..55bef12

[Intel-gfx] [PATCH 04/13] drm/i915: extract crtc_is_valid() on the FBC code

2015-11-04 Thread Paulo Zanoni
We're going to kill intel_fbc_find_crtc(), that's why a big part of the logic moved from intel_fbc_find_crtc() to crtc_is_valid(). v2: - Rebase due to pipe_a_only change. - Split the multiline conditional (Chris). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH 06/13] drm/i915: fix the __intel_fbc_update() comments

2015-11-04 Thread Paulo Zanoni
Don't try to list in comments the cases where we should enable or disable FBC: it varies a lot with the hardware generations and the code should be the documentation. Also notice that there's already a huge gap between the comments and what's in the code. Signed-off-by: Paulo Zanon

Re: [Intel-gfx] [PATCH] drm/i915: get runtime PM reference around GEM set_caching IOCTL

2015-11-04 Thread Paulo Zanoni
this IOCTL wouldn't hurt :) Reviewed-by: Paulo Zanoni > > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_gem.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c >

<    2   3   4   5   6   7   8   9   10   11   >