Re: [Intel-gfx] [v3 3/3] drm/i915/rpl-s: Enable guc submission by default

2021-12-02 Thread Souza, Jose
On Wed, 2021-12-01 at 02:33 -0800, Anusha Srivatsa wrote: > Though, RPL-S is defined as subplatform of ADL-S, unlike > ADL-S, it has GuC submission by default. > > v2: Remove extra parenthesis (Jani) > v3: s/IS_RAPTORLAKE/IS_ADLS_RPLS (Jani) > Reviewed-by: José Roberto de Souza > Cc: Jani

Re: [Intel-gfx] [PATCH 14/14] drm/i915: Nuke pointless middle men for skl+ plane programming

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > There is no real point in having this two stage > skl_program_plane*() vs. skl_plane_update*() wrapper stuff. > All we need to do is determine the correct color plane and > we're done. Reviewed-by: José Roberto de

Re: [Intel-gfx] [PATCH 13/14] drm/i915: Declutter color key register stuff

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Add a few small helpers to calculate the color key register > values. Cleans up skl_program_plane_arm() a bit. Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- >

Re: [Intel-gfx] [PATCH 12/14] drm/i915: Extract skl_plane_aux_dist()

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Extract the PLANE_AUX_DIST stuff into a small helper to > dclutter skl_program_plane_arm() a bit. Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- >

Re: [Intel-gfx] [PATCH 06/14] drm/i915: Use REG_BIT() & co. for universal plane bits

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Polish the skl+ universal plane register defines by > using REG_BIT() & co. > > The defines are also currently spread around in some > semi-random fashion. Collect them up into one place. > > Signed-off-by: Ville

Re: [Intel-gfx] [PATCH 03/14] drm/i915: Get rid of the "sizes are 0 based" stuff

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Replace the "sizes are 0 based" stuff with just straight > up -1 where needed. Less confusing all around. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_sprite.c | 26

Re: [Intel-gfx] [PATCH 05/14] drm/i915: Rename PLANE_CUS_CTL Y plane bits

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Rename the PLANE_CUS_CTL Y plane selection bits to actually > say "Y plane". > Reviewed-by: José Roberto de Souza > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_display.c | 8

Re: [Intel-gfx] [PATCH 01/14] drm/i915: Get rid of the 64bit PLANE_CC_VAL mmio

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Let's just stick to 32bit mmio accesses so we can get rid > of the bare "uncore" reg access in display code. The register > are defined as 32bit in the spec anyway. > > We could define a 64bit "de" variant I

Re: [Intel-gfx] [PATCH 02/14] drm/i915: Rename plane YUV order bits

2021-12-01 Thread Souza, Jose
On Wed, 2021-12-01 at 17:25 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Rename the YUV byte order bits to be a bit more consistent. Why rename bits not used? Would be better already nuke it. Anyways up to you. Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä >

Re: [Intel-gfx] [PATCH v3 3/5] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-11-23 Thread Souza, Jose
On Sun, 2021-10-10 at 17:40 +0530, Animesh Manna wrote: > As panel replay feature similar to PSR feature of EDP panel, so currently > utilized existing psr framework for panel replay. > > v1: RFC version. > v2: optimized code, pr_enabled and pr_dpcd variable removed. [Jose] > v3: > - code

Re: [Intel-gfx] [PATCH v3 1/5] drm/i915/panelreplay: dpcd register definition for panelreplay

2021-11-23 Thread Souza, Jose
On Sun, 2021-10-10 at 17:40 +0530, Animesh Manna wrote: > DPCD register definition added to check and enable panel replay > capability of the sink. > > Signed-off-by: Animesh Manna > --- > include/drm/drm_dp_helper.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

Re: [Intel-gfx] [PATCH v3 5/5] drm/i915/dg2: extend Wa_1409120013 to DG2

2021-11-19 Thread Souza, Jose
On Tue, 2021-11-16 at 09:48 -0800, Matt Roper wrote: > From: Matt Atwood > > Extend existing workaround 1409120013 to DG2. > > Cc: José Roberto de Souza > Signed-off-by: Matt Atwood > Signed-off-by: Matt Roper > --- > drivers/gpu/drm/i915/intel_pm.c | 4 ++-- > 1 file changed, 2

Re: [Intel-gfx] [PATCH 1/2] Revert "drm/i915: Implement Wa_1508744258"

2021-11-19 Thread Souza, Jose
On Fri, 2021-11-19 at 06:09 -0800, José Roberto de Souza wrote: > This workarounds are causing hangs, because I missed the fact that it > needs to be enabled for all cases and disabled when doing a resolve > pass. > > So KMD only needs to whitelist it and UMD will be the one setting it > on per

Re: [Intel-gfx] [PATCH] drm/i915/psr: Fix PSR2 handling of multiplanar format

2021-11-10 Thread Souza, Jose
On Wed, 2021-11-10 at 16:05 +, Hogander, Jouni wrote: > On Tue, 2021-11-09 at 18:17 +0000, Souza, Jose wrote: > > On Tue, 2021-11-09 at 10:31 +, Hogander, Jouni wrote: > > > On Mon, 2021-11-08 at 13:38 -0800, José Roberto de Souza wrote: > > > > When a p

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Exit PSR when doing async flips

2021-11-09 Thread Souza, Jose
On Fri, 2021-11-05 at 19:55 +0200, Ville Syrjälä wrote: > On Fri, Nov 05, 2021 at 05:44:21PM +0000, Souza, Jose wrote: > > On Fri, 2021-11-05 at 15:46 +0200, Ville Syrjälä wrote: > > > On Thu, Nov 04, 2021 at 05:56:52PM +, Souza, Jose wrote: > > > > On Thu, 20

Re: [Intel-gfx] [PATCH] drm/i915/psr: Fix PSR2 handling of multiplanar format

2021-11-09 Thread Souza, Jose
On Tue, 2021-11-09 at 10:31 +, Hogander, Jouni wrote: > On Mon, 2021-11-08 at 13:38 -0800, José Roberto de Souza wrote: > > When a plane with a multiplanar format is added to the state by > > drm_atomic_add_affected_planes(), only the UV plane is > > added, so a

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix Memory BW formulae for ADL-P

2021-11-08 Thread Souza, Jose
On Mon, 2021-11-08 at 22:46 +, Sripada, Radhakrishna wrote: > CI IGT reported some failures but they do not look to be related to the > changes proposed. Pushed to drm-intel-next. > > Thanks, > Radhakrishna(RK) Sripada >   > From: Patchwork > Sent: Friday, November 5, 2021 6:51 PM > To:

Re: [Intel-gfx] [PATCH] drm/i915: Fix Memory BW formulae for ADL-P

2021-11-08 Thread Souza, Jose
On Fri, 2021-11-05 at 17:37 -0700, Radhakrishna Sripada wrote: > The earlier update to BW formulae broke ADL-P. Include > GEN13 to use TGL path for BW parameters. include display 13. With that: Reviewed-by: José Roberto de Souza > > Fixes: c64a9a7c05be drm/i915: Update memory bandwidth

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display/adlp: Disable underrun recovery

2021-11-05 Thread Souza, Jose
On Thu, 2021-11-04 at 06:40 +, Patchwork wrote: > Patch Details > Series: drm/i915/display/adlp: Disable underrun recovery > URL: https://patchwork.freedesktop.org/series/96548/ > State:success > Details: >

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Exit PSR when doing async flips

2021-11-05 Thread Souza, Jose
On Fri, 2021-11-05 at 15:46 +0200, Ville Syrjälä wrote: > On Thu, Nov 04, 2021 at 05:56:52PM +0000, Souza, Jose wrote: > > On Thu, 2021-11-04 at 16:10 +0200, Ville Syrjälä wrote: > > > On Tue, Nov 02, 2021 at 12:32:14PM -0700, José Roberto de Souza wrote: > > > > Cha

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Exit PSR when doing async flips

2021-11-04 Thread Souza, Jose
On Thu, 2021-11-04 at 16:10 +0200, Ville Syrjälä wrote: > On Tue, Nov 02, 2021 at 12:32:14PM -0700, José Roberto de Souza wrote: > > Changing the buffer in the middle of the scanout then entering an > > period of flip idleness will cause part of the previous buffer being > > diplayed to user when

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/3] drm/i915: Add struct to hold IP version

2021-11-02 Thread Souza, Jose
On Wed, 2021-10-20 at 05:10 +, Patchwork wrote: > Patch Details > Series: series starting with [1/3] drm/i915: Add struct to hold IP > version > URL: https://patchwork.freedesktop.org/series/96038/ > State:failure > Details: >

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add struct to hold IP version

2021-11-01 Thread Souza, Jose
On Mon, 2021-10-25 at 12:04 +0300, Jani Nikula wrote: > On Fri, 22 Oct 2021, Lucas De Marchi wrote: > > On Thu, Oct 21, 2021 at 04:11:26PM +0300, Jani Nikula wrote: > > > On Wed, 20 Oct 2021, "Souza, Jose" wrote: > > > > On Wed, 2021-10-20 at 12:47 +0300,

Re: [Intel-gfx] [PATCH] drm/i915/display: Exit PSR when doing async flips

2021-11-01 Thread Souza, Jose
On Mon, 2021-11-01 at 16:36 -0400, Rodrigo Vivi wrote: > On Fri, Oct 29, 2021 at 05:18:01PM -0700, José Roberto de Souza wrote: > > Changing the buffer in the middle of the scanout then entering an > > period of flip idleness will cause part of the previous buffer being > > diplayed to user when

Re: [Intel-gfx] [PATCH 08/16] drm/i915: Query the vswing levels per-lane for icl combo phy

2021-11-01 Thread Souza, Jose
On Mon, 2021-11-01 at 12:11 +0200, Ville Syrjälä wrote: > On Fri, Oct 29, 2021 at 09:57:02PM +0000, Souza, Jose wrote: > > On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Prepare for per-lane drive settings by que

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display: Check async flip state of every crtc and plane once (rev2)

2021-11-01 Thread Souza, Jose
On Sat, 2021-10-30 at 07:44 +, Patchwork wrote: > Patch Details > Series: drm/i915/display: Check async flip state of every crtc and > plane once (rev2) > URL: https://patchwork.freedesktop.org/series/96402/ > State:success > Details: >

Re: [Intel-gfx] [PATCH] drm/i915/psr2: Do full fetches when doing async flips

2021-10-29 Thread Souza, Jose
On Fri, 2021-10-29 at 22:55 +, Souza, Jose wrote: > On Fri, 2021-10-29 at 09:22 +0300, Ville Syrjälä wrote: > > On Thu, Oct 28, 2021 at 08:18:48PM +0000, Souza, Jose wrote: > > > On Thu, 2021-10-28 at 20:46 +0300, Ville Syrjälä wrote: > > > > On Thu, Oct 28, 2

Re: [Intel-gfx] [PATCH] drm/i915/psr2: Do full fetches when doing async flips

2021-10-29 Thread Souza, Jose
On Fri, 2021-10-29 at 09:22 +0300, Ville Syrjälä wrote: > On Thu, Oct 28, 2021 at 08:18:48PM +0000, Souza, Jose wrote: > > On Thu, 2021-10-28 at 20:46 +0300, Ville Syrjälä wrote: > > > On Thu, Oct 28, 2021 at 05:43:51PM +, Souza, Jose wrote: > > > > On Thu, 20

Re: [Intel-gfx] [PATCH 12/16] drm/i915: Enable per-lane drive settings for icl+

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Now that the link buf_trans, link training, and the > combo/mg/dkl/snps phy programming are all fixed up we can > allow per-lane DP drive settings on icl+. Make it so. Reviewed-by: José Roberto de Souza > >

Re: [Intel-gfx] [PATCH 15/16] drm/i915: Use intel_de_rmw() for icl combo phy programming

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Streamline the code by using intel_de_rmw(). Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 44 ++-- > 1 file

Re: [Intel-gfx] [PATCH 13/16] drm/i915: Use intel_de_rmw() for tgl dkl phy programming

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Streamline the code by using intel_de_rmw(). Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 36 +++- > 1 file

Re: [Intel-gfx] [PATCH 14/16] drm/i915: Use intel_de_rmw() for icl mg phy programming

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Streamline the code by using intel_de_rmw(). Some lines above 100 cols, other than that: Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_ddi.c |

Re: [Intel-gfx] [PATCH 11/16] drm/i915: Query the vswing levels per-lane for snps phy

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Prepare for per-lane drive settings by querying the desired vswing > level per-lane. Reviewed-by: José Roberto de Souza > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_snps_phy.c |

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Query the vswing levels per-lane for tgl dkl phy

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Prepare for per-lane drive settings by querying the desired vswing > level per-lane. > > Note that the code only does two loops, with each one writing the > levels for two TX lanes. The register offsets also look

Re: [Intel-gfx] [PATCH 09/16] drm/i915: Query the vswing levels per-lane for icl mg phy

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Prepare for per-lane drive settings by querying the desired vswing > level per-lane. > > Note that the code only does two loops, with each one writing the > levels for two TX lanes. > > Signed-off-by: Ville

Re: [Intel-gfx] [PATCH 08/16] drm/i915: Query the vswing levels per-lane for icl combo phy

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Prepare for per-lane drive settings by querying the desired vswing > level per-lane. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 7 ++- > 1 file changed, 6

Re: [Intel-gfx] [PATCH 07/16] drm/i915: Stop using group access when progrmming icl combo phy TX

2021-10-29 Thread Souza, Jose
On Wed, 2021-10-06 at 23:49 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Program each TX lane individually so that we can start to use per-lane > drive settings. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 28 ++-- > 1 file

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/adlp: Implement workaround 16013190616

2021-10-29 Thread Souza, Jose
On Fri, 2021-10-29 at 08:23 +, Patchwork wrote: Patch Details Series: drm/i915/adlp: Implement workaround 16013190616 URL:https://patchwork.freedesktop.org/series/96405/ State: failure Details: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21482/index.html CI Bug Log -

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for Selective fetch support for biplanar formats

2021-10-29 Thread Souza, Jose
On Fri, 2021-10-22 at 15:56 +, Patchwork wrote: Patch Details Series: Selective fetch support for biplanar formats URL:https://patchwork.freedesktop.org/series/96113/ State: success Details: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21401/index.html CI Bug Log - changes

Re: [Intel-gfx] [PATCH 2/2] Revert "drm/i915/display/psr: Do full fetch when handling multi-planar formats"

2021-10-29 Thread Souza, Jose
On Thu, 2021-10-21 at 13:10 +0300, Jouni Högander wrote: > This reverts commit 1f61f0655b95d5b89589390e6f83c4a61d9b1e8d. > > Now we are supporting selective fetch for biplanar formats. We can revert WA > patch which forced using full fetch for biplanar formats. > Reviewed-by: José Roberto de

Re: [Intel-gfx] [PATCH 1/2] drm/i915/display: Add initial selective fetch support for biplanar formats

2021-10-29 Thread Souza, Jose
On Thu, 2021-10-21 at 13:10 +0300, Jouni Högander wrote: > Biplanar formats are using two planes (Y and UV). This patch adds handling > of Y selective fetch area by utilizing existing linked plane mechanism. > Also UV plane Y offset configuration is modified according to Bspec. > > Signed-off-by:

Re: [Intel-gfx] [PATCH] drm/i915/display: Check async flip state of every crtc and plane once

2021-10-29 Thread Souza, Jose
On Fri, 2021-10-29 at 09:24 +0300, Ville Syrjälä wrote: > On Thu, Oct 28, 2021 at 01:34:18PM -0700, José Roberto de Souza wrote: > > For every crtc in state, intel_atomic_check_async() was checking all > > the crtc and plane states again. > > > > Cc: Karthik B S > > Cc: Vandita Kulkarni > > Cc:

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add struct to hold IP version

2021-10-28 Thread Souza, Jose
On Fri, 2021-10-22 at 21:26 +, Yokoyama, Caz wrote: > On Wed, 2021-10-20 at 19:19 +0000, Souza, Jose wrote: > > On Wed, 2021-10-20 at 15:00 +, Yokoyama, Caz wrote: > > > On Tue, 2021-10-19 at 17:23 -0700, José Roberto de Souza wrote: > > > > Adding a structu

Re: [Intel-gfx] [PATCH] drm/i915/psr2: Do full fetches when doing async flips

2021-10-28 Thread Souza, Jose
On Thu, 2021-10-28 at 20:46 +0300, Ville Syrjälä wrote: > On Thu, Oct 28, 2021 at 05:43:51PM +0000, Souza, Jose wrote: > > On Thu, 2021-10-28 at 20:38 +0300, Ville Syrjälä wrote: > > > On Thu, Oct 28, 2021 at 05:02:41PM +, Souza, Jose wrote: > > > > On Thu, 20

Re: [Intel-gfx] [PATCH] drm/i915/psr2: Do full fetches when doing async flips

2021-10-28 Thread Souza, Jose
On Thu, 2021-10-28 at 20:38 +0300, Ville Syrjälä wrote: > On Thu, Oct 28, 2021 at 05:02:41PM +0000, Souza, Jose wrote: > > On Thu, 2021-10-28 at 16:32 +0300, Ville Syrjälä wrote: > > > On Wed, Oct 27, 2021 at 11:48:55AM -0700, José Roberto de Souza wrote: > > > >

Re: [Intel-gfx] [PATCH] drm/i915/psr2: Do full fetches when doing async flips

2021-10-28 Thread Souza, Jose
On Thu, 2021-10-28 at 16:32 +0300, Ville Syrjälä wrote: > On Wed, Oct 27, 2021 at 11:48:55AM -0700, José Roberto de Souza wrote: > > Async flips are not supported by selective fetch and we had a check > > for that but that check was only executed when doing modesets. > > So moving this check to

Re: [Intel-gfx] [PATCH v2 3/9] drm/i915: Disable all planes before modesetting any pipes

2021-10-26 Thread Souza, Jose
On Fri, 2021-10-22 at 13:32 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Let's disable planes on all pipes affected by the modeset before > we start doing the actual modeset. This means we have less > random planes enabled during the modeset, and it also mirrors > what we already do

Re: [Intel-gfx] [PATCH v2 2/9] Revert "drm/i915/display: Disable audio, DRRS and PSR before planes"

2021-10-26 Thread Souza, Jose
On Fri, 2021-10-22 at 13:32 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Disabling planes in the middle of the modeset seuqnece does not make > sense since userspace can anyway disable planes before the modeset > even starts. So when the modeset seuqence starts the set of enabled >

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/display: Wait PSR2 get out of deep sleep to update pipe (rev3)

2021-10-26 Thread Souza, Jose
On Wed, 2021-10-06 at 06:49 +, Patchwork wrote: > Patch Details > Series: drm/i915/display: Wait PSR2 get out of deep sleep to update > pipe (rev3) > URL: https://patchwork.freedesktop.org/series/95309/ > State:failure > Details: >

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/2] drm/i915/display: Rename POWER_DOMAIN_DPLL_DC_OFF to POWER_DOMAIN_DC_OFF

2021-10-20 Thread Souza, Jose
On Wed, 2021-10-20 at 05:49 +, Patchwork wrote: > Patch Details > Series: series starting with [1/2] drm/i915/display: Rename > POWER_DOMAIN_DPLL_DC_OFF to POWER_DOMAIN_DC_OFF > URL: https://patchwork.freedesktop.org/series/96039/ > State:failure > Details: >

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add struct to hold IP version

2021-10-20 Thread Souza, Jose
On Wed, 2021-10-20 at 12:47 +0300, Jani Nikula wrote: > On Tue, 19 Oct 2021, José Roberto de Souza wrote: > > The constant platform display version is not using this new struct but > > the runtime variant will definitely use it. > > Cc: Some more folks to hijack this thread. Sorry! ;) > > We

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add struct to hold IP version

2021-10-20 Thread Souza, Jose
On Wed, 2021-10-20 at 15:00 +, Yokoyama, Caz wrote: > On Tue, 2021-10-19 at 17:23 -0700, José Roberto de Souza wrote: > > Adding a structure to standardize access to IP versioning as future > > platforms will have this information populated at runtime. > > > > The constant platform display

Re: [Intel-gfx] [PATCH] Revert "drm/i915/bios: gracefully disable dual eDP for now"

2021-10-19 Thread Souza, Jose
On Tue, 2021-10-19 at 14:43 +0300, Jani Nikula wrote: > This reverts commit 05734ca2a8f76c9eb3890b3c9dfc3467f03105c1. > > It's not graceful, instead it leads to boot time warning splats in the > case it is supposed to handle gracefully. Apparently the BIOS/GOP > enabling the port we end up

Re: [Intel-gfx] [PATCH] drm/i915/dp: Skip the HW readout of DPCD on disabled encoders

2021-10-15 Thread Souza, Jose
On Fri, 2021-10-15 at 15:10 +0300, Imre Deak wrote: > Reading out the DP encoders' DPCD during booting or resume is only > required for enabled encoders: such encoders may be modesetted during > the initial commit and the link training this involves depends on an > initialized DPCD. For DDI

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Wait PSR2 get out of deep sleep to update pipe

2021-10-13 Thread Souza, Jose
On Wed, 2021-10-13 at 23:39 +0300, Gwan-gyeong Mun wrote: > > On 10/11/21 11:53 PM, Souza, Jose wrote: > > On Thu, 2021-10-07 at 12:31 +0300, Gwan-gyeong Mun wrote: > > > > > > On 10/6/21 11:04 PM, Souza, Jose wrote: > > > > On Wed, 2021-1

Re: [Intel-gfx] [PATCH v2] drm/i915: Remove memory frequency calculation

2021-10-13 Thread Souza, Jose
On Wed, 2021-10-13 at 22:31 +0300, Ville Syrjälä wrote: > On Wed, Oct 13, 2021 at 07:17:14PM +0000, Souza, Jose wrote: > > On Wed, 2021-10-13 at 12:32 +0300, Ville Syrjälä wrote: > > > On Tue, Oct 12, 2021 at 06:00:46PM -0700, José Roberto de Souza wrote: > > > > Th

Re: [Intel-gfx] [PATCH v2] drm/i915: Remove memory frequency calculation

2021-10-13 Thread Souza, Jose
On Wed, 2021-10-13 at 12:32 +0300, Ville Syrjälä wrote: > On Tue, Oct 12, 2021 at 06:00:46PM -0700, José Roberto de Souza wrote: > > This memory frequency calculated is only used to check if it is zero, > > what is not useful as it will never actually be zero. > > > > Also the calculation is

Re: [Intel-gfx] [PATCH v2] drm/i915: Remove memory frequency calculation

2021-10-12 Thread Souza, Jose
On Tue, 2021-10-12 at 18:00 -0700, José Roberto de Souza wrote: > This memory frequency calculated is only used to check if it is zero, > what is not useful as it will never actually be zero. > > Also the calculation is wrong, we should be checking other bit to > select the appropriate frequency

Re: [Intel-gfx] [PATCH] drm/i915/icl: Fix read of memory frequency

2021-10-12 Thread Souza, Jose
On Tue, 2021-10-12 at 14:20 -0700, Matt Roper wrote: > On Fri, Oct 08, 2021 at 01:58:55PM -0700, José Roberto de Souza wrote: > > All display 9 and display 10 platforms has only 4 bits for the memory > > frequency but display 11 platforms it changes to 8 bits. > > > > Display 9 platforms has

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Wait PSR2 get out of deep sleep to update pipe

2021-10-11 Thread Souza, Jose
On Thu, 2021-10-07 at 12:31 +0300, Gwan-gyeong Mun wrote: > > On 10/6/21 11:04 PM, Souza, Jose wrote: > > On Wed, 2021-10-06 at 11:50 +0300, Gwan-gyeong Mun wrote: > > > > > > On 10/6/21 2:18 AM, José Roberto de Souza wrote: > > > > Alderlake-P was gett

Re: [Intel-gfx] [PATCH] drm/i915/icl: Fix read of memory frequency

2021-10-08 Thread Souza, Jose
On Fri, 2021-10-08 at 13:58 -0700, José Roberto de Souza wrote: > All display 9 and display 10 platforms has only 4 bits for the memory > frequency but display 11 platforms it changes to 8 bits. > > Display 9 platforms has another register in bits 7:4 that prevents us > to have a single mask. >

Re: [Intel-gfx] [PATCH 3/3] drm/i915/display: remove unused intel-mid.h include

2021-10-07 Thread Souza, Jose
On Thu, 2021-10-07 at 16:32 -0700, Lucas De Marchi wrote: > Nothing from intel-mid.h and this is only available on x86, so remove it > as we prepare support for other architectures. Whole series is Reviewed-by: José Roberto de Souza > > Signed-off-by: Lucas De Marchi > --- >

Re: [Intel-gfx] [PATCH v3] drm/i915/display: Wait PSR2 get out of deep sleep to update pipe

2021-10-06 Thread Souza, Jose
On Wed, 2021-10-06 at 11:50 +0300, Gwan-gyeong Mun wrote: > > On 10/6/21 2:18 AM, José Roberto de Souza wrote: > > Alderlake-P was getting 'max time under evasion' messages when PSR2 > > is enabled, this is due PIPE_SCANLINE/PIPEDSL returning 0 over a > > period of time longer than

Re: [Intel-gfx] [PATCH] drm/i915/bios: gracefully disable dual eDP for now

2021-10-05 Thread Souza, Jose
On Tue, 2021-10-05 at 23:38 +0300, Jani Nikula wrote: > On Tue, 05 Oct 2021, "Souza, Jose" wrote: > > On Tue, 2021-10-05 at 20:56 +0300, Jani Nikula wrote: > > > For the time being, neither the power sequencer nor the backlight code > > > properly support

Re: [Intel-gfx] [PATCH] drm/i915/bios: gracefully disable dual eDP for now

2021-10-05 Thread Souza, Jose
On Tue, 2021-10-05 at 20:56 +0300, Jani Nikula wrote: > For the time being, neither the power sequencer nor the backlight code > properly support two eDP panels simultaneously. While the software > states will be independent, the same sets of registers will be used for > both eDP panels,

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/bdb: Fix version check (rev3)

2021-09-30 Thread Souza, Jose
On Thu, 2021-09-30 at 20:36 +, Patchwork wrote: Patch Details Series: drm/i915/bdb: Fix version check (rev3) URL:https://patchwork.freedesktop.org/series/94871/ State: success Details: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21205/index.html CI Bug Log - changes from

Re: [Intel-gfx] [PATCH v2 6/9] drm/i915/display/adlp: Optimize PSR2 power-savings in corner cases

2021-09-30 Thread Souza, Jose
On Thu, 2021-09-30 at 10:35 +0300, Gwan-gyeong Mun wrote: > > On 9/30/21 3:14 AM, José Roberto de Souza wrote: > > The Wa_14014971508 is required to fix scanout when a feature that i915 > > do not support is enabled and this feature is not planned to be enabled > > for adlp. > > > > Keeping this

Re: [Intel-gfx] [PATCH v2 4/9] drm/i915/display: Handle frontbuffer rendering when PSR2 selective fetch is enabled

2021-09-30 Thread Souza, Jose
On Thu, 2021-09-30 at 10:17 +0300, Gwan-gyeong Mun wrote: > > On 9/30/21 3:14 AM, José Roberto de Souza wrote: > > When PSR2 selective fetch is enabled writes to CURSURFLIVE alone do > > not causes the panel to be updated when doing frontbuffer rendering. > > > > From what I was able to figure

Re: [Intel-gfx] [PATCH v3] drm/i915/bdb: Fix version check

2021-09-30 Thread Souza, Jose
On Thu, 2021-09-30 at 15:46 +0200, Lukasz Majczak wrote: > With patch "drm/i915/vbt: Fix backlight parsing for VBT 234+" > the size of bdb_lfp_backlight_data structure has been increased, > causing if-statement in the parse_lfp_backlight function > that comapres this structure size to the one

Re: [Intel-gfx] [PATCH v2 01/13] drm/i915/tc: Fix TypeC port init/resume time sanitization

2021-09-29 Thread Souza, Jose
On Wed, 2021-09-29 at 16:28 +0300, Imre Deak wrote: > Atm during driver loading and system resume TypeC ports are accessed > before their HW/SW state is synced. Move the TypeC port sanitization to > the encoder's sync_state hook to fix this. > > v2: Handle the encoder disabled case in

Re: [Intel-gfx] [PATCH v2] drm/i915/bdb: Fix version check

2021-09-29 Thread Souza, Jose
On Thu, 2021-09-23 at 18:49 +0200, Lukasz Majczak wrote: > With patch "drm/i915/vbt: Fix backlight parsing for VBT 234+" > the size of bdb_lfp_backlight_data structure has been increased, > causing if-statement in the parse_lfp_backlight function > that comapres this structure size to the one

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 23:38 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 11:29:49PM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 23:08 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 11:02:37PM +0300, Souza, Jose wrote: > > > > On Tue, 2021-09-28 a

Re: [Intel-gfx] [PATCH 13/13] drm/i915/tc: Fix system hang on ADL-P during TypeC PHY disconnect

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > The PHY ownership release->AUX PW disable steps during a modeset > disable->PHY disconnect sequence can hang the system if the PHY > disconnect happens after disabling the PHY's PLL. The spec doesn't > require a specific order for these two

Re: [Intel-gfx] [PATCH 12/13] drm/i915/tc: Drop extra TC cold blocking from intel_tc_port_connected()

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > After the previous patch the driver holds a power domain blocking > TC-cold whenever the port is locked, so we can remove the extra blocking > around the lock/unlock sequence. Reviewed-by: José Roberto de Souza > > Cc: José Roberto de Souza

Re: [Intel-gfx] [PATCH 11/13] drm/i915/tc: Fix TypeC PHY connect/disconnect logic on ADL-P

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > So far TC-cold was blocked only for the duration of TypeC mode resets. > The DP-alt and legacy modes require TC-cold to be blocked also whenever > the port is in use (AUX transfers, enable modeset), and this was ensured > by the held PHY

Re: [Intel-gfx] [PATCH 10/13] drm/i915/icl/tc: Remove the ICL special casing during TC-cold blocking

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 13:52 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 01:02:21AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > > > While a TypeC port mode is locked a DISPLAY_CORE power domain reference > > > is held, whi

Re: [Intel-gfx] [PATCH 09/13] drm/i915/tc: Avoid using legacy AUX PW in TBT mode

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > For the ADL-P TBT mode the spec doesn't require blocking TC-cold by > using the legacy AUX power domain. To avoid the timeouts that this would > cause during PHY disconnect/reconnect sequences (which will be more > frequent after a follow-up

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 23:08 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 11:02:37PM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 22:55 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 10:45:50PM +0300, Souza, Jose wrote: > > > > > > [...] >

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 22:55 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 10:45:50PM +0300, Souza, Jose wrote: > > > > [...] > > > > Would not be possible to use TC_PORT_DISCONNECTED when really > > > > disconnected

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 22:34 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 10:18:25PM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 00:46 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 12:16:45AM +0300, Souza, Jose wrote: > > > > On Tue, 2021-09-21 a

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-28 Thread Souza, Jose
On Tue, 2021-09-28 at 00:46 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 12:16:45AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > > > A follow-up change will start to disconnect/re-connect PHYs around AUX > > > transfers

Re: [Intel-gfx] [PATCH 08/13] drm/i915/tc: Refactor TC-cold block/unblock helpers

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-28 at 03:45 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 03:14:45AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 02:51 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 02:33:27AM +0300, Souza, Jose wrote: > > > > On Tue, 2021-09-28 a

Re: [Intel-gfx] [PATCH 08/13] drm/i915/tc: Refactor TC-cold block/unblock helpers

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-28 at 02:51 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 02:33:27AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 01:28 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 01:21:21AM +0300, Souza, Jose wrote: > > > > On Tue, 2021-09-28 a

Re: [Intel-gfx] [PATCH 08/13] drm/i915/tc: Refactor TC-cold block/unblock helpers

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-28 at 01:28 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 01:21:21AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-28 at 01:13 +0300, Imre Deak wrote: > > > On Tue, Sep 28, 2021 at 12:56:24AM +0300, Souza, Jose wrote: > > > > On Tue, 2021-09-21 a

Re: [Intel-gfx] [PATCH 08/13] drm/i915/tc: Refactor TC-cold block/unblock helpers

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-28 at 01:13 +0300, Imre Deak wrote: > On Tue, Sep 28, 2021 at 12:56:24AM +0300, Souza, Jose wrote: > > On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > > > A follow-up change will select the TC-cold blocking power domain based > > > on the TypeC

Re: [Intel-gfx] [PATCH 10/13] drm/i915/icl/tc: Remove the ICL special casing during TC-cold blocking

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > While a TypeC port mode is locked a DISPLAY_CORE power domain reference > is held, which implies a runtime PM ref. By removing the ICL !legacy > port special casing, a TC_COLD_OFF power domain reference will be taken > for such ports, which

Re: [Intel-gfx] [PATCH 08/13] drm/i915/tc: Refactor TC-cold block/unblock helpers

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > A follow-up change will select the TC-cold blocking power domain based > on the TypeC mode, prepare for that here. > > Also bring intel_tc_cold_requires_aux_pw() earlier to its logical place > for readability. > > No functional change. > >

Re: [Intel-gfx] [PATCH 07/13] drm/i915/tc: Add a mode for the TypeC PHY's disconnected state

2021-09-27 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > A follow-up change will start to disconnect/re-connect PHYs around AUX > transfers and modeset enable/disables. To prepare for that add a new > TypeC PHY disconnected mode, to help tracking the TC-cold blocking power > domain status (no power

Re: [Intel-gfx] [PATCH 06/13] drm/i915/tc: Don't keep legacy TypeC ports in connected state w/o a sink

2021-09-24 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > A follow-up patch will disconnect/reconnect PHYs around AUX transfers > and modeset enable/disables. To prepare for that and make things > consistent for all TypeC modes stop connecting the PHY in legacy mode > without a sink being connected.

Re: [Intel-gfx] [PATCH 05/13] drm/i915/tc: Add/use helpers to retrieve TypeC port properties

2021-09-24 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > Instead of directly accessing the TypeC port internal struct members, > add/use helpers to retrieve the corresponding properties. > > No functional change. Reviewed-by: José Roberto de Souza > > Cc: José Roberto de Souza > Signed-off-by:

Re: [Intel-gfx] [PATCH 3/7] drm/i915/display: Add new fb_op_origin type and use it to optimize power savings

2021-09-24 Thread Souza, Jose
On Fri, 2021-09-24 at 17:39 +0300, Ville Syrjälä wrote: > On Thu, Sep 23, 2021 at 12:46:13PM -0700, José Roberto de Souza wrote: > > intel_prepare_plane_fb() was calling i915_gem_object_flush_frontbuffer() > > with the generic ORIGIN_DIRTYFB, what was causing > > PSR, FBC and DRRS to do their

Re: [Intel-gfx] [PATCH 1/7] drm/i915/display: Wait PSR2 get out of deep sleep to update pipe

2021-09-24 Thread Souza, Jose
On Fri, 2021-09-24 at 17:35 +0300, Ville Syrjälä wrote: > On Thu, Sep 23, 2021 at 12:46:11PM -0700, José Roberto de Souza wrote: > > Alderlake-P was getting 'max time under evasion' messages when PSR2 > > was enabled, this is due PIPE_SCANLINE/PIPEDSL returning 0 over a > > period of time longer

Re: [Intel-gfx] [PATCH 04/13] drm/i915/tc: Check for DP-alt, legacy sinks before taking PHY ownership

2021-09-23 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > On ADL-P the PHY ready/complete flag is always set even in TBT-alt mode. > To avoid taking the PHY ownership and the following spurious "PHY sudden > disconnect" messages on this platform when connecting the PHY in TBT > mode, check if there is

Re: [Intel-gfx] [PATCH 03/13] drm/i915/tc: Remove waiting for PHY complete during releasing ownership

2021-09-23 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > Waiting for the PHY complete flag to clear when releasing the PHY > ownership was add in > > commit ddec362724f9 ("drm/i915: Wait for TypeC PHY complete flag to clear in > safe mode") > > This isn't required by the spec, the vague idea was

Re: [Intel-gfx] [PATCH 02/13] drm/i915/adlp/tc: Fix PHY connected check for Thunderbolt mode

2021-09-23 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > On ADL-P the PHY ready (aka status complete on other platforms) flag is > always set, besides when a DP-alt, legacy sink is connected also when a > TBT sink is connected or nothing is connected. So assume the PHY to be > connected when both the

Re: [Intel-gfx] [PATCH 01/13] drm/i915/tc: Fix TypeC port init/resume time sanitization

2021-09-23 Thread Souza, Jose
On Tue, 2021-09-21 at 03:23 +0300, Imre Deak wrote: > Atm during driver loading and system resume TypeC ports are accessed > before their HW/SW state is synced. Move the TypeC port sanitization to > the encoder's sync_state hook to fix this. > > Fixes: f9e76a6e68d3 ("drm/i915: Add an encoder hook

Re: [Intel-gfx] [PATCH 2/3] drm/i915/display: Wait PSR2 get out of deep sleep to update pipe

2021-09-23 Thread Souza, Jose
On Thu, 2021-09-23 at 16:27 +0300, Gwan-gyeong Mun wrote: > > On 9/17/21 11:52 PM, José Roberto de Souza wrote: > > Alderlake-P was getting 'max time under evasion' messages when PSR2 > > was enabled, this is due PIPE_SCANLINE/PIPEDSL returning 0 over a > > period of time longer than

Re: [Intel-gfx] [PATCH v2 3/5] drm/i915/display: Workaround cursor left overs with PSR2 selective fetch enabled

2021-09-22 Thread Souza, Jose
On Wed, 2021-09-22 at 16:41 +0300, Ville Syrjälä wrote: > On Tue, Sep 21, 2021 at 10:37:53PM +0000, Souza, Jose wrote: > > On Tue, 2021-09-21 at 16:35 +0300, Ville Syrjälä wrote: > > > On Fri, Sep 17, 2021 at 09:33:59PM +, Souza, Jose wrote: > > > > On Fri, 20

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915/display/psr: Do full fetch when handling biplanar formats

2021-09-22 Thread Souza, Jose
; Sent: Tuesday, September 21, 2021 6:11 AM > > > To: intel-gfx@lists.freedesktop.org > > > Cc: Mun, Gwan-gyeong ; Souza, Jose > > > > > > Subject: [Intel-gfx] [PATCH v3 3/3] drm/i915/display/psr: Do full fetch > > > when > > > handling biplanar format

Re: [Intel-gfx] [PATCH v2 3/5] drm/i915/display: Workaround cursor left overs with PSR2 selective fetch enabled

2021-09-21 Thread Souza, Jose
On Tue, 2021-09-21 at 16:35 +0300, Ville Syrjälä wrote: > On Fri, Sep 17, 2021 at 09:33:59PM +0000, Souza, Jose wrote: > > On Fri, 2021-09-17 at 20:49 +0300, Ville Syrjälä wrote: > > > On Fri, Sep 17, 2021 at 05:02:21PM +, Souza, Jose wrote: > > > > On Fri, 20

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