[Intel-gfx] [PATCH] drm/i915: Fix skl plane scaling for planner YUV buffers

2019-05-08 Thread Shashank Sharma
From: Lukas Rusak Plane scaling for YUV planar formats should be max 2 times. Cc: Maarten Lankhorst Cc: Juha-pekka Heikkila Cc: Shashank Sharma Signed-off-by: Lukas Rusak --- drivers/gpu/drm/i915/intel_display.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --gi

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD (rev4)

2019-05-08 Thread Patchwork
== Series Details == Series: series starting with [01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD (rev4) URL : https://patchwork.freedesktop.org/series/60403/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6063 -> Patchwork_12985

[Intel-gfx] [PATCH i-g-t 03/21] trace.pl: Virtual engine support

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Add virtual/queue timelines to both stdout and HTML output. A new timeline is created for each queue/virtual engine to display associated requests in queued and runnable states. Once requests are submitted to a real engine for executing they show up on the physical engine ti

[Intel-gfx] [PATCH i-g-t 01/21] scripts/trace.pl: Fix after intel_engine_notify removal

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin After the removal of engine global seqnos and the corresponding intel_engine_notify tracepoints the script needs to be adjusted to cope with the new state of things. To keep working it switches over using the dma_fence:dma_fence_signaled: tracepoint and keeps one extra inter

[Intel-gfx] [PATCH i-g-t 09/21] gem_wsim: Submit fence support

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Add support for submit fences in a way similar to how normal input fences are handled. Eg: 1.RCS.500-1000.0.0 1.VCS1.3000.s-1.0 1.VCS2.3000.s-2.0 Submit fences are signalled when the originating request enters the submission backend. Signed-off-by: Tvrtko Ursulin --

[Intel-gfx] [PATCH i-g-t 06/21] gem_wsim: Use IGT uapi headers

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We are moving towards bumping the uAPI headers more often instead of using too much local struct/ioctl/param definitions since the latter are more challenging for rebase and maintenance. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 12 1 file chan

[Intel-gfx] [PATCH i-g-t 00/21] Media scalability tooling

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Mostly work to support Virtual Engine in trace.pl and gem_wsim complementing the set of IGTs written by Chris. Also includes trace.pl update for after engine seqno removal and engine discovery tests. Altogether it allows benchamrking and tracing the simulated media workload

[Intel-gfx] [PATCH i-g-t 02/21] headers: bump

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Catch up to drm-tip headers. Signed-off-by: Tvrtko Ursulin --- include/drm-uapi/amdgpu_drm.h | 52 +++- include/drm-uapi/drm.h | 36 ++ include/drm-uapi/drm_mode.h | 4 +- include/drm-uapi/i915_drm.h | 209 +++- in

[Intel-gfx] [PATCH i-g-t 04/21] trace.pl: Virtual engine preemption support

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Use the 'completed?' tracepoint field to detect more robustly when a request has been preempted and remove it from the engine database if so. Otherwise the script can hit a scenario where the same global seqno will be mentioned multiple times (on an engine seqno) which abort

[Intel-gfx] [PATCH i-g-t 17/21] gem_wsim: Infinite batch support

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For simulating frame split workloads it is useful to express a batch which ends at the same time as the parallel submission on the respective bonded engine. For this we add support for infinite batch durations and the batch terminate command ('T'). Syntax looks like this:

[Intel-gfx] [PATCH i-g-t 21/21] tests/i915_query: Engine discovery tests

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Test the new engine discovery query. Signed-off-by: Tvrtko Ursulin --- tests/i915/i915_query.c | 247 1 file changed, 247 insertions(+) diff --git a/tests/i915/i915_query.c b/tests/i915/i915_query.c index 7d0c0e3a061c..ecbec3ae141d

[Intel-gfx] [PATCH i-g-t 15/21] gem_wsim: Engine bond command

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Engine bonds are an i915 uAPI applicable to load balanced contexts with engine map. They allow expression rules of engine selection between two contexts when submissions are also tied with submit fences. Please refer to the README for a more detailed description. Signed-off

[Intel-gfx] [PATCH i-g-t 14/21] gem_wsim: Engine map load balance command

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A new workload command for enabling a load balanced context map (aka Virtual Engine). Example usage: B.1 This turns on load balancing for context one, assuming it has already been configured with an engine map. Only DEFAULT engine specifier can be used with load balanced

[Intel-gfx] [PATCH i-g-t 12/21] gem_wsim: Save some lines by changing to implicit NULL checking

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We can improve the parsing loop readability a bit more by avoiding some line breaks caused by explicit NULL checks. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff

[Intel-gfx] [PATCH i-g-t 11/21] gem_wsim: Engine map support

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Support new i915 uAPI for configuring contexts with engine maps. Please refer to the README file for more detailed explanation. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 212 ++--- benchmarks/wsim/README | 17 +++- 2 f

[Intel-gfx] [PATCH i-g-t 18/21] gem_wsim: Command line switch for specifying low slice count workloads

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A new command line switch ('-s') is added which toggles the low slice count mode for workloads following on the command line. This enables easy benchmarking of the effect of running the existing media workloads in parallel against another client. For example: ./gem_wsim -

[Intel-gfx] [PATCH i-g-t 13/21] gem_wsim: Compact int command parsing with a macro

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Parsing an integer workload descriptor field is a common pattern which we can extract to a helper macro and by doing so further improve the readability of the main parsing loop. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 80 ++

[Intel-gfx] [PATCH i-g-t 10/21] gem_wsim: Extract str to engine lookup

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 5245692df6eb..f654decb24cc 100644 --- a/benchmarks/gem_wsim.c

[Intel-gfx] [PATCH i-g-t 08/21] gem_wsim: More wsim_err

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A few more opportunities to compact the code by using the error logging helper. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 54 --- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/benchmarks/gem_wsim.c b

[Intel-gfx] [PATCH i-g-t 07/21] gem_wsim: Factor out common error handling

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin There is a repeated pattern with error handling which can be moved to a macro to for better readability in the command parsing loop. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 244 +++--- 1 file changed, 88 insertions(+),

[Intel-gfx] [PATCH i-g-t 16/21] gem_wsim: Some more example workloads

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A few additional workloads useful for experimenting with scheduling. Signed-off-by: Tvrtko Ursulin --- benchmarks/wsim/frame-split-60fps.wsim | 16 benchmarks/wsim/high-composited-game.wsim | 11 +++ benchmarks/wsim/media-1080p-player.wsim

[Intel-gfx] [PATCH i-g-t 19/21] gem_wsim: Per context SSEU control

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A new workload command ('S') is added which allows per context slice (re-)configuration. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 69 +++--- benchmarks/wsim/README | 23 +- 2 files changed, 80 insertions(+),

[Intel-gfx] [PATCH i-g-t 05/21] wsim/media-bench: i915 balancing

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Support i915 virtual engine from gem_wsim (-b i915) and media-bench.pl Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 281 ++--- scripts/media-bench.pl | 9 +- 2 files changed, 244 insertions(+), 46 deletions(-) diff --git

[Intel-gfx] [PATCH i-g-t 20/21] gem_wsim: Allow RCS virtual engine with SSEU control

2019-05-08 Thread Tvrtko Ursulin
From: Tvrtko Ursulin To allow exercising the SSEU configuration in combination with Virtual Engine, allow RCS to be specified in the engine map and use appropriate index based addressing when applying SSEU configuration to it. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 51 ++

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 01/21] scripts/trace.pl: Fix after intel_engine_notify removal

2019-05-08 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-05-08 13:10:38) > From: Tvrtko Ursulin > > After the removal of engine global seqnos and the corresponding > intel_engine_notify tracepoints the script needs to be adjusted to cope > with the new state of things. > > To keep working it switches over using the dma_fen

Re: [Intel-gfx] [PATCH] drm/i915: Reboot CI if forcewake fails

2019-05-08 Thread Mika Kuoppala
Chris Wilson writes: > If the HW fail to ack a change in forcewake status, the machine is as > good as dead -- it may recover, but in reality it missed the mmio > updates and is now in a very inconsistent state. If it happens, we can't > trust the CI results (or at least the fails may be genuine

Re: [Intel-gfx] [PATCH 09/16] mmc: sdhci-xenon: use new match_string() helper/macro

2019-05-08 Thread Dan Carpenter
On Wed, May 08, 2019 at 02:28:35PM +0300, Alexandru Ardelean wrote: > -static const char * const phy_types[] = { > - "emmc 5.0 phy", > - "emmc 5.1 phy" > -}; > - > enum xenon_phy_type_enum { > EMMC_5_0_PHY, > EMMC_5_1_PHY, > NR_PHY_TYPES There is no need for NR_PHY_TYPES

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 16/21] gem_wsim: Some more example workloads

2019-05-08 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-05-08 13:10:53) > From: Tvrtko Ursulin > > A few additional workloads useful for experimenting with scheduling. > > Signed-off-by: Tvrtko Ursulin Are the extra modes & .wsim supported by scripts/media-bench.pl? i.e. can I just run media-bench.pl and have it exercis

Re: [Intel-gfx] [PATCH] drm/i915: Reboot CI if forcewake fails

2019-05-08 Thread Chris Wilson
Quoting Mika Kuoppala (2019-05-08 13:18:06) > Chris Wilson writes: > > > If the HW fail to ack a change in forcewake status, the machine is as > > good as dead -- it may recover, but in reality it missed the mmio > > updates and is now in a very inconsistent state. If it happens, we can't > > tru

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Reboot CI if forcewake fails

2019-05-08 Thread Patchwork
== Series Details == Series: drm/i915: Reboot CI if forcewake fails URL : https://patchwork.freedesktop.org/series/60412/ State : success == Summary == CI Bug Log - changes from CI_DRM_6063 -> Patchwork_12986 Summary --- **SUCCESS**

Re: [Intel-gfx] [PATCH 01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD

2019-05-08 Thread Mika Kuoppala
Chris Wilson writes: > After realising we need to sample RING_START to detect context switches > from preemption events that do not allow for the seqno to advance, we > can also realise that the seqno itself is just a distance along the ring > and so can be replaced by sampling RING_HEAD. > > Sig

Re: [Intel-gfx] [PATCH 01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD

2019-05-08 Thread Chris Wilson
Quoting Mika Kuoppala (2019-05-08 13:30:46) > Chris Wilson writes: > > > After realising we need to sample RING_START to detect context switches > > from preemption events that do not allow for the seqno to advance, we > > can also realise that the seqno itself is just a distance along the ring >

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Fix skl plane scaling for planner YUV buffers

2019-05-08 Thread Patchwork
== Series Details == Series: drm/i915: Fix skl plane scaling for planner YUV buffers URL : https://patchwork.freedesktop.org/series/60414/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Fix skl plane scaling for planner YUV buffers -O:drivers

Re: [Intel-gfx] [PATCH] drm/i915: Reboot CI if forcewake fails

2019-05-08 Thread Chris Wilson
Quoting Mika Kuoppala (2019-05-08 13:18:06) > Chris Wilson writes: > > > If the HW fail to ack a change in forcewake status, the machine is as > > good as dead -- it may recover, but in reality it missed the mmio > > updates and is now in a very inconsistent state. If it happens, we can't > > tru

Re: [Intel-gfx] [PATCH v3 4/4] drm/i915/icl: Add Multi-segmented gamma support

2019-05-08 Thread Sharma, Shashank
On 5/7/2019 7:57 PM, Ville Syrjälä wrote: On Tue, May 07, 2019 at 07:26:44PM +0530, Shashank Sharma wrote: ICL introduces a new gamma correction mode in display engine, called multi-segmented-gamma mode. This mode allows users to program the darker region of the gamma curve with sueprfine precis

Re: [Intel-gfx] [PATCH 03/16] lib, treewide: add new match_string() helper/macro

2019-05-08 Thread Andy Shevchenko
On Wed, May 08, 2019 at 02:28:29PM +0300, Alexandru Ardelean wrote: > This change re-introduces `match_string()` as a macro that uses > ARRAY_SIZE() to compute the size of the array. > The macro is added in all the places that do > `match_string(_a, ARRAY_SIZE(_a), s)`, since the change is pretty >

Re: [Intel-gfx] [PATCH 03/16] lib, treewide: add new match_string() helper/macro

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 04:11:28PM +0300, Andy Shevchenko wrote: > On Wed, May 08, 2019 at 02:28:29PM +0300, Alexandru Ardelean wrote: > > This change re-introduces `match_string()` as a macro that uses > > ARRAY_SIZE() to compute the size of the array. > > The macro is added in all the places that

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix skl plane scaling for planner YUV buffers

2019-05-08 Thread Patchwork
== Series Details == Series: drm/i915: Fix skl plane scaling for planner YUV buffers URL : https://patchwork.freedesktop.org/series/60414/ State : success == Summary == CI Bug Log - changes from CI_DRM_6063 -> Patchwork_12987 Summary --

Re: [Intel-gfx] [PATCH v3 1/4] drm/i915: Change gamma/degamma_lut_size data type to u32

2019-05-08 Thread Shankar, Uma
>-Original Message- >From: Sharma, Shashank >Sent: Tuesday, May 7, 2019 7:27 PM >To: intel-gfx@lists.freedesktop.org >Cc: Sharma, Shashank ; Ville Syrjälä >; Maarten Lankhorst >; Shankar, Uma >Subject: [PATCH v3 1/4] drm/i915: Change gamma/degamma_lut_size data type to >u32 > >Currently,

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 16/21] gem_wsim: Some more example workloads

2019-05-08 Thread Tvrtko Ursulin
On 08/05/2019 13:27, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-05-08 13:10:53) From: Tvrtko Ursulin A few additional workloads useful for experimenting with scheduling. Signed-off-by: Tvrtko Ursulin Are the extra modes & .wsim supported by scripts/media-bench.pl? i.e. can I just ru

Re: [Intel-gfx] [PATCH] drm/i915: Fix skl plane scaling for planner YUV buffers

2019-05-08 Thread Ville Syrjälä
On Wed, May 08, 2019 at 05:34:37PM +0530, Shashank Sharma wrote: > From: Lukas Rusak > > Plane scaling for YUV planar formats should be max 2 times. Nope. Spec says it should be < 2.0 on pre-glk, and < 3.0 on glk+. > > Cc: Maarten Lankhorst > Cc: Juha-pekka Heikkila > Cc: Shashank Sharma >

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 16/21] gem_wsim: Some more example workloads

2019-05-08 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-05-08 14:50:41) > > On 08/05/2019 13:27, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2019-05-08 13:10:53) > >> From: Tvrtko Ursulin > >> > >> A few additional workloads useful for experimenting with scheduling. > >> > >> Signed-off-by: Tvrtko Ursulin > > > > Are

Re: [Intel-gfx] [PATCH 01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD

2019-05-08 Thread Mika Kuoppala
Chris Wilson writes: > Quoting Mika Kuoppala (2019-05-08 13:30:46) >> Chris Wilson writes: >> >> > After realising we need to sample RING_START to detect context switches >> > from preemption events that do not allow for the seqno to advance, we >> > can also realise that the seqno itself is ju

Re: [Intel-gfx] [PATCH 01/40] drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD

2019-05-08 Thread Chris Wilson
Quoting Mika Kuoppala (2019-05-08 15:00:11) > Chris Wilson writes: > > > Quoting Mika Kuoppala (2019-05-08 13:30:46) > >> Chris Wilson writes: > >> > >> > After realising we need to sample RING_START to detect context switches > >> > from preemption events that do not allow for the seqno to adv

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 16/21] gem_wsim: Some more example workloads

2019-05-08 Thread Tvrtko Ursulin
On 08/05/2019 14:56, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-05-08 14:50:41) On 08/05/2019 13:27, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-05-08 13:10:53) From: Tvrtko Ursulin A few additional workloads useful for experimenting with scheduling. Signed-off-by: Tvrtko Ursul

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Reboot CI if forcewake fails

2019-05-08 Thread Patchwork
== Series Details == Series: drm/i915: Reboot CI if forcewake fails URL : https://patchwork.freedesktop.org/series/60412/ State : success == Summary == CI Bug Log - changes from CI_DRM_6063_full -> Patchwork_12986_full Summary --- **

[Intel-gfx] [PATCH v4 04/11] drm: Convert connector_helper_funcs->atomic_check to accept drm_atomic_state

2019-05-08 Thread Sean Paul
From: Sean Paul Everyone who implements connector_helper_funcs->atomic_check reaches into the connector state to get the atomic state. Instead of continuing this pattern, change the callback signature to just give atomic state and let the driver determine what it does and does not need from it.

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Fix skl plane scaling for planner YUV buffers

2019-05-08 Thread Patchwork
== Series Details == Series: drm/i915: Fix skl plane scaling for planner YUV buffers URL : https://patchwork.freedesktop.org/series/60414/ State : success == Summary == CI Bug Log - changes from CI_DRM_6063_full -> Patchwork_12987_full Summ

Re: [Intel-gfx] [PATCH v6 2/6] drm: Add a VSC structure for handling Pixel Encoding/Colorimetry Formats

2019-05-08 Thread Ville Syrjälä
On Wed, May 08, 2019 at 11:17:53AM +0300, Gwan-gyeong Mun wrote: > SDP VSC Header and Data Block follow DP 1.4a spec, section 2.2.5.7.5, > chapter "VSC SDP Payload for Pixel Encoding/Colorimetry Format". > > Signed-off-by: Gwan-gyeong Mun > Reviewed-by: Maarten Lankhorst > --- > include/drm/drm

Re: [Intel-gfx] [PATCH v6 3/6] drm/i915/dp: Program VSC Header and DB for Pixel Encoding/Colorimetry Format

2019-05-08 Thread Ville Syrjälä
On Wed, May 08, 2019 at 11:17:54AM +0300, Gwan-gyeong Mun wrote: > Function intel_pixel_encoding_setup_vsc handles vsc header and data block > setup for pixel encoding / colorimetry format. > > Setup VSC header and data block in function intel_pixel_encoding_setup_vsc > for pixel encoding / colori

Re: [Intel-gfx] [PATCH v6 5/6] drm/i915/dp: Change a link bandwidth computation for DP

2019-05-08 Thread Ville Syrjälä
On Wed, May 08, 2019 at 11:17:56AM +0300, Gwan-gyeong Mun wrote: > Data M/N calculations were assumed a bpp as RGB format. But when we are > using YCbCr 4:2:0 output format on DP, we should change bpp calculations > as YCbCr 4:2:0 format. The pipe_bpp value was assumed RGB format, > therefore, it w

[Intel-gfx] [v9 03/13] drm: Parse HDR metadata info from EDID

2019-05-08 Thread Uma Shankar
HDR metadata block is introduced in CEA-861.3 spec. Parsing the same to get the panel's HDR metadata. v2: Rebase and added Ville's POC changes to the patch. v3: No Change v4: Addressed Shashank's review comments v5: Addressed Shashank's comment and added his RB. v6: Addressed Jonas Karlman rev

[Intel-gfx] [v9 02/13] drm: Add reference counting on HDR metadata blob

2019-05-08 Thread Uma Shankar
From: Jonas Karlman This adds reference count for HDR metadata blob, handled as part of duplicate and destroy connector state functions. Signed-off-by: Jonas Karlman Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_state_helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --gi

[Intel-gfx] [v9 01/13] drm: Add HDR source metadata property

2019-05-08 Thread Uma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. It also implements get() and set() functions for HDR output metadata property.The blob data is received from userspace and saved in connector state, the same is retu

[Intel-gfx] [v9 06/13] drm/i915: Write HDR infoframe and send to panel

2019-05-08 Thread Uma Shankar
Enable writing of HDR metadata infoframe to panel. The data will be provid by usersapace compositors, based on blending policies and passsed to driver through a blob property. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments v5: Rebase. Added infoframe calculation

[Intel-gfx] [v9 12/13] video/hdmi: Add Unpack function for DRM infoframe

2019-05-08 Thread Uma Shankar
Added unpack function for DRM infoframe for dynamic range and mastering infoframe readout. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 54 include/linux/hdmi.h | 1 + 2 files changed, 55 insertions(+) d

[Intel-gfx] [v9 13/13] drm/i915: Add state readout for DRM infoframe

2019-05-08 Thread Uma Shankar
Added state readout for DRM infoframe and enabled state validation for DRM infoframe. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_ddi.c | 4 drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_hdmi.c| 4 3 files changed, 9 insertions(+) diff --

[Intel-gfx] [v9 10/13] drm/i915: Set Infoframe for non modeset case for HDR

2019-05-08 Thread Uma Shankar
HDR metadata requires a infoframe to be set. Due to fastset, full modeset is not performed hence adding it to update_pipe to handle that. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c | 13 + drivers/gpu/drm/i915/intel_hdmi.c | 7

[Intel-gfx] [v9 08/13] drm/i915: Enable infoframes on GLK+ for HDR

2019-05-08 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. v2: Addressed Shashank's review comment. v3: Addressed Shashank's review comment. v4: Added Shashank's RB. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Shashank Sh

[Intel-gfx] [v9 11/13] drm/i915: Added DRM Infoframe handling for BYT/CHT

2019-05-08 Thread Uma Shankar
BYT/CHT doesn't support DRM Infoframe. This caused a WARN_ON due to a missing CASE while executing intel_hdmi_infoframes_enabled function. This patch fixes the same. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [v9 07/13] drm: Add HLG EOTF

2019-05-08 Thread Uma Shankar
From: Ville Syrjälä ADD HLG EOTF to the list of EOTF transfer functions supported. Hybrid Log-Gamma (HLG) is a high dynamic range (HDR) standard. HLG defines a nonlinear transfer function in which the lower half of the signal values use a gamma curve and the upper half of the signal values use a

[Intel-gfx] [v9 09/13] drm/i915:Enabled Modeset when HDR Infoframe changes

2019-05-08 Thread Uma Shankar
This patch enables modeset whenever HDR metadata needs to be updated to sink. v2: Addressed Shashank's review comments. v3: Added Shashank's RB. v4: Addressed Ville's review comments. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i9

[Intel-gfx] [v9 04/13] drm: Enable HDR infoframe support

2019-05-08 Thread Uma Shankar
Enable Dynamic Range and Mastering Infoframe for HDR content, which is defined in CEA 861.3 spec. The metadata will be computed based on blending policy in userspace compositors and passed as a connector property blob to driver. The same will be sent as infoframe to panel which support HDR. Added

[Intel-gfx] [v9 05/13] drm/i915: Attach HDR metadata property to connector

2019-05-08 Thread Uma Shankar
Attach HDR metadata property to connector object. v2: Rebase v3: Updated the property name as per updated name while creating hdr metadata property Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Intel-gfx] [v9 00/13] Add HDR Metadata Parsing and handling in DRM layer

2019-05-08 Thread Uma Shankar
This patch series enables HDR support in drm. It basically defines HDR metadata structures, property to pass content (after blending) metadata from user space compositors to driver. Dynamic Range and Mastering infoframe creation and sending. ToDo: 1. We need to get the color framework in place fo

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add HDR Metadata Parsing and handling in DRM layer (rev9)

2019-05-08 Thread Patchwork
== Series Details == Series: Add HDR Metadata Parsing and handling in DRM layer (rev9) URL : https://patchwork.freedesktop.org/series/25091/ State : warning == Summary == $ dim checkpatch origin/drm-tip b14249ae3b1a drm: Add HDR source metadata property -:70: CHECK:PARENTHESIS_ALIGNMENT: Align

[Intel-gfx] ✓ Fi.CI.BAT: success for Add HDR Metadata Parsing and handling in DRM layer (rev9)

2019-05-08 Thread Patchwork
== Series Details == Series: Add HDR Metadata Parsing and handling in DRM layer (rev9) URL : https://patchwork.freedesktop.org/series/25091/ State : success == Summary == CI Bug Log - changes from CI_DRM_6065 -> Patchwork_12988 Summary

[Intel-gfx] [PATCH v4 3/4] drm/i915: Rename ivb_load_lut_10_max

2019-05-08 Thread Shashank Sharma
This patch renames function ivb_load_lut_10_max to ivb_load_lut_ext_max. V3: Added Vill'es r-b. Cc: Uma Shankar Suggested-by: Ville Syrjala Reviewed-by: Ville Syrjala Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color.c | 14 +++--- 1 file changed, 7 insertions(+),

[Intel-gfx] [PATCH v4 4/4] drm/i915/icl: Add Multi-segmented gamma support

2019-05-08 Thread Shashank Sharma
ICL introduces a new gamma correction mode in display engine, called multi-segmented-gamma mode. This mode allows users to program the darker region of the gamma curve with sueprfine precision. An example use case for this is HDR curves (like PQ ST-2084). If we plot a gamma correction curve from v

[Intel-gfx] [PATCH v4 2/4] drm/i915/icl: Add register definitions for Multi Segmented gamma

2019-05-08 Thread Shashank Sharma
From: Uma Shankar Add macros to define multi segmented gamma registers V2: Addressed Ville's comments: Add gen-lable before bit definition Addressed Jani's comment - Use REG_GENMASK() and REG_BIT() V3: Addressed Ville's comments: - Put comments at the end of line. - C

[Intel-gfx] [PATCH v4 1/4] drm/i915: Change gamma/degamma_lut_size data type to u32

2019-05-08 Thread Shashank Sharma
Currently, data type of gamma_lut_size & degamma_lut_size elements in intel_device_info is u16, which means it can accommodate maximum 64k values. In case of ICL multisegmented gamma, the size of gamma LUT is 256K. This patch changes the data type of both of these elements to u32. Cc: Ville Syrjä

[Intel-gfx] [PATCH v4 0/4] Enable Multi-segmented-gamma for ICL

2019-05-08 Thread Shashank Sharma
This patch series enables programming of Multi-segmented-gamma palette for ICL. Shashank Sharma (3): drm/i915: Change gamma/degamma_lut_size data type to u32 drm/i915: Rename ivb_load_lut_10_max drm/i915/icl: Add Multi-segmented gamma support Uma Shankar (1): drm/i915/icl: Add register de

Re: [Intel-gfx] [PATCH v3 4/4] drm/i915/icl: Add Multi-segmented gamma support

2019-05-08 Thread Sharma, Shashank
We (Me and Uma) confirmed the ICL register programming sequence, by dumping the registers. The correct sequence should be: ilk_lut_12p4_udw ilk_lut_12p4_ldw We passed maximum value LUT (1.0) and saw only blue output, if programmed in opposite sequence. Programming in above mentioned sequen

[Intel-gfx] ✓ Fi.CI.BAT: success for Enable Multi-segmented-gamma for ICL (rev3)

2019-05-08 Thread Patchwork
== Series Details == Series: Enable Multi-segmented-gamma for ICL (rev3) URL : https://patchwork.freedesktop.org/series/60126/ State : success == Summary == CI Bug Log - changes from CI_DRM_6065 -> Patchwork_12989 Summary --- **SUCCE

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915: Make sandybridge_pcode_read() deal with the second data register

2019-05-08 Thread Sripada, Radhakrishna
On Fri, 2019-05-03 at 22:08 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > The pcode mailbox has two data registers. So far we've only ever used > the one, but that's about to change. Expose the second data register > to > the callers of sandybridge_pcode_read(). > > Signed-off-by: Ville

[Intel-gfx] [PULL] drm-misc-next-fixes

2019-05-08 Thread Sean Paul
Hi Da.*, So last week when I said we were ready for merge window... I lied. Lots of stuff to sneak in this week including 6 patches that came from -misc-next. Fortunately they _just_ missed the feature freeze so I was able to tag and merge them here. Most of what is here is panfrost fixes, which i

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: Make sure we have enough memory bandwidth on ICL

2019-05-08 Thread Sripada, Radhakrishna
On Fri, 2019-05-03 at 22:08 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > ICL has so many planes that it can easily exceed the maximum > effective memory bandwidth of the system. We must therefore check > that we don't exceed that limit. > > The algorithm is very magic number heavy and l

[Intel-gfx] ✓ Fi.CI.IGT: success for Add HDR Metadata Parsing and handling in DRM layer (rev9)

2019-05-08 Thread Patchwork
== Series Details == Series: Add HDR Metadata Parsing and handling in DRM layer (rev9) URL : https://patchwork.freedesktop.org/series/25091/ State : success == Summary == CI Bug Log - changes from CI_DRM_6065_full -> Patchwork_12988_full Su

[Intel-gfx] ✗ Fi.CI.IGT: failure for Enable Multi-segmented-gamma for ICL (rev3)

2019-05-08 Thread Patchwork
== Series Details == Series: Enable Multi-segmented-gamma for ICL (rev3) URL : https://patchwork.freedesktop.org/series/60126/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6065_full -> Patchwork_12989_full Summary ---

Re: [Intel-gfx] [PATCH v2 3/7] lib/hexdump.c: Optionally suppress lines of repeated bytes

2019-05-08 Thread Randy Dunlap
On 5/8/19 12:01 AM, Alastair D'Silva wrote: > From: Alastair D'Silva > > Some buffers may only be partially filled with useful data, while the rest > is padded (typically with 0x00 or 0xff). > > This patch introduces a flag to allow the supression of lines of repeated > bytes, which are replaced

[Intel-gfx] [PATCH v2 00/11] drm/i915: Add support for asynchronous display power disabling

2019-05-08 Thread Imre Deak
This patchset is v2 of [1]. The main change is the rework of patch 1 based on Chris' feedback. Cc: Ville Syrjala Cc: Chris Wilson Cc: Rodrigo Vivi Cc: José Roberto de Souza [1] https://patchwork.freedesktop.org/series/60242/ Imre Deak (11): drm/i915: Add support for tracking wakerefs w/o p

[Intel-gfx] [PATCH v2 03/11] drm/i915: Verify power domains state during suspend in all cases

2019-05-08 Thread Imre Deak
There is no reason why we couldn't verify the power domains state during suspend in all cases, so do that. I overlooked this when originally adding the check. Cc: Chris Wilson Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_runtime_pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[Intel-gfx] [PATCH v2 02/11] drm/i915: Force printing wakeref tacking during pm_cleanup

2019-05-08 Thread Imre Deak
Make sure we print and drop the wakeref tracking info during pm_cleanup even if there are wakeref holders (either raw-wakeref or wakelock holders). Dropping the wakeref tracking means that a late put on the ref will WARN since the wakeref will be unknown, but that is rightly so, since the put is la

[Intel-gfx] [PATCH v2 01/11] drm/i915: Add support for tracking wakerefs w/o power-on guarantee

2019-05-08 Thread Imre Deak
It's useful to track runtime PM refs that don't guarantee a device power-on state to the rest of the driver. One such case is holding a reference that will be put asynchronously, during which normal users without their own reference shouldn't access the HW. A follow-up patch will add support for di

[Intel-gfx] [PATCH v2 10/11] drm/i915: Avoid taking the PPS lock for non-eDP/VLV/CHV

2019-05-08 Thread Imre Deak
On ICL we have to make sure that we enable the AUX power domain in a controlled way (corresponding to the port's actual TypeC mode). Since the PPS lock - which takes an AUX power ref - is only needed on eDP on all platforms and eDP/DP on VLV/CHV avoid taking it in all other cases. v2: - Clarify co

[Intel-gfx] [PATCH v2 08/11] drm/i915: Remove the unneeded AUX power ref from intel_dp_hpd_pulse()

2019-05-08 Thread Imre Deak
The power get/put was added in commit 1c767b339b3938b19076ffdc9d70aa1e4235a45b Author: Imre Deak Date: Mon Aug 18 14:42:42 2014 +0300 drm/i915: take display port power domain in DP HPD handle to account for the HW access in ibx_digital_port_connected(). This latter call was in turn remove

[Intel-gfx] [PATCH v2 05/11] drm/i915: Disable power asynchronously during DP AUX transfers

2019-05-08 Thread Imre Deak
In a follow-up patch we will restrict holding the reference on the AUX power domain to the AUX transfer function. To avoid the unnecessary on-off-on power togglings drop the reference asynchronously. There is no reason we couldn't do this in general and also put the reference asynchronously in pps

[Intel-gfx] [PATCH v2 11/11] drm/i915: Assert that TypeC ports are not used for eDP

2019-05-08 Thread Imre Deak
Add an assert that we don't use TypeC ports for eDP. That may in theory be possible on TypeC legacy ports, but I'm not sure if that's a practical scenario, so let's deal with that only if there's a use case. Adding support for that wouldn't be too difficult, since TypeC mode switching is not possib

[Intel-gfx] [PATCH v2 06/11] drm/i915: WARN for eDP encoders in intel_dp_detect_dpcd()

2019-05-08 Thread Imre Deak
We are not calling this function for eDP, so add an early assert about this for clarity. Signed-off-by: Imre Deak --- 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 v2 09/11] drm/i915: Replace use of PLLS power domain with DISPLAY_CORE domain

2019-05-08 Thread Imre Deak
There isn't a separate power domain specific to PLLs. When programming them we require the same power domain to be enabled which is needed when accessing other display core parts (not specific to any pipe/port/transcoder). This corresponds to the DISPLAY_CORE domain added previously in this patchse

[Intel-gfx] [PATCH v2 04/11] drm/i915: Add support for asynchronous display power disabling

2019-05-08 Thread Imre Deak
By disabling a power domain asynchronously we can restrict holding a reference on that power domain to the actual code sequence that requires the power to be on for the HW access it's doing, by also avoiding unneeded on-off-on togglings of the power domain (since the disabling happens with a delay)

[Intel-gfx] [PATCH v2 07/11] drm/i915: Remove the unneeded AUX power ref from intel_dp_detect()

2019-05-08 Thread Imre Deak
We don't need the AUX power for the whole duration of the detect, only when we're doing AUX transfers. The AUX transfer function takes its own reference on the AUX power domain already. The two places during detect which access display core registers (not specific to a pipe/port/transcoder) only ne

<    1   2