Re: [Intel-gfx] [PATCH v3 0/5] drm/gma500: drop use of drmP.h

2019-05-25 Thread Patrik Jakobsson
On Sat, May 25, 2019 at 10:43 PM Sam Ravnborg wrote: > > Just a quick (final) probe. If there are no further feedback I will > commit this set sunday. > Added intel-gfx@lists.freedesktop.org just to get a bit more coverage. Hi Sam v2 of this series is already applied to drm-misc-next Thanks Patr

Re: [Intel-gfx] [PATCH v4 2/5] drm: Add private data field to trace control block

2016-07-20 Thread Patrik Jakobsson
On Jul 20, 2016 4:50 PM, "Dmitry V. Levin" wrote: > > On Mon, Sep 07, 2015 at 08:23:57PM +0200, Patrik Jakobsson wrote: > > On Mon, Sep 7, 2015 at 6:51 PM, Dmitry V. Levin wrote: > > > On Mon, Aug 31, 2015 at 02:37:07PM +0200, Patrik Jakobsson wrote: > > &

Re: [Intel-gfx] [PATCH 07/22] drm/gma500: Use drm_mode_copy()

2022-03-16 Thread Patrik Jakobsson
E) > | > - memcpy(mode, E, S) > + drm_mode_copy(mode, E) > ) > > @depends on !is_mode_copy@ > struct drm_display_mode mode; > expression E; > @@ > ( > - mode = E > + drm_mode_copy(&mode, &E) > | > - memcpy(&mode, E, S) > + drm_mode_copy(

Re: [Intel-gfx] [PATCH v3 06/22] drm/gma500: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Patrik Jakobsson
On Mon, Jan 20, 2020 at 9:23 AM Thomas Zimmermann wrote: > > VBLANK callbacks in struct drm_driver are deprecated in favor of > their equivalents in struct drm_crtc_funcs. Convert gma500 over. > > Signed-off-by: Thomas Zimmermann Looks good. For this patch: Acked-by: P

Re: [Intel-gfx] [PATCH v1 1/2] drm/gma500: Convert to use new SCU IPC API

2021-01-22 Thread Patrik Jakobsson
Linus Walleij Both patches look good. Do you want me to take them through drm-misc? Otherwise: Acked-by: Patrik Jakobsson ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v1 1/2] drm/gma500: Convert to use new SCU IPC API

2021-01-22 Thread Patrik Jakobsson
On Fri, Jan 22, 2021 at 3:51 PM Andy Shevchenko wrote: > > On Fri, Jan 22, 2021 at 03:16:55PM +0100, Patrik Jakobsson wrote: > > On Fri, Jan 22, 2021 at 12:39 PM Andy Shevchenko > > wrote: > > > > > > Convert the GMA500 driver to use the new SCU IPC API. Th

Re: [Intel-gfx] linux-next: manual merge of the drivers-x86 tree with the drm-misc tree

2021-02-05 Thread Patrik Jakobsson
On Fri, Feb 5, 2021 at 12:07 PM Andy Shevchenko wrote: > > On Thu, Feb 4, 2021 at 11:04 AM Andy Shevchenko > wrote: > >> Today's linux-next merge of the drivers-x86 tree got a conflict in: > > > > Thanks. I already asked Patrik yesterday day if DRM missed to pull an > > immutable tag I provided.

Re: [Intel-gfx] [PATCH v2] drm/core: Change declaration for gamma_set.

2016-06-07 Thread Patrik Jakobsson
ivers, where an atomic commit can > fail with -EINTR or -ENOMEM and should be restarted. > > Changes since v1: > - Fix compiler warning. (Emil) > - Fix commit message (Daniel) > > Cc: Alex Deucher > Acked-by: Alex Deucher > Cc: Christian König > Cc: David Airlie &

Re: [Intel-gfx] [PATCH v2] drm/i915/dmc: Step away from symbolic links

2016-06-27 Thread Patrik Jakobsson
On Wed, Jun 15, 2016 at 12:11:55AM +, Vivi, Rodrigo wrote: > On Mon, 2016-05-23 at 10:57 +0200, Patrik Jakobsson wrote: > > On Wed, May 18, 2016 at 01:24:12PM +0300, Mika Kuoppala wrote: > > > Patrik Jakobsson writes: > > > > > > > [ text/plain ] >

Re: [Intel-gfx] [PATCH v2] drm/i915/dmc: Step away from symbolic links

2016-06-27 Thread Patrik Jakobsson
or >> > we >> > release the 1.07 before. >> 1.06 is already blacklisted, it has known problems. > > Oh! So I agree with the first statement. Let's merge this patch ;) That was new info for me as well. I don't have commit access so anyone who can, feel free to m

Re: [Intel-gfx] [PATCH] drm/i915/skl: enable PC9/10 power states during suspend-to-idle

2015-11-19 Thread Patrik Jakobsson
On Thu, Nov 19, 2015 at 04:06:47PM +0200, Imre Deak wrote: > On to, 2015-11-19 at 14:34 +0100, Patrik Jakobsson wrote: > > On Wed, Nov 18, 2015 at 06:44:43PM +0200, Imre Deak wrote: > > > On ke, 2015-11-18 at 17:33 +0100, Daniel Vetter wrote: > > > > On Wed, Nov 18,

Re: [Intel-gfx] [PATCH] drm/i915/skl: re-enable power well support

2015-11-19 Thread Patrik Jakobsson
On Wed, Nov 18, 2015 at 07:53:50PM +0200, Imre Deak wrote: > Now that the known DMC/DC issues are fixed, let's try again and > re-enable the power well support. > > Signed-off-by: Imre Deak Together with the PC9/10 fix this is: Reviewed-by: Patrik Jakobsson > --- >

Re: [Intel-gfx] [PATCH] drm/i915: Add some more bits to CURSOR_POS_MASK

2015-11-25 Thread Patrik Jakobsson
On Wed, Nov 25, 2015 at 1:54 PM, Robert Fekete wrote: > On ons, 2015-11-18 at 10:17 +0100, Daniel Vetter wrote: >> On Wed, Nov 04, 2015 at 10:59:28AM +0100, Patrik Jakobsson wrote: >> > On Wed, Nov 04, 2015 at 10:35:19AM +0100, Robert Fekete wrote: >> > > The ol

Re: [Intel-gfx] [PATCH v4 2/5] drm: Add private data field to trace control block

2015-11-26 Thread Patrik Jakobsson
On Tue, Nov 24, 2015 at 6:46 AM, Dmitry V. Levin wrote: > On Mon, Sep 07, 2015 at 08:23:57PM +0200, Patrik Jakobsson wrote: >> On Mon, Sep 7, 2015 at 6:51 PM, Dmitry V. Levin wrote: >> > On Mon, Aug 31, 2015 at 02:37:07PM +0200, Patrik Jakobsson wrote: >> > [...] &g

[Intel-gfx] [PATCH] drm/i915/skl: Use alternate aux power domain for port E

2015-11-27 Thread Patrik Jakobsson
There is no dedicated aux channel for port E on SKL. Instead the VBT describes which of the other aux channels to use. When grabbing an aux power domain for port E we need to take this into account. Cc: Ville Syrjälä Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_display.c | 19

Re: [Intel-gfx] [RFC PATCH] drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs

2016-11-01 Thread Patrik Jakobsson
On Tue, Nov 1, 2016 at 4:40 PM, Jani Nikula wrote: > If we define drm_compat_ioctl NULL on CONFIG_COMPAT=n, we don't have to > check for the config everywhere. > > Signed-off-by: Jani Nikula Looks good and I like the idea. Reviewed-by: Patrik Jakobsson > --- > &

[Intel-gfx] [PATCH] drm/i915/gen9: Check for DC state mismatch

2016-02-11 Thread Patrik Jakobsson
The DMC can incorrectly run off and allow DC states on it's own. We don't know the root-cause for this yet but this patch makes it more visible. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_csr.c| 2 ++ drive

Re: [Intel-gfx] [PATCH] drm/i915/gen9: Check for DC state mismatch

2016-02-18 Thread Patrik Jakobsson
> On Thu, 2016-02-11 at 12:43 +0200, Mika Kuoppala wrote: > > Patrik Jakobsson writes: > > > > > The DMC can incorrectly run off and allow DC states on it's own. We > > > don't know the root-cause for this yet but this patch makes it more > > >

Re: [Intel-gfx] [PATCH] drm/i915/gen9: Check for DC state mismatch

2016-02-18 Thread Patrik Jakobsson
On Thu, Feb 18, 2016 at 11:22 AM, Patrik Jakobsson wrote: > On Thu, Feb 18, 2016 at 12:16:40AM +, Vivi, Rodrigo wrote: >> I was going to merge here but I saw on patchwork we got some warnings >> so I'm not sure they are only false positives or this is exactly what &

Re: [Intel-gfx] [PATCH 1/4] drm/i915/skl: Fix power domain suspend sequence

2016-02-29 Thread Patrik Jakobsson
fix handling of the disable_power_well module > option") > CC: sta...@vger.kernel.org > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

Re: [Intel-gfx] [PATCH 2/4] drm/i915/gen9: Sanitize handling of allowed DC states

2016-02-29 Thread Patrik Jakobsson
he > i915.disable_power_well module option, added in the next patch. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/intel_runtime_pm.c | 74 > +++-- > 2 files cha

Re: [Intel-gfx] [PATCH 3/4] drm/i915/gen9: Disable DC states if power well support is disabled

2016-02-29 Thread Patrik Jakobsson
power wells regardless of the disable_power_well option. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 4/4] drm/i915/gen9: Remove state asserts when disabling DC states

2016-02-29 Thread Patrik Jakobsson
power_well option. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Nice to see these go. Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 41 > + > 1 file changed, 1 insertion(+), 40 deletions(-)

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/gen9: Sanitize handling of allowed DC states

2016-03-01 Thread Patrik Jakobsson
he > i915.disable_power_well module option, added in the next patch. > > v2: > - Print a debug message if the requested max DC value was adjusted due > to a platform limit. Also debug print the calculated mask value. (Patrik) > > CC: Patrik Jakobsson > Signed-off-by: Imre Dea

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915/gen9: Disable DC states if power well support is disabled

2016-03-01 Thread Patrik Jakobsson
power wells regardless of the disable_power_well option. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] Fwd: [PATCH] drm/i915: Avoid vblank counter for gen9+

2016-03-03 Thread Patrik Jakobsson
On Wed, Mar 02, 2016 at 07:13:07PM +0200, Imre Deak wrote: > On Fri, 2016-02-26 at 10:02 -0800, Rodrigo Vivi wrote: > > [...] > > Well, I have this tree: > > https://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=rpm-domains-psr-vblank-counter-full > > with mainly: > > 1 - vblank domain on pre-enab

Re: [Intel-gfx] [PATCH igt] igt/pm_rpm: Wait for PCI D3

2016-03-07 Thread Patrik Jakobsson
0x3); > return (val & 0x3) == 0x3; > } > > @@ -1354,11 +1352,9 @@ static void pci_d3_state_subtest(void) > igt_require(has_runtime_pm); > > disable_all_screens_and_wait(&ms_data); > - > - igt_assert(device_in_pci_d3()); > + igt_assert(i

[Intel-gfx] [PATCH] drm/i915/skl: Remove unused skl_disable_dc6 function

2016-03-14 Thread Patrik Jakobsson
Left behind by DC state rework and is no longer needed. Cc: Imre Deak Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_drv.h| 1 - drivers/gpu/drm/i915/intel_runtime_pm.c | 7 --- 2 files changed, 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers

Re: [Intel-gfx] [PATCH] drm/i915/kbl: Don't WARN for expected secondary MISC IO power well request

2016-04-21 Thread Patrik Jakobsson
DMC is > "expected". Tune down the corresponding WARN to be a debug message. This > was caught by CI suspend tests. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Was just about to bug you about this. You're one step ahead of me :) Reviewed-by:

Re: [Intel-gfx] [PATCH] drm/i915: Make RPS EI/thresholds multiple of 25 on SNB

2016-04-21 Thread Patrik Jakobsson
e regressions on stuff like this? And if so, who do we ping about this? OTOH impact should be really small and since this fixes a real problem: Reviewed-by: Patrik Jakobsson > > These are the original EI/thresholds: > LOW_POWER > GEN6_RP_UP_EI 12500 > GEN6_RP_U

Re: [Intel-gfx] [PATCH 03/19] drm/i915: Remove intel_prepare_page_flip, v2.

2016-04-25 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:23AM +0200, Maarten Lankhorst wrote: > Instead of calling prepare_flip right before calling finish_page_flip > do everything from prepare_page_flip in finish_page_flip. > > Putting prepare and finish page_flip in a single step removes the need > for INTEL_FLIP_COMPLET

Re: [Intel-gfx] [PATCH] drm/i915/kbl: Introduce the first official DMC for Kabylake.

2016-04-26 Thread Patrik Jakobsson
gt; Cc: Christophe Prigent > Cc: Patrik Jakobsson > Reviewed-by: Ben Widawsky (v1) > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/intel_csr.c | 30 +++--- > 1 file changed, 19 insertions(+), 11 deletions(-) > > diff --git a/dr

Re: [Intel-gfx] [PATCH] drm/i915/kbl: Introduce the first official DMC for Kabylake.

2016-04-26 Thread Patrik Jakobsson
t; v3: With right CSR_VERSION (Patrik). > > Cc: Christophe Prigent > Cc: Patrik Jakobsson > Reviewed-by: Ben Widawsky (v1) > Signed-off-by: Rodrigo Vivi As discussed on IRC, feel free to push this when satisfied with testing. Reviewed-by: Patrik Jakobsson &g

Re: [Intel-gfx] [PATCH 02/19] drm/i915: Remove stallcheck special handling, v2.

2016-04-27 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:22AM +0200, Maarten Lankhorst wrote: > Both intel_unpin_work.pending and intel_unpin_work.enable_stall_check > were used to see if work should be enabled. By only using pending > some special cases are gone, and access to unpin_work can be simplified. > > Use this to

Re: [Intel-gfx] [PATCH 04/19] drm/i915: Add support for detecting vblanks when hw frame counter is unavailable.

2016-04-27 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:24AM +0200, Maarten Lankhorst wrote: > This uses the newly created drm_accurate_vblank_count_and_time to accurately > get a vblank count when the hw counter is unavailable. > --- > drivers/gpu/drm/i915/intel_display.c | 10 ++ > drivers/gpu/drm/i915/intel_drv.

Re: [Intel-gfx] [PATCH 02/19] drm/i915: Remove stallcheck special handling, v2.

2016-04-28 Thread Patrik Jakobsson
On Thu, Apr 28, 2016 at 10:48:55AM +0200, Maarten Lankhorst wrote: > Op 27-04-16 om 15:24 schreef Patrik Jakobsson: > > On Tue, Apr 19, 2016 at 09:52:22AM +0200, Maarten Lankhorst wrote: > >> Both intel_unpin_work.pending and intel_unpin_work.enable_stall_check > >> were

Re: [Intel-gfx] [PATCH 05/19] drm/i915: Unify unpin_work and mmio_work into flip_work.

2016-04-29 Thread Patrik Jakobsson
; Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_debugfs.c | 6 +- > drivers/gpu/drm/i915/intel_display.c | 189 > +++ > drivers/gpu/drm/i915/intel_drv.h | 19 ++-- > drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH 08/19] drm/i915: Convert flip_work to a list.

2016-05-02 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:28AM +0200, Maarten Lankhorst wrote: > This will be required to allow more than 1 update in the future. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/i915_debugfs.c | 90 +- > drivers/gpu/drm/i915/i915_drv.h |

Re: [Intel-gfx] [PATCH 09/19] drm/i915: Add the exclusive fence to plane_state.

2016-05-03 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:29AM +0200, Maarten Lankhorst wrote: > Set plane_state->base.fence to the dma_buf exclusive fence, > and add a wait to the mmio function. This will make it easier > to unify plane updates later on. > > Signed-off-by: Maarten Lankhorst Reviewed-by

Re: [Intel-gfx] [PATCH 02/19] drm/i915: Remove stallcheck special handling, v2.

2016-05-03 Thread Patrik Jakobsson
On Thu, Apr 28, 2016 at 12:20:09PM +0200, Maarten Lankhorst wrote: > Op 28-04-16 om 11:54 schreef Patrik Jakobsson: > > On Thu, Apr 28, 2016 at 10:48:55AM +0200, Maarten Lankhorst wrote: > >> Op 27-04-16 om 15:24 schreef Patrik Jakobsson: > >>> On Tue, Apr 19, 201

[Intel-gfx] [PATCH] drm/i915/dmc: Step away from symbolic links

2016-05-10 Thread Patrik Jakobsson
Load specific firmware versions for the DMC instead of using symbolic links. The currently recommended versions are: SKL 1.26, KBL 1.01 and BXT 1.07. Cc: Rodrigo Vivi Cc: Imre Deak Cc: Mika Kuoppala Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_csr.c | 29

Re: [Intel-gfx] [PATCH 04/19] drm/i915: Add support for detecting vblanks when hw frame counter is unavailable.

2016-05-10 Thread Patrik Jakobsson
On Wed, Apr 27, 2016 at 05:23:06PM +0300, Ville Syrjälä wrote: > On Wed, Apr 27, 2016 at 04:06:16PM +0200, Patrik Jakobsson wrote: > > On Tue, Apr 19, 2016 at 09:52:24AM +0200, Maarten Lankhorst wrote: > > > This uses the newly created drm_accurate_vblank_count_and_time to

Re: [Intel-gfx] [PATCH 06/19] Revert "drm/i915: Avoid stalling on pending flips for legacy cursor updates"

2016-05-10 Thread Patrik Jakobsson
arten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display.c > index 1d7ef9fb526c..8b61a07c4c52 100644 > ---

Re: [Intel-gfx] [PATCH] drm/i915/dmc: Step away from symbolic links

2016-05-10 Thread Patrik Jakobsson
On Tue, May 10, 2016 at 03:52:02PM +0300, Mika Kuoppala wrote: > Patrik Jakobsson writes: > > > [ text/plain ] > > Load specific firmware versions for the DMC instead of using symbolic > > links. The currently recommended versions are: SKL 1.26, KBL 1.01 and > >

Re: [Intel-gfx] [PATCH 12/19] drm/i915: Remove use_mmio_flip kernel parameter.

2016-05-11 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:32AM +0200, Maarten Lankhorst wrote: > With the removal of cs flips this is always force enabled. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_params.c | 5 - > drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 13/19] drm/i915: Remove queue_flip pointer.

2016-05-11 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:33AM +0200, Maarten Lankhorst wrote: > With the removal of cs support this is no longer reachable. > Can be revived if needed. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_drv.h |

Re: [Intel-gfx] [PATCH 14/19] drm/i915: Pass atomic states to fbc update functions.

2016-05-11 Thread Patrik Jakobsson
orst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 8 +--- > drivers/gpu/drm/i915/intel_drv.h | 8 ++-- > drivers/gpu/drm/i915/intel_fbc.c | 39 > +--- > 3 files changed, 29 insertions(+),

Re: [Intel-gfx] [PATCH 15/19] drm/i915: Prepare MST connector removal for async unpin.

2016-05-11 Thread Patrik Jakobsson
On Tue, Apr 19, 2016 at 09:52:35AM +0200, Maarten Lankhorst wrote: > check_connector_state might get called from unpin_work, which means verify_connector_state and not check_connector_state? Otherwise looks good Reviewed-by: Patrik Jakobsson > that the mst removal function has to fl

[Intel-gfx] [PATCH v2] drm/i915/dmc: Step away from symbolic links

2016-05-16 Thread Patrik Jakobsson
provide a tested and known working configuration we must lock down on a specific DMC firmware version. Cc: Rodrigo Vivi Cc: Imre Deak Cc: Mika Kuoppala Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_csr.c | 29 ++--- 1 file changed, 14 insertions(+), 15

Re: [Intel-gfx] [PATCH v2 02/21] drm/i915: Remove stallcheck special handling, v3.

2016-05-18 Thread Patrik Jakobsson
ad() needs a full smp_rmb. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_debugfs.c | 11 +++--- > drivers/gpu/drm/i915/intel_display.c | 71 > ++-- > drivers/gpu/drm/i915/intel_drv.h |

Re: [Intel-gfx] [PATCH v2 03/21] drm/i915: Remove intel_finish_page_flip_plane.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:46PM +0200, Maarten Lankhorst wrote: > This function is duplicated with intel_finish_page_flip, > and is only ever used from planes that could use the > other function anyway. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson >

Re: [Intel-gfx] [PATCH v2 04/21] drm/i915: Remove intel_prepare_page_flip, v3.

2016-05-18 Thread Patrik Jakobsson
ing is turned into a bool. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_debugfs.c | 5 +-- > drivers/gpu/drm/i915/i915_irq.c | 18 ++--- > drivers/gpu/drm/i915/intel_display.c | 72 > +++--

Re: [Intel-gfx] [PATCH v2 05/21] drm/i915: Add support for detecting vblanks when hw frame counter is unavailable.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:48PM +0200, Maarten Lankhorst wrote: > This uses the newly created drm_accurate_vblank_count_and_time to accurately > get a vblank count when the hw counter is unavailable. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > ---

Re: [Intel-gfx] [PATCH v2 06/21] drm/i915: Unify unpin_work and mmio_work into flip_work, v2.

2016-05-18 Thread Patrik Jakobsson
MMIO flips get their own path through intel_finish_page_flip_mmio, > handled on vblank. CS page flips go through *_cs. > > Changes since v1: > - Clean up destinction between MMIO and CS flips. > > Signed-off-by: Maarten Lankhorst Much nicer with the cs / mmio spli

Re: [Intel-gfx] [PATCH v2 07/21] Revert "drm/i915: Avoid stalling on pending flips for legacy cursor updates"

2016-05-18 Thread Patrik Jakobsson
arten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display.c > index d349a8118a56..6526bb5a7afb 100644 > ---

Re: [Intel-gfx] [PATCH v2 08/21] drm/i915: Allow mmio updates on all platforms, v2.

2016-05-18 Thread Patrik Jakobsson
ich update_plane can be called with a freed > crtc_state. Because of this commit acf4e84d61673 > ("drm/i915: Avoid stalling on pending flips for legacy cursor updates") > is temporarily reverted. > > Changes since v1: > - Split out the flip_work rename. > > Signed-off

Re: [Intel-gfx] [PATCH v2 09/21] drm/i915: Convert flip_work to a list.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:52PM +0200, Maarten Lankhorst wrote: > This will be required to allow more than 1 update in the future. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_debugfs.c | 90 +++-- >

Re: [Intel-gfx] [PATCH v2 10/21] drm/i915: Add the exclusive fence to plane_state.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:53PM +0200, Maarten Lankhorst wrote: > Set plane_state->base.fence to the dma_buf exclusive fence, > and add a wait to the mmio function. This will make it easier > to unify plane updates later on. > > Signed-off-by: Maarten Lankhorst Reviewed-by

Re: [Intel-gfx] [PATCH v2 12/21] drm/i915: Remove cs based page flip support.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:55PM +0200, Maarten Lankhorst wrote: > With mmio flips now available on all platforms it's time to remove > support for cs flips. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_debugfs

Re: [Intel-gfx] [PATCH v2 13/21] drm/i915: Remove use_mmio_flip kernel parameter.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:56PM +0200, Maarten Lankhorst wrote: > With the removal of cs flips this is always force enabled. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_params.c | 5 - > drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v2 14/21] drm/i915: Remove queue_flip pointer.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:57PM +0200, Maarten Lankhorst wrote: > With the removal of cs support this is no longer reachable. > Can be revived if needed. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/i915_drv.h |

Re: [Intel-gfx] [PATCH v2 15/21] drm/i915: Remove reset_counter from intel_crtc.

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:58PM +0200, Maarten Lankhorst wrote: > With the removal of cs-based flips all mmio waits will > finish without requiring the reset counter, because the > waits will complete during gpu reset. > > Signed-off-by: Maarten Lankhorst Reviewed-by: P

Re: [Intel-gfx] [PATCH v2 16/21] drm/i915: Pass atomic states to fbc update functions.

2016-05-18 Thread Patrik Jakobsson
orst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 8 +--- > drivers/gpu/drm/i915/intel_drv.h | 8 ++-- > drivers/gpu/drm/i915/intel_fbc.c | 39 > +--- > 3 files changed, 29 insertions(+),

Re: [Intel-gfx] [PATCH v2 19/21] Reapply "drm/i915: Avoid stalling on pending flips for legacy cursor updates"

2016-05-18 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:08:02PM +0200, Maarten Lankhorst wrote: > This reapplies commit acf4e84d6167317ff21be5c03e1ea76ea5783701. > With async unpin this should no longer break. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH v2 20/21] drm/i915: Check for unpin correctness.

2016-05-19 Thread Patrik Jakobsson
is destroyed, so to find > this add some checks when it happens. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel

Re: [Intel-gfx] [PATCH v2 11/21] drm/i915: Rework intel_crtc_page_flip to be almost atomic, v3.

2016-05-19 Thread Patrik Jakobsson
e v2: > - Add hunk for calling hw state verifier. > - Add missing support for color spaces. > > Signed-off-by: Maarten Lankhorst I would have liked this one to be split into smaller pieces but since I can't find any good points to split at, I think this is good eno

Re: [Intel-gfx] [PATCH v2 17/21] drm/i915: Prepare connectors for nonblocking checks.

2016-05-19 Thread Patrik Jakobsson
fy. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 53 > ++-- > drivers/gpu/drm/i915/intel_drv.h | 4 +++ > 2 files changed, 43 insertions(+), 14 deletions(-) &g

Re: [Intel-gfx] [PATCH v2 18/21] drm/i915: Make unpin async.

2016-05-19 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:08:01PM +0200, Maarten Lankhorst wrote: > All of intel_post_plane_update is handled there now, so move it over. > This is run after the hw state checker because it can't handle checking > crtc's separately yet. > > Signed-off-by: Maarten Lankho

Re: [Intel-gfx] [PATCH v2 21/21] drm/i915: Allow async update of pageflips.

2016-05-19 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:08:04PM +0200, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst We could have had a short note on what the patch does, though reading it is quite straight forward. Either way is fine by me. Reviewed-by: Patrik Jakobsson > --- > drivers/gpu

Re: [Intel-gfx] [PATCH v2 00/21] Rework page flip, remove cs flips, async unpin and unified pageflip.

2016-05-19 Thread Patrik Jakobsson
On Tue, May 17, 2016 at 03:07:43PM +0200, Maarten Lankhorst wrote: > Connector lifetime patches forced a rethinking for handling connectors. > Instead of flushing modesets from the connector destroy function this > meant destroying the connector state inside the unpin_work function, > similar to th

Re: [Intel-gfx] [PATCH v2] drm/i915/dmc: Step away from symbolic links

2016-05-23 Thread Patrik Jakobsson
On Wed, May 18, 2016 at 01:24:12PM +0300, Mika Kuoppala wrote: > Patrik Jakobsson writes: > > > [ text/plain ] > > Load specific firmware versions for the DMC instead of using symbolic > > links. The currently recommended versions are: SKL 1.26, KBL 1.01 and > >

Re: [Intel-gfx] [PATCH 05/16] drm/i915/gen9: Make power well disabling synchronous

2016-04-04 Thread Patrik Jakobsson
t; disabling also synchronous. > > CC: Mika Kuoppala > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/

Re: [Intel-gfx] [PATCH 06/16] drm/i915/gen9: Fix DMC/DC state asserts

2016-04-04 Thread Patrik Jakobsson
_can_enable_dc5() is incorrect. There is a more generic and > correct assert for this already in gen9_set_dc_state(), so we can remove > all the other ones. > > At the same time convert WARNs to WARN_ONCE for consistency with the > other DC state asserts. > > CC: Patrik Jakobsson

Re: [Intel-gfx] [PATCH 07/16] drm/i915/bxt: Suspend power domains during suspend-to-idle

2016-04-04 Thread Patrik Jakobsson
d on a manual DC9 flow. For this we have to uninitialize the > display following the BSpec display uninit sequence, just as during > S3/S4, so make sure we follow this sequence. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Reviewed-by: Patrik Jakobsson > --- >

Re: [Intel-gfx] [PATCH 08/16] drm/i915/skl: Unexport skl_pw1_misc_io_init

2016-04-04 Thread Patrik Jakobsson
On Fri, Apr 01, 2016 at 04:02:39PM +0300, Imre Deak wrote: > On Broxton we need to enable/disable power well 1 during the init/unit display > sequence similarly to Skylake/Kabylake. The code for this will be added in a > follow-up patch, but to prepare for that unexport skl_pw1_misc_io_init(). It's

Re: [Intel-gfx] [PATCH v2 08/16] drm/i915/skl: Unexport skl_pw1_misc_io_init

2016-04-04 Thread Patrik Jakobsson
enable vs. disable power well call in > skl_display_core_uninit() (Patrik) > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/intel_drv.h| 2 -- > drivers/gpu/drm/i915/intel_runtime_pm.c | 49 > - > 2 files cha

Re: [Intel-gfx] [PATCH 05/16] drm/i915/gen9: Make power well disabling synchronous

2016-04-05 Thread Patrik Jakobsson
On Mon, Apr 04, 2016 at 12:34:30PM +0200, Patrik Jakobsson wrote: > On Fri, Apr 01, 2016 at 04:02:36PM +0300, Imre Deak wrote: > > So far we only power well enabling was synchronous not disabling. Since > > we don't exactly know how the firmware (both DMC and PCU) synchron

Re: [Intel-gfx] [PATCH 14/16] drm/i915/gen9: Calculate watermarks during atomic 'check'

2016-04-05 Thread Patrik Jakobsson
On Thu, Mar 31, 2016 at 06:46:36PM -0700, Matt Roper wrote: > Moving watermark calculation into the check phase will allow us to to > reject display configurations for which there are no valid watermark > values before we start trying to program the hardware (although those > tests will come in a s

Re: [Intel-gfx] [PATCH v2 04/16] drm/i915/gen9: Reset secondary power well requests left on by DMC/KVMR

2016-04-06 Thread Patrik Jakobsson
expect any request bits in here either, so > sanitize this register as well. > > v2: > - apply the workaround on SKL as well > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Hmm, more DMC fun. Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_runt

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Try to shut up more ILK underruns

2016-04-12 Thread Patrik Jakobsson
PCH ports > > Cc: Daniel Vetter > Signed-off-by: Ville Syrjälä > Reviewed-by: Daniel Vetter (v1) I've not been able to find any additional ILK hardware to test this on but LGTM Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_display.c | 45 > +

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Replace ILK eDP underrun suppression with something better

2016-04-12 Thread Patrik Jakobsson
ust prior to enabling the eDP PLL. > > Cc: Daniel Vetter > Signed-off-by: Ville Syrjälä Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_dp.c | 36 +--- > 1 file changed, 9 insertions(+), 27 deletions(-) > > diff --git

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Make sure LP1+ watermarks levels are preserved when going from 1 to 2 pipes

2016-04-12 Thread Patrik Jakobsson
programmed watermark levels intact. > > Fixes underruns on the already enabled pipe when programming watermarks > while enabling the second pipe. > > Cc: Daniel Vetter > Cc: Matt Roper > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93787 > Signed-off-by: V

Re: [Intel-gfx] [PATCH] drm/i915/kbl: Reset secondary power well requests left on by DMC/KVMR

2016-04-18 Thread Patrik Jakobsson
and MISC IO > power well disabling in the latest CI run. > > CC: Patrik Jakobsson > Signed-off-by: Imre Deak Ok, so this seems to affect all DMC firmwares we have so far? Any news on the bug report? Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/i915/intel_run

Re: [Intel-gfx] [SKL-DMC-BUGFIX 3/5] drm/i915/skl: Do not disable cdclk PLL if csr firmware is present.

2015-10-12 Thread Patrik Jakobsson
On Mon, Oct 12, 2015 at 05:07:13PM +0300, Imre Deak wrote: > On ma, 2015-10-12 at 16:37 +0300, Imre Deak wrote: > > On ma, 2015-08-03 at 21:55 +0530, Animesh Manna wrote: > > > While display engine entering into low power state no need to disable > > > cdclk pll as CSR firmware of dmc will take car

[Intel-gfx] [PATCH] drm/i915: Always program CSR if CSR is uninitialized

2015-10-21 Thread Patrik Jakobsson
The current CSR loading code depends on the CSR program memory to be cleared after boot. This is unfortunately not true on all hardware. Instead make use of the FW_UNINITIALIZED state in init and check for FW_LOADED to prevent init path from skipping the actual programming. Signed-off-by: Patrik

Re: [Intel-gfx] [PATCH] drm/i915: Always program CSR if CSR is uninitialized

2015-10-22 Thread Patrik Jakobsson
On Thu, Oct 22, 2015 at 6:07 PM, Rodrigo Vivi wrote: > regarding your offline question: yes, I had your patch applied here, so > > Tested-by: Rodrigo Vivi > > On Wed, Oct 21, 2015 at 7:57 AM, Patrik Jakobsson > wrote: >> The current CSR loading code depends on the

[Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-23 Thread Patrik Jakobsson
initialization of state to after HAS_CSR() check Signed-off-by: Patrik Jakobsson Tested-by: Rodrigo Vivi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_csr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_csr.c b/drivers/gpu/drm/i915/intel_csr.c

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-23 Thread Patrik Jakobsson
+0200, Patrik Jakobsson wrote: > The current CSR loading code depends on the CSR program memory to be > cleared after boot. This is unfortunately not true on all hardware. > Instead make use of the FW_UNINITIALIZED state in init and check for > FW_LOADED to prevent init path from skipping the a

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-26 Thread Patrik Jakobsson
On Sat, Oct 24, 2015 at 11:03:05AM +0530, Animesh Manna wrote: > > > On 10/23/2015 3:11 PM, Patrik Jakobsson wrote: > >The current CSR loading code depends on the CSR program memory to be > >cleared after boot. This is unfortunately not true on all hardware. >

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-28 Thread Patrik Jakobsson
On Tue, Oct 27, 2015 at 08:41:31PM +0200, Imre Deak wrote: > On pe, 2015-10-23 at 11:41 +0200, Patrik Jakobsson wrote: > > The current CSR loading code depends on the CSR program memory to be > > cleared after boot. This is unfortunately not true on all hardware. > > In

[Intel-gfx] [PATCH 8/8] drm/i915: Force loading of csr program at boot

2015-11-03 Thread Patrik Jakobsson
When booting (warm or cold) we must always program the csr. Previously we checked if the CSR program memory matched with the firmware data but this turned out to fail on warm boots. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/intel_csr.c | 6

[Intel-gfx] [PATCH 0/8] Skylake DMC/DC-state fixes and redesign

2015-11-03 Thread Patrik Jakobsson
Aux A communication. [1] http://lists.freedesktop.org/archives/intel-gfx/2015-October/079041.html [2] http://lists.freedesktop.org/archives/intel-gfx/2015-October/078898.html Patrik Jakobsson (5): drm/i915: Add a modeset power domain drm/i915: Do not warn on PG2 enabled in gen9_disable_dc5() drm

[Intel-gfx] [PATCH 6/8] drm/i915/skl: Turn DC handling into a power well

2015-11-03 Thread Patrik Jakobsson
: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_drv.c | 6 -- drivers/gpu/drm/i915/intel_display.c| 6 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 107 +--- 3 files changed, 78 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b

[Intel-gfx] [PATCH 7/8] drm/i915/skl: Add boot parameter for disabling DC6

2015-11-03 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_params.c | 6 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm

[Intel-gfx] [PATCH 2/8] drm/i915: Introduce a gmbus power domain

2015-11-03 Thread Patrik Jakobsson
power domains. We're already really close to the limit... [Patrik: Add gmbus string to debugfs output] Signed-off-by: Ville Syrjälä Reviewed-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 3/8] drm/i915: Remove DDI power domain exclusion SKL_DISPLAY_ALWAYS_ON_POWER_DOMAINS

2015-11-03 Thread Patrik Jakobsson
From: Ville Syrjälä All the DDI power domains are already excluded from SKL_DISPLAY_ALWAYS_ON_POWER_DOMAINS on account of excluding SKL_DISPLAY_POWERWELL_1_POWER_DOMAINS and SKL_DISPLAY_POWERWELL_2_POWER_DOMAINS, no need to spell them out again. Signed-off-by: Ville Syrjälä Reviewed-by: Patrik

[Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-03 Thread Patrik Jakobsson
We need DC5/DC6 to be disabled around modesets to prevent confusing the DMC. Also, we've run out of bits in the 32 bit power domain mask so now it's a 64 bit mask. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 1/8] drm/i915: Clean up AUX power domain handling

2015-11-03 Thread Patrik Jakobsson
ing for CHV at least. But I think it's still a worthwile change. Signed-off-by: Ville Syrjälä Reviewed-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_display.c | 40 ++ drivers/gpu/drm/i915/intel_dp.c | 48 +++- drivers

[Intel-gfx] [PATCH 5/8] drm/i915: Do not warn on PG2 enabled in gen9_disable_dc5()

2015-11-03 Thread Patrik Jakobsson
PG2 enabled is not a requirement for disabling DC5. It's just one of the reasons why we wouldn't enter DC5. During modeset we don't care about PG2 from a DC perspective, only the fact that DC5/DC6 is not allowed. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_r

Re: [Intel-gfx] [PATCH 7/8] drm/i915/skl: Add boot parameter for disabling DC6

2015-11-03 Thread Patrik Jakobsson
On Tue, Nov 03, 2015 at 03:08:41PM +0200, Jani Nikula wrote: > On Tue, 03 Nov 2015, Patrik Jakobsson > wrote: > > Signed-off-by: Patrik Jakobsson > > --- > > drivers/gpu/drm/i915/i915_drv.h | 1 + > > drivers/gpu/drm/i915/i915_params.c | 6 ++

  1   2   3   >