Re: [Intel-gfx] [PATCH] drm/i915/gtt: Revert "Disable read-only support under GVT"

2018-10-30 Thread Zhenyu Wang
On 2018.10.30 15:08:01 +0800, intel-gfx-boun...@lists.freedesktop.org wrote: > From: Hang Yuan > > This reverts commit c9e666880de5a1fed04dc412b046916d542b72dd. > > Checked GVT codes that guest PPGTT PTE flag bits are propagated > to shadow PTE. Read/write bit is not changed. Further tested by >

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v2,1/5] drm/i915/debugfs: Do not print cached information of a disconnected sink

2018-10-30 Thread Patchwork
== Series Details == Series: series starting with [v2,1/5] drm/i915/debugfs: Do not print cached information of a disconnected sink URL : https://patchwork.freedesktop.org/series/51782/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5057_full -> Patchwork_10654_full = == Su

Re: [Intel-gfx] [PATCH 5/6] drm/i915/icl: Delay hotplug processing for tc ports

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 19:52 +0200, Ville Syrjälä wrote: > On Wed, Oct 10, 2018 at 02:35:07PM -0700, José Roberto de Souza > wrote: > > Some USB type-C dongles requires some time to power on before being > > able to process aux channel transactions. > > It was not a problem for older gens because th

[Intel-gfx] [v4 2/7] drm/dp/fec: DRM helper for Forward Error Correction

2018-10-30 Thread Anusha Srivatsa
DP 1.4 has Forward Error Correction Support(FEC). Add helper function to check if the sink device supports FEC. v2: Separate the helper and the code that uses the helper into two separate patches. (Manasi) v3: - Move the code to drm_dp_helper.c (Manasi) - change the return type, code style change

[Intel-gfx] [v4 4/7] i915/dp/fec: Add fec_enable to the crtc state.

2018-10-30 Thread Anusha Srivatsa
Add a crtc state for FEC. Currently, the state is determined by platform, DP and DSC being enabled. Moving forward we can use the state to have error correction on other scenarios too if needed. v2: - Control compression_enable with the fec_enable parameter in crtc state and with intel_dp_supports

[Intel-gfx] [v4 3/7] i915/dp/fec: Check for FEC Support

2018-10-30 Thread Anusha Srivatsa
For DP 1.4 and above, Display Stream compression can be enabled only if Forward Error Correctin can be performed. Check if the sink supports FEC using the helper. v2: Mention External DP where ever FEC is mentioned in the code.Check return status of dpcd reads. (Gaurav) - Do regular mode check ev

[Intel-gfx] [v4 1/7] i915/dp/fec: Cache the FEC_CAPABLE DPCD register

2018-10-30 Thread Anusha Srivatsa
Similar to DSC DPCD registers, let us cache FEC_CAPABLE register to avoid using stale values. With this we can avoid aux reads everytime and instead read the cached values. v2: Avoid using memset and array for a single field. (Manasi,Jani) v3: Suggested-by: Jani Nikula Cc: Jani Nikula Cc: Vill

[Intel-gfx] [v4 5/7] drm/i915/fec: Set FEC_READY in FEC_CONFIGURATION

2018-10-30 Thread Anusha Srivatsa
If the panel supports FEC, the driver has to set the FEC_READY bit in the dpcd register: FEC_CONFIGURATION. This has to happen before link training. v2: s/intel_dp_set_fec_ready/intel_dp_sink_set_fec_ready - change commit message. (Gaurav) v3: rebased. (r-b Manasi) v4: Use fec crtc state, be

[Intel-gfx] [v3 0/7] Forward Error Correction

2018-10-30 Thread Anusha Srivatsa
With Display Compression, the bit error in the pixel stream can turn into a significant corruption on the screen. The DP1.4 adds FEC - Forward Error Correction scheme which uses Reed-Solomon parity/correction check generated by the source and used by the sink to detect and correct small numbers of

[Intel-gfx] [v4 6/7] i915/dp/fec: Configure the Forward Error Correction bits.

2018-10-30 Thread Anusha Srivatsa
If FEC is supported, the corresponding DP_TP_CTL register bits have to be configured. The driver has to program the FEC_ENABLE in DP_TP_CTL[30] register and wait till FEC_STATUS in DP_TP_CTL[28] is 1. Also add the warn message to make sure that the control register is already active while enabling

[Intel-gfx] [v4 7/7] drm/i915/fec: Disable FEC state.

2018-10-30 Thread Anusha Srivatsa
Set the suitable bits in DP_TP_CTL to stop bit correction when DSC is disabled. v2: - rebased. - Add additional check for compression state. (Gaurav) v3: rebased. v4: - Move the code to the proper spot according to spec (Ville) - Use proper checks (manasi) Cc: Gaurav K Singh Cc: Jani Nikula C

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Souza, Jose
On Wed, 2018-10-31 at 02:33 +0200, Imre Deak wrote: > On Wed, Oct 31, 2018 at 02:17:36AM +0200, Souza, Jose wrote: > > On Wed, 2018-10-31 at 02:04 +0200, Imre Deak wrote: > > > On Wed, Oct 31, 2018 at 01:52:58AM +0200, Souza, Jose wrote: > > > > On Wed, 2018-10-31 at 01:28 +0200, Imre Deak wrote: >

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/icl: Fix HDMI on TypeC static ports (rev2)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports (rev2) URL : https://patchwork.freedesktop.org/series/51765/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5057_full -> Patchwork_10653_full = == Summary - SUCCESS == No regressions found. ==

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
On Wed, Oct 31, 2018 at 02:17:36AM +0200, Souza, Jose wrote: > On Wed, 2018-10-31 at 02:04 +0200, Imre Deak wrote: > > On Wed, Oct 31, 2018 at 01:52:58AM +0200, Souza, Jose wrote: > > > On Wed, 2018-10-31 at 01:28 +0200, Imre Deak wrote: > > > > On Wed, Oct 31, 2018 at 01:18:09AM +0200, Souza, Jose

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Souza, Jose
On Wed, 2018-10-31 at 02:04 +0200, Imre Deak wrote: > On Wed, Oct 31, 2018 at 01:52:58AM +0200, Souza, Jose wrote: > > On Wed, 2018-10-31 at 01:28 +0200, Imre Deak wrote: > > > On Wed, Oct 31, 2018 at 01:18:09AM +0200, Souza, Jose wrote: > > > > On Wed, 2018-10-31 at 01:12 +0200, Imre Deak wrote: >

[Intel-gfx] [CI 3/7] drm/i915/dp: Cache the DP/eDP DSC DPCD register set on Hotplug/eDP Init

2018-10-30 Thread Manasi Navare
DSC is supported on eDP starting GEN 10 display (on GLK) and on DP starting GEN 11. This patch implements the discovery phase of DSC. On hotplug, source reads the DSC DPCD register set (0x00060 - 0x0006F) to read the decompression capabilities of the sink device. This entire block of registers is c

[Intel-gfx] [CI 5/7] drm/i915/dp: Add helpers for Compressed BPP and Slice Count for DSC

2018-10-30 Thread Manasi Navare
This patch adds helpers for calculating the maximum compressed BPP supported with small joiner. This also adds a helper for calculating the slice count in case of small joiner. These are inside intel_dp since they take into account hardware limitations. v6: * Take mode_clock and mode_hdisplay as i

[Intel-gfx] [CI 7/7] drm/dp: Define payload size for DP SDP PPS packet

2018-10-30 Thread Manasi Navare
DP 1.4 spec defines DP secondary data packet for DSC picture parameter set. This patch defines its payload size according to the DP 1.4 specification. Signed-off-by: Manasi Navare Cc: dri-de...@lists.freedesktop.org Cc: Gaurav K Singh Cc: Jani Nikula Cc: Ville Syrjala Cc: Anusha Srivatsa Revi

[Intel-gfx] [CI 2/7] drm/dp: Add DP DSC DPCD receiver capability size define and missing SHIFT

2018-10-30 Thread Manasi Navare
This patch defines the DP DSC receiver capability size that gives total number of DP DSC DPCD registers. This also adds a missing #defines for DP DSC support missed in the commit id (ab6a46ea6842ce "Add DPCD definitions for DP 1.4 DSC feature") v3: * MIN_SLICE_WIDTH = 2560 (Anusha) * Define DP_DSC

[Intel-gfx] [CI 4/7] drm/dp: DRM DP helper/macros to get DP sink DSC parameters

2018-10-30 Thread Manasi Navare
This patch adds inline functions and helpers for obtaining DP sink's supported DSC parameters like DSC sink support, eDP compressed BPP supported, maximum slice count supported by the sink devices, DSC line buffer bit depth supported on DP sink, DSC sink maximum color depth by parsing corresponding

[Intel-gfx] [CI 1/7] drm/i915/dsc: Add slice_row_per_frame in DSC PPS programming

2018-10-30 Thread Manasi Navare
From: Anusha Srivatsa Add the newly added slice_row_per_frame parameter in the Picture Parameter Set registers. This defines the number of vertically stacked slices in a frame. Credits to Manasi for noticing bSpec change. Suggested-by: Manasi Navare Cc: Manasi Navare Signed-off-by: Anusha Sri

[Intel-gfx] [CI 6/7] drm/i915/dp: Validate modes using max Output BPP and slice count when DSC supported

2018-10-30 Thread Manasi Navare
When DSC is supported we need to validate the modes based on the maximum supported compressed BPP and maximum supported slice count. This allows us to allow the modes with pixel clock greater than the available link BW as long as it meets the compressed BPP and slice count requirements. v3: * Use

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
On Wed, Oct 31, 2018 at 01:52:58AM +0200, Souza, Jose wrote: > On Wed, 2018-10-31 at 01:28 +0200, Imre Deak wrote: > > On Wed, Oct 31, 2018 at 01:18:09AM +0200, Souza, Jose wrote: > > > On Wed, 2018-10-31 at 01:12 +0200, Imre Deak wrote: > > > > On Wed, Oct 31, 2018 at 01:07:04AM +0200, Souza, Jose

Re: [Intel-gfx] [PATCH 1/3] drm/i915/icl: Add icl pipe degamma and gamma support

2018-10-30 Thread Matt Roper
On Wed, Oct 24, 2018 at 08:30:11PM +0530, Uma Shankar wrote: > Add support for icl pipe degamma and gamma. > > v2: Removed a POSTING_READ and corrected the Bit > Definition as per Maarten's comments. > > Signed-off-by: Uma Shankar > --- > drivers/gpu/drm/i915/i915_reg.h| 3 ++ > drivers/gp

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Init aux_ch for HDMI ports too

2018-10-30 Thread Souza, Jose
On Wed, 2018-10-31 at 00:38 +0200, Imre Deak wrote: > On Wed, Oct 31, 2018 at 12:32:35AM +0200, Souza, Jose wrote: > > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > > > From ICL onwards DDI/TypeC ports - even in HDMI static mode - > > > need to > > > know > > > which AUX CH belongs to them,

Re: [Intel-gfx] [PATCH 8/8] drm/i915/icl+: Sanitize port to PLL mapping

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > BIOS can leave the PLL to port mapping enabled, even if the > corresponding encoder is disabled. Disable the port mapping in this > case. > Reviewed-by: José Roberto de Souza > Cc: Paulo Zanoni > Cc: Ville Syrjälä > Signed-off-by: Imre Dea

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Souza, Jose
On Wed, 2018-10-31 at 01:28 +0200, Imre Deak wrote: > On Wed, Oct 31, 2018 at 01:18:09AM +0200, Souza, Jose wrote: > > On Wed, 2018-10-31 at 01:12 +0200, Imre Deak wrote: > > > On Wed, Oct 31, 2018 at 01:07:04AM +0200, Souza, Jose wrote: > > > > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: >

Re: [Intel-gfx] [PATCH v6 12/28] drm/i915/dp: Add DSC params and DSC config to intel_crtc_state

2018-10-30 Thread Manasi Navare
On Wed, Oct 24, 2018 at 03:28:24PM -0700, Manasi Navare wrote: > Basic DSC parameters and DSC configuration data needs to be computed > for each of the requested mode during atomic check. This is > required since for certain modes, valid DSC parameters and config > data might not be computed in whi

Re: [Intel-gfx] [PATCH v6 22/28] drm/i915/dp: Populate DSC PPS SDP and send PPS infoframes

2018-10-30 Thread Manasi Navare
On Thu, Oct 25, 2018 at 05:09:42PM +0300, Ville Syrjälä wrote: > On Wed, Oct 24, 2018 at 03:28:34PM -0700, Manasi Navare wrote: > > DSC PPS secondary data packet infoframes are filled with > > DSC picure parameter set metadata according to the DSC standard. > > These infoframes are sent to the sink

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
On Wed, Oct 31, 2018 at 01:18:09AM +0200, Souza, Jose wrote: > On Wed, 2018-10-31 at 01:12 +0200, Imre Deak wrote: > > On Wed, Oct 31, 2018 at 01:07:04AM +0200, Souza, Jose wrote: > > > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > > > > For DDI/TypeC ports the AUX power domain needs to be

Re: [Intel-gfx] [PATCH 7/8] drm/i915: Configure AUX_CH_CTL when enabling the AUX power domain

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > Most of the AUX_CH_CTL flags are concerned with DP AUX transfer > parameters. As opposed to this the flag specifying the thunderbolt > vs. > non-thunderbolt mode of the port is not related to AUX transfers at > all > (rather it's repurposed to e

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Souza, Jose
On Wed, 2018-10-31 at 01:12 +0200, Imre Deak wrote: > On Wed, Oct 31, 2018 at 01:07:04AM +0200, Souza, Jose wrote: > > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > > > For DDI/TypeC ports the AUX power domain needs to be enabled > > > before > > > the > > > port's PLL is enabled, so move t

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/5] drm/i915: Remove CNL from WA 827 (rev4)

2018-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Remove CNL from WA 827 (rev4) URL : https://patchwork.freedesktop.org/series/51713/ State : failure == Summary == Applying: drm/i915: Remove CNL from WA 827 Applying: drm/i915/cnl: Remove useless CNL A-stepping workarounds. Appl

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
On Wed, Oct 31, 2018 at 01:07:04AM +0200, Souza, Jose wrote: > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > > For DDI/TypeC ports the AUX power domain needs to be enabled before > > the > > port's PLL is enabled, so move the enabling earlier accordingly. > > Could you just pointed out whe

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/5] drm/i915/debugfs: Do not print cached information of a disconnected sink

2018-10-30 Thread Patchwork
== Series Details == Series: series starting with [v2,1/5] drm/i915/debugfs: Do not print cached information of a disconnected sink URL : https://patchwork.freedesktop.org/series/51782/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5057 -> Patchwork_10654 = == Summary - SU

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Enable AUX power for HDMI DDI/TypeC main link too

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > DDI/TypeC ports need the AUX power domain for main link functionality > even when they operate in HDMI static mode, so enable the power > domain > for these ports too. > Reviewed-by: José Roberto de Souza > Cc: Paulo Zanoni > Cc: Ville Syrj

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > For DDI/TypeC ports the AUX power domain needs to be enabled before > the > port's PLL is enabled, so move the enabling earlier accordingly. Could you just pointed out where did you got this information? I checked in this Bspec pages 20845, 205

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Init aux_ch for HDMI ports too

2018-10-30 Thread Imre Deak
On Wed, Oct 31, 2018 at 12:32:35AM +0200, Souza, Jose wrote: > On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > > From ICL onwards DDI/TypeC ports - even in HDMI static mode - need to > > know > > which AUX CH belongs to them, so initialize aux_ch for those ports > > too. > > For consistency d

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Move intel_aux_ch() to intel_bios.c

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > From ICL onwards all the DDI/TypeC ports - even working in HDMI mode > - > need to know their corresponding AUX channel, so move the > corresponding > helper to a common place. > > No functional change. > Reviewed-by: José Roberto de Souza

Re: [Intel-gfx] [PATCH 2/8] drm/i915: Move aux_ch to intel_digital_port

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > From ICL onwards all DDI/TypeC ports - even working in HDMI mode - > need > to know their corresponding AUX CH, so move the field to a common > struct. > > No functional change. > > Cc: Paulo Zanoni > Cc: Ville Syrjälä > Signed-off-by: Imre

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915/icl: Implement Display WA_1405510057

2018-10-30 Thread Rodrigo Vivi
On Tue, Oct 30, 2018 at 05:30:25PM +0800, kbuild test robot wrote: > Hi Radhakrishna, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on drm-intel/for-linux-next] > [also build test WARNING on v4.19 next-20181030] > [if your patch is

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Init aux_ch for HDMI ports too

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 17:40 +0200, Imre Deak wrote: > From ICL onwards DDI/TypeC ports - even in HDMI static mode - need to > know > which AUX CH belongs to them, so initialize aux_ch for those ports > too. > For consistency do this for all HDMI ports, not only for DDI/TypeC > ones. > > Cc: Paulo

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915/icl: Implement Display WA_1405510057

2018-10-30 Thread Rodrigo Vivi
On Tue, Oct 30, 2018 at 01:45:02AM -0700, Radhakrishna Sripada wrote: > Display WA_1405510057 asks to not enable YUV 420 HDMI > 10bpc when horizontal blank size mod 8 reminder is 2. > > V2: Rebase(r-b: Anusha) > V3: crtc_state->s/ycbcr420/output_format/ > > Cc: Anusha Srivatsa > Cc: Paulo Zanoni

[Intel-gfx] [PATCH] drm/i915: Define WA 0870 and kill dead code.

2018-10-30 Thread Rodrigo Vivi
Let's introduce the WA number that is the cause of having NV12 disabled on both SLK and BXT. According to Spec: WA 0870: "Display flickers with NV12 video playback in Y tiling mode. WA: Use YUV422 surface format instead of NV12." v2: remove the useless dead code and consequently avoiding dev

Re: [Intel-gfx] [PATCH v2 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
On Tue, Oct 30, 2018 at 02:55:00PM -0700, Manasi Navare wrote: > On Tue, Oct 30, 2018 at 09:05:57PM +0200, Imre Deak wrote: > > For DDI/TypeC ports the AUX power domain needs to be enabled before the > > port's PLL is enabled, so move the enabling earlier accordingly. > > > > v2: > > - Preserve th

[Intel-gfx] [PATCH v2 3/5] drm/i915/icl: Set TC type to unknown when a sudden disconnection happen

2018-10-30 Thread José Roberto de Souza
Otherwise it would be in a inconsistent state as port is disconnected but with a valid tc type. Cc: Paulo Zanoni Reviewed-by: Ville Syrjälä Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_dp.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/driver

[Intel-gfx] [PATCH v2 2/5] drm/i915/icl: Set TC type to unknown in the disconnection flow

2018-10-30 Thread José Roberto de Souza
Otherwise it would be in a inconsistent state as port is disconnected but with a valid tc type. Also setting it to unknown will earlier return icl_tc_phy_disconnect() for any future calls to intel_digital_port_connected(), this way we don't need to check if port is marked as safe everytime. Cc: P

[Intel-gfx] [PATCH v2 1/5] drm/i915/debugfs: Do not print cached information of a disconnected sink

2018-10-30 Thread José Roberto de Souza
Besides of give the expected output of i915_display_info it will also avoid some aux ch transactions that would timeout by obvious reasons. Reviewed-by: Ville Syrjälä Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/i915_debugfs.c | 21 +++-- 1 file changed, 11 inse

Re: [Intel-gfx] [PATCH 7/8] drm/i915: Configure AUX_CH_CTL when enabling the AUX power domain

2018-10-30 Thread Lucas De Marchi
On Tue, Oct 30, 2018 at 05:40:50PM +0200, Imre Deak wrote: > Most of the AUX_CH_CTL flags are concerned with DP AUX transfer > parameters. As opposed to this the flag specifying the thunderbolt vs. > non-thunderbolt mode of the port is not related to AUX transfers at all > (rather it's repurposed t

[Intel-gfx] [PATCH v2 5/5] drm/i915/icl: Fix crash when getting DPLL of a MST encoder in TC ports

2018-10-30 Thread José Roberto de Souza
enc_to_dig_port() returns NULL for encoders of type INTEL_OUTPUT_DP_MST causing the crash bellow: [ 2832.836101] BUG: unable to handle kernel paging request at 12b8 [ 2832.843062] PGD 0 P4D 0 [ 2832.845610] Oops: [#1] SMP [ 2832.848764] CPU: 2 PID: 3577 Comm: kworker/2:0 Tainted:

[Intel-gfx] [PATCH v2 4/5] drm/i915: Initialize panel_vdd_work only for eDP ports

2018-10-30 Thread José Roberto de Souza
It is only used by eDP ports so no need to initialize it for each DP port. Reviewed-by: Ville Syrjälä Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_dp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/d

Re: [Intel-gfx] [PATCH v2 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Manasi Navare
On Tue, Oct 30, 2018 at 09:05:57PM +0200, Imre Deak wrote: > For DDI/TypeC ports the AUX power domain needs to be enabled before the > port's PLL is enabled, so move the enabling earlier accordingly. > > v2: > - Preserve the pre_pll hook for GEN9_LP. (Ville) > > Cc: Paulo Zanoni > Cc: Ville Syrj

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Use a helper to get the aux power domain

2018-10-30 Thread Imre Deak
On Tue, Oct 30, 2018 at 02:16:08PM -0700, Lucas De Marchi wrote: > On Tue, Oct 30, 2018 at 05:40:47PM +0200, Imre Deak wrote: > > From ICL onwards the AUX power domain may change dynamically based on > > whether a DDI/TypeC port is in thunderbolt or non-thunderbolt mode, so > > use a helper functio

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Use a helper to get the aux power domain

2018-10-30 Thread Lucas De Marchi
On Tue, Oct 30, 2018 at 05:40:47PM +0200, Imre Deak wrote: > From ICL onwards the AUX power domain may change dynamically based on > whether a DDI/TypeC port is in thunderbolt or non-thunderbolt mode, so > use a helper function instead of a static field to get the current > domain. > > Cc: Paulo Z

Re: [Intel-gfx] [PATCH 3/6] drm/i915/icl: Set TC type to unknown when a sudden disconnection happen

2018-10-30 Thread Souza, Jose
On Tue, 2018-10-30 at 19:51 +0200, Ville Syrjälä wrote: > On Wed, Oct 10, 2018 at 02:35:05PM -0700, José Roberto de Souza > wrote: > > Otherwise it would be in a inconsistent state as port is > > disconnected > > but with a valid tc type. > > > > Cc: Paulo Zanoni > > Signed-off-by: José Roberto d

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: Fix HDMI on TypeC static ports (rev2)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports (rev2) URL : https://patchwork.freedesktop.org/series/51765/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5057 -> Patchwork_10653 = == Summary - SUCCESS == No regressions found. External URL:

Re: [Intel-gfx] [v3 4/7] i915/dp/fec: Add can_fec to the crtc state.

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 08:57:12PM +0200, Ville Syrjälä wrote: > On Thu, Oct 25, 2018 at 09:49:40PM -0700, Anusha Srivatsa wrote: > > Add a crtc state for FEC. Currently, the state > > is determined by platform, DP and DSC being > > enabled. Moving forward we can use the state > > to have error cor

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/icl: Fix HDMI on TypeC static ports (rev2)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports (rev2) URL : https://patchwork.freedesktop.org/series/51765/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Move intel_aux_ch() to intel_bios.c -drivers/gpu/drm/i915/se

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Fix HDMI on TypeC static ports (rev2)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports (rev2) URL : https://patchwork.freedesktop.org/series/51765/ State : warning == Summary == $ dim checkpatch origin/drm-tip e4ad990a6870 drm/i915: Move intel_aux_ch() to intel_bios.c -:47: CHECK:SPACING: No space is neces

[Intel-gfx] [PATCH v2 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
For DDI/TypeC ports the AUX power domain needs to be enabled before the port's PLL is enabled, so move the enabling earlier accordingly. v2: - Preserve the pre_pll hook for GEN9_LP. (Ville) Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c |

Re: [Intel-gfx] [v3 4/7] i915/dp/fec: Add can_fec to the crtc state.

2018-10-30 Thread Ville Syrjälä
On Thu, Oct 25, 2018 at 09:49:40PM -0700, Anusha Srivatsa wrote: > Add a crtc state for FEC. Currently, the state > is determined by platform, DP and DSC being > enabled. Moving forward we can use the state > to have error correction on other scenarios too > if needed. > > Suggested-by: Ville Syrj

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Revert "Disable read-only support under GVT"

2018-10-30 Thread Chris Wilson
Quoting hang.y...@linux.intel.com (2018-10-30 07:08:01) > From: Hang Yuan > > This reverts commit c9e666880de5a1fed04dc412b046916d542b72dd. > > Checked GVT codes that guest PPGTT PTE flag bits are propagated > to shadow PTE. Read/write bit is not changed. Further tested by > i915 self-test case

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Kill WA 0826

2018-10-30 Thread Ville Syrjälä
On Mon, Oct 29, 2018 at 04:00:44PM -0700, Rodrigo Vivi wrote: > According to BSpec this is not needed anymore: > > "This workaround is no longer needed since NV12 > support is dropped for the affected projects. > " > > Cc: Maarten Lankhorst > Cc: Ville Syrjälä > Signed-off-by: Rodrigo Vivi Ma

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Kill WA 0528

2018-10-30 Thread Ville Syrjälä
On Mon, Oct 29, 2018 at 04:00:43PM -0700, Rodrigo Vivi wrote: > First of all I believe this WA as written here was wrong. > > Because it is listed on BSpec only for SKL and BXT, exactly > the only 2 platforms skipped here. > > But also it is written there that we don't need this WA > anymore: > "

Re: [Intel-gfx] [RFC 1/4] drm/i915: Add Display Gen info.

2018-10-30 Thread Lucas De Marchi
On Tue, Oct 30, 2018 at 11:52:30AM +0200, Jani Nikula wrote: > On Mon, 29 Oct 2018, Rodrigo Vivi wrote: > > Introduce Display Gen. The goal is to use this to minimize > > the amount of platform codename checks we have nowdays on > > display code. > > > > The introduction of a new platform should b

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Introduce HAS_NV12 and define WA 0870.

2018-10-30 Thread Ville Syrjälä
On Mon, Oct 29, 2018 at 04:00:42PM -0700, Rodrigo Vivi wrote: > Let's introduce HAS_NV12 to check for feature itself > than spread the platform checks everywhere. > > Also let's introduce the WA number that is the > cause of having NV12 disabled on both SLK and BXT. > > According to Spec: > > WA

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/gem_tiled_fence_blits: Remember to mark up fence blits

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 05:30:46PM +, Chris Wilson wrote: > Quoting Ville Syrjälä (2018-10-30 13:32:39) > > On Mon, Oct 29, 2018 at 08:49:58PM +, Chris Wilson wrote: > > > Older platforms require fence registers to perform blits, and so > > > userspace is expected to mark up the objects to

Re: [Intel-gfx] [PATCH] drm/i915/icl: Enable DC9 as lowest possible state during screen-off

2018-10-30 Thread Rodrigo Vivi
On Mon, Oct 29, 2018 at 03:14:10PM -0700, Anusha Srivatsa wrote: > From: Animesh Manna > > ICL supports DC5, DC6, and DC9. Enable DC9 during screen-off, and enable > DC5/6 when appropriate. > > v2: (James Ausmus) > - Also handle ICL as GEN9_LP in i915_drm_suspend_late and >i915_drm_suspend_

Re: [Intel-gfx] [PATCH 6/6] drm/i915/icl: Fix crash when getting DPLL of a MST encoder in TC ports

2018-10-30 Thread Ville Syrjälä
On Wed, Oct 10, 2018 at 02:35:08PM -0700, José Roberto de Souza wrote: > enc_to_dig_port() returns NULL for encoders of type > INTEL_OUTPUT_DP_MST causing the crash bellow: > > [ 2832.836101] BUG: unable to handle kernel paging request at 12b8 > [ 2832.843062] PGD 0 P4D 0 > [ 2832.8456

Re: [Intel-gfx] [PATCH 5/6] drm/i915/icl: Delay hotplug processing for tc ports

2018-10-30 Thread Ville Syrjälä
On Wed, Oct 10, 2018 at 02:35:07PM -0700, José Roberto de Souza wrote: > Some USB type-C dongles requires some time to power on before being > able to process aux channel transactions. > It was not a problem for older gens because there was a bridge > between DP port and USB-C controller adding som

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Initialize panel_vdd_work only for eDP ports

2018-10-30 Thread Ville Syrjälä
On Wed, Oct 10, 2018 at 02:35:06PM -0700, José Roberto de Souza wrote: > It is only used by eDP ports so no need to initialize it for each DP > port. > > Signed-off-by: José Roberto de Souza Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_dp.c | 5 ++--- > 1 file changed, 2 inse

Re: [Intel-gfx] [PATCH 3/6] drm/i915/icl: Set TC type to unknown when a sudden disconnection happen

2018-10-30 Thread Ville Syrjälä
On Wed, Oct 10, 2018 at 02:35:05PM -0700, José Roberto de Souza wrote: > Otherwise it would be in a inconsistent state as port is disconnected > but with a valid tc type. > > Cc: Paulo Zanoni > Signed-off-by: José Roberto de Souza > --- > drivers/gpu/drm/i915/intel_dp.c | 7 --- > 1 file ch

Re: [Intel-gfx] [RFC 1/4] drm/i915: Add Display Gen info.

2018-10-30 Thread Rodrigo Vivi
+cc Ville On Tue, Oct 30, 2018 at 11:52:30AM +0200, Jani Nikula wrote: > On Mon, 29 Oct 2018, Rodrigo Vivi wrote: > > Introduce Display Gen. The goal is to use this to minimize > > the amount of platform codename checks we have nowdays on > > display code. > > > > The introduction of a new platfo

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/gem_tiled_fence_blits: Remember to mark up fence blits

2018-10-30 Thread Chris Wilson
Quoting Ville Syrjälä (2018-10-30 13:32:39) > On Mon, Oct 29, 2018 at 08:49:58PM +, Chris Wilson wrote: > > Older platforms require fence registers to perform blits, and so > > userspace is expected to mark up the objects to request fences be > > assigned. > > > > Fixes: ff2db94acb53 ("igt/gem

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: Fix HDMI on TypeC static ports

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports URL : https://patchwork.freedesktop.org/series/51765/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_5055 -> Patchwork_10652 = == Summary - FAILURE == Serious unknown changes coming with Patchwork_1

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/icl: Fix HDMI on TypeC static ports

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports URL : https://patchwork.freedesktop.org/series/51765/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Move intel_aux_ch() to intel_bios.c -drivers/gpu/drm/i915/selftests

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Fix HDMI on TypeC static ports

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: Fix HDMI on TypeC static ports URL : https://patchwork.freedesktop.org/series/51765/ State : warning == Summary == $ dim checkpatch origin/drm-tip 83eb4def4751 drm/i915: Move intel_aux_ch() to intel_bios.c -:47: CHECK:SPACING: No space is necessary af

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: dsi enabling (rev3)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: dsi enabling (rev3) URL : https://patchwork.freedesktop.org/series/51011/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_5055 -> Patchwork_10651 = == Summary - FAILURE == Serious unknown changes coming with Patchwork_10651 absolu

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Stop calling intel_opregion unregister/register in suspend/resume (rev2)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915: Stop calling intel_opregion unregister/register in suspend/resume (rev2) URL : https://patchwork.freedesktop.org/series/50630/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5054_full -> Patchwork_10649_full = == Summary - SUCCESS ==

[Intel-gfx] [PATCH 7/8] drm/i915: Configure AUX_CH_CTL when enabling the AUX power domain

2018-10-30 Thread Imre Deak
Most of the AUX_CH_CTL flags are concerned with DP AUX transfer parameters. As opposed to this the flag specifying the thunderbolt vs. non-thunderbolt mode of the port is not related to AUX transfers at all (rather it's repurposed to enable either TBT or non-TBT PHY HW blocks). The programming has

[Intel-gfx] [PATCH 4/8] drm/i915: Use a helper to get the aux power domain

2018-10-30 Thread Imre Deak
From ICL onwards the AUX power domain may change dynamically based on whether a DDI/TypeC port is in thunderbolt or non-thunderbolt mode, so use a helper function instead of a static field to get the current domain. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/dr

[Intel-gfx] [PATCH 8/8] drm/i915/icl+: Sanitize port to PLL mapping

2018-10-30 Thread Imre Deak
BIOS can leave the PLL to port mapping enabled, even if the corresponding encoder is disabled. Disable the port mapping in this case. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 23 +++ drivers/gpu/drm/i915/intel_di

[Intel-gfx] [PATCH 3/8] drm/i915: Init aux_ch for HDMI ports too

2018-10-30 Thread Imre Deak
From ICL onwards DDI/TypeC ports - even in HDMI static mode - need to know which AUX CH belongs to them, so initialize aux_ch for those ports too. For consistency do this for all HDMI ports, not only for DDI/TypeC ones. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gp

[Intel-gfx] [PATCH 5/8] drm/i915: Enable AUX power earlier

2018-10-30 Thread Imre Deak
For DDI/TypeC ports the AUX power domain needs to be enabled before the port's PLL is enabled, so move the enabling earlier accordingly. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 46 +--- drivers/gpu/d

[Intel-gfx] [PATCH 6/8] drm/i915: Enable AUX power for HDMI DDI/TypeC main link too

2018-10-30 Thread Imre Deak
DDI/TypeC ports need the AUX power domain for main link functionality even when they operate in HDMI static mode, so enable the power domain for these ports too. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 15 +++ 1 file change

[Intel-gfx] [PATCH 1/8] drm/i915: Move intel_aux_ch() to intel_bios.c

2018-10-30 Thread Imre Deak
From ICL onwards all the DDI/TypeC ports - even working in HDMI mode - need to know their corresponding AUX channel, so move the corresponding helper to a common place. No functional change. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/i915_drv.h | 1

[Intel-gfx] [PATCH 0/8] drm/i915/icl: Fix HDMI on TypeC static ports

2018-10-30 Thread Imre Deak
ICL has repurposed some of the AUX HW signals/flags, so that we have to program these for HDMI too. In practice this means enabling the AUX power well for HDMI mode too. The last patch fixes an issue where BIOS leaves the PLL->port mapping enabled even though the corresponding encoder is disabled.

[Intel-gfx] [PATCH 2/8] drm/i915: Move aux_ch to intel_digital_port

2018-10-30 Thread Imre Deak
From ICL onwards all DDI/TypeC ports - even working in HDMI mode - need to know their corresponding AUX CH, so move the field to a common struct. No functional change. Cc: Paulo Zanoni Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 4 +++- drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-30 Thread Daniel Vetter
On Tue, Oct 30, 2018 at 04:18:28PM +0200, Ville Syrjälä wrote: > On Tue, Oct 30, 2018 at 10:35:07AM +0100, Daniel Vetter wrote: > > On Mon, Oct 29, 2018 at 04:00:04PM -0700, Eric Anholt wrote: > > > Ville Syrjala writes: > > > > > > > From: Ville Syrjälä > > > > > > > > Add a function to check w

Re: [Intel-gfx] [PATCH] drm/i915/fia: FIA registers offset implementation.

2018-10-30 Thread Lucas De Marchi
On Tue, Oct 30, 2018 at 6:56 AM Jani Nikula wrote: > > On Mon, 29 Oct 2018, Anusha Srivatsa wrote: > > The registers DPCSSS,DPSP,DPMLE1 and DPPMS are all at an offset > > from the base - which is the FLexi IO Adaptor. Lets follow the > > offset calculation while accessing these registers. > > Why

Re: [Intel-gfx] [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 10:35:07AM +0100, Daniel Vetter wrote: > On Mon, Oct 29, 2018 at 04:00:04PM -0700, Eric Anholt wrote: > > Ville Syrjala writes: > > > > > From: Ville Syrjälä > > > > > > Add a function to check whether there is at least one plane that > > > supports a specific format and

Re: [Intel-gfx] [PATCH v8 34/38] drm/i915/icl: Add changes to program DSI panel GPIOs

2018-10-30 Thread Jani Nikula
On Tue, 30 Oct 2018, Ville Syrjälä wrote: > On Tue, Oct 30, 2018 at 01:56:40PM +0200, Jani Nikula wrote: >> From: Madhav Chauhan >> >> For ICELAKE DSI, Display Pins are the only GPIOs >> that need to be programmed. So DSI driver should have >> its own implementation to toggle these pins based on

Re: [Intel-gfx] [PATCH v8 37/38] drm/i915/icl: Consider DSI for getting transcoder state

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 01:56:43PM +0200, Jani Nikula wrote: > From: Madhav Chauhan > > For Gen11 DSI, we use similar registers like for eDP > to find if DSI encoder is connected or not to a pipe. > This patch refactors existing hsw_get_transcoder_state() > to handle this. > > Signed-off-by: Mad

Re: [Intel-gfx] [PATCH v8 34/38] drm/i915/icl: Add changes to program DSI panel GPIOs

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 01:56:40PM +0200, Jani Nikula wrote: > From: Madhav Chauhan > > For ICELAKE DSI, Display Pins are the only GPIOs > that need to be programmed. So DSI driver should have > its own implementation to toggle these pins based on > GPIO info coming from VBT sequences instead of

Re: [Intel-gfx] [PATCH] drm/i915/fia: FIA registers offset implementation.

2018-10-30 Thread Jani Nikula
On Mon, 29 Oct 2018, Anusha Srivatsa wrote: > The registers DPCSSS,DPSP,DPMLE1 and DPPMS are all at an offset > from the base - which is the FLexi IO Adaptor. Lets follow the > offset calculation while accessing these registers. Why? If I search the specs or i915_reg.h for, say, 0x1638c0 I'll fi

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/gem_tiled_fence_blits: Remember to mark up fence blits

2018-10-30 Thread Ville Syrjälä
On Mon, Oct 29, 2018 at 08:49:58PM +, Chris Wilson wrote: > Older platforms require fence registers to perform blits, and so > userspace is expected to mark up the objects to request fences be > assigned. > > Fixes: ff2db94acb53 ("igt/gem_tiled_fence_blits: Remove libdrm_intel > dependence")

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gtt: Revert "Disable read-only support under GVT"

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Revert "Disable read-only support under GVT" URL : https://patchwork.freedesktop.org/series/51730/ State : success == Summary == = CI Bug Log - changes from CI_DRM_5053_full -> Patchwork_10644_full = == Summary - WARNING == Minor unknown changes c

Re: [Intel-gfx] [PATCH] drm/i915/selftest: fix 64K alignment in igt_write_huge

2018-10-30 Thread kbuild test robot
Hi Matthew, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on v4.19 next-20181030] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [Intel-gfx] [PATCH v8 00/38] drm/i915/icl: dsi enabling

2018-10-30 Thread Jani Nikula
On Tue, 30 Oct 2018, Jani Nikula wrote: > Jani Nikula (3): > drm/i915/icl: Allocate DSI encoder/connector > drm/i915/icl: Allocate hosts for DSI ports > drm/i915/icl: Load DSI packet payload to queue These are by Madhav, I accidentally took authorship while rebasing. Fixed locally. BR, Jan

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: dsi enabling (rev3)

2018-10-30 Thread Patchwork
== Series Details == Series: drm/i915/icl: dsi enabling (rev3) URL : https://patchwork.freedesktop.org/series/51011/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_5054 -> Patchwork_10650 = == Summary - FAILURE == Serious unknown changes coming with Patchwork_10650 absolu

  1   2   >