Re: [Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-08-01 Thread Paulo Zanoni
allocate an array of i915_power_well objects in i915 dev_priv, > and link to each of these objects their corresponding > i915_power_well_desc object. > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak Quite a few issues pointed by checkp

Re: [Intel-gfx] [PATCH 05/10] drm/i915/vlv: Use power well CTL IDX instead of ID

2018-08-01 Thread Paulo Zanoni
#x27;t we also move .ops down when relevant, and keep the ordering "perfect" for every member? Anyway, the patch does what it says, so with or without the new color: Reviewed-by: Paulo Zanoni > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-of

Re: [Intel-gfx] [PATCH] firmware/dmc/icl: load v1.07 on icelake.

2018-08-01 Thread Paulo Zanoni
al machines before submitting or are we entirely relying on the CI results? I'm not sure the CI is running enough tests to validate this patch with confidence, we'll probably need to do some manual testing here. > > Cc: Imre Deak > Cc: Rodrigo Vivi > Cc: Paulo

Re: [Intel-gfx] [PATCH 06/10] drm/i915/ddi: Use power well CTL IDX instead of ID

2018-08-02 Thread Paulo Zanoni
trol registers. > > This also fixes a problem on ICL, where we incorrectly read the KVMR > control register in hsw_power_well_requesters() even for DDI and AUX > power wells. > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak > --

Re: [Intel-gfx] [PATCH 07/10] drm/i915: Remove redundant power well IDs

2018-08-02 Thread Paulo Zanoni
just the enum's code > comment > accordingly. I would probably have kept every enum, but let's proceed with your colors. More below: > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH 08/10] drm/i915: Make power well ID names more uniform

2018-08-02 Thread Paulo Zanoni
Em Sex, 2018-07-20 às 17:15 +0300, Imre Deak escreveu: > The format for the ID names is _DISP_PW_* so rename the IDs > not following this accordingly. Leave BXT_DPIO_CMN_BC as-is since > we'll > change that to use another existing ID in the next patch. > > Cc: Ville Syrj

Re: [Intel-gfx] [PATCH 09/10] drm/i915: Use existing power well IDs where possible

2018-08-02 Thread Paulo Zanoni
ssible > after the previous patches where we removed dependence on the actual > enum values. > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_reg.h | 3 --- > drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 10/10] drm/i915/icl: Add missing power gate enums

2018-08-02 Thread Paulo Zanoni
Em Sex, 2018-07-20 às 17:15 +0300, Imre Deak escreveu: > On ICL there are 5 fused power gates, so add the two missing ones for > clarity. > > Cc: Ville Syrjala > Cc: Paulo Zanoni Reviewed-by: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak > ---

Re: [Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-08-02 Thread Paulo Zanoni
Em Qui, 2018-08-02 às 15:03 +0300, Imre Deak escreveu: > On Wed, Aug 01, 2018 at 02:39:31PM -0700, Paulo Zanoni wrote: > > Em Sex, 2018-07-20 às 17:14 +0300, Imre Deak escreveu: > > > It makes sense to keep unchanging data const. Extract such fields > > > from > >

Re: [Intel-gfx] [PATCH 01/10] drm/i915/icl: Fix power well anonymous union initializers

2018-08-02 Thread Paulo Zanoni
Lucas De Marchi > > > > > Cc: Chris Wilson > > Cc: Ville Syrjala > > Cc: Paulo Zanoni > > Cc: Jani Nikula > > Signed-off-by: Imre Deak > > --- > > drivers/gpu/drm/i915/intel_runtime_pm.c | 22 +++ > > --- > > 1 fil

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Restore modparams around test

2018-08-06 Thread Paulo Zanoni
Em Seg, 2018-08-06 às 21:22 +0100, Chris Wilson escreveu: > Save the module parameters from setup and restore them on teardown, > so > that we leave the system in the same state as we found it. Currently kms_fbt uses igt_set_module_param_int() which uses igt_save_module_param(), which installs an

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Restore modparams around test

2018-08-06 Thread Paulo Zanoni
Em Seg, 2018-08-06 às 22:07 +0100, Chris Wilson escreveu: > Quoting Paulo Zanoni (2018-08-06 21:56:15) > > Em Seg, 2018-08-06 às 21:22 +0100, Chris Wilson escreveu: > > > Save the module parameters from setup and restore them on > > > teardown, > > > so > &

Re: [Intel-gfx] [PATCH v2 04/10] drm/i915: Constify power well descriptors

2018-08-06 Thread Paulo Zanoni
check for unique IDs to __set_power_wells(). > > Cc: Ville Syrjala > Cc: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak > Reviewed-by: Paulo Zanoni (v1) R-B still valid for v2 (or v3) as long as the kcalloc checkpatch issue is fixed. > --- > driver

Re: [Intel-gfx] [PATCH v2 09/10] drm/i915: Use existing power well IDs where possible

2018-08-06 Thread Paulo Zanoni
ssible > after the previous patches where we removed dependence on the actual > enum values. > > v2: > - Keep an ID assigned for the ICL PW#2 power well too. (Paulo) A brief mention in the commit message that this actually fixes a bug on ICL may be good. Reviewed-by: Paulo Zano

Re: [Intel-gfx] [PATCH v2 07/10] drm/i915: Remove redundant power well IDs

2018-08-06 Thread Paulo Zanoni
st the enum's code > comment > accordingly. > > v2: > - Keep required ID assignments for HSW_DISP_PW_GLOBAL and > ICL_DISP_PW_2. > (Paulo) > > Cc: Ville Syrjala > Cc: Paulo Zanoni Reviewed-by: Paulo Zanoni > Cc: Jani Nikula > Signed-off-by: Imre Deak

[Intel-gfx] [PATCH 3/4] drm/i915: use for_each_power_well in lookup_power_well()

2018-08-08 Thread Paulo Zanoni
Use the nice helper function to make the implementation simpler. Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/4] drm/i915: BUG() if we can't lookup_power_well()

2018-08-08 Thread Paulo Zanoni
tter use of our time once a bug is found in the wild. Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c ind

[Intel-gfx] [PATCH 4/4] drm/i915: move lookup_power_well() up

2018-08-08 Thread Paulo Zanoni
There's no need for that forward declaration. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-08 Thread Paulo Zanoni
Use the same coding pattern as we use in the other functions of the same file: just call lookup_power_well() directly in the only caller. Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 20 +++- 1 file changed, 3 insertions(+), 17

Re: [Intel-gfx] [PATCH 1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-08 Thread Paulo Zanoni
Em Qua, 2018-08-08 às 15:22 -0700, Souza, Jose escreveu: > On Wed, 2018-08-08 at 15:16 -0700, Paulo Zanoni wrote: > > Use the same coding pattern as we use in the other functions of the > > same file: just call lookup_power_well() directly in the only > > caller. > > &g

Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-08 Thread Paulo Zanoni
Em Qua, 2018-08-08 às 22:22 +, Patchwork escreveu: > == Series Details == > > Series: series starting with [1/4] drm/i915: kill > intel_display_power_well_is_enabled() > URL : https://patchwork.freedesktop.org/series/47908/ > State : warning > > == Summary == > > $ dim checkpatch origin/dr

Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-09 Thread Paulo Zanoni
Em Qui, 2018-08-09 às 08:29 +0200, Michal Wajdeczko escreveu: > On Thu, 09 Aug 2018 00:58:53 +0200, Paulo Zanoni > wrote: > > > Em Qua, 2018-08-08 às 22:22 +, Patchwork escreveu: > > > == Series Details == > > > > > > Series:

[Intel-gfx] [RFC/CI] drm/i915/icl: account for context save/restore removed bits

2018-08-09 Thread Paulo Zanoni
gt/drv_selftest/live_hangcheck/others-priority Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107399 Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_lrc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) As you may notice from the TODO comments, my GEM-fu is still not

[Intel-gfx] [CI 1/2] drm/i915/icl: Implement HSDIV_RATIO of MG_CLKTOP2_HSCLKCTL_PORT reg as separate divider value defines

2018-08-17 Thread Paulo Zanoni
ed-by: José Roberto de Souza Suggested-by: James Ausmus Signed-off-by: Manasi Navare Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 5 - drivers/gpu/drm/i915/intel_dpll_mgr.c | 13 +++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/driver

[Intel-gfx] [CI 2/2] drm/i915/icl: Get DDI clock for ICL for MG PLL and TBT PLL

2018-08-17 Thread Paulo Zanoni
. v2 (from Paulo): * Make the algorithm look more like what's in the spec, also document where we differ form the spec and why. * Make the code a little more consistent with our coding style. Reviewed-by: José Roberto de Souza Signed-off-by: Manasi Navare Signed-off-by: Paulo Z

Re: [Intel-gfx] [PATCH v3] drm/i915/icl: implement the tc/legacy HPD {dis, }connect flows

2018-08-17 Thread Paulo Zanoni
Em Sex, 2018-08-17 às 09:25 -0700, Srivatsa, Anusha escreveu: > > -Original Message- > > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On > > Behalf Of > > Paulo Zanoni > > Sent: Wednesday, August 1, 2018 10:35 AM > > To: intel-gfx@

Re: [Intel-gfx] [PATCH 1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-17 Thread Paulo Zanoni
Em Qua, 2018-08-15 às 23:27 +0300, Imre Deak escreveu: > On Wed, Aug 08, 2018 at 03:16:11PM -0700, Paulo Zanoni wrote: > > Use the same coding pattern as we use in the other functions of the > > same file: just call lookup_power_well() directly in the only > > caller. &

Re: [Intel-gfx] [PATCH 1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-20 Thread Paulo Zanoni
Em Sex, 2018-08-17 às 16:41 -0700, Paulo Zanoni escreveu: > Em Qua, 2018-08-15 às 23:27 +0300, Imre Deak escreveu: > > On Wed, Aug 08, 2018 at 03:16:11PM -0700, Paulo Zanoni wrote: > > > Use the same coding pattern as we use in the other functions of > > > the

[Intel-gfx] [PATCH 2/5] drm/i915: WARN() if we can't lookup_power_well()

2018-08-20 Thread Paulo Zanoni
ild. v2: Avoid the BUG() with a WARN() return a random PW (Michal). Cc: Michal Wajdeczko Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c

[Intel-gfx] [PATCH 3/5] drm/i915: use for_each_power_well in lookup_power_well()

2018-08-20 Thread Paulo Zanoni
Use the nice helper function to make the implementation simpler. v2: Rebase. Cc: Imre Deak Reviewed-by: José Roberto de Souza (v1) Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers

[Intel-gfx] [PATCH 1/5] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-20 Thread Paulo Zanoni
Use the same coding pattern as we use in the other functions of the same file: just call lookup_power_well() directly in the only caller. Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 20 +++- 1 file changed, 3 insertions(+), 17

[Intel-gfx] [PATCH 4/5] drm/i915: move lookup_power_well() up

2018-08-20 Thread Paulo Zanoni
There's no need for that forward declaration. Cc: Imre Deak Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_runtime_pm.c | 46 +++-- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gp

[Intel-gfx] [PATCH 5/5] drm/i915: use the SW-based pw->hw_enabled check instead of reading registers

2018-08-20 Thread Paulo Zanoni
I can't find a reason why we would want to call is_enabled(), which does a register read, instead of just relying on our tracking with hw_enabled. Let's try to trust our hardware sync. Cc: Imre Deak Requested-by: José Roberto de Souza Signed-off-by: Paulo Zanoni --- drivers/gp

Re: [Intel-gfx] [PATCH 1/4] drm/i915: kill intel_display_power_well_is_enabled()

2018-08-21 Thread Paulo Zanoni
Em Ter, 2018-08-21 às 14:12 +0300, Imre Deak escreveu: > On Mon, Aug 20, 2018 at 04:11:27PM -0700, Paulo Zanoni wrote: > > Em Sex, 2018-08-17 às 16:41 -0700, Paulo Zanoni escreveu: > > > Em Qua, 2018-08-15 às 23:27 +0300, Imre Deak escreveu: > > > > On Wed, Aug 08, 2

Re: [Intel-gfx] [PATCH] drm/i915: Protect against wrong reg offset and warn.

2018-09-11 Thread Paulo Zanoni
is incorrect that we would have to add a few dozen more WARNs. Why add this specific check at this specific case and not all other checks in other possible cases that could break? > So let's just add a protection and warn here. > > Cc: Paulo Zanoni > Signed-off-by: Rodrigo Vivi

Re: [Intel-gfx] [PATCH] drm/i915: Protect against wrong reg offset and warn.

2018-09-11 Thread Paulo Zanoni
Em Ter, 2018-09-11 às 14:26 -0700, Rodrigo Vivi escreveu: > On Tue, Sep 11, 2018 at 01:39:53PM -0700, Paulo Zanoni wrote: > > Em Dom, 2018-09-02 às 22:15 -0700, Rodrigo Vivi escreveu: > > > In case we forget to change intel_port_is_tc > > > we would be trying to acces

Re: [Intel-gfx] [PATCH] drm/i915/dp: fix shifting by a negative number of bits

2018-09-12 Thread Paulo Zanoni
Em Qua, 2018-09-12 às 09:31 -0500, Gustavo A. R. Silva escreveu: > Function intel_port_to_tc() returns PORT_TC_NONE on error, which is > a negative value -1. In case PORT_TC_NONE is returned, there is an > undefined behavior when shifting by a negative number of bits in > both DP_PHY_MODE_STATUS_NO

Re: [Intel-gfx] [PATCH] drm/i915/tbt: Add CFGCR0/1 registers for TBT

2018-09-13 Thread Paulo Zanoni
Em Qui, 2018-09-13 às 15:15 -0700, Anusha Srivatsa escreveu: > We were using the default CFGCR0/1 instead of using > TBT specific CFGCR0 and CFGCR1 registers during > PLL sequence. > > Add missing TBTPLL_CFGCR0/1 registers and plumb > them in the existing PLL sequence. > >

Re: [Intel-gfx] [PATCH] drm/i915: Rework FBC schedule locking

2018-03-21 Thread Paulo Zanoni
lve the bug referenced? What is the real problem here? Please improve the commit message: it not only helps future git log readers, but it also helps reviewers like me understand where you're trying to get. I'm lost here. > Signed-off-by: Maarten Lankhorst > Cc: Paulo Zanoni >

Re: [Intel-gfx] [PATCH 01/17] drm/i915/icl: add definitions for the ICL PLL registers

2018-03-21 Thread Paulo Zanoni
Em Ter, 2018-02-27 às 14:22 -0800, James Ausmus escreveu: > On Thu, Feb 22, 2018 at 12:55:03AM -0300, Paulo Zanoni wrote: > > There's a lot of code for the PLL enabling, so let's first only > > introduce the register definitions in order to make patch reviewing > > a

Re: [Intel-gfx] [PATCH 08/17] drm/i915/icl: Implement voltage swing programming sequence for Combo PHY DDI

2018-03-22 Thread Paulo Zanoni
Em Qui, 2018-02-22 às 00:55 -0300, Paulo Zanoni escreveu: > From: Manasi Navare > > This is an important part of the DDI initalization as well as > for changing the voltage during DisplayPort link training. > > The Voltage swing seqeuence is similar to Cannonlake. > How

Re: [Intel-gfx] [PATCH 11/17] drm/i915/icl: Implement voltage swing programming sequence for MG PHY DDI

2018-03-22 Thread Paulo Zanoni
Em Qui, 2018-02-22 às 00:55 -0300, Paulo Zanoni escreveu: > From: Manasi Navare > > This sequence is used to setup voltage swing before enabling MG PHY > DDI > as well as for changing the voltage during DisplayPort Link training. > > For ICL, there are two types of DDIs. T

Re: [Intel-gfx] [PATCH 14/17] drm/i915/icl: Calculate link clock using the new registers

2018-03-22 Thread Paulo Zanoni
Em Qui, 2018-02-22 às 00:55 -0300, Paulo Zanoni escreveu: > From: Arkadiusz Hiler > > Start using the new registers for ICL and on. This patch doesn't make sense at this point of the series since we don't run this code on ICL. I'll put it at the correct series. >

Re: [Intel-gfx] [PATCH 00/17] ICL PLLs, DP/HDMI and misc display

2018-03-22 Thread Paulo Zanoni
Em Qui, 2018-02-22 às 00:55 -0300, Paulo Zanoni escreveu: > Hello > > Here are some more ICL patches, now with the Combo & MG PLLs, some > DP/HDMI > initialization code and a few misc fixes. > > Again, the R-B tags already present in some of the patches (including > t

[Intel-gfx] [PATCH 01/17] drm/i915/icl: add definitions for the ICL PLL registers

2018-03-22 Thread Paulo Zanoni
There's a lot of code for the PLL enabling, so let's first only introduce the register definitions in order to make patch reviewing a little easier. v2: Coding style (Jani). v3: Preparation for upstreaming. v4: Fix MG_CLKTOP2_CORECLKCTL1 address and random typos (James). Signed-off

[Intel-gfx] [PATCH 02/17] drm/i915/icl: add basic support for the ICL clocks

2018-03-22 Thread Paulo Zanoni
usmus Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 22 +++ drivers/gpu/drm/i915/intel_ddi.c | 96 ++- drivers/gpu/drm/i915/intel_display.c | 16 ++ drivers/gpu/drm/i915/intel_dpll_mgr.c | 311 +- drivers/gpu/drm

[Intel-gfx] [PATCH 08/17] drm/i915/icl: Implement voltage swing programming sequence for Combo PHY DDI

2018-03-22 Thread Paulo Zanoni
NG_MODE_SEL. * Adjust the output type handling according to how the other platforms do it now. Cc: Jani Nikula Cc: James Ausmus Signed-off-by: Manasi Navare Signed-off-by: Rodrigo Vivi Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 191 ++- 1 f

[Intel-gfx] [PATCH 3/7] drm/i915/icl: Add register defs for voltage swing sequences for MG PHY DDI

2018-03-23 Thread Paulo Zanoni
(from Paulo): * Use _PORT instead of _PICK * Change some mask names to our current coding standards * Stay under 80 columns v3: * Rebase on new revision of patches v2: * Remove whitespaces in the #defines (Paulo) Cc: Rodrigo Vivi Cc: Jani Nikula Reviewed-by: Paulo Zanoni Signed-off-by: Manasi

[Intel-gfx] [PATCH 5/7] drm/i915/icl: HPD pin for port F

2018-03-23 Thread Paulo Zanoni
From: Dhinakaran Pandiyan Extend enum hpd_pin to port F so that we can start using this for ICL. v2: Rebase. Cc: Rodrigo Vivi Cc: Paulo Zanoni Reviewed-by: Rodrigo Vivi Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_hotplug.c

[Intel-gfx] [PATCH 7/7] drm/i915/icl: Don't set pipe CSC/Gamma in PLANE_COLOR_CTL

2018-03-23 Thread Paulo Zanoni
done. v2: Drop useless comment, and change !(GEN >= 11) to (GEN < 11). (Ville) v3: No changes v4 (from Paulo): Rebase. Cc: Paulo Zanoni Cc: Ville Syrjälä Reviewed-by: Paulo Zanoni Signed-off-by: James Ausmus Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 4 ++

[Intel-gfx] [PATCH 6/7] drm/i915/icl: Added 5k source scaling support for Gen11 platform

2018-03-23 Thread Paulo Zanoni
From: Nabendu Maiti Gen11 supports upto 5k source scaling v2: Re-factoring of code as per review v3: Corrected max Vertical size and indentation v4: Added max Vertical dst size in same patch Reviewed-by: Paulo Zanoni Signed-off-by: Nabendu Maiti --- drivers/gpu/drm/i915/intel_display.c | 11

[Intel-gfx] [PATCH CI 0/7] ICL reviewed mergeable patches

2018-03-23 Thread Paulo Zanoni
Let's see that the CI has to say about them before we merge them. These are taken from: [PATCH 00/17] ICL PLLs, DP/HDMI and misc display Dhinakaran Pandiyan (1): drm/i915/icl: HPD pin for port F James Ausmus (1): drm/i915/icl: Don't set pipe CSC/Gamma in PLANE_COLOR_CTL Manasi Navare (4):

[Intel-gfx] [PATCH 2/7] drm/i915/icl: Add Combo PHY DDI Buffer translation tables for Icelake.

2018-03-23 Thread Paulo Zanoni
s, same as DP (Paulo) * Use combo_phy in ddi buf trans table defs (Paulo) v2: * Added DW4_scaling_hex column to the translation tables (Rodrigo) Cc: Jani Nikula Cc: Rodrigo Vivi Reviewed-by: Paulo Zanoni Signed-off-by: Manasi Navare Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 4/7] drm/i915/icl: Add Voltage swing table for MG PHY DDI Buffer

2018-03-23 Thread Paulo Zanoni
From: Manasi Navare This table is used for voltage swing programming sequence during DDI Buffer initialization for MG PHY DDI Buffers on Icelake. v2 (from Paulo): * Fix white space issues. Cc: Rodrigo Vivi Cc: Jani Nikula Reviewed-by: Paulo Zanoni Signed-off-by: Manasi Navare Signed-off-by

[Intel-gfx] [PATCH 1/7] drm/i915/icl: Add register definitions for Combo PHY vswing sequences.

2018-03-23 Thread Paulo Zanoni
in a diff patch (Paulo) v2: * Add new defs fro ICL regs (Paulo) Cc: Jani Nikula Cc: Rodrigo Vivi Reviewed-by: Paulo Zanoni Signed-off-by: Manasi Navare Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 44 + 1 file changed, 44 insertions

[Intel-gfx] [PATCH] drm/i915: protect macro parameters in SWING_SEL_{UPP, LO}WER

2018-03-23 Thread Paulo Zanoni
: commit 04416108ccea ("drm/i915/cnl: Add registers related to voltage swing sequences.") Cc: Rodrigo Vivi Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gp

Re: [Intel-gfx] [PATCH 1/8] drm/i915/icl: Check for fused-off VDBOX and VEBOX instances

2018-03-27 Thread Paulo Zanoni
s (Michal) > >- When RC6 is enabled by BIOS, the fuse register cannot be read > > until > > the blitter powerwell is awake. Shuffle where the fuse is > > read, prune > > the forcewake domains after the fact and change the commit > > message > &

Re: [Intel-gfx] [PATCH 1/8] drm/i915/icl: Check for fused-off VDBOX and VEBOX instances

2018-03-27 Thread Paulo Zanoni
Em Ter, 2018-03-27 às 15:42 -0700, Paulo Zanoni escreveu: > Em Sex, 2018-03-23 às 16:28 +, Lionel Landwerlin escreveu: > > Hi Mika, > > > > Even after this series, we're still missing support for reading > > the > > timestamp frequency (read_timestam

[Intel-gfx] [PATCH 2/8] drm/i915/icl: add definitions for the ICL PLL registers

2018-03-28 Thread Paulo Zanoni
us Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 149 1 file changed, 149 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 250ff271bcf1..b79b2a8930da 100644 --- a/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 0/8] ICL PLLs, DP/HDMI and misc display, v2

2018-03-28 Thread Paulo Zanoni
ed it. Thanks, Paulo James Ausmus (1): drm/i915/icl: Don't set pipe CSC/Gamma in PLANE_COLOR_CTL Manasi Navare (2): drm/i915/icl: Implement voltage swing programming sequence for Combo PHY DDI drm/i915/icl: Fix the DP Max Voltage for ICL Paulo Zanoni (5): drm/i915/icl: add defin

[Intel-gfx] [PATCH 4/8] drm/i915/icl: compute the combo PHY (DPLL) HDMI registers

2018-03-28 Thread Paulo Zanoni
HDMI mode DPLL programming on ICL is the same as CNL, so just reuse the CNL code. v2: - Properly detect HDMI crtcs. - Rebase after changes to the cnl function (clock * 1000). v3: - Add a comment to clarify why we treat 38.4 as 19.2 (James). Reviewed-by: James Ausmus Signed-off-by: Paulo

[Intel-gfx] [PATCH 6/8] drm/i915/icl: compute the MG PLL registers

2018-03-28 Thread Paulo Zanoni
per before reviewing this patch. v2: - Correctly identify DP encoders after upstream change. - Small checkpatch issues. - Rebase. v3: - Try to impove the comment on the tdc_targetcnt calculation based on Manasi's feedback (Manasi). - Rebase. Reviewed-by; Manasi Navare Signed-off-b

[Intel-gfx] [PATCH 3/8] drm/i915/icl: add basic support for the ICL clocks

2018-03-28 Thread Paulo Zanoni
after the pll struct changes. Cc: James Ausmus Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 22 +++ drivers/gpu/drm/i915/intel_ddi.c | 98 ++- drivers/gpu/drm/i915/intel_display.c | 16 ++ drivers/gpu/drm/i915/intel_dpll_mgr.c

[Intel-gfx] [PATCH 7/8] drm/i915/icl: Implement voltage swing programming sequence for Combo PHY DDI

2018-03-28 Thread Paulo Zanoni
NG_MODE_SEL. * Adjust the output type handling according to how the other platforms do it now. Cc: Jani Nikula Cc: James Ausmus Signed-off-by: Manasi Navare Signed-off-by: Rodrigo Vivi Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 191 ++- 1 f

[Intel-gfx] [PATCH 1/8] drm/i915/icl: Don't set pipe CSC/Gamma in PLANE_COLOR_CTL

2018-03-28 Thread Paulo Zanoni
done. v2: Drop useless comment, and change !(GEN >= 11) to (GEN < 11). (Ville) v3: No changes v4 (from Paulo): Rebase. Cc: Paulo Zanoni Cc: Ville Syrjälä Reviewed-by: Paulo Zanoni Signed-off-by: James Ausmus Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 4 ++

[Intel-gfx] [PATCH 8/8] drm/i915/icl: Fix the DP Max Voltage for ICL

2018-03-28 Thread Paulo Zanoni
) (Paulo) v2: * Rebase after patch that adds voltage check inside buf trans function (Rodrigo) Cc: Rodrigo Vivi Cc: Paulo Zanoni Reviewed-by: Rodrigo Vivi Signed-off-by: Manasi Navare Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 8 +++- 1 file changed, 7 insertions(+), 1

[Intel-gfx] [PATCH 5/8] drm/i915/icl: compute the combo PHY (DPLL) DP registers

2018-03-28 Thread Paulo Zanoni
Just use the hardcoded tables provided by our spec. v2: Rebase. v3: Clarify that 38.4 uses the 19.2 table (James). Reviewed-by: James Ausmus Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_dpll_mgr.c | 87 ++- 1 file changed, 86 insertions(+), 1

Re: [Intel-gfx] [PATCH 4/7] drm/i915/icl: Add Voltage swing table for MG PHY DDI Buffer

2018-04-10 Thread Paulo Zanoni
Em Ter, 2018-04-10 às 09:51 +0100, Chris Wilson escreveu: > Quoting Paulo Zanoni (2018-03-23 17:24:16) > > From: Manasi Navare > > > > This table is used for voltage swing programming sequence during > > DDI > > Buffer initialization for MG PHY DDI Buffers on Ic

Re: [Intel-gfx] [PATCH] drm/i915/bios: remove duplicated code

2018-04-10 Thread Paulo Zanoni
Em Ter, 2018-04-10 às 12:12 +0300, Jani Nikula escreveu: > Apparently caused by a merge fail at some point. Due to the nature of > the duplicated block, the second one will have no effect, and there's > no > need to backport. > > Signed-off-by: Jani Nikula Re

Re: [Intel-gfx] [PATCH 4/7] drm/i915/icl: Add Voltage swing table for MG PHY DDI Buffer

2018-04-10 Thread Paulo Zanoni
Em Ter, 2018-04-10 às 22:07 +0100, Chris Wilson escreveu: > Quoting Chris Wilson (2018-04-10 22:01:33) > > Quoting Paulo Zanoni (2018-04-10 21:39:31) > > > Em Ter, 2018-04-10 às 09:51 +0100, Chris Wilson escreveu: > > > > Quoting Paulo Zanoni (2018-03-23 17:24:16)

Re: [Intel-gfx] [PATCH 4/7] drm/i915/icl: Add Voltage swing table for MG PHY DDI Buffer

2018-04-10 Thread Paulo Zanoni
Em Ter, 2018-04-10 às 22:01 +0100, Chris Wilson escreveu: > Quoting Paulo Zanoni (2018-04-10 21:39:31) > > Em Ter, 2018-04-10 às 09:51 +0100, Chris Wilson escreveu: > > > Quoting Paulo Zanoni (2018-03-23 17:24:16) > > > > From: Manasi Navare > > > > &g

Re: [Intel-gfx] [PATCH] drm/i915/icl: Read the correct Gen11 interrupt registers

2018-05-17 Thread Paulo Zanoni
Em Qui, 2018-05-17 às 10:04 -0700, Oscar Mateo Lozano escreveu: > > On 5/17/2018 9:55 AM, Michel Thierry wrote: > > On 5/16/2018 4:39 PM, Paulo Zanoni wrote: > > > Em Qui, 2018-05-10 às 14:59 -0700, Oscar Mateo escreveu: > > > > Stop reading some now depre

Re: [Intel-gfx] [PATCH] drm/i915/icl: Disable pipe CSC and gamma in cursor plane

2018-05-21 Thread Paulo Zanoni
gt; enable CSC and gamma again. > > BSpec: 4278 and 7635 > > Cc: James Ausmus > Cc: Paulo Zanoni > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_display.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff

[Intel-gfx] [PATCH 00/24] More ICL display patches

2018-05-21 Thread Paulo Zanoni
k for ICL based on PLLs. Paulo Zanoni (11): drm/i915/icl: introduce tc_port drm/i915/icl: add icelake_get_ddi_pll() drm/i915/icl: unconditionally init DDI for every port drm/i915/icl: start adding the TBT pll drm/i915/icl: compute the TBT PLL registers drm/i915/icl: implement icl_digital

[Intel-gfx] [PATCH 02/24] drm/i915/icl: GSE interrupt moves from DE_MISC to GU_MISC

2018-05-21 Thread Paulo Zanoni
ts to Paulo for pointing out the register change. Signed-off-by: Dhinakaran Pandiyan [Paulo: bikesheds and rebases] Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_irq.c | 38 -- drivers/gpu/drm/i915/i915_reg.h | 7 +++ 2 files changed, 43 inser

[Intel-gfx] [PATCH 09/24] drm/i915/icl: Add Icelake PCH detection

2018-05-21 Thread Paulo Zanoni
From: Anusha Srivatsa This patch adds the support to detect PCH_ICP. Suggested-by: Paulo Zanoni Signed-off-by: Anusha Srivatsa Signed-off-by: Michel Thierry --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers

[Intel-gfx] [PATCH 05/24] drm/i915/icp: Add Interrupt Support

2018-05-21 Thread Paulo Zanoni
From: Anusha Srivatsa This patch addresses Interrupts from south display engine (SDE). ICP has two registers - SHOTPLUG_CTL_DDI and SHOTPLUG_CTL_TC. Introduce these registers and their intended values. Introduce icp_irq_handler(). Cc: Paulo Zanoni Cc: Dhinakaran Pandiyan Cc: Ville Syrjala

[Intel-gfx] [PATCH 12/24] drm/i915/icl: Calculate link clock using the new registers

2018-05-21 Thread Paulo Zanoni
From: Arkadiusz Hiler Start using the new registers for ICL and on. Cc: Manasi Navare Cc: Rodrigo Vivi Cc: Paulo Zanoni Signed-off-by: Arkadiusz Hiler --- drivers/gpu/drm/i915/intel_ddi.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 16/24] drm/i915/icl: Handle hotplug interrupts for DP over TBT

2018-05-21 Thread Paulo Zanoni
From: Dhinakaran Pandiyan This patch enables hotplug interrupts for DP over TBT output on TC ports. The TBT interrupts are enabled and handled irrespective of the actual output type which could be DP Alternate, DP over TBT, native DP or native HDMI. Cc: Animesh Manna Cc: Paulo Zanoni Cc

[Intel-gfx] [PATCH 21/24] drm/i915/icl: implement the legacy HPD {dis, }connect flow for HDMI

2018-05-21 Thread Paulo Zanoni
Just like DP, HDMI needs to implement these flows. The side effect is that HDMI is now going to rely on the ISR bits, just like DP. Signed-off-by: Paulo Zanoni [Rodrigo: non-trivial rebase.] Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_hdmi.c | 11 --- 1 file changed, 8

[Intel-gfx] [PATCH 10/24] drm/i915/icl: add icelake_get_ddi_pll()

2018-05-21 Thread Paulo Zanoni
Implement the hardware state readout code. Thanks to Animesh Manna for spotting this problem. Cc: Animesh Manna Credits-to: Animesh Manna Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 42 +++- 1 file changed, 41 insertions(+), 1

[Intel-gfx] [PATCH 14/24] drm/i915/icl: start adding the TBT pll

2018-05-21 Thread Paulo Zanoni
This commit just adds the register addresses and the basic skeleton of the code. The next commits will expand on more specific functions. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 6 ++ drivers/gpu/drm/i915/intel_ddi.c | 16 drivers/gpu

[Intel-gfx] [PATCH 20/24] drm/i915/icl: implement the tc/legacy HPD {dis, }connect flow for DP

2018-05-21 Thread Paulo Zanoni
flows described by the "Gen11 TypeC Programming" page in our spec. Cc: Animesh Manna Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 6 + drivers/gpu/drm/i915/intel_dp.c | 57 - 2 files changed, 62 insertions(+), 1 deletion

[Intel-gfx] [PATCH 18/24] drm/i915/icl: implement icl_digital_port_connected()

2018-05-21 Thread Paulo Zanoni
Do like the other functions and check for the ISR bits. We have plans to add a few more checks in this code in the next patches, that's why it's a little more verbose than it could be. Cc: Animesh Manna Signed-off-by: Paulo Zanoni Signed-off-by: Rodrigo Vivi --- drivers/gp

[Intel-gfx] [PATCH 23/24] drm/i915/icl: program MG_DP_MODE

2018-05-21 Thread Paulo Zanoni
Programming this register is part of the Enable Sequence for DisplayPort on ICL. Do as the spec says. Cc: Animesh Manna Cc: Manasi Navare Cc: Dhinakaran Pandiyan Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 15 + drivers/gpu/drm/i915/intel_ddi.c | 2 ++ drivers

[Intel-gfx] [PATCH 15/24] drm/i915/icl: compute the TBT PLL registers

2018-05-21 Thread Paulo Zanoni
Use the hardcoded tables provided by our spec. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_dpll_mgr.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c index

[Intel-gfx] [PATCH 24/24] drm/i915/icl: toggle PHY clock gating around link training

2018-05-21 Thread Paulo Zanoni
The Gen11 TypeC PHY DDI Buffer chapter, PHY Clock Gating Programming section says that PHY clock gating should be disabled before starting voltage swing programming, then enabled after any link training is complete. Cc: Animesh Manna Cc: Manasi Navare Signed-off-by: Paulo Zanoni --- drivers

[Intel-gfx] [PATCH 13/24] drm/i915/icl: unconditionally init DDI for every port

2018-05-21 Thread Paulo Zanoni
On ICP, port present straps are no longer supported. Software should determine the presence through BIOS VBT, hotplug or other mechanisms. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 11/24] drm/i915/icl: Get DDI clock for ICL based on PLLs.

2018-05-21 Thread Paulo Zanoni
intel_dpll_mgr.c to obtain the write array PLL Params and compares the set pll_params with the table to get the corresponding link clock. Cc: Rodrigo Vivi Cc: Mika Kahola Cc: Paulo Zanoni Signed-off-by: Manasi Navare Signed-off-by: Lucas De Marchi Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 07/24] drm/i915/icl: Add DDI HDMI level selection for ICL

2018-05-21 Thread Paulo Zanoni
From: Manasi Navare This patch adds a proper HDMI DDI entry level for vswing programming sequences on ICL. Spec doesn't specify any default for HDMI tables, so let's pick the last entry as the default for now to stay consistent with older platform like CNL. Cc: Paulo Zanoni Cc: Raks

[Intel-gfx] [PATCH 19/24] drm/i915/icl: store the port type for TC ports

2018-05-21 Thread Paulo Zanoni
The type is detected based on the interrupt ISR bit. Once detected, it's not supposed to be changed, so we have some sanity checks for that. Cc: Animesh Manna Signed-off-by: Paulo Zanoni Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_display.h | 7 +++ drivers/gpu/drm

[Intel-gfx] [PATCH 22/24] drm/i915/icl: Update FIA supported lane count for hpd.

2018-05-21 Thread Paulo Zanoni
: significant rewrite of the patch.] Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 5 + drivers/gpu/drm/i915/intel_dp.c | 33 - 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 17/24] drm/i915/icl: Add 10-bit support for hdmi

2018-05-21 Thread Paulo Zanoni
From: "Sripada, Radhakrishna" Starting Icelake silicon supports 10-bpc hdmi to support certain media workloads. Currently hdmi supports 8 and 12 bpc. Plumbed in support for 10 bit hdmi. Cc: James Ausmus Cc: Jani Nikula Cc: Paulo Zanoni Cc: Manasi Navare Cc: Rodrigo Vivi Cc: Vil

[Intel-gfx] [PATCH 06/24] drm/i915/ICL: Add register definition for DFLEXDPMLE

2018-05-21 Thread Paulo Zanoni
mode. Cc: Jani Nikula Cc: Animesh Manna Cc: Madhav Chauhan Cc: Anusha Srivatsa Cc: Paulo Zanoni Signed-off-by: Manasi Navare --- drivers/gpu/drm/i915/i915_reg.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH 08/24] drm/i915/icl: Map VBT DDC Pin to BSpec DDC Pin

2018-05-21 Thread Paulo Zanoni
| 0xC| +--+---++ Cc: James Ausmus Cc: Jani Nikula Cc: Anusha Srivatsa Cc: Clinton Taylor Cc: Ville Syrjälä Cc: Rodrigo Vivi Cc: Paulo Zanoni Signed-off-by: Radhakrishna Sripada Signed-off-by: Rodrigo Vivi [Paulo: checkpatch fixes.] Signed-off-by: Paulo Zanoni --

[Intel-gfx] [PATCH 01/24] drm/i915/icl: Extend AUX F interrupts to ICL

2018-05-21 Thread Paulo Zanoni
From: Dhinakaran Pandiyan ICL has AUX F. Cc: Paulo Zanoni Cc: Anusha Srivatsa Signed-off-by: Dhinakaran Pandiyan Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b

[Intel-gfx] [PATCH 03/24] drm/i915/icl: introduce tc_port

2018-05-21 Thread Paulo Zanoni
written by Dhinakaran Pandiyan and Mahesh Kumar. Cc: Dhinakaran Pandiyan Cc: Mahesh Kumar Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 16 drivers/gpu/drm/i915/intel_display.h | 11 +++ drivers/gpu/drm/i915/intel_drv.h | 3 +++ 3 files

[Intel-gfx] [PATCH 04/24] drm/i915/icl: Support for TC North Display interrupts

2018-05-21 Thread Paulo Zanoni
South Display in PCH. This patch adds hotplug interrupt handling support for DP Alternate mode. Cc: Jani Nikula Cc: Anusha Srivatsa Signed-off-by: Dhinakaran Pandiyan [Paulo: coding style changes] Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_irq.c | 95

Re: [Intel-gfx] [PATCH 11/24] drm/i915/icl: Get DDI clock for ICL based on PLLs.

2018-05-23 Thread Paulo Zanoni
Em Seg, 2018-05-21 às 17:25 -0700, Paulo Zanoni escreveu: > From: Manasi Navare > > PLLs are the source clocks for the DDIs so in order > to determine the ddi clock we need to check the PLL > configuration. > > This gets a little tricky for ICL since there is > n

Re: [Intel-gfx] [PATCH 11/24] drm/i915/icl: Get DDI clock for ICL based on PLLs.

2018-05-23 Thread Paulo Zanoni
Em Ter, 2018-05-22 às 14:44 +0300, Mika Kahola escreveu: > On Mon, 2018-05-21 at 17:25 -0700, Paulo Zanoni wrote: > > From: Manasi Navare > > > > PLLs are the source clocks for the DDIs so in order > > to determine the ddi clock we need to check the PLL > > co

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