Re: [Intel-gfx] [PATCH igt] igt/gem_busy: Fix extended-bsd aliasing checks

2018-02-26 Thread Tvrtko Ursulin
On 24/02/2018 19:14, Chris Wilson wrote: Although we want to specify exactly which physical engine to run on, the busy ioctl can only return the I915_EXEC_RING identifier, i.e. the aliased I915_EXEC_BSD for vcs0/vcs1. Horrors. Signed-off-by: Chris Wilson --- tests/gem_busy.c | 7 --- 1

Re: [Intel-gfx] [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-26 Thread Jani Nikula
On Thu, 22 Feb 2018, Daniel Thompson wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- >> arch/arm/mach-s3c24xx/mach-rx

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] tests/perf_pmu: Handle CPU hotplug failures better

2018-02-26 Thread Petri Latvala
On Fri, Feb 23, 2018 at 02:20:59PM +, Tvrtko Ursulin wrote: > > On 23/02/2018 11:58, Petri Latvala wrote: > > We have IGT_HANG and IGT_HANG_WITHOUT_RESET so the users can opt > > in/out of some fatal behaviour already. I'm fine with auto-rebooting, > > even as the default, if users can opt out

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] tests/perf_pmu: Handle CPU hotplug failures better

2018-02-26 Thread Tomi Sarvela
On 02/26/2018 12:03 PM, Petri Latvala wrote: On Fri, Feb 23, 2018 at 02:20:59PM +, Tvrtko Ursulin wrote: On 23/02/2018 11:58, Petri Latvala wrote: We have IGT_HANG and IGT_HANG_WITHOUT_RESET so the users can opt in/out of some fatal behaviour already. I'm fine with auto-rebooting, even as

Re: [Intel-gfx] [PATCH v5 1/2] drm/i915: Move a bunch of workaround-related code to its own file

2018-02-26 Thread Jani Nikula
On Fri, 23 Feb 2018, Oscar Mateo wrote: > diff --git a/drivers/gpu/drm/i915/intel_workarounds.c > b/drivers/gpu/drm/i915/intel_workarounds.c > new file mode 100644 > index 000..bd23418 > --- /dev/null > +++ b/drivers/gpu/drm/i915/intel_workarounds.c > @@ -0,0 +1,684 @@ > +/* > + * SPDX-Licens

Re: [Intel-gfx] [PATCH v3 01/10] pwm: extend PWM framework with PWM modes

2018-02-26 Thread Claudiu Beznea
I'll rebase it on latest for-next in next version. Thank you, Claudiu Beznea On 24.02.2018 22:49, kbuild test robot wrote: > Hi Claudiu, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on pwm/for-next] > [also build test WARNING on v4.16-rc2 next-20180223

Re: [Intel-gfx] [igt-dev] [PATCH] [CI] kernel: Downgrade warning for unsafe parameters

2018-02-26 Thread Jani Nikula
On Tue, 20 Feb 2018, Chris Wilson wrote: > We make use of unsafe kernel parameters in igt, which generates a > warning and taints the kernel. The warning is unhelpful as we then need > to filter it out again, so kill it at source. Is your goal to upstream this or what? BR, Jani. > > Cc: Petri L

[Intel-gfx] [PATCH igt] igt/kms_force_connector_basic: Clear any previous connector override

2018-02-26 Thread Chris Wilson
When searching for a VGA connector to use to test overriding the connector status, we require the system to have a disconnected VGA connector, but if a previous test left an override inplace, that may not exist. Before we check whether the connector is attached to real HW, first reset the connector

Re: [Intel-gfx] [igt-dev] [PATCH] [CI] kernel: Downgrade warning for unsafe parameters

2018-02-26 Thread Chris Wilson
Quoting Jani Nikula (2018-02-26 10:42:40) > On Tue, 20 Feb 2018, Chris Wilson wrote: > > We make use of unsafe kernel parameters in igt, which generates a > > warning and taints the kernel. The warning is unhelpful as we then need > > to filter it out again, so kill it at source. > > Is your goal

Re: [Intel-gfx] [PATCH 08/10] drm: i915: Enable VDSC in Source

2018-02-26 Thread kbuild test robot
the system] url: https://github.com/0day-ci/linux/commits/Gaurav-K-Singh/Enabling-VDSC-in-i915-driver-for-GLK/20180226-114246 coccinelle warnings: (new ones prefixed by >>) >> drivers/gpu/drm/i915/intel_vdsc.c:828:2-3: Unneeded semicolon vim +828 drivers/gpu/drm/i915/intel_vd

Re: [Intel-gfx] [igt-dev] [PATCH] [CI] kernel: Downgrade warning for unsafe parameters

2018-02-26 Thread Jani Nikula
On Mon, 26 Feb 2018, Chris Wilson wrote: > Quoting Jani Nikula (2018-02-26 10:42:40) >> On Tue, 20 Feb 2018, Chris Wilson wrote: >> > We make use of unsafe kernel parameters in igt, which generates a >> > warning and taints the kernel. The warning is unhelpful as we then need >> > to filter it ou

Re: [Intel-gfx] [PATCH igt] igt/kms_force_connector_basic: Clear any previous connector override

2018-02-26 Thread Lofstedt, Marta
Reviewed-by: Marta Lofstedt > -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Monday, February 26, 2018 12:44 PM > To: intel-gfx@lists.freedesktop.org > Cc: igt-...@lists.freedesktop.org; Chris Wilson ; > Lofstedt, Marta > Subject: [PATCH igt] igt/kms_fo

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/kms_force_connector_basic: Clear any previous connector override

2018-02-26 Thread Maarten Lankhorst
Op 26-02-18 om 11:43 schreef Chris Wilson: > When searching for a VGA connector to use to test overriding the > connector status, we require the system to have a disconnected VGA > connector, but if a previous test left an override inplace, that may not > exist. Before we check whether the connecto

Re: [Intel-gfx] [PATCH 1/2] drm/i915/uc: Introduce intel_uc_suspend|resume

2018-02-26 Thread Michal Wajdeczko
On Mon, 26 Feb 2018 07:58:49 +0100, Sagar Arun Kamble wrote: On 2/23/2018 7:40 PM, Michal Wajdeczko wrote: We want to use higher level 'uc' functions as the main entry points to the GuC/HuC code to hide some details and keep code layered. Signed-off-by: Michal Wajdeczko Cc: Sagar Arun Ka

[Intel-gfx] [RFC] kernel/panic: Repeat the line and caller information at the end of the OOPS

2018-02-26 Thread Chris Wilson
For large oops dump, for example if ftrace is included, we can easily exceed the storage buffer and lose the most important bit of information: where the OOPS occurred. So repeat the location information just before the end marker. Signed-off-by: Chris Wilson Cc: Marta Lofstedt --- kernel/panic

Re: [Intel-gfx] [RFC] kernel/panic: Repeat the line and caller information at the end of the OOPS

2018-02-26 Thread Lofstedt, Marta
Seems like a good idea to me. +Mika > -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Monday, February 26, 2018 3:53 PM > To: intel-gfx@lists.freedesktop.org > Cc: Chris Wilson ; Lofstedt, Marta > > Subject: [RFC] kernel/panic: Repeat the line and caller

Re: [Intel-gfx] [RFC v3] drm/i915: Eliminate devid sprinkle

2018-02-26 Thread Jani Nikula
On Thu, 22 Feb 2018, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Introduce subplatform mask to eliminate throughout the code devid checking > sprinkle, mostly courtesy of IS_*_UL[TX] macros. > > Subplatform mask initialization is moved either to static tables (Ironlake > M) or runtime device

[Intel-gfx] [PATCH 2/2] HAX: Enable GuC submission for CI

2018-02-26 Thread Michał Winiarski
--- drivers/gpu/drm/i915/i915_params.h | 2 +- drivers/gpu/drm/i915/intel_uc.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index 430f5f9d0ff4..3deae1e22974 100644 --- a/drivers/gpu/drm/i915/i915_p

[Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Michał Winiarski
Since we're inhibiting context save of preempt context, we're no longer tracking the position of HEAD/TAIL. With GuC, we're adding a new breadcrumb for each preemption, which means that the HW will do more and more breadcrumb writes. Eventually the ring is filled, and we're submitting the preemptio

[Intel-gfx] ✗ Fi.CI.BAT: failure for kernel/panic: Repeat the line and caller information at the end of the OOPS

2018-02-26 Thread Patchwork
== Series Details == Series: kernel/panic: Repeat the line and caller information at the end of the OOPS URL : https://patchwork.freedesktop.org/series/38962/ State : failure == Summary == CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include

Re: [Intel-gfx] [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-26 Thread Claudiu Beznea
On 26.02.2018 11:57, Jani Nikula wrote: > On Thu, 22 Feb 2018, Daniel Thompson wrote: >> On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >>> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >>> were adapted to this change. >>> >>> Signed-off-by: Claudiu

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Michał Winiarski (2018-02-26 13:59:59) > Since we're inhibiting context save of preempt context, we're no longer > tracking the position of HEAD/TAIL. With GuC, we're adding a new > breadcrumb for each preemption, which means that the HW will do more and > more breadcrumb writes. Eventually

[Intel-gfx] [RFC] kernel/panic: Repeat the line and caller information at the end of the OOPS

2018-02-26 Thread Chris Wilson
For large oops dump, for example if ftrace is included, we can easily exceed the storage buffer and lose the most important bit of information: where the OOPS occurred. So repeat the location information just before the end marker. Signed-off-by: Chris Wilson Cc: Marta Lofstedt --- git add ftw -

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-26 14:28:36) > Quoting Michał Winiarski (2018-02-26 13:59:59) > > + for_each_engine(engine, dev_priv, id) { > struct intel_engine *ce = &client->owner->engine[id]; > > /* The preempt context must be pinned on each engine); >

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-26 14:28:36) > Quoting Michał Winiarski (2018-02-26 13:59:59) > > + for_each_engine(engine, dev_priv, id) { > struct intel_engine *ce = &client->owner->engine[id]; > > /* The preempt context must be pinned on each engine); >

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/guc: Fill preempt context once at init time URL : https://patchwork.freedesktop.org/series/38964/ State : success == Summary == Series 38964v1 series starting with [1/2] drm/i915/guc: Fill preempt context once at init time http

Re: [Intel-gfx] [PATCH] drm/i915: Tell vga_switcheroo whether runtime PM is used

2018-02-26 Thread Imre Deak
On Sun, Feb 25, 2018 at 12:42:30AM +0100, Lukas Wunner wrote: > DRM drivers need to tell vga_switcheroo whether they use runtime PM. > If they do use it, vga_switcheroo lets them autosuspend at their own > discretion. If on the other hand they do not use it, vga_switcheroo > allows the user to sus

Re: [Intel-gfx] [PATCH 7/8] drm: Check that the plane supports the request format+modifier combo

2018-02-26 Thread Ville Syrjälä
On Wed, Jan 10, 2018 at 02:04:57PM +0100, Daniel Vetter wrote: > On Fri, Dec 22, 2017 at 09:22:30PM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Currently we only check that the plane supports the pixel format of the > > fb we're about to feed to it. Extend it to check also the mod

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-26 14:38:20) > Quoting Chris Wilson (2018-02-26 14:28:36) > > Quoting Michał Winiarski (2018-02-26 13:59:59) > > > + for_each_engine(engine, dev_priv, id) { > > struct intel_engine *ce = &client->owner->engine[id]; > > > > /* The

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-26 14:28:36) > Quoting Michał Winiarski (2018-02-26 13:59:59) > > + if (id == RCS) { > > + cs = gen8_emit_ggtt_write_rcs(cs, > > GUC_PREEMPT_FINISHED, > > + > > intel_hws_preempt_done_address(e

[Intel-gfx] ✓ Fi.CI.BAT: success for kernel/panic: Repeat the line and caller information at the end of the OOPS (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: kernel/panic: Repeat the line and caller information at the end of the OOPS (rev2) URL : https://patchwork.freedesktop.org/series/38962/ State : success == Summary == Series 38962v2 kernel/panic: Repeat the line and caller information at the end of the OOPS https

Re: [Intel-gfx] [PATCH 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-26 14:28:36) > Quoting Michał Winiarski (2018-02-26 13:59:59) > > + for_each_engine(engine, dev_priv, id) { > struct intel_engine *ce = &client->owner->engine[id]; > > /* The preempt context must be pinned on each engine); >

[Intel-gfx] [PATCH] kernel: Downgrade warning for unsafe parameters

2018-02-26 Thread Chris Wilson
As using an unsafe module parameter is, by its very definition, an expected user action, emitting a warning is overkill. Nothing has yet gone wrong, and we add a taint flag for any future oops should something actually go wrong. So instead of having a user controllable pr_warn, downgrade it to a pr

[Intel-gfx] [PATCH igt v2] igt/gem_exec_schedule: Exercise "deep" preemption

2018-02-26 Thread Chris Wilson
In investigating the issue with having to force preemption within the executing ELSP[], we want to trigger preemption between all elements of that array. To that end, we issue a series of requests with different priorities to fill the in-flight ELSP[] and then demand preemption into the middle of t

Re: [Intel-gfx] [PATCH] kernel: Downgrade warning for unsafe parameters

2018-02-26 Thread Jani Nikula
On Mon, 26 Feb 2018, Chris Wilson wrote: > As using an unsafe module parameter is, by its very definition, an > expected user action, emitting a warning is overkill. Nothing has yet > gone wrong, and we add a taint flag for any future oops should > something actually go wrong. So instead of having

[Intel-gfx] ✓ Fi.CI.BAT: success for kernel: Downgrade warning for unsafe parameters (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: kernel: Downgrade warning for unsafe parameters (rev2) URL : https://patchwork.freedesktop.org/series/38614/ State : success == Summary == Series 38614v2 kernel: Downgrade warning for unsafe parameters https://patchwork.freedesktop.org/api/1.0/series/38614/revision

Re: [Intel-gfx] [RFC v3] drm/i915: Eliminate devid sprinkle

2018-02-26 Thread Chris Wilson
Quoting Jani Nikula (2018-02-26 14:00:37) > On Thu, 22 Feb 2018, Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > > > Introduce subplatform mask to eliminate throughout the code devid checking > > sprinkle, mostly courtesy of IS_*_UL[TX] macros. > > > > Subplatform mask initialization is moved

Re: [Intel-gfx] [PATCH] drm/i915: Tell vga_switcheroo whether runtime PM is used

2018-02-26 Thread Lukas Wunner
On Mon, Feb 26, 2018 at 04:41:09PM +0200, Imre Deak wrote: > On Sun, Feb 25, 2018 at 12:42:30AM +0100, Lukas Wunner wrote: > > DRM drivers need to tell vga_switcheroo whether they use runtime PM. > > If they do use it, vga_switcheroo lets them autosuspend at their own > > discretion. If on the oth

Re: [Intel-gfx] [RFC v3] drm/i915: Eliminate devid sprinkle

2018-02-26 Thread Jani Nikula
On Mon, 26 Feb 2018, Chris Wilson wrote: > Quoting Jani Nikula (2018-02-26 14:00:37) >> On Thu, 22 Feb 2018, Tvrtko Ursulin wrote: >> > From: Tvrtko Ursulin >> > >> > Introduce subplatform mask to eliminate throughout the code devid checking >> > sprinkle, mostly courtesy of IS_*_UL[TX] macros.

[Intel-gfx] [PATCH v2 1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Michał Winiarski
Since we're inhibiting context save of preempt context, we're no longer tracking the position of HEAD/TAIL. With GuC, we're adding a new breadcrumb for each preemption, which means that the HW will do more and more breadcrumb writes. Eventually the ring is filled, and we're submitting the preemptio

[Intel-gfx] [PATCH 2/2] HAX: Enable GuC submission for CI

2018-02-26 Thread Michał Winiarski
--- drivers/gpu/drm/i915/i915_params.h | 2 +- drivers/gpu/drm/i915/intel_uc.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index 430f5f9d0ff4..3deae1e22974 100644 --- a/drivers/gpu/drm/i915/i915_p

Re: [Intel-gfx] [PATCH v2] drm/i915/uc: Start preparing GuC/HuC for reset

2018-02-26 Thread Daniele Ceraolo Spurio
On 25/02/18 22:17, Sagar Arun Kamble wrote: On 2/23/2018 10:31 PM, Daniele Ceraolo Spurio wrote: On 23/02/18 06:04, Michal Wajdeczko wrote: Right after GPU reset there will be a small window of time during which some of GuC/HuC fields will still show state before reset. Let's start to fix

[Intel-gfx] [PATCH 3/5] drm/i915: Check hdcp key loadability

2018-02-26 Thread Ramalingam C
HDCP1.4 key can be loaded, only when Power well #1 is enabled and cdclk is enabled. Using the I915 power well infrastruture, above requirement is verified. This patch enables the hdcp initialization for HSW, BDW, and BXT. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 31 ++

[Intel-gfx] [PATCH 0/5] HDCP1.4 fixes

2018-02-26 Thread Ramalingam C
This series addresses the requriement of below HDCP compliance tests DP: 1A-06 and 1B-05 HDMI: 1A-04 and 1A-07a One of the patch uses the I915 power infra-structure for checking the power state of PW#1. Which enables the init path for all legacy platforms. And encoder specific msg

[Intel-gfx] [PATCH 2/5] drm/i915: read Vprime thrice incase of mismatch

2018-02-26 Thread Ramalingam C
In case of V prime mismatch, DP HDCP spec mandates the re-read of Vprime atleast twice. DP HDCP CTS Test: 1B-05 Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_hdcp.c b/dr

[Intel-gfx] [PATCH 1/5] drm/i915: Read HDCP R0 thrice in case of mismatch

2018-02-26 Thread Ramalingam C
As per DP spec when R0 mismatch is detected, HDCP source supported re-read the R0 atleast twice. And For HDMI and DP minimum wait required for the R0 availability is 100mSec. So this patch changes the wait time to 100mSec but retries twice with the time interval of 100mSec for each attempt. DP CT

[Intel-gfx] [PATCH 4/5] drm/i915: Poll hdcp register on sudden NACK

2018-02-26 Thread Ramalingam C
In a connected state, If a HDMI HDCP sink is responded with NACK for HDCP I2C register access, then HDMI HDCP spec mandates the polling of any HDCP space registers for accessibility, minimum once in 2Secs atleast for 4Secs. Just to make it simple, this is generically implemented for both HDMI and

[Intel-gfx] [PATCH 5/5] drm/i915: Move hdcp msg detection into shim

2018-02-26 Thread Ramalingam C
DP and HDMI HDCP specifications are varying with respect to detecting the R0 and ksv_fifo availability. DP will produce CP_IRQ and set a bit for indicating the R0 and FIFO_READY status. Whereas HDMI will set a bit for FIFO_READY but there is no bit indication for R0 ready. And also polling of REA

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915/guc: Fill preempt context once at init time URL : https://patchwork.freedesktop.org/series/38975/ State : success == Summary == Series 38975v1 series starting with [v2,1/2] drm/i915/guc: Fill preempt context once at init tim

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Read HDCP R0 thrice in case of mismatch

2018-02-26 Thread Sean Paul
On Mon, Feb 26, 2018 at 10:42:35PM +0530, Ramalingam C wrote: > As per DP spec when R0 mismatch is detected, HDCP source supported > re-read the R0 atleast twice. > > And For HDMI and DP minimum wait required for the R0 availability is > 100mSec. So this patch changes the wait time to 100mSec but

Re: [Intel-gfx] [PATCH 2/5] drm/i915: read Vprime thrice incase of mismatch

2018-02-26 Thread Sean Paul
On Mon, Feb 26, 2018 at 10:42:36PM +0530, Ramalingam C wrote: > In case of V prime mismatch, DP HDCP spec mandates the re-read of > Vprime atleast twice. > > DP HDCP CTS Test: 1B-05 > > Signed-off-by: Ramalingam C > --- > drivers/gpu/drm/i915/intel_hdcp.c | 10 +- > 1 file changed, 9 in

[Intel-gfx] ✓ Fi.CI.BAT: success for HDCP1.4 fixes

2018-02-26 Thread Patchwork
== Series Details == Series: HDCP1.4 fixes URL : https://patchwork.freedesktop.org/series/38978/ State : success == Summary == Series 38978v1 HDCP1.4 fixes https://patchwork.freedesktop.org/api/1.0/series/38978/revisions/1/mbox/ Known issues: Test debugfs_test: Subgroup read_all

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Check hdcp key loadability

2018-02-26 Thread Sean Paul
On Mon, Feb 26, 2018 at 10:42:37PM +0530, Ramalingam C wrote: > HDCP1.4 key can be loaded, only when Power well #1 is enabled and cdclk > is enabled. Using the I915 power well infrastruture, above requirement > is verified. > > This patch enables the hdcp initialization for HSW, BDW, and BXT. > >

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Poll hdcp register on sudden NACK

2018-02-26 Thread Sean Paul
On Mon, Feb 26, 2018 at 10:42:38PM +0530, Ramalingam C wrote: > In a connected state, If a HDMI HDCP sink is responded with NACK for > HDCP I2C register access, then HDMI HDCP spec mandates the polling > of any HDCP space registers for accessibility, minimum once in 2Secs > atleast for 4Secs. > I

[Intel-gfx] [PATCH v15 3/6] drm/i915/debugfs: add rcs topology entry

2018-02-26 Thread Lionel Landwerlin
While the end goal is to make this information available to userspace through a new ioctl, there is no reason we can't display it in a human readable fashion through debugfs. slice0: 3 subslice(s) (0x7): subslice0: 8 EUs (0xff) subslice1: 8 EUs (0xff) subslice2: 8 EUs (0xff

[Intel-gfx] [PATCH v15 4/6] drm/i915: add rcs topology to error state

2018-02-26 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin Acked-by: Chris Wilso

[Intel-gfx] [PATCH v15 1/6] drm/i915: store all subslice masks

2018-02-26 Thread Lionel Landwerlin
Up to now, subslice mask was assumed to be uniform across slices. But starting with Cannonlake, slices can be asymmetric (for example slice0 has different number of subslices as slice1+). This change stores all subslices masks for all slices rather than having a single mask that applies to all slic

[Intel-gfx] [PATCH v15 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-02-26 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reuse it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin Acked-by: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ drivers/gpu/drm/i915/intel_de

[Intel-gfx] [PATCH v15 6/6] drm/i915: expose rcs topology through query uAPI

2018-02-26 Thread Lionel Landwerlin
With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the Gen's GPU topology that doesn't aggregate numbers. This is essential for monitoring parts o

[Intel-gfx] [PATCH v15 0/6] drm/i915: expose RCS topology to userspace

2018-02-26 Thread Lionel Landwerlin
Hi all, Here is another update to fix a couple of bugs in the first patch : - HSW was reporting the eu masks incorrectly - debugfs was reporting incorrect subslice numbers (and failing igt@pm_sseu), the igt has been update to handle kernels before and after this series. Cheers, Lionel

[Intel-gfx] [PATCH v15 5/6] drm/i915: add query uAPI

2018-02-26 Thread Lionel Landwerlin
There are a number of information that are readable from hardware registers and that we would like to make accessible to userspace. One particular example is the topology of the execution units (how are execution units grouped in subslices and slices and also which ones have been fused off for die

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Move hdcp msg detection into shim

2018-02-26 Thread Sean Paul
On Mon, Feb 26, 2018 at 10:42:39PM +0530, Ramalingam C wrote: > DP and HDMI HDCP specifications are varying with respect to > detecting the R0 and ksv_fifo availability. > > DP will produce CP_IRQ and set a bit for indicating the R0 and > FIFO_READY status. I'm not sure what the benefit is? Keepi

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: expose RCS topology to userspace

2018-02-26 Thread Patchwork
== Series Details == Series: drm/i915: expose RCS topology to userspace URL : https://patchwork.freedesktop.org/series/38981/ State : failure == Summary == CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/guc: Fill preempt context once at init time URL : https://patchwork.freedesktop.org/series/38964/ State : success == Summary == Possible new issues: Test drv_missed_irq: pass -> SKIP (shard-apl)

[Intel-gfx] ✓ Fi.CI.IGT: success for kernel/panic: Repeat the line and caller information at the end of the OOPS (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: kernel/panic: Repeat the line and caller information at the end of the OOPS (rev2) URL : https://patchwork.freedesktop.org/series/38962/ State : success == Summary == Possible new issues: Test pm_rc6_residency: Subgroup rc6-accuracy:

[Intel-gfx] [PATCH v16 1/6] drm/i915: store all subslice masks

2018-02-26 Thread Lionel Landwerlin
Up to now, subslice mask was assumed to be uniform across slices. But starting with Cannonlake, slices can be asymmetric (for example slice0 has different number of subslices as slice1+). This change stores all subslices masks for all slices rather than having a single mask that applies to all slic

Re: [Intel-gfx] [PATCH 1/1] drm/i915/skl+: Add and enable DP AUX CH mutex

2018-02-26 Thread Souza, Jose
On Fri, 2018-02-23 at 19:12 -0800, Pandiyan, Dhinakaran wrote: > On Fri, 2018-02-23 at 17:51 -0800, José Roberto de Souza wrote: > > When PSR/PSR2/GTC is enabled hardware can do AUX transactions by it > > self, so lets use the mutex register that is available in gen9+ to > > avoid concurrent access

Re: [Intel-gfx] [PATCH 1/1] drm/i915/skl+: Add and enable DP AUX CH mutex

2018-02-26 Thread Ville Syrjälä
On Fri, Feb 23, 2018 at 05:51:40PM -0800, José Roberto de Souza wrote: > When PSR/PSR2/GTC is enabled hardware can do AUX transactions by it > self, so lets use the mutex register that is available in gen9+ to > avoid concurrent access by hardware and driver. > Older gen handling will be done separ

[Intel-gfx] [PATCH] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Chris Wilson
From: Michał Winiarski Since we're inhibiting context save of preempt context, we're no longer tracking the position of HEAD/TAIL. With GuC, we're adding a new breadcrumb for each preemption, which means that the HW will do more and more breadcrumb writes. Eventually the ring is filled, and we're

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: expose RCS topology to userspace (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: drm/i915: expose RCS topology to userspace (rev2) URL : https://patchwork.freedesktop.org/series/38981/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915: store all subslice masks Okay! Commit: drm/i915/debugfs: reuse max slice/subslices a

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: expose RCS topology to userspace (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: drm/i915: expose RCS topology to userspace (rev2) URL : https://patchwork.freedesktop.org/series/38981/ State : success == Summary == Series 38981v2 drm/i915: expose RCS topology to userspace https://patchwork.freedesktop.org/api/1.0/series/38981/revisions/2/mbox/

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with drm/i915/guc: Fill preempt context once at init time (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with drm/i915/guc: Fill preempt context once at init time (rev2) URL : https://patchwork.freedesktop.org/series/38975/ State : success == Summary == Series 38975v2 series starting with drm/i915/guc: Fill preempt context once at init time https://p

[Intel-gfx] ✓ Fi.CI.IGT: success for kernel: Downgrade warning for unsafe parameters (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: kernel: Downgrade warning for unsafe parameters (rev2) URL : https://patchwork.freedesktop.org/series/38614/ State : success == Summary == Possible new issues: Test kms_vblank: Subgroup pipe-a-query-busy: pass -> SKIP (shar

Re: [Intel-gfx] [PATCH 1/1] drm/i915/skl+: Add and enable DP AUX CH mutex

2018-02-26 Thread Pandiyan, Dhinakaran
On Mon, 2018-02-26 at 18:31 +, Souza, Jose wrote: > On Fri, 2018-02-23 at 19:12 -0800, Pandiyan, Dhinakaran wrote: > > On Fri, 2018-02-23 at 17:51 -0800, José Roberto de Souza wrote: > > > When PSR/PSR2/GTC is enabled hardware can do AUX transactions by it > > > self, so lets use the mutex r

Re: [Intel-gfx] [PATCH v2] drm/i915/uc: Start preparing GuC/HuC for reset

2018-02-26 Thread Chris Wilson
Quoting Daniele Ceraolo Spurio (2018-02-26 16:57:11) > > > On 25/02/18 22:17, Sagar Arun Kamble wrote: > > > > > > On 2/23/2018 10:31 PM, Daniele Ceraolo Spurio wrote: > >> > >> > >> On 23/02/18 06:04, Michal Wajdeczko wrote: > >>> Right after GPU reset there will be a small window of time duri

[Intel-gfx] [PATCH 4/4] drm/i915: Also disable SAGV on fifo underrun.

2018-02-26 Thread Rodrigo Vivi
On underrun situations and SAGV enabled we can face hard hangs. So let's reuse the FBC workaround and expand that to SAGV on the hope that it is not already too late for that. Cc: Paulo Zanoni Cc: Ashar Shaikh Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_drv.h | 2 ++

[Intel-gfx] [PATCH 2/4] drm/i915: Introduce SAGV mutex.

2018-02-26 Thread Rodrigo Vivi
Now that we are spreading the places we can manipulate sagv status let's protect it. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h | 15 +-- drivers/gpu/drm/i915/intel_pm.c | 41 ++--- 2 files changed, 35 insertions(+), 21 deletio

[Intel-gfx] [PATCH 1/4] drm/i915: Don't propagate SAGV errnos in vain.

2018-02-26 Thread Rodrigo Vivi
We never used this information on upper level. So let's just print the error and make the functions void. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_drv.h | 4 ++-- drivers/gpu/drm/i915/intel_pm.c | 26 +++--- 2 files changed, 13 insertions(+), 17 deletions(

[Intel-gfx] [PATCH 3/4] drm/i915: Move underrun work from fbc to fifo_underrun.

2018-02-26 Thread Rodrigo Vivi
This underrun work can be useful to disable more pm function that can cause trouble on underrun situations, like SAGV. Cc: Paulo Zanoni Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h| 7 +++- drivers/gpu/drm/i915/i915_irq.c| 2 ++ drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH igt] igt/gem_softpin: Only expect EINVAL for color-overlaps for user objects

2018-02-26 Thread Chris Wilson
Quoting Chris Wilson (2018-02-24 18:54:04) > If the specified object can not fit into the GTT due to overlap with a > neighbouring pinned object (not part of the execobjects[]), we expect to > fail with ENOSPC (as we cannot evict, rather than EINVAL for the user > error in a badly constructed execo

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Move underrun work from fbc to fifo_underrun.

2018-02-26 Thread Chris Wilson
Quoting Rodrigo Vivi (2018-02-26 20:53:08) > -void intel_fbc_handle_fifo_underrun_irq(struct drm_i915_private *dev_priv) > -{ > - struct intel_fbc *fbc = &dev_priv->fbc; > - > - if (!fbc_supported(dev_priv)) > - return; > - > - /* There's no guarantee that underrun_d

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Introduce SAGV mutex.

2018-02-26 Thread Chris Wilson
Quoting Rodrigo Vivi (2018-02-26 20:53:07) > Now that we are spreading the places we can manipulate > sagv status let's protect it. This needs a lot more information about the protection you need. "sagv status" is too similar to sagv_status, so it seems like you are simply talking about protecting

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/gem_softpin: Only expect EINVAL for color-overlaps for user objects

2018-02-26 Thread Ville Syrjälä
On Mon, Feb 26, 2018 at 08:54:47PM +, Chris Wilson wrote: > Quoting Chris Wilson (2018-02-24 18:54:04) > > If the specified object can not fit into the GTT due to overlap with a > > neighbouring pinned object (not part of the execobjects[]), we expect to > > fail with ENOSPC (as we cannot evict

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/4] drm/i915: Don't propagate SAGV errnos in vain.

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Don't propagate SAGV errnos in vain. URL : https://patchwork.freedesktop.org/series/38987/ State : failure == Summary == Applying: drm/i915: Don't propagate SAGV errnos in vain. error: sha1 information is lacking or useless (d

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/gem_softpin: Only expect EINVAL for color-overlaps for user objects

2018-02-26 Thread Chris Wilson
Quoting Ville Syrjälä (2018-02-26 21:22:03) > On Mon, Feb 26, 2018 at 08:54:47PM +, Chris Wilson wrote: > > Quoting Chris Wilson (2018-02-24 18:54:04) > > > If the specified object can not fit into the GTT due to overlap with a > > > neighbouring pinned object (not part of the execobjects[]), w

[Intel-gfx] [PATCH v4 1/1] drm/i915/skl+: Add and enable DP AUX CH mutex

2018-02-26 Thread José Roberto de Souza
When PSR/PSR2/GTC is enabled hardware can do AUX transactions by it self, so lets use the mutex register that is available in gen9+ to avoid concurrent access by hardware and driver. Older gen handling will be done separated. Reference: https://01.org/sites/default/files/documentation/intel-gfx-p

[Intel-gfx] [PATCH v4 0/1] drm/i915: Add and enable DP AUX CH mutex

2018-02-26 Thread José Roberto de Souza
v2 - removed the PSR dependency, now getting lock all the times when available - renamed functions to avoid nested calls - moved register bits right after the DP_AUX_CH_MUTEX() - removed 'drm/i915: keep AUX powered while PSR is enabled' Dhinakaran Pandiyan will sent a better and final version v3 -

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v2,1/2] drm/i915/guc: Fill preempt context once at init time

2018-02-26 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915/guc: Fill preempt context once at init time URL : https://patchwork.freedesktop.org/series/38975/ State : success == Summary == Possible new issues: Test drv_missed_irq: pass -> SKIP (shard-a

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Introduce SAGV mutex.

2018-02-26 Thread Rodrigo Vivi
On Mon, Feb 26, 2018 at 09:21:19PM +, Chris Wilson wrote: > Quoting Rodrigo Vivi (2018-02-26 20:53:07) > > Now that we are spreading the places we can manipulate > > sagv status let's protect it. > > This needs a lot more information about the protection you need. "sagv > status" is too simila

[Intel-gfx] ✓ Fi.CI.IGT: success for HDCP1.4 fixes

2018-02-26 Thread Patchwork
== Series Details == Series: HDCP1.4 fixes URL : https://patchwork.freedesktop.org/series/38978/ State : success == Summary == Known issues: Test kms_cursor_legacy: Subgroup short-flip-after-cursor-atomic-transitions-varying-size: pass -> SKIP (shard-s

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Move underrun work from fbc to fifo_underrun.

2018-02-26 Thread Rodrigo Vivi
On Mon, Feb 26, 2018 at 09:00:50PM +, Chris Wilson wrote: > Quoting Rodrigo Vivi (2018-02-26 20:53:08) > > -void intel_fbc_handle_fifo_underrun_irq(struct drm_i915_private *dev_priv) > > -{ > > - struct intel_fbc *fbc = &dev_priv->fbc; > > - > > - if (!fbc_supported(dev_priv)) > > -

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Add and enable DP AUX CH mutex (rev3)

2018-02-26 Thread Patchwork
== Series Details == Series: drm/i915: Add and enable DP AUX CH mutex (rev3) URL : https://patchwork.freedesktop.org/series/38655/ State : success == Summary == Series 38655v3 drm/i915: Add and enable DP AUX CH mutex https://patchwork.freedesktop.org/api/1.0/series/38655/revisions/3/mbox/ ---

Re: [Intel-gfx] [PATCH v4 1/1] drm/i915/skl+: Add and enable DP AUX CH mutex

2018-02-26 Thread Rodrigo Vivi
On Mon, Feb 26, 2018 at 01:48:37PM -0800, José Roberto de Souza wrote: > When PSR/PSR2/GTC is enabled hardware can do AUX transactions by it > self, so lets use the mutex register that is available in gen9+ to > avoid concurrent access by hardware and driver. > Older gen handling will be done separ

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: expose RCS topology to userspace (rev2)

2018-02-26 Thread Patchwork
== Series Details == Series: drm/i915: expose RCS topology to userspace (rev2) URL : https://patchwork.freedesktop.org/series/38981/ State : success == Summary == Possible new issues: Test pm_sseu: Subgroup full-enable: pass -> FAIL (shard-apl) K

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Move hdcp msg detection into shim

2018-02-26 Thread Chris Wilson
Quoting Ramalingam C (2018-02-26 17:12:39) > DP and HDMI HDCP specifications are varying with respect to > detecting the R0 and ksv_fifo availability. > > DP will produce CP_IRQ and set a bit for indicating the R0 and > FIFO_READY status. > > Whereas HDMI will set a bit for FIFO_READY but there i

[Intel-gfx] [PATCH v6 1/2] drm/i915: Move a bunch of workaround-related code to its own file

2018-02-26 Thread Oscar Mateo
This has grown to be a sizable amount of code, so move it to its own file before we try to refactor anything. For the moment, we are leaving behind the WA BB code and the WAs that get applied (incorrectly) in init_clock_gating, but we will deal with it later. v2: Use intel_ prefix for code that de

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

2018-02-26 Thread Oscar Mateo
On 2/25/2018 9:22 PM, Sagar Arun Kamble wrote: On 2/23/2018 4:35 AM, Oscar Mateo wrote: + * We might have detected that some engines are fused off after we initialized + * the forcewake domains. Prune them, to make sure they only reference existing + * engines. + */ +void intel_uncore

Re: [Intel-gfx] [PATCH 5/5] drm/i915/psr: Display WA #1130: bxt, glk

2018-02-26 Thread Rodrigo Vivi
On Fri, Feb 23, 2018 at 04:40:38PM -0800, Pandiyan, Dhinakaran wrote: > On Tue, 2018-02-13 at 15:26 -0800, Rodrigo Vivi wrote: > > Host/Render modifications do not trigger PSR exit > > or Wireless quick capture exit correctly. > > > > I don't get this workaround either. The wording indicates fron

Re: [Intel-gfx] [PATCH 3/5] drm/i915/psr: Display WA 0884 applied broadly for more HW tracking.

2018-02-26 Thread Rodrigo Vivi
On Fri, Feb 23, 2018 at 04:24:35PM -0800, Pandiyan, Dhinakaran wrote: > On Tue, 2018-02-13 at 15:26 -0800, Rodrigo Vivi wrote: > > WA 0884:bxt:all,cnl:*:A - "When FBC is enabled with eDP PSR, > > the CPU host modify writes may not get updated on the Display > > as expected. > > WA: Write 0x

Re: [Intel-gfx] [PATCH 2/5] drm/i915/psr: Kill scheduled work for Core platforms.

2018-02-26 Thread Rodrigo Vivi
On Fri, Feb 23, 2018 at 03:46:09PM -0800, Pandiyan, Dhinakaran wrote: > On Tue, 2018-02-13 at 15:26 -0800, Rodrigo Vivi wrote: > > It is a fact that scheduled work is now improved. > > > > But it is also a fact that on core platforms that shouldn't > > be needed. We only need to actually wait on V

  1   2   >