[Intel-gfx] [PATCH 6/6] drm/amdgpu/dm/mst: Use drm_dp_mst_connector_atomic_check()

2018-09-18 Thread Lyude Paul
Hook this into amdgpu's atomic check for their connectors so they never get modesets on no-longer-present MST connectors. We'll also expand on this later once we add DP MST fallback retraining support. As well, turns out that the only atomic DRM driver without the ->best_encoder() bug is amdgpu.

[Intel-gfx] [PATCH 5/6] drm/i915: Fix intel_dp_mst_best_encoder()

2018-09-18 Thread Lyude Paul
Currently, i915 appears to rely on blocking modesets on no-longer-present MSTB ports by simply returning NULL for ->best_encoder(), which in turn causes any new atomic commits that don't disable the CRTC to fail. This is wrong however, since we still want to allow userspace to disable CRTCs on

[Intel-gfx] [PATCH 4/6] drm/i915: Skip vcpi allocation for MSTB ports that are gone

2018-09-18 Thread Lyude Paul
Since we need to be able to allow DPMS on->off prop changes after an MST port has disappeared from the system, we need to be able to make sure we can compute a config for the resulting atomic commit. Currently this is impossible when the port has disappeared, since the VCPI slot searching we try

[Intel-gfx] [PATCH 2/6] drm/nouveau: Unbreak nv50_mstc->best_encoder()

2018-09-18 Thread Lyude Paul
As mentioned in the previous commit, we currently prevent new modesets on recently-removed MST connectors by returning no encoder from our ->best_encoder() callback once the MST port has disappeared. This is wrong however, because it prevents legacy modesetting users from being able to disable

[Intel-gfx] [PATCH 1/6] drm/dp_mst: Introduce drm_dp_mst_connector_atomic_check()

2018-09-18 Thread Lyude Paul
Currently the way that we prevent userspace from performing new modesets on MST connectors that have just been destroyed is rather broken. There's nothing in the actual DRM DP MST topology helpers that checks whether or not a connector still exists, instead each DRM driver does this on it's own,

[Intel-gfx] [PATCH 0/6] Fix legacy DPMS changes with MST

2018-09-18 Thread Lyude Paul
There's two major things this patchset does: - Add drm_dp_mst_connector_atomic_check() so drivers don't need to use ->best_encoder() to prevent modesets on zombie MST connectors. We'll use this later for implementing MST fallback retraining as well. - Fix DPMS on->off changes failing with

[Intel-gfx] [PATCH 3/6] drm/i915: Leave intel_conn->mst_port set, use mst_port_gone instead

2018-09-18 Thread Lyude Paul
Currently we set intel_connector->mst_port to NULL to signify that the MST port has been removed from the system so that we can prevent further action on the port such as connector probes, mode probing, etc. However, we're going to need access to intel_connector->mst_port in order to fixup

Re: [Intel-gfx] [PATCH v4 2/6] drm/i915: Unset reset pch handshake when PCH is not present in one place

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 01:47:10PM -0700, José Roberto de Souza wrote: > Right now RESET_PCH_HANDSHAKE_ENABLE is enabled all the times inside > of intel_power_domains_init_hw() and if PCH is NOP it is unsed in > i915_gem_init_hw(). > So making skl_pch_reset_handshake() handle both cases and

Re: [Intel-gfx] [PATCH v4 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 01:47:09PM -0700, José Roberto de Souza wrote: > Instead of have the same code spread into 4 platforms lets share it. > BXT do not have a PCH so here also handling this case by unseting > RESET_PCH_HANDSHAKE_ENABLE. > > v2(Rodrigo): > - renamed to

Re: [Intel-gfx] [PATCH] drm/i915: implement EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 02:19:17PM -0700, Manasi Navare wrote: > Thanks for the patch. I have tested this on DP 1.4 sink device > and it works properly to read the DPCDs from different offset and > use the true capabilities. Without this patch, the sink behaves as a > legacy DP 1.2 sink. > > So

Re: [Intel-gfx] [PATCH] drm/i915: implement EXTENDED_RECEIVER_CAPABILITY_FIELD_PRESENT

2018-09-18 Thread Manasi Navare
Thanks for the patch. I have tested this on DP 1.4 sink device and it works properly to read the DPCDs from different offset and use the true capabilities. Without this patch, the sink behaves as a legacy DP 1.2 sink. So with that: Tested-by: Manasi Navare Acked-by: Manasi Navare Manasi On

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-18 Thread Manasi Navare
On Tue, Sep 18, 2018 at 10:46:46PM +0300, Ville Syrjälä wrote: > On Tue, Sep 18, 2018 at 12:31:54PM -0700, Manasi Navare wrote: > > On Tue, Sep 18, 2018 at 10:12:24PM +0300, Ville Syrjälä wrote: > > > On Tue, Sep 18, 2018 at 12:04:35PM -0700, Manasi Navare wrote: > > > > Thanks Imre for your

[Intel-gfx] [PATCH v4 6/6] drm/i915: Remove duplicated definition of intel_update_rawclk

2018-09-18 Thread José Roberto de Souza
A few line above we have another definition of intel_update_rawclk() keeping that one as the function is implemented in intel_cdclk.c. Reviewed-by: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git

[Intel-gfx] [PATCH v4 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread José Roberto de Souza
Instead of have the same code spread into 4 platforms lets share it. BXT do not have a PCH so here also handling this case by unseting RESET_PCH_HANDSHAKE_ENABLE. v2(Rodrigo): - renamed to intel_pch_reset_handshake() - added comment about why BXT need the bit to be unset v3(Rodrigo and Ville): -

[Intel-gfx] [PATCH v4 2/6] drm/i915: Unset reset pch handshake when PCH is not present in one place

2018-09-18 Thread José Roberto de Souza
Right now RESET_PCH_HANDSHAKE_ENABLE is enabled all the times inside of intel_power_domains_init_hw() and if PCH is NOP it is unsed in i915_gem_init_hw(). So making skl_pch_reset_handshake() handle both cases and calling it for the missing gens in intel_power_domains_init_hw(). Ivybridge have a

[Intel-gfx] [PATCH v4 5/6] drm/i915: Move IPC WA #1141 to init_ipc()

2018-09-18 Thread José Roberto de Souza
symmetric_memory do not change after initialization so lets just set ipc_enabled once for this WA. Reviewed-by: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_pm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[Intel-gfx] [PATCH v4 3/6] drm/i915: Do not modifiy reserved bit in gens that do not have IPC

2018-09-18 Thread José Roberto de Souza
IPC was only added in SKL+(actually we don't even enable for SKL due WA) so without this change, driver was writing to a reserved bit. Also removing the uncessary dev_priv->ipc_enabled = false; as now gens without IPC will not have IPC enabled. v2(Rodrigo): - moved the new handling of WA #0477

[Intel-gfx] [PATCH v4 4/6] drm/i915: Move SKL IPC WA to HAS_IPC()

2018-09-18 Thread José Roberto de Souza
SKL has IPC but it should not be set according to the WA, so lets just mark as it don't have it to simply the code and avoid unnecessary MMIO writes at every call to intel_enable_ipc(). Reviewed-by: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/i915_pci.c | 2 ++

Re: [Intel-gfx] [PATCH v3 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 12:40:21PM -0700, Souza, Jose wrote: > On Tue, 2018-09-18 at 22:04 +0300, Ville Syrjälä wrote: > > On Tue, Sep 18, 2018 at 11:10:10AM -0700, José Roberto de Souza > > wrote: > > > Instead of have the same code spread into 4 platforms lets share > > > it. > > > BXT do not

Re: [Intel-gfx] [PATCH v3 5/6] drm/i915: Move IPC WA #1141 to init_ipc()

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 11:10:14AM -0700, José Roberto de Souza wrote: > symmetric_memory do not change after initialization so lets just set > ipc_enabled once for this WA. > > Cc: Rodrigo Vivi > Signed-off-by: José Roberto de Souza Reviewed-by: Rodrigo Vivi > --- >

Re: [Intel-gfx] [PATCH v3 4/6] drm/i915: Move SKL IPC WA to HAS_IPC()

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 11:10:13AM -0700, José Roberto de Souza wrote: > SKL has IPC but it should not be set according to the WA, so lets > just mark as it don't have it to simply the code and avoid > unnecessary MMIO writes at every call to intel_enable_ipc(). > > Cc: Rodrigo Vivi >

Re: [Intel-gfx] [PATCH v8 1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Alex Deucher
+ Harry, Leo This would definitely be useful. We ran into a lot of issues when we enabled >8 bpc support. On Tue, Sep 18, 2018 at 2:10 PM Radhakrishna Sripada wrote: > > At times 12bpc HDMI cannot be driven due to faulty cables, dongles > level shifters etc. To workaround them we may need to

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 12:31:54PM -0700, Manasi Navare wrote: > On Tue, Sep 18, 2018 at 10:12:24PM +0300, Ville Syrjälä wrote: > > On Tue, Sep 18, 2018 at 12:04:35PM -0700, Manasi Navare wrote: > > > Thanks Imre for your review comments. Please find the comments below: > > > > > > On Fri, Sep

Re: [Intel-gfx] [PATCH v3 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread Souza, Jose
On Tue, 2018-09-18 at 22:04 +0300, Ville Syrjälä wrote: > On Tue, Sep 18, 2018 at 11:10:10AM -0700, José Roberto de Souza > wrote: > > Instead of have the same code spread into 4 platforms lets share > > it. > > BXT do not have a PCH so here also handling this case by unseting > >

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [v3,1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v3,1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake URL : https://patchwork.freedesktop.org/series/49870/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4840 -> Patchwork_10217 = == Summary -

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-18 Thread Manasi Navare
On Tue, Sep 18, 2018 at 10:12:24PM +0300, Ville Syrjälä wrote: > On Tue, Sep 18, 2018 at 12:04:35PM -0700, Manasi Navare wrote: > > Thanks Imre for your review comments. Please find the comments below: > > > > On Fri, Sep 14, 2018 at 01:55:00PM +0300, Imre Deak wrote: > > > On Tue, Sep 11, 2018

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 12:04:35PM -0700, Manasi Navare wrote: > Thanks Imre for your review comments. Please find the comments below: > > On Fri, Sep 14, 2018 at 01:55:00PM +0300, Imre Deak wrote: > > On Tue, Sep 11, 2018 at 05:56:01PM -0700, Manasi Navare wrote: > > > On Icelake, a separate

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v8,1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v8,1/2] drm: Add connector property to limit max bpc URL : https://patchwork.freedesktop.org/series/49868/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4840 -> Patchwork_10216 = == Summary - SUCCESS == No regressions

Re: [Intel-gfx] [PATCH v3 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 11:10:10AM -0700, José Roberto de Souza wrote: > Instead of have the same code spread into 4 platforms lets share it. > BXT do not have a PCH so here also handling this case by unseting > RESET_PCH_HANDSHAKE_ENABLE. > > v2(Rodrigo): > - renamed to

Re: [Intel-gfx] [PATCH 1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()

2018-09-18 Thread Pandiyan, Dhinakaran
On Tue, 2018-09-18 at 08:51 -0700, Rodrigo Vivi wrote: > On Tue, Sep 18, 2018 at 12:20:05AM -0700, Dhinakaran Pandiyan wrote: > > Comment claims link needs to be retrained because the connected > > sink raised > > a long pulse to indicate link loss. If the sink did so, > > intel_dp_hotplug() would

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-18 Thread Manasi Navare
Thanks Imre for your review comments. Please find the comments below: On Fri, Sep 14, 2018 at 01:55:00PM +0300, Imre Deak wrote: > On Tue, Sep 11, 2018 at 05:56:01PM -0700, Manasi Navare wrote: > > On Icelake, a separate power well PG2 is created for > > VDSC engine used for eDP/MIPI DSI. This

Re: [Intel-gfx] [PATCH v8 1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 11:11:14AM -0700, Radhakrishna Sripada wrote: > At times 12bpc HDMI cannot be driven due to faulty cables, dongles > level shifters etc. To workaround them we may need to drive the output > at a lower bpc. Currently the user space does not have a way to limit > the bpc. The

Re: [Intel-gfx] [PATCH v8 2/2] drm/i915: Allow "max bpc" property to limit pipe_bpp

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 11:11:15AM -0700, Radhakrishna Sripada wrote: > Use the newly added "max bpc" connector property to limit pipe bpp. > > V3: Use drm_connector_state to access the "max bpc" property > V4: Initialize the drm property, add suuport to DP(Ville) > V5: Use the property in the

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v8,1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v8,1/2] drm: Add connector property to limit max bpc URL : https://patchwork.freedesktop.org/series/49868/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm: Add connector property to limit max bpc

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS (rev2)

2018-09-18 Thread Patchwork
== Series Details == Series: drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS (rev2) URL : https://patchwork.freedesktop.org/series/49816/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4839 -> Patchwork_10215 = == Summary - FAILURE ==

Re: [Intel-gfx] [PATCH 1/2] drm/i915/sdvo: Fix multi function encoder stuff

2018-09-18 Thread Ville Syrjälä
On Mon, Sep 17, 2018 at 08:34:36PM +0300, Ville Syrjälä wrote: > On Mon, Sep 17, 2018 at 10:16:05AM -0700, Rodrigo Vivi wrote: > > On Mon, Sep 17, 2018 at 06:15:03PM +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > SDVO encoders can have multiple different types of outputs

[Intel-gfx] [PATCH v3 4/6] drm/i915: Move SKL IPC WA to HAS_IPC()

2018-09-18 Thread José Roberto de Souza
SKL has IPC but it should not be set according to the WA, so lets just mark as it don't have it to simply the code and avoid unnecessary MMIO writes at every call to intel_enable_ipc(). Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/i915_pci.c | 2 ++

[Intel-gfx] [PATCH v3 3/6] drm/i915: Do not modifiy reserved bit in gens that do not have IPC

2018-09-18 Thread José Roberto de Souza
IPC was only added in SKL+(actually we don't even enable for SKL due WA) so without this change, driver was writing to a reserved bit. Also removing the uncessary dev_priv->ipc_enabled = false; as now gens without IPC will not have IPC enabled. v2(Rodrigo): - moved the new handling of WA #0477

[Intel-gfx] [PATCH v3 2/6] drm/i915: Unset reset pch handshake when PCH is not present in one place

2018-09-18 Thread José Roberto de Souza
Right now RESET_PCH_HANDSHAKE_ENABLE is enabled all the times inside of intel_power_domains_init_hw() and if PCH is NOP it is unsed in i915_gem_init_hw(). So making skl_pch_reset_handshake() handle both cases and calling it for the missing gens in intel_power_domains_init_hw(). Ivybridge have a

[Intel-gfx] [PATCH v3 5/6] drm/i915: Move IPC WA #1141 to init_ipc()

2018-09-18 Thread José Roberto de Souza
symmetric_memory do not change after initialization so lets just set ipc_enabled once for this WA. Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_pm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[Intel-gfx] [PATCH v3 6/6] drm/i915: Remove duplicated definition of intel_update_rawclk

2018-09-18 Thread José Roberto de Souza
A few line above we have another definition of intel_update_rawclk() keeping that one as the function is implemented in intel_cdclk.c. Reviewed-by: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git

[Intel-gfx] [PATCH v3 1/6] drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

2018-09-18 Thread José Roberto de Souza
Instead of have the same code spread into 4 platforms lets share it. BXT do not have a PCH so here also handling this case by unseting RESET_PCH_HANDSHAKE_ENABLE. v2(Rodrigo): - renamed to intel_pch_reset_handshake() - added comment about why BXT need the bit to be unset v3(Rodrigo and Ville): -

[Intel-gfx] [PATCH v8 2/2] drm/i915: Allow "max bpc" property to limit pipe_bpp

2018-09-18 Thread Radhakrishna Sripada
Use the newly added "max bpc" connector property to limit pipe bpp. V3: Use drm_connector_state to access the "max bpc" property V4: Initialize the drm property, add suuport to DP(Ville) V5: Use the property in the connector and fix CI failure(Ville) V6: Use the core function to attach max_bpc

[Intel-gfx] [PATCH v8 1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Radhakrishna Sripada
At times 12bpc HDMI cannot be driven due to faulty cables, dongles level shifters etc. To workaround them we may need to drive the output at a lower bpc. Currently the user space does not have a way to limit the bpc. The default bpc to be programmed is decided by the driver and is run against

Re: [Intel-gfx] [PATCH v3] drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 10:48:09AM -0700, José Roberto de Souza wrote: > All DRM_CLIENT capabilities are tied to KMS support, so returning > -EOPNOTSUPP when KMS is not supported. > > v2: returning -EOPNOTSUPP(same value as posix ENOTSUP and available > in uapi) instead of -ENOTSUPP > > v3:

[Intel-gfx] [PATCH v3] drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS

2018-09-18 Thread José Roberto de Souza
All DRM_CLIENT capabilities are tied to KMS support, so returning -EOPNOTSUPP when KMS is not supported. v2: returning -EOPNOTSUPP(same value as posix ENOTSUP and available in uapi) instead of -ENOTSUPP v3: adding comments about the feature requirement about capabilities Cc: Chris Wilson

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Check fb stride against plane max stride

2018-09-18 Thread Patchwork
== Series Details == Series: drm/i915: Check fb stride against plane max stride URL : https://patchwork.freedesktop.org/series/49844/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4837_full -> Patchwork_10213_full = == Summary - WARNING == Minor unknown changes coming

Re: [Intel-gfx] [PATCH] drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Souza, Jose
On Tue, 2018-09-18 at 16:10 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Smatch reports: > ../drivers/gpu/drm/i915/intel_sprite.c:1192 skl_plane_check_fb() > warn: was || intended here instead of &&? > > Obviously smatch is correct here since we're trying to check if we're > using

[Intel-gfx] [PATCH 2/2] i915: rename modifiers to follow the naming convention

2018-09-18 Thread Eric Engestrom
$ sed -i s/I915_FORMAT_MOD_/DRM_FORMAT_MOD_INTEL_/g $(git grep -l I915_FORMAT_MOD_) $ git checkout include/uapi/drm/drm_fourcc.h Signed-off-by: Eric Engestrom --- drivers/gpu/drm/i915/intel_atomic_plane.c | 12 +- drivers/gpu/drm/i915/intel_display.c | 128 +++---

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v7,1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v7,1/2] drm: Add connector property to limit max bpc URL : https://patchwork.freedesktop.org/series/49857/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4839 -> Patchwork_10214 = == Summary - SUCCESS == No regressions

[Intel-gfx] [PATCH] headers: Sync with drm-next

2018-09-18 Thread Ayan Kumar Halder
Generated using make headers_install from the drm-next tree - git://anongit.freedesktop.org/drm/drm branch - drm-next commit - 2dc7bad71cd310dc94d1c9907909324dd2b0618f The changes were as follows :- core: (drm.h, drm_fourcc.h, drm_mode.h) - Added client capabilities for ASPECT_RATIO and

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v7,1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v7,1/2] drm: Add connector property to limit max bpc URL : https://patchwork.freedesktop.org/series/49857/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm: Add connector property to limit max bpc +

Re: [Intel-gfx] [PATCH v6 1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Ville Syrjälä
On Mon, Sep 17, 2018 at 09:52:08PM -0700, Radhakrishna Sripada wrote: > At times 12bpc HDMI cannot be driven due to faulty cables, dongles > level shifters etc. To workaround them we may need to drive the output > at a lower bpc. Currently the user space does not have a way to limit > the bpc. The

[Intel-gfx] [PATCH v7 1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Radhakrishna Sripada
At times 12bpc HDMI cannot be driven due to faulty cables, dongles level shifters etc. To workaround them we may need to drive the output at a lower bpc. Currently the user space does not have a way to limit the bpc. The default bpc to be programmed is decided by the driver and is run against

[Intel-gfx] [PATCH v7 2/2] drm/i915: Allow "max bpc" property to limit pipe_bpp

2018-09-18 Thread Radhakrishna Sripada
Use the newly added "max bpc" connector property to limit pipe bpp. V3: Use drm_connector_state to access the "max bpc" property V4: Initialize the drm property, add suuport to DP(Ville) V5: Use the property in the connector and fix CI failure(Ville) V6: Use the core function to attach max_bpc

Re: [Intel-gfx] [RFC v5 2/8] drm: Add Plane Degamma properties

2018-09-18 Thread Alexandru-Cosmin Gheorghe
Hi, On Sun, Sep 16, 2018 at 01:45:25PM +0530, Uma Shankar wrote: > Add Plane Degamma as a blob property and plane degamma size as > a range property. > > v2: Rebase > > v3: Fixed Sean, Paul's review comments. Moved the property from > mode_config to drm_plane. Created a helper function to

[Intel-gfx] ✗ Fi.CI.IGT: failure for Per context dynamic (sub)slice power-gating (rev5)

2018-09-18 Thread Patchwork
== Series Details == Series: Per context dynamic (sub)slice power-gating (rev5) URL : https://patchwork.freedesktop.org/series/48194/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4836_full -> Patchwork_10212_full = == Summary - FAILURE == Serious unknown changes coming

Re: [Intel-gfx] [RFC v5 0/8] Add Plane Color Properties

2018-09-18 Thread Alexandru-Cosmin Gheorghe
On Sun, Sep 16, 2018 at 01:45:23PM +0530, Uma Shankar wrote: > This is how a typical display color hardware pipeline looks like: > +---+ > |RAM| > | +--++-++-+ | > | | FB 1 ||

Re: [Intel-gfx] [PULL] gvt-fixes for 4.19-rc5

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 03:33:49PM +0800, Zhenyu Wang wrote: > > Hi, > > Here's more gvt fixes for 4.19. Two more BXT fixes from Colin, > one srcu locking fix and one fix for GGTT clear when destroy vGPU. pulled, thanks. > > p.s, I'll start my vacation from tomorrow. Wang Zhi will cover for

Re: [Intel-gfx] [PATCH 2/5] drm/i915/dp: Restrict link retrain workaround to external monitors

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 11:33:24AM -0400, Lyude Paul wrote: > Did the patch this references get pushed? I saw it fly by and I thought we had > decided not to pull it in ops, I created the confusion. Sorry. What I decided that week was to not pull to drm-intel-fixes until Ville or Jani acking.

Re: [Intel-gfx] [PATCH 1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()

2018-09-18 Thread Rodrigo Vivi
On Tue, Sep 18, 2018 at 12:20:05AM -0700, Dhinakaran Pandiyan wrote: > Comment claims link needs to be retrained because the connected sink raised > a long pulse to indicate link loss. If the sink did so, > intel_dp_hotplug() would have handled link retraining. Looking at the > logs in Bugzilla

Re: [Intel-gfx] [PATCH 2/5] drm/i915/dp: Restrict link retrain workaround to external monitors

2018-09-18 Thread Lyude Paul
Did the patch this references get pushed? I saw it fly by and I thought we had decided not to pull it in On Tue, 2018-09-18 at 00:20 -0700, Dhinakaran Pandiyan wrote: > commit '3cf71bc9904d ("drm/i915: Re-apply "Perform link quality check, > unconditionally during long pulse"")' applies a work

Re: [Intel-gfx] [PATCH] drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Ville Syrjälä
On Tue, Sep 18, 2018 at 04:05:58PM +0100, Tvrtko Ursulin wrote: > > On 18/09/2018 14:10, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Smatch reports: > > ../drivers/gpu/drm/i915/intel_sprite.c:1192 skl_plane_check_fb() warn: was > > || intended here instead of &&? > > > > Obviously

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Check fb stride against plane max stride

2018-09-18 Thread Patchwork
== Series Details == Series: drm/i915: Check fb stride against plane max stride URL : https://patchwork.freedesktop.org/series/49844/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4837 -> Patchwork_10213 = == Summary - SUCCESS == No regressions found. External URL:

Re: [Intel-gfx] [PATCH] drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Tvrtko Ursulin
On 18/09/2018 14:10, Ville Syrjala wrote: From: Ville Syrjälä Smatch reports: ../drivers/gpu/drm/i915/intel_sprite.c:1192 skl_plane_check_fb() warn: was || intended here instead of &&? Obviously smatch is correct here since we're trying to check if we're using either of the ccs modifiers.

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Patchwork
== Series Details == Series: drm/i915: Fix logic fumble in rotation vs. ccs check URL : https://patchwork.freedesktop.org/series/49840/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4836_full -> Patchwork_10211_full = == Summary - WARNING == Minor unknown changes coming

[Intel-gfx] ✓ Fi.CI.BAT: success for Per context dynamic (sub)slice power-gating (rev5)

2018-09-18 Thread Patchwork
== Series Details == Series: Per context dynamic (sub)slice power-gating (rev5) URL : https://patchwork.freedesktop.org/series/48194/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4836 -> Patchwork_10212 = == Summary - SUCCESS == No regressions found. External URL:

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Per context dynamic (sub)slice power-gating (rev5)

2018-09-18 Thread Patchwork
== Series Details == Series: Per context dynamic (sub)slice power-gating (rev5) URL : https://patchwork.freedesktop.org/series/48194/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915/execlists: Move RPCS setup to context pin Okay! Commit: drm/i915: Record the sseu

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Per context dynamic (sub)slice power-gating (rev5)

2018-09-18 Thread Patchwork
== Series Details == Series: Per context dynamic (sub)slice power-gating (rev5) URL : https://patchwork.freedesktop.org/series/48194/ State : warning == Summary == $ dim checkpatch origin/drm-tip 1edac7cf7ca4 drm/i915/execlists: Move RPCS setup to context pin f72f696a198a drm/i915: Record the

[Intel-gfx] [PATCH] drm/i915: Check fb stride against plane max stride

2018-09-18 Thread Ville Syrjala
From: Ville Syrjälä commit 4e0b83a567e2 ("drm/i915: Extract per-platform plane->check() functions") removed the plane max stride check for sprite planes. I was going to add it back when introducing GTT remapping for the display, but after further thought it seems better to re-introduce it

[Intel-gfx] [PATCH v18 5/6] drm/i915: Expose RPCS (SSEU) configuration to userspace (Gen11 only)

2018-09-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We want to allow userspace to reconfigure the subslice configuration on a per context basis. This is required for the functional requirement of shutting down non-VME enabled sub-slices on Gen11 parts. To do so, we expose a context parameter to allow adjustment of the RPCS

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Patchwork
== Series Details == Series: drm/i915: Fix logic fumble in rotation vs. ccs check URL : https://patchwork.freedesktop.org/series/49840/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4836 -> Patchwork_10211 = == Summary - WARNING == Minor unknown changes coming with

[Intel-gfx] [PATCH i-g-t v15 2/2] tests/gem_ctx_sseu: Dynamic (sub)slice programming tests

2018-09-18 Thread Tvrtko Ursulin
From: Lionel Landwerlin Verify that the per-context dynamic SSEU uAPI works as expected. To achieve that, in the absence of a better mechamism, we read the value of PWR_CLK_STATE register, or use MI_SET_PREDICATE on platforms before Cannonlake. This register is written to by the GPU on context

[Intel-gfx] [PATCH] drm/i915: Fix logic fumble in rotation vs. ccs check

2018-09-18 Thread Ville Syrjala
From: Ville Syrjälä Smatch reports: ../drivers/gpu/drm/i915/intel_sprite.c:1192 skl_plane_check_fb() warn: was || intended here instead of &&? Obviously smatch is correct here since we're trying to check if we're using either of the ccs modifiers. Since we now have is_ccs_modifier() let's use

[Intel-gfx] [PATCH i-g-t v4 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Move a really small test that invalid context is rejected under the gem_ctx_exec umbrella. v2: * And actually fix the test so it does what it claims. And add more variety in the invalid context id's it tests with. (Chris Wilson) v3: * Rename the test as basic. *

Re: [Intel-gfx] [PATCH i-g-t v3 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-09-18 11:59:25) > From: Tvrtko Ursulin > > Move a really small test that invalid context is rejected under the > gem_ctx_exec umbrella. > > v2: > * And actually fix the test so it does what it claims. And add more >variety in the invalid context id's it tests

[Intel-gfx] [PATCH i-g-t v3 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Move a really small test that invalid context is rejected under the gem_ctx_exec umbrella. v2: * And actually fix the test so it does what it claims. And add more variety in the invalid context id's it tests with. (Chris Wilson) v3: * Rename the test as basic. *

Re: [Intel-gfx] [PATCH] drm/i915: Replace some PAGE_SHIFTs with I915_GTT_PAGE_SIZE

2018-09-18 Thread Chris Wilson
Quoting Ville Syrjala (2018-09-17 18:14:14) > From: Ville Syrjälä > > Clean up some cases where we're dealing with GTT pages instead of > system pages to use I915_GTT_PAGE_SIZE instead of PAGE_SHIT. So > just replace the the shifts with mul/div as appropriate. These > are the easy ones, the rest

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm: Use default dma_fence hooks where possible for null syncobj

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm: Use default dma_fence hooks where possible for null syncobj URL : https://patchwork.freedesktop.org/series/49834/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4836 -> Patchwork_10210 = == Summary - FAILURE ==

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-09-18 11:33:14) > > On 18/09/2018 11:03, Chris Wilson wrote: > > Quoting Chris Wilson (2018-09-18 11:02:09) > >> Quoting Tvrtko Ursulin (2018-09-18 10:59:11) > >>> > >>> On 18/09/2018 10:44, Chris Wilson wrote: > Quoting Tvrtko Ursulin (2018-09-18 10:38:44) >

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Tvrtko Ursulin
On 18/09/2018 11:03, Chris Wilson wrote: Quoting Chris Wilson (2018-09-18 11:02:09) Quoting Tvrtko Ursulin (2018-09-18 10:59:11) On 18/09/2018 10:44, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-09-18 10:38:44) Can I say it is testing the i915_execbuffer2_set_context_id as well by

[Intel-gfx] [PATCH 1/2] drm: Use default dma_fence hooks where possible for null syncobj

2018-09-18 Thread Chris Wilson
Both the .enable_signaling and .release of the null syncobj fence can be replaced by the default callbacks for a small reduction in code size. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_syncobj.c | 11 --- 1 file changed, 11 deletions(-) diff --git

[Intel-gfx] [PATCH 2/2] drm: Fix syncobj handing of schedule() returning 0

2018-09-18 Thread Chris Wilson
After schedule() returns 0, we must do one last check of COND to determine the reason for the wakeup with 0 jiffies remaining before reporting the timeout -- otherwise we may lose the signal due to scheduler delays. References: https://bugs.freedesktop.org/show_bug.cgi?id=106690 Signed-off-by:

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Chris Wilson
Quoting Chris Wilson (2018-09-18 11:02:09) > Quoting Tvrtko Ursulin (2018-09-18 10:59:11) > > > > On 18/09/2018 10:44, Chris Wilson wrote: > > > Quoting Tvrtko Ursulin (2018-09-18 10:38:44) > > >> Can I say it is testing the i915_execbuffer2_set_context_id as well by > > >> knowing underlying ABI

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-09-18 10:59:11) > > On 18/09/2018 10:44, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2018-09-18 10:38:44) > >> > >> On 17/09/2018 16:52, Chris Wilson wrote: > >>> Quoting Tvrtko Ursulin (2018-09-17 16:46:18) > From: Tvrtko Ursulin > > Move a really

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Tvrtko Ursulin
On 18/09/2018 10:44, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-09-18 10:38:44) On 17/09/2018 16:52, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-09-17 16:46:18) From: Tvrtko Ursulin Move a really small test that invalid context is rejected under the gem_ctx_exec umbrella. v2:

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-09-18 10:38:44) > > On 17/09/2018 16:52, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2018-09-17 16:46:18) > >> From: Tvrtko Ursulin > >> > >> Move a really small test that invalid context is rejected under the > >> gem_ctx_exec umbrella. > >> > >> v2: > >> *

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec

2018-09-18 Thread Tvrtko Ursulin
On 17/09/2018 16:52, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-09-17 16:46:18) From: Tvrtko Ursulin Move a really small test that invalid context is rejected under the gem_ctx_exec umbrella. v2: * And actually fix the test so it does what it claims. And add more variety in the

Re: [Intel-gfx] [PATCH v2] drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS

2018-09-18 Thread Chris Wilson
Quoting José Roberto de Souza (2018-09-17 22:22:44) > All DRM_CLIENT capabilities are tied to KMS support, so returning > -EOPNOTSUPP when KMS is not supported. > > v2: returning -EOPNOTSUPP(same value as posix ENOTSUP and available > in uapi) instead of -ENOTSUPP > > Cc: Chris Wilson >

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse() URL : https://patchwork.freedesktop.org/series/49827/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4835 -> Patchwork_10209 = == Summary - FAILURE ==

[Intel-gfx] [PULL] gvt-fixes for 4.19-rc5

2018-09-18 Thread Zhenyu Wang
Hi, Here's more gvt fixes for 4.19. Two more BXT fixes from Colin, one srcu locking fix and one fix for GGTT clear when destroy vGPU. p.s, I'll start my vacation from tomorrow. Wang Zhi will cover for gvt pull. Thanks -- The following changes since commit

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse() URL : https://patchwork.freedesktop.org/series/49827/ State : warning == Summary == $ dim checkpatch origin/drm-tip b03548d38052 drm/i915/dp: Fix link retraining comment

[Intel-gfx] [PATCH 1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()

2018-09-18 Thread Dhinakaran Pandiyan
Comment claims link needs to be retrained because the connected sink raised a long pulse to indicate link loss. If the sink did so, intel_dp_hotplug() would have handled link retraining. Looking at the logs in Bugzilla referenced in commit '3cf71bc9904d ("drm/i915: Re-apply Perform link quality

[Intel-gfx] [PATCH 5/5] drm/i915/dp: Move hdcp link check function into short pulse handler

2018-09-18 Thread Dhinakaran Pandiyan
This way all short pulse handlers except MST are in one place. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index

[Intel-gfx] [PATCH 3/5] drm/i915/dp: Remove intel_dp->detect_done flag

2018-09-18 Thread Dhinakaran Pandiyan
The intel_dp->detect_done flag is no more useful. Pull intel_dp_long_pulse() into the lone caller, Cc: Jani Nikula Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 63 +--- drivers/gpu/drm/i915/intel_drv.h | 1 -

[Intel-gfx] [PATCH 2/5] drm/i915/dp: Restrict link retrain workaround to external monitors

2018-09-18 Thread Dhinakaran Pandiyan
commit '3cf71bc9904d ("drm/i915: Re-apply "Perform link quality check, unconditionally during long pulse"")' applies a work around for monitors that don't signal link loss. Limit this only for external displays as eDP features like PSR when active will have the link turned off and the driver ends

[Intel-gfx] [PATCH 4/5] drm/i915/dp: Fix duplication of DEVICE_SERVICE_IRQ handling

2018-09-18 Thread Dhinakaran Pandiyan
There are two copies of the same code called from long and short pulse handlers. Signed-off-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp.c | 59 +++-- 1 file changed, 22 insertions(+), 37 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v6,1/2] drm: Add connector property to limit max bpc

2018-09-18 Thread Patchwork
== Series Details == Series: series starting with [v6,1/2] drm: Add connector property to limit max bpc URL : https://patchwork.freedesktop.org/series/49825/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4835_full -> Patchwork_10208_full = == Summary - WARNING == Minor