Re: [Intel-gfx] [PATCH 1/2] drm/i915: skip the first 4k of stolen memory on everything >= gen8

2016-12-14 Thread Paulo Zanoni
Em Ter, 2016-12-13 às 18:01 -0200, Paulo Zanoni escreveu: > Em Ter, 2016-12-13 às 17:57 -0200, Paulo Zanoni escreveu: > > > > BSpec got updated and this workaround is now listed as standard > > required programming for all subsequent projects. > > Ok, so I got confirm

[Intel-gfx] [PATCH 2/2] drm/i915: fully apply WaSkipStolenMemoryFirstPage

2016-12-14 Thread Paulo Zanoni
at means losing BIOS framebuffer inheritance. Let's not use the HW in a way it's not supposed to be used. v2: don't even put the first page on the mm (Chris). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94605 Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/

[Intel-gfx] [PATCH 1/2] drm/i915: skip the first 4k of stolen memory on everything >= gen8

2016-12-14 Thread Paulo Zanoni
heory). v2: this is the patch that fixes the screen flickering, document it. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94605 Cc: sta...@vger.kernel.org Tested-by: Dominik Klementowski Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_gem_stolen.c | 5 ++--- 1 file chang

[Intel-gfx] [PATCH 2/2] drm/i915: fully apply WaSkipStolenMemoryFirstPage

2016-12-14 Thread Paulo Zanoni
w_bug.cgi?id=94605 Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_gem_gtt.h| 1 + drivers/gpu/drm/i915/i915_gem_stolen.c | 34 +- drivers/gpu/drm/i915/intel_fbc.c | 6 +++--- 3 files changed, 17 insertions(+), 24 deletions(-)

Re: [Intel-gfx] [PATCH] drm/i915: disable PSR by default on HSW/BDW

2016-12-14 Thread Paulo Zanoni
documentation of what's wrong, I think it's better to just close them since they're actually fixed now. We can still go back to them later since they're documented in the git commit message. If anybody disagrees, please feel free to reopen them. > > On Tue, 20

[Intel-gfx] [PATCH 2/2] drm/i915: fully apply WaSkipStolenMemoryFirstPage

2016-12-15 Thread Paulo Zanoni
://bugs.freedesktop.org/show_bug.cgi?id=94605 Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_gem_gtt.h| 10 +- drivers/gpu/drm/i915/i915_gem_stolen.c | 36 -- drivers/gpu/drm/i915/intel_fbc.c | 2 +- 3 files changed,

Re: [Intel-gfx] [PATCH v7 8/8] drm/i915/gen9: WM memory bandwidth related workaround

2016-12-15 Thread Paulo Zanoni
Em Qui, 2016-12-01 às 21:19 +0530, Mahesh Kumar escreveu: > This patch implemnets Workariunds related to display arbitrated > memory > bandwidth. These WA are applicabe for all gen-9 based platforms. 3 typos above. The WA is already implemented. What the patch does is that it opts-out of the WA i

Re: [Intel-gfx] [PATCH 7/9] drm/i915: s/plane/plane_id/ in skl+ plane register defines

2016-12-15 Thread Paulo Zanoni
r than enum plane. > > Do the same for the scaler plane selector bits. > Reviewed-by: Paulo Zanoni > Cc: Paulo Zanoni > Suggested-by: Paulo Zanoni > Signed-off-by: Ville Syrjälä > --- >  drivers/gpu/drm/i915/i915_reg.h | 46 --- > -

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Don't populate plane->plane for cursors and sprites

2016-12-15 Thread Paulo Zanoni
Em Ter, 2016-11-22 às 18:02 +0200, ville.syrj...@linux.intel.com escreveu: > From: Ville Syrjälä > > With plane->plane now purely reserved for the primary planes, let's > not even populate it for cursors and sprites. Let's switch the type > to enum plane as well since it's no longer being abused

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Don't populate plane->plane for cursors and sprites

2016-12-15 Thread Paulo Zanoni
Em Qui, 2016-12-15 às 21:11 +0200, Ville Syrjälä escreveu: > On Thu, Dec 15, 2016 at 05:05:05PM -0200, Paulo Zanoni wrote: > > > > Em Ter, 2016-11-22 às 18:02 +0200, ville.syrj...@linux.intel.com > > escreveu: > > > > > > From: Ville Syrjälä > > &

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Don't populate plane->plane for cursors and sprites

2016-12-16 Thread Paulo Zanoni
Em Qui, 2016-12-15 às 21:59 +0200, Ville Syrjälä escreveu: > On Thu, Dec 15, 2016 at 05:50:02PM -0200, Paulo Zanoni wrote: > > > > Em Qui, 2016-12-15 às 21:11 +0200, Ville Syrjälä escreveu: > > > > > > On Thu, Dec 15, 2016 at 05:05:05PM -0200, Paulo Zanoni wrote:

[Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on FIFO underruns

2016-09-12 Thread Paulo Zanoni
cted check at can_choose() to avoid misleading dmesg messages (DK). Cc: Stefan Richter Cc: Lyude Cc: stevenhoney...@gmail.com Cc: Dhinakaran Pandiyan Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h| 3 ++ drivers/gpu/drm/i915/intel_drv.h | 1 + drive

[Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on FIFO underruns

2016-09-13 Thread Paulo Zanoni
cted check at can_choose() to avoid misleading dmesg messages (DK). v5: Fix Engrish, use READ_ONCE on the unlocked read (Chris). Cc: Stefan Richter Cc: Lyude Cc: stevenhoney...@gmail.com Cc: Dhinakaran Pandiyan Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 0/9] SKL/KBL watermark fixes, v2

2016-09-13 Thread Paulo Zanoni
Hi Here's the series with the reviews implemented. There's a new patch, based on the additional issue spotted by Lyude. Thanks for all the reviews, Paulo Paulo Zanoni (9): drm/i915: SAGV is not SKL-only, so rename a few things drm/i915: introduce intel_has_sagv() drm/i915/kbl

[Intel-gfx] [PATCH 1/9] drm/i915: SAGV is not SKL-only, so rename a few things

2016-09-13 Thread Paulo Zanoni
x27;t seem to be calling any functions whose name start with a platform name, so the "intel_" naming scheme seems make more sense than the "firstplatorm_" naming scheme here. Reviewed-by: Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 10 +--

[Intel-gfx] [PATCH 5/9] drm/i915/gen9: minimum scanlines for Y tile is not always 4

2016-09-13 Thread Paulo Zanoni
During watermarks calculations, this value is used in 3 different places. Only one of them was not using a hardcoded 4. Move the code up so everybody can benefit from the actual value. This should only help on situations with Y tiling + 90/270 rotation + 1 or 2 bpp or NV12. Signed-off-by: Paulo

[Intel-gfx] [PATCH 9/9] drm/i915/gen9: fail the modeset instead of WARNing on unsuported config

2016-09-13 Thread Paulo Zanoni
Now that this code is part of the compute stage we can return -EINVAL to prevent the modeset instead of giving a WARN and trying anyway. Reported-by: Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[Intel-gfx] [PATCH 3/9] drm/i915/kbl: KBL also needs to run the SAGV code

2016-09-13 Thread Paulo Zanoni
According to BSpec, it's the "core CPUs" that need the code, which means SKL and KBL, but not BXT. I don't have a KBL to test this patch on it. v2: Only SKL should have I915_SAGV_NOT_CONTROLLED. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 14 ++

[Intel-gfx] [PATCH 7/9] drm/i915/gen9: fix the watermark res_blocks value

2016-09-13 Thread Paulo Zanoni
;drm/i915/skl: Update watermarks for Y tiling") Cc: sta...@vger.kernel.org Cc: Tvrtko Ursulin Reviewed-by: Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_p

[Intel-gfx] [PATCH 6/9] drm/i915/gen9: fix plane_blocks_per_line on watermarks calculations

2016-09-13 Thread Paulo Zanoni
ossibility that 0fda65680e92 matched our specification at that time, and then later the specification changed. v2: Try to add a "Fixes" tag (Maarten). Fixes: 0fda65680e92 ("drm/i915/skl: Update watermarks for Y tiling") Cc: sta...@vger.kernel.org Cc: Tvrtko Ursulin Reviewed-by:

[Intel-gfx] [PATCH 2/9] drm/i915: introduce intel_has_sagv()

2016-09-13 Thread Paulo Zanoni
tform. v2: Move I915_SAGV_NOT_CONTROLLED to the new function (Lyude). Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 5 ++--- drivers/gpu/drm/i915/intel_pm.c | 22 ++ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 8/9] drm/i915/gen9: implement missing case for SKL watermarks calculation

2016-09-13 Thread Paulo Zanoni
Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 2e6099b..9edc8ce 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu

[Intel-gfx] [PATCH 4/9] drm/i915/gen9: fix the WaWmMemoryReadLatency implementation

2016-09-13 Thread Paulo Zanoni
sanitizing implementation from the WA implementation and fix the WA implementation. v2: Add Fixes tag (Maarten). Fixes: 367294be7c25 ("drm/i915/gen9: Add 2us read latency to WM level") Cc: sta...@vger.kernel.org Cc: Vandana Kannan Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni ---

Re: [Intel-gfx] [PATCH] drm/i915: Only expand COND once in wait_for()

2016-09-14 Thread Paulo Zanoni
cc had "gone > wild trimming undefined code" :( This version acheives a rather more > modest (but still worthwhile) gain of ~550 bytes. > > Signed-off-by: Dave Gordon > Original-idea-by: Chris Wilson > Cc: Chris Wilson > Cc: Zanoni, Paulo R Reviewed-by: Paulo

Re: [Intel-gfx] [PATCH v3 2/9] drm/i915/skl+: use linetime latency instead of ddb size

2016-09-19 Thread Paulo Zanoni
Em Sex, 2016-09-09 às 13:30 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > This patch make changes to use linetime latency instead of allocated > DDB size during plane watermark calculation in switch case, This is > required to implement new DDB allocation algorithm. > > In New Algorith

Re: [Intel-gfx] [PATCH v3 4/9] drm/i915: Decode system memory bandwidth

2016-09-19 Thread Paulo Zanoni
Hi Em Sex, 2016-09-09 às 13:31 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > This patch adds support to decode system memory bandwidth > which will be used for arbitrated display memory percentage > calculation in GEN9 based system. This is not a complete review of this patch since I

Re: [Intel-gfx] [PATCH v3 1/9] drm/i915/skl: pass pipe_wm in skl_compute_(wm_level/plane_wm) functions

2016-09-20 Thread Paulo Zanoni
Em Sex, 2016-09-09 às 13:30 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > This patch make use of plane_wm variable directly instead of passing > skl_plane_wm struct. this way reduces number of argument requirement > in watermark calculation functions. > > It also gives more freedom of

Re: [Intel-gfx] [PATCH v3 1/9] drm/i915/skl: pass pipe_wm in skl_compute_(wm_level/plane_wm) functions

2016-09-21 Thread Paulo Zanoni
is needed? This way we'll be able to discuss & merge the others before. Thanks, Paulo > > > agree, out_ variable should not be local variables. > If you think above points can be addressed, let me know, will update  > patches accordingly. > > thanks, > -Mahesh &

Re: [Intel-gfx] [PATCH v3 6/9] drm/i915/skl+: change WM calc to fixed point 16.16

2016-09-21 Thread Paulo Zanoni
Hi Em Sex, 2016-09-09 às 13:31 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar First of all, good catch with this patch! > > This patch changes Watermak calculation to fixed point calculation. > Problem with current calculation is during plane_blocks_per_line > calculation we divide interm

Re: [Intel-gfx] [PATCH v3 7/9] drm/i915/bxt: Enable IPC support

2016-09-21 Thread Paulo Zanoni
Hi Lots of nitpicking in my review. Feel free to disagree with them. Em Sex, 2016-09-09 às 13:31 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > This patch adds IPC support for platforms. This patch enables IPC > only for BXT platform as for SKL recommendation is to keep is > disabled

Re: [Intel-gfx] [PATCH v3 8/9] drm/i915/bxt: set chicken bit as IPC y-tile WA

2016-09-21 Thread Paulo Zanoni
Em Sex, 2016-09-09 às 13:31 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > It implements the WA to enable IDLE_WAKEMEM bit of CHICKEN_DCPR_1 > register for Broxton platform. When IPC is enabled & Y-tile is > enabled in any of the enabled plane, above bit should be set. > Without this WA

Re: [Intel-gfx] [PATCH v4] drm/i915/bxt: Implement Transition WM

2016-09-21 Thread Paulo Zanoni
Em Qua, 2016-09-14 às 17:24 +0530, Kumar, Mahesh escreveu: > From: Mahesh Kumar > > This patch enables Transition WM for SKL+ platforms. > > Transition WM are used if IPC is enabled, to decide, number of blocks > to be fetched before reducing the priority of display to fetch from > memory. > >

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to handle GuC when GuC is not supported.

2016-09-21 Thread Paulo Zanoni
Em Qua, 2016-09-21 às 11:22 -0700, Rodrigo Vivi escreveu: > Avoid any kind of GuC handling if GuC is not supported > on a giving platform. > > Besides being useless handling, our driver needs > to be smarter than the user trying to use an invalid paramenter. So the problem is when a platform does

Re: [Intel-gfx] [PATCH v3 8/9] drm/i915/bxt: set chicken bit as IPC y-tile WA

2016-09-22 Thread Paulo Zanoni
Em Qui, 2016-09-22 às 15:13 +0530, Mahesh Kumar escreveu: > Hi, > > > On Thursday 22 September 2016 01:53 AM, Paulo Zanoni wrote: > > > > Em Sex, 2016-09-09 às 13:31 +0530, Kumar, Mahesh escreveu: > > > > > > From: Mahesh Kumar > > > >

Re: [Intel-gfx] [PATCH 0/5] drm/i915/skl: drop pre-production stepping workarounds

2016-09-22 Thread Paulo Zanoni
5. If we conclude our CI system doesn't include these machines: Reviewed-by: Paulo Zanoni > > BR, > Jani. > > Jani Nikula (5): >   drm/i915/skl: drop workarounds for A0 and B0 revisions >   drm/i915/skl: drop workarounds for C0 revision >   drm/i915/skl: d

[Intel-gfx] [PATCH] drm/i915/skl: tell the user about pre-production hardware

2016-09-22 Thread Paulo Zanoni
We just removed the implementation for all the pre-production workarounds, so now tell the user that we expect his machine to not work properly. Also convert this to DRM_ERROR so we can more easily spot these problems in bug reports and CI/QA runs. Cc: Jani Nikula Signed-off-by: Paulo Zanoni

Re: [Intel-gfx] [CI 10/21] drm/i915: Mark up all locked waiters

2016-09-22 Thread Paulo Zanoni
Em Qua, 2016-09-14 às 09:40 +0100, ch...@chris-wilson.co.uk escreveu: > On Tue, Sep 13, 2016 at 03:21:48PM +0300, Mika Kuoppala wrote: > > > > Mika Kuoppala writes: > > > > > > "Zanoni, Paulo R" writes: > > > > > > > > > > > > > > +#if IS_ENABLED(CONFIG_LOCKDEP) > > > > > + GEM_BUG_ON(!!l

[Intel-gfx] [PATCH 2/9] drm/i915: introduce intel_has_sagv()

2016-09-22 Thread Paulo Zanoni
tform. v2: Move I915_SAGV_NOT_CONTROLLED to the new function (Lyude). Cc: sta...@vger.kernel.org Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 5 ++--- drivers/gpu/drm/i915/intel_pm.c | 22 ++ 2 files change

[Intel-gfx] [PATCH 4/9] drm/i915/gen9: fix the WaWmMemoryReadLatency implementation

2016-09-22 Thread Paulo Zanoni
sanitizing implementation from the WA implementation and fix the WA implementation. v2: Add Fixes tag (Maarten). Fixes: 367294be7c25 ("drm/i915/gen9: Add 2us read latency to WM level") Cc: sta...@vger.kernel.org Cc: Vandana Kannan Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni ---

[Intel-gfx] [PATCH 1/9] drm/i915: SAGV is not SKL-only, so rename a few things

2016-09-22 Thread Paulo Zanoni
x27;t seem to be calling any functions whose name start with a platform name, so the "intel_" naming scheme seems make more sense than the "firstplatorm_" naming scheme here. Cc: sta...@vger.kernel.org Reviewed-by: Lyude Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zan

[Intel-gfx] [PATCH 3/9] drm/i915/kbl: KBL also needs to run the SAGV code

2016-09-22 Thread Paulo Zanoni
According to BSpec, it's the "core CPUs" that need the code, which means SKL and KBL, but not BXT. I don't have a KBL to test this patch on it. v2: Only SKL should have I915_SAGV_NOT_CONTROLLED. Cc: sta...@vger.kernel.org Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo

[Intel-gfx] [PATCH 0/9] SKL/KBL watermark fixes, v3

2016-09-22 Thread Paulo Zanoni
t push the series so we can move to the next watermarks patches that are waiting. Thanks for all the reviews and comments, Paulo Paulo Zanoni (9): drm/i915: SAGV is not SKL-only, so rename a few things drm/i915: introduce intel_has_sagv() drm/i915/kbl: KBL also needs to run the SAGV code

[Intel-gfx] [PATCH 5/9] drm/i915/gen9: minimum scanlines for Y tile is not always 4

2016-09-22 Thread Paulo Zanoni
...@vger.kernel.org Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 56 +++-- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index ee561c2

[Intel-gfx] [PATCH 7/9] drm/i915/gen9: fix the watermark res_blocks value

2016-09-22 Thread Paulo Zanoni
;drm/i915/skl: Update watermarks for Y tiling") Cc: sta...@vger.kernel.org Cc: Tvrtko Ursulin Reviewed-by: Lyude Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --

[Intel-gfx] [PATCH 8/9] drm/i915/gen9: implement missing case for SKL watermarks calculation

2016-09-22 Thread Paulo Zanoni
: Lyude Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 0957f5f..45a5f22 100644 --- a/drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 9/9] drm/i915/gen9: fail the modeset instead of WARNing on unsupported config

2016-09-22 Thread Paulo Zanoni
Now that this code is part of the compute stage we can return -EINVAL to prevent the modeset instead of giving a WARN and trying anyway. v2: - Fix typo (Paul Menzel). - Add MISSING_CASE() (Ville, Maarten). Reported-by: Lyude Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni

[Intel-gfx] [PATCH 6/9] drm/i915/gen9: fix plane_blocks_per_line on watermarks calculations

2016-09-22 Thread Paulo Zanoni
ude Reviewed-by: Maarten Lankhorst Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index a7f5f7f..a6ae7b

Re: [Intel-gfx] ✗ Fi.CI.BAT: warning for series starting with [1/2] drm/i915: add a few missing platform tags to workaround tags

2016-09-26 Thread Paulo Zanoni
Em Seg, 2016-09-26 às 13:20 +, Patchwork escreveu: > == Series Details == > > Series: series starting with [1/2] drm/i915: add a few missing > platform tags to workaround tags > URL   : https://patchwork.freedesktop.org/series/12925/ > State : warning > > == Summary == > > Series 12925v1 Ser

Re: [Intel-gfx] [PATCH 1/2] drm/i915: add a few missing platform tags to workaround tags

2016-09-26 Thread Paulo Zanoni
Em Seg, 2016-09-26 às 15:07 +0300, Jani Nikula escreveu: > Cc: Paulo Zanoni > Signed-off-by: Jani Nikula Reviewed-by: Paulo Zanoni > --- >  drivers/gpu/drm/i915/intel_guc_loader.c | 2 +- >  drivers/gpu/drm/i915/intel_pm.c | 2 +- >  2 files changed, 2 insertio

Re: [Intel-gfx] ✗ Fi.CI.BAT: warning for SKL/KBL watermark fixes (rev3)

2016-09-26 Thread Paulo Zanoni
Em Qui, 2016-09-22 às 21:49 +, Patchwork escreveu: > == Series Details == > > Series: SKL/KBL watermark fixes (rev3) > URL   : https://patchwork.freedesktop.org/series/12082/ > State : warning > > == Summary == > > Series 12082v3 SKL/KBL watermark fixes > https://patchwork.freedesktop.org/ap

Re: [Intel-gfx] [PATCH] drm/i915: don't report compression when fbc disabled

2016-09-26 Thread Paulo Zanoni
+ if (intel_fbc_is_active(dev_priv) && > + INTEL_GEN(dev_priv) >= 7) Reviewed-by: Paulo Zanoni I'll push this patch soon. Thanks for the patch! >   seq_printf(m, "Compressing: %s\n", >      yesno(I915_READ(FBC_STATUS2

[Intel-gfx] [PATCH] drm/i915/gen9: only add the planes actually affected by ddb changes

2016-09-29 Thread Paulo Zanoni
gger a change in DDB partitioning. Fixes: 05a76d3d6ad1 ("drm/i915/skl: Ensure pipes with changed wms get added to the state") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97888 Cc: Lyude Cc: Mike Lothian Cc: sta...@vger.kernel.org Reported-and-bisected-by: Mike Lothia

[Intel-gfx] [PATCH] drm/i915/gen9: only add the planes actually affected by ddb changes

2016-09-29 Thread Paulo Zanoni
-and-bisected-by: Mike Lothian Reviewed-by: Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index

[Intel-gfx] [PATCH] drm/i915/gen9: fix DDB partitioning for multi-screen cases

2016-10-04 Thread Paulo Zanoni
lla: https://bugs.freedesktop.org/show_bug.cgi?id=97596 Bugzilla: https://www.phoronix.com/scan.php?page=news_item&px=Intel-Skylake-Multi-Screen-Woes Cc: sta...@vger.kernel.org Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletio

Re: [Intel-gfx] [PATCH] drm/i915/gen9: fix DDB partitioning for multi-screen cases

2016-10-04 Thread Paulo Zanoni
Em Ter, 2016-10-04 às 14:37 -0300, Paulo Zanoni escreveu: > With the previous code we were only recomputing the DDB partitioning > for the CRTCs included in the atomic commit, so any other active > CRTCs > would end up having their DDB registers zeroed. In this patch we make >

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Add enable_sagv option

2016-10-05 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: > This option allows us to manually control the SAGV at module load > time. > This can be useful in situations such as trying to debug watermark > changes, since enabled SAGV + incorrect watermarks = total GPU > annihilation. I'm not a huge fan of

Re: [Intel-gfx] [PATCH 1/6] drm/i915/skl: Move per-pipe ddb allocations into crtc states

2016-10-05 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: > First part of cleaning up all of the skl watermark code. This moves > the > structures for storing the ddb allocations of each pipe into > intel_crtc_state, along with moving the structures for storing the > current ddb allocations active on hard

Re: [Intel-gfx] [PATCH 2/6] drm/i915/skl: Remove linetime from skl_wm_values

2016-10-05 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: > Next part of cleaning up the watermark code for skl. This is easy, > since > it seems that we never actually needed to keep track of the linetime > in > the skl_wm_values struct anyway. Reviewed-by: Paulo Zanoni > >

Re: [Intel-gfx] [PATCH 4/6] drm/i915/gen9: Make skl_wm_level per-plane

2016-10-05 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: > Having skl_wm_level contain all of the watermarks for each plane is > annoying since it prevents us from having any sort of object to > represent a single watermark level, something we take advantage of in > the next commit to cut down on all of

Re: [Intel-gfx] [PATCH 5/6] drm/i915/gen9: Get rid of redundant watermark values

2016-10-05 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: > Now that we've make skl_wm_levels make a little more sense, we can > remove all of the redundant wm information. Up until now we'd been > storing two copies of all of the skl watermarks: one being the > skl_pipe_wm structs, the other being the gl

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to handle GuC when GuC is not supported.

2016-10-06 Thread Paulo Zanoni
-10-05 at 15:50 +0200, Daniel Vetter wrote: > > > > On Thu, Sep 22, 2016 at 04:55:07PM +0000, Vivi, Rodrigo wrote: > > > > > > On Wed, 2016-09-21 at 18:00 -0300, Paulo Zanoni wrote: > > > > > > > > Em Qua, 2016-09-21 às 11:22 -0700, Rodrigo

Re: [Intel-gfx] [PATCH] drm/i915/guc: Sanitory checks for platform that dont have GuC

2016-10-07 Thread Paulo Zanoni
Em Qua, 2016-10-05 às 16:50 -0700, Anusha Srivatsa escreveu: > i915.enable_guc_loading/submission=2 forces the usage of GuC. > For platforms that do not have a GuC, asking the kernel to > use a GuC should not result in an error state. Do extra checks > to see if the platform even has a GuC or not,

[Intel-gfx] [PATCH 1/2] drm/i915/gen9: don't call skl_pipe_pixel_rate() twice on the same function

2016-10-07 Thread Paulo Zanoni
One day this function will have a complete implementation which won't be a simple one-line return, so avoid unnecessarily calling it when we can just store the value in a variable. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 8 ++-- 1 file changed, 6 insertions(

[Intel-gfx] [PATCH 2/2] drm/i915/gen9: fix watermarks when using the pipe scaler

2016-10-07 Thread Paulo Zanoni
Luckily, the necessary adjustments for when we're using the scaler are exactly the same as the ones needed on ILK+, so just reuse the function we already have. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-)

[Intel-gfx] [PATCH 2/2] drm/i915/gen9: don't call ilk_pipe_pixel_rate() twice on the same function

2016-10-07 Thread Paulo Zanoni
We used to call skl_pipe_pixel_rate(), which used to be a single one-line return, but now we're calling ilk_pipe_pixel_rate() which is not as simple, so it's better to just call it once and store the computed value for reuse. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 1/2] drm/i915/gen9: fix watermarks when using the pipe scaler

2016-10-07 Thread Paulo Zanoni
Luckily, the necessary adjustments for when we're using the scaler are exactly the same as the ones needed on ILK+, so just reuse the function we already have. v2: Invert the patch order so stable backports get easier. Cc: sta...@vger.kernel.org Signed-off-by: Paulo Zanoni --- drivers/gp

[Intel-gfx] [PATCH 1/2] drm/i915/gen9: unconditionally apply the memory bandwidth WA

2016-10-10 Thread Paulo Zanoni
bugs.freedesktop.org/show_bug.cgi?id=96828 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97450 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97830 Cc: sta...@vger.kernel.org Cc: Mahesh Kumar Cc: Lyude Cc: Dhinakaran Pandiyan Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/

[Intel-gfx] [PATCH 2/2] drm/i915/gen9: look for adjusted_mode in the SAGV check for interlaced

2016-10-10 Thread Paulo Zanoni
We want to look at the mode that we're actually going to set. All the other display checks for interlaced flags also look at adjusted_mode. Cc: Lyude Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

Re: [Intel-gfx] [PATCH] drm/i915/guc: Sanitory checks for platform that dont have GuC

2016-10-11 Thread Paulo Zanoni
ge indentation, add back blank lines (Paulo) (but I do have to add that the way you changed it was not the way I had in mind, please see below) > > There's a bug for this, please find it and reference it. > > > > > take on the implemenation. > > Cc: Paulo Zanon

[Intel-gfx] [PATCH 1/2] drm/i915/gen9: unconditionally apply the memory bandwidth WA

2016-10-11 Thread Paulo Zanoni
Pandiyan Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_pm.c | 49 ++--- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index fe6c1c6..13bd974 100644 --- a/drivers/gpu

Re: [Intel-gfx] [PATCH v2 01/10] drm/i915/skl: Move per-pipe ddb allocations into crtc states

2016-10-11 Thread Paulo Zanoni
tions active on hardware into intel_crtc. > > Changes since v1: > - Don't replace alloc->start = alloc->end = 0; > > Signed-off-by: Lyude Reviewed-by: Paulo Zanoni > Reviewed-by: Maarten Lankhorst > Cc: Ville Syrjälä > Cc: Paulo Zanoni > --- >  driver

Re: [Intel-gfx] [PATCH v2 03/10] drm/i915/gen9: Make skl_wm_level per-plane

2016-10-11 Thread Paulo Zanoni
wn on all of the copy paste code in here. > > Changes since v1: > - Style nitpicks > - Fix accidental usage of i vs. PLANE_CURSOR > - Split out skl_pipe_wm_active_state simplification into separate > patch > > Signed-off-by: Lyude Reviewed-by: Paulo Zanoni > Revi

Re: [Intel-gfx] [PATCH 04/10] drm/i915/gen9: Cleanup skl_pipe_wm_active_state

2016-10-11 Thread Paulo Zanoni
parameter to something more meaningful. Reviewed-by: Paulo Zanoni > > (adding Maarten's reviewed-by since this is just a split-up version > of one > of the previous patches) > > Signed-off-by: Lyude > Reviewed-by: Maarten Lankhorst > Cc: Ville Syrjäl

Re: [Intel-gfx] [PATCH] drm/i915/guc: Sanitory checks for platform that dont have GuC

2016-10-13 Thread Paulo Zanoni
s worth trying to teach the coding style that's used by everybody so the next patches all come in the expected format. Anyway, I suppose we could amend this fix while applying the patch? If someone fixes that while applying, we can add: Reviewed-by: Paulo Zanoni >   if (!HAS_GUC_UCODE(

Re: [Intel-gfx] [PATCH] drm/i915/dp: Increase cdclk when DP audio is enabled with 4 lanes and HBR2

2016-10-13 Thread Paulo Zanoni
Em Qui, 2016-10-13 às 11:04 -0700, Dhinakaran Pandiyan escreveu: > According to BSpec, cdclk has to be not less than 432 MHz with DP > audio > enabled, port width x4, and link rate HBR2 (5.4 GHz) This is just for pre-production hardware, and we don't implement workarounds for pre-prod. A quick r

Re: [Intel-gfx] [PATCH v2 05/10] drm/i915/gen9: Get rid of redundant watermark values

2016-10-13 Thread Paulo Zanoni
nges since v1: > > - Fixup skl_write_wm_level() > > - Fixup skl_wm_level_from_reg_val() > > - Don't forget to copy *active to intel_crtc->wm.active.skl > > > > Signed-off-by: Lyude > > Reviewed-by: Maarten Lankhorst > > Cc: Ville Syrjälä >

Re: [Intel-gfx] [PATCH v2 05/10] drm/i915/gen9: Get rid of redundant watermark values

2016-10-13 Thread Paulo Zanoni
Em Qui, 2016-10-13 às 17:04 -0300, Paulo Zanoni escreveu: > Em Qui, 2016-10-13 às 15:39 +0200, Maarten Lankhorst escreveu: > > > > Op 08-10-16 om 02:11 schreef Lyude: > > > > > > > > > Now that we've make skl_wm_levels make a little more sense, we

Re: [Intel-gfx] [PATCH v2 06/10] drm/i915/gen9: Add ddb changes to atomic debug output

2016-10-13 Thread Paulo Zanoni
Cc: Ville Syrjälä > Cc: Paulo Zanoni > --- >  drivers/gpu/drm/i915/intel_pm.c | 57 > + >  1 file changed, 57 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c > b/drivers/gpu/drm/i915/intel_pm.c > index 5cb537c..9e5

Re: [Intel-gfx] [PATCH 07/10] drm/i915/gen9: Make skl_pipe_wm_get_hw_state() reusable

2016-10-13 Thread Paulo Zanoni
gt; need this function to be reusable for the next patch. > > Signed-off-by: Lyude > Cc: Maarten Lankhorst > Cc: Ville Syrjälä > Cc: Paulo Zanoni > --- >  drivers/gpu/drm/i915/intel_drv.h |  2 ++ >  drivers/gpu/drm/i915/intel_pm.c  | 27 +-

Re: [Intel-gfx] [PATCH 08/10] drm/i915/gen9: Add skl_wm_level_equals()

2016-10-13 Thread Paulo Zanoni
Em Sex, 2016-10-07 às 20:11 -0400, Lyude escreveu: > Helper we're going to be using for implementing verification of the > wm > levels in skl_verify_wm_level(). > > Signed-off-by: Lyude Reviewed-by: Paulo Zanoni > Cc: Maarten Lankhorst > Cc: Ville S

Re: [Intel-gfx] [PATCH 09/10] drm/i915/gen9: Actually verify WM levels in verify_wm_state()

2016-10-13 Thread Paulo Zanoni
Em Sex, 2016-10-07 às 20:11 -0400, Lyude escreveu: > Thanks to Paulo Zanoni for indirectly pointing this out. > > Looks like we never actually added any code for checking whether or > not > we actually wrote watermark levels properly. Let's fix that. Thanks for doing this!

Re: [Intel-gfx] [PATCH 10/10] drm/i915/gen9: Don't wrap strings in verify_wm_state()

2016-10-13 Thread Paulo Zanoni
Em Sex, 2016-10-07 às 20:11 -0400, Lyude escreveu: Bikesheding: it would be nice to write a commit message explaining why, even if the message just tells the user to read Documentation/CodingStyle. Reviewed-by: Paulo Zanoni > Signed-off-by: Lyude > Cc: Maarten Lankhorst > Cc: Vill

Re: [Intel-gfx] [PATCH 09/10] drm/i915/gen9: Actually verify WM levels in verify_wm_state()

2016-10-13 Thread Paulo Zanoni
Em Qui, 2016-10-13 às 18:15 -0300, Paulo Zanoni escreveu: > Em Sex, 2016-10-07 às 20:11 -0400, Lyude escreveu: > > > > Thanks to Paulo Zanoni for indirectly pointing this out. > > > > Looks like we never actually added any code for checking whether or > > no

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

2016-03-21 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 b8ba79c..7101880 10

[Intel-gfx] [PATCH 1/4] drm/i915/fbc: update busy_bits even for GTT and flip flushes

2016-03-21 Thread Paulo Zanoni
so it's not something the users can perceive, it just affects power consumption numbers on properly configured machines. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 0/4] Enable FBC on SKL

2016-03-21 Thread Paulo Zanoni
automatic workaround disable during dirtyfb/sw_finish. Thanks, Paulo Paulo Zanoni (4): drm/i915/fbc: update busy_bits even for GTT and flip flushes drm/i915/fbc: sanitize i915.enable_fbc during FBC init drm/i915: opt-out CPU and WC mmaps from FBC drm/i915/fbc: enable FBC on SKL too drive

[Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-21 Thread Paulo Zanoni
checking. - Restric to Gen 9. Cc: Rodrigo Vivi Cc: Daniel Vetter Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h | 9 + drivers/gpu/drm/i915/i915_gem.c | 19 +++--- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/g

[Intel-gfx] [RFC xf86-video-intel] sna: Call dirtyfb for all non-tear-free cases

2016-03-21 Thread Paulo Zanoni
i915.enable_fbc=-1. This fixes a bug that happens on SKL with FBC enabled: if you run lightdm, your login/password won't appear as you type on your keyboard. You have to move the mouse over the input box for them to be displayed. Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- src/sna/sna_dr

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

2016-03-21 Thread Paulo Zanoni
please see: commit a98ee79317b4091cafb502b4ffdbbbe1335e298c Author: Paulo Zanoni Date: Tue Feb 16 18:47:21 2016 -0200 drm/i915/fbc: enable FBC by default on HSW and BDW Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+),

[Intel-gfx] [PATCH xf86-video-intel] sna: Opt-out of the Kernel mmap workaround

2016-03-24 Thread Paulo Zanoni
still not sending dirtyfb or sw_finish calls, so the Kernel keeps the workaround enabled since it doesn't know we're properly behaving. So issue one dirtyfb call each time we create a framebuffer, making sure the Kernel sets the FB_MMAP_WA_DISABLE flag. Cc: Chris Wilson Signed-off-by: Pa

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

2016-03-24 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 b8ba79c..7101880 10

[Intel-gfx] [PATCH 0/4] Enable FBC on SKL, v2

2016-03-24 Thread Paulo Zanoni
Hi The Kernel patches are mostly the same, but with the review suggestions implemented. The DDX patch is new and should really help things now. Thanks, Paulo Paulo Zanoni (4): drm/i915/fbc: update busy_bits even for GTT and flip flushes drm/i915/fbc: sanitize i915.enable_fbc during FBC init

[Intel-gfx] [PATCH 1/4] drm/i915/fbc: update busy_bits even for GTT and flip flushes

2016-03-24 Thread Paulo Zanoni
so it's not something the users can perceive, it just affects power consumption numbers on properly configured machines. Testcase: igt/kms_frontbuffer_tracking/*fbc*onoff* (see above) Reviewed-by: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 7 --- 1 fi

[Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread Paulo Zanoni
j checking. - Restric to Gen 9. v3: - Add missing parameter documentation (kbuild test robot). - Convert flags from enum to defines (Jani). - Make it SKL-only (Daniel). Cc: Rodrigo Vivi Cc: Daniel Vetter Cc: Chris Wilson Acked-by: Rodrigo Vivi (v2) Signed-off-by: Paulo Zanoni --- drivers/gp

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

2016-03-24 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 3/4] drm/i915: use ORIGIN_CPU for frontbuffer invalidation on WC mmaps

2016-04-04 Thread Paulo Zanoni
. This should help fix the SKL bug where nothing happens when you type your username/password on lightdm. This patch was originally pasted on an email by Chris and converted to an actual git patch by Paulo. Cc: # 4.6 Cc: Chris Wilson Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 0/4] Enable FBC on SKL, v3

2016-04-04 Thread Paulo Zanoni
Now with the suggestion from Chris instead of the old workaround. We don't need new DDX patches anymore, but now we need new IGT patches. Chris Wilson (1): drm/i915: use ORIGIN_CPU for frontbuffer invalidation on WC mmaps Paulo Zanoni (3): drm/i915/fbc: update busy_bits even for GTT and

[Intel-gfx] [PATCH 1/4] drm/i915/fbc: update busy_bits even for GTT and flip flushes

2016-04-04 Thread Paulo Zanoni
so it's not something the users can perceive, it just affects power consumption numbers on properly configured machines. Testcase: igt/kms_frontbuffer_tracking/*fbc*onoff* (see above) Reviewed-by: Daniel Vetter Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_fbc.c | 7 --- 1 fi

[Intel-gfx] [PATCH igt 3/3] kms_frontbuffer_tracking: properly handle mixing GTT and WC mmaps

2016-04-04 Thread Paulo Zanoni
does this sort of mix is the multidraw subtest. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 12 1 file changed, 12 insertions(+) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index f37de6d..89e6ea8 100644 --- a/

[Intel-gfx] [PATCH igt 2/3] kms_frontbuffer_tracking: recreate the FBs at every subtest

2016-04-04 Thread Paulo Zanoni
to avoid future related problems. v2: New commit message. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_t

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