Re: [Intel-gfx] [SKL-DMC-BUGFIX 5/5] drm/i915/skl: Removed csr firmware load in resume path

2015-08-04 Thread Sunil Kamath
On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: As csr firmware is taking care of loading the firmware, so no need for driver to load again. Cc: Daniel Vetter daniel.vet...@intel.com Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil Kamath

[Intel-gfx] [PATCH v2] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-04 Thread Danilo Cesar Lemes de Paula
Describing arguments at top of a struct definition works fine for small/medium size structs, but it definitely doesn't work well for struct with a huge list of elements. Keeping the arguments list inside the struct body makes it easier to maintain the documentation. ie: /** * struct my_struct -

Re: [Intel-gfx] [PATCH] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-04 Thread Daniel Vetter
On Fri, Jul 31, 2015 at 06:06:45PM -0300, Danilo Cesar Lemes de Paula wrote: Describing arguments at top of a struct definition works fine for small/medium size structs, but it definitely doesn't work well for struct with a huge list of elements. Keeping the arguments list inside the struct

Re: [Intel-gfx] [PATCH 1/2 v2] drm/i915: Allow parsing of variable size child device entries from VBT

2015-08-04 Thread David Weinehall
VBT version 196 increased the size of common_child_dev_config. The parser code assumed that the size of this structure would not change. The modified code now copies the amount needed based on the VBT version, and emits a debug message if the VBT version is unknown (too new); since the struct

Re: [Intel-gfx] [PATCH] tools/null_state/gen9: Send atleast one valid component in VF state

2015-08-04 Thread Mika Kuoppala
Arun Siluvery arun.siluv...@linux.intel.com writes: A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled. Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Arun Siluvery

Re: [Intel-gfx] [PATCH 4/4] drm/atomic-helpers: Make encoder picking more robust

2015-08-04 Thread Ander Conselvan De Oliveira
For the series: Reviewed-by: Ander Conselvan de Oliveira conselv...@gmail.com On Mon, 2015-08-03 at 17:24 +0200, Daniel Vetter wrote: We've had a few issues with atomic where subtle bugs in the encoder picking logic lead to accidental self-stealing of the encoder, resulting in a NULL

Re: [Intel-gfx] [PATCH v1 2/2] drm/i915:gen9: Add disable gather at set shader w/a

2015-08-04 Thread Siluvery, Arun
On 04/08/2015 00:21, Ben Widawsky wrote: On Mon, Aug 03, 2015 at 08:24:57PM +0100, Arun Siluvery wrote: This WA is implemented in init_context as well as WA batch init. There are also some dependent bits need to be set in other registers for this to be complete. Cc: Ben Widawsky

Re: [Intel-gfx] [PATCH i-g-t] benchmarks/Android.mk, tools/Android.mk: Fix android build error

2015-08-04 Thread Morton, Derek J
Bump. Can this be merged? It only affects android and addresses an issue causing igt to fail to build at all on android. //Derek -Original Message- From: Morton, Derek J Sent: Monday, July 27, 2015 11:31 AM To: intel-gfx@lists.freedesktop.org Cc: Wood, Thomas; Gore, Tim; Morton, Derek

Re: [Intel-gfx] [PATCH 4/4] drm/atomic-helpers: Make encoder picking more robust

2015-08-04 Thread Thierry Reding
On Mon, Aug 03, 2015 at 05:24:11PM +0200, Daniel Vetter wrote: We've had a few issues with atomic where subtle bugs in the encoder picking logic lead to accidental self-stealing of the encoder, resulting in a NULL connector_state-crtc in update_connector_routing and subsequent. Linus

Re: [Intel-gfx] [PATCH 4/4] drm/atomic-helpers: Make encoder picking more robust

2015-08-04 Thread Daniel Vetter
On Tue, Aug 04, 2015 at 11:56:08AM +0300, Ander Conselvan De Oliveira wrote: For the series: Reviewed-by: Ander Conselvan de Oliveira conselv...@gmail.com Thanks for the review. -Daniel On Mon, 2015-08-03 at 17:24 +0200, Daniel Vetter wrote: We've had a few issues with atomic where

Re: [Intel-gfx] [SKL-DMC-BUGFIX 1/5] drm/i915/gen9: Removed byte swapping for csr firmware

2015-08-04 Thread Sunil Kamath
On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: This patch contains the changes to remove the byte swapping logic introduced with old dmc firmware. While debugging PC10 entry issue for skylake found with latest dmc firmware version 1.18 without byte swapping dmc is working fine and able

Re: [Intel-gfx] [SKL-DMC-BUGFIX 2/5] drm/i915/skl: Making DC6 entry is the last call in suspend flow.

2015-08-04 Thread Sunil Kamath
On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: Mmio register access after dc6/dc5 entry is not allowed when DC6 power states are enabled according to bspec (bspec-id 0527), so enabling dc6 as the last call in suspend flow. v1: Initial version. v2: commit message updated based on

Re: [Intel-gfx] [SKL-DMC-BUGFIX 4/5] drm/i915/skl: Block disable call for pw1 if dmc firmware is present.

2015-08-04 Thread Sunil Kamath
On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: Another interesting criteria to work dmc as expected is pw1 to be enabled by driver and dmc will shut it off in its execution sequence. If already disabled by driver dmc will get confuse and behave differently than expected found during

Re: [Intel-gfx] [SKL-DMC-BUGFIX 3/5] drm/i915/skl: Do not disable cdclk PLL if csr firmware is present.

2015-08-04 Thread Sunil Kamath
On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: While display engine entering into low power state no need to disable cdclk pll as CSR firmware of dmc will take care. If pll is already enabled firmware execution sequence will be blocked. This is one of the criteria for dmc to work

Re: [Intel-gfx] [SKL-DMC-BUGFIX 0/5] SKL PC10 entry fixes.

2015-08-04 Thread Sunil Kamath
On Tuesday 04 August 2015 12:17 AM, Zanoni, Paulo R wrote: Em Seg, 2015-08-03 às 21:55 +0530, Animesh Manna escreveu: The following patches helps to solve PC10 entry issue for SKL. Detailed description about the changes done to solve the issue is mentioned in commit message of each patch. All

Re: [Intel-gfx] [SKL-DMC-BUGFIX 5/5] drm/i915/skl: Removed csr firmware load in resume path

2015-08-04 Thread Animesh Manna
On 8/4/2015 4:50 PM, Sunil Kamath wrote: On Monday 03 August 2015 09:55 PM, Animesh Manna wrote: As csr firmware is taking care of loading the firmware, so no need for driver to load again. Cc: Daniel Vetter daniel.vet...@intel.com Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak

[Intel-gfx] [PATCH] drm/atomic: Fix bookkeeping with TEST_ONLY.

2015-08-04 Thread Maarten Lankhorst
Commit ec9f932ed41622d120de52a5b525e4d77b9ef17e drm/atomic: Cleanup on error properly in the atomic ioctl. cleaned up some error paths, but didn't fix the TEST_ONLY path. In the check only case plane-fb shouldn't be updated, and the vblank events should be cleared as on failure. Signed-off-by:

Re: [Intel-gfx] [PATCH v1 1/2] drm/i915:skl: Add WaEnableGapsTsvCreditFix

2015-08-04 Thread Siluvery, Arun
On 04/08/2015 09:58, Mika Kuoppala wrote: Ben Widawsky benjamin.widaw...@intel.com writes: On Mon, Aug 03, 2015 at 08:24:56PM +0100, Arun Siluvery wrote: Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Joonas Lahtinen joonas.lahti...@linux.intel.com Signed-off-by: Arun Siluvery

Re: [Intel-gfx] [PATCH] drm/i915: Change SRM, LRM instructions to use correct length

2015-08-04 Thread Mika Kuoppala
Siluvery, Arun arun.siluv...@linux.intel.com writes: On 16/07/2015 16:19, Arun Siluvery wrote: MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM instructions are not really variable length instructions unlike MI_LOAD_REGISTER_IMM where it expects (reg, addr) pairs so use fixed length for these

Re: [Intel-gfx] [PATCH] drm/i915: disable_shared_pll doesn't work on pre-gen5

2015-08-04 Thread Maarten Lankhorst
Op 03-08-15 om 22:09 schreef Jesse Barnes: Looks like commit eddfcbcdc27fbecb33bff098967bbdd7ca75bfa6 Author: Maarten Lankhorst maarten.lankho...@linux.intel.com Date: Mon Jun 15 12:33:53 2015 +0200 drm/i915: Update less state during modeset. introduced the unconditional calling of

Re: [Intel-gfx] [PATCH v1 1/2] drm/i915:skl: Add WaEnableGapsTsvCreditFix

2015-08-04 Thread Mika Kuoppala
Ben Widawsky benjamin.widaw...@intel.com writes: On Mon, Aug 03, 2015 at 08:24:56PM +0100, Arun Siluvery wrote: Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Joonas Lahtinen joonas.lahti...@linux.intel.com Signed-off-by: Arun Siluvery arun.siluv...@linux.intel.com ---

[Intel-gfx] [PATCH v2 2/2] drm/i915:gen9: Add disable gather at set shader w/a

2015-08-04 Thread Arun Siluvery
This WA is implemented in init_context as well as WA batch init. There are also some dependent bits need to be set in other registers for this to be complete. v2: behaviour of disable gather at set shader bit can be specified by two different registers, use a better option (Ben). Cc: Ben

Re: [Intel-gfx] [PATCH] intel: Drop aub dumping functionality

2015-08-04 Thread Chris Wilson
On Mon, Aug 03, 2015 at 09:28:01AM -0700, Kristian Høgsberg wrote: On Sat, Aug 1, 2015 at 2:06 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Jul 31, 2015 at 10:53:26AM -0700, k...@bitplanet.net wrote: From: Kristian Høgsberg Kristensen kristian.h.kristen...@intel.com We now

Re: [Intel-gfx] [PATCH 3/4] drm/dp-mst: Remove debug WARN_ON

2015-08-04 Thread Thierry Reding
On Mon, Aug 03, 2015 at 05:24:10PM +0200, Daniel Vetter wrote: Apparently been in there since forever and fairly easy to hit when hotplugging really fast. I can do that since my mst hub has a manual button to flick the hpd line for reprobing. The resulting WARNING spam isn't pretty. Cc:

Re: [Intel-gfx] [PATCH 1/4] drm/atomic-helper: Add an atomice best_encoder callback

2015-08-04 Thread Thierry Reding
On Mon, Aug 03, 2015 at 05:24:08PM +0200, Daniel Vetter wrote: With legacy helpers all the routing was already set up when calling best_encoder and so could be inspected. But with atomic it's staged, hence we need a new atomic compliant callback for drivers which need to inspect the requested

Re: [Intel-gfx] [SKL-DMC-BUGFIX 0/5] SKL PC10 entry fixes.

2015-08-04 Thread Zanoni, Paulo R
Em Ter, 2015-08-04 às 17:01 +0530, Sunil Kamath escreveu: On Tuesday 04 August 2015 12:17 AM, Zanoni, Paulo R wrote: Em Seg, 2015-08-03 às 21:55 +0530, Animesh Manna escreveu: The following patches helps to solve PC10 entry issue for SKL. Detailed description about the changes done to

Re: [Intel-gfx] 4.0.8-4.1.3 : after resume from s2ram both internal and external display of a docked ThinkPad ate black

2015-08-04 Thread Toralf Förster
On 08/02/2015 09:43 AM, Pavel Machek wrote: Any chance to bisect it? Did it. FWIW: the mentioned commit was introduced between 3.18 and 3.19. But my system (hardened 64 bit Gentoo) did not suffer from it till version 4.0.8. The hardened kernel 4.1.x was the first where the bug was visible at my

[Intel-gfx] [PULL] topic/mst-fixes

2015-08-04 Thread Daniel Vetter
Hi Linus, Special pull request for mst fixes since most of the patches touch code outside of i915 proper. DRM parts have also been reviewed by Thierry (nvidia) since Dave's enjoying vacations. Cheers, Daniel The following changes since commit 74d33293e467df61de1b1d8b2fbe29e550dec33b: Linux

[Intel-gfx] [DMC-REDESIGN-PATCHES 06/12] drm/i915/gen9: Align line continuations in intel_csr.c.

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com Standard is to align continuations of parameter lists and if conditions to the opening ( in i915 and drm code. Apply this across the entire file since it was sticking out a bit too much. Also align register definitions while at it. Cc: Damien Lespiau

[Intel-gfx] [DMC-REDESIGN-PATCHES 03/12] drm/i915/bxt: release rpm reference if csr firmware failed to load.

2015-08-04 Thread Animesh Manna
Note that for bxt without dmc, display engine can go to lowest possible state (dc9), so releasing the rpm reference. Cc: Daniel Vetter daniel.vet...@intel.com Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil Kamath sunil.kam...@intel.com Signed-off-by:

[Intel-gfx] [DMC-REDESIGN-PATCHES 05/12] drm/i915/gen9: Remove csr.state, csr_lock and related code.

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com This removes two anti-patterns: - Locking shouldn't be used to synchronize with async work (of any form, whether callbacks, workers or other threads). This is what the mutex_lock/unlock seems to have been for in intel_csr_load_program. Instead

[Intel-gfx] [DMC-REDESIGN-PATCHES 04/12] drm/i915/gen9: move assert_csr_loaded into intel_rpm.c

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com Avoids non-static functions since all the callers are in intel_rpm.c. Only thing we need for that is to move the register definitions into i915_reg.h. Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil Kamath

[Intel-gfx] [PATCH v2] drm/i915: Change SRM, LRM instructions to use correct length

2015-08-04 Thread Arun Siluvery
MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM instructions are not really variable length instructions unlike MI_LOAD_REGISTER_IMM where it expects (reg, addr) pairs so use fixed length for these instructions. v2: rebase Cc: Dave Gordon david.s.gor...@intel.com Signed-off-by: Arun Siluvery

[Intel-gfx] [DMC-REDESIGN-PATCHES 00/12] Redesign dmc firmware loading.

2015-08-04 Thread Animesh Manna
This patch series has the changes done to redesign the dmc firmware loading flow. This is continuation of the below patch series after addressing review comments from Daniel. http://lists.freedesktop.org/archives/intel-gfx/2015-July/072331.html Few patches from the above patch series are

[Intel-gfx] [DMC-REDESIGN-PATCHES 12/12] drm/i915/gen9: Use flush_work to synchronize with dmc loader

2015-08-04 Thread Animesh Manna
During driver unload to ensure we dont have any pending task, flush_work added to complete firmware loading task. v1: Initial version. v2: As per review comments from Daniel, Removed flush_work from skl_set_power_well. As we have taken power well refernece and rpm count during firmware loading

[Intel-gfx] [DMC-REDESIGN-PATCHES 11/12] drm/i915: Use request_firmware and our own async work

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com Two benefits: - We can use FW_LOADER_USERSPACE_FALLBACK. - We can use flush_work to synchronize with the oustanding worker, which is a notch more obvious what it does than having a special completion. The next patch will properly synchronize

[Intel-gfx] [DMC-REDESIGN-PATCHES 09/12] drm/i915/gen9: Don't try to load garbage dmc firmware on resume

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com We need to make sure we don't put garbage into the hw if dmc firmware loading failed mid-thru. Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil Kamath sunil.kam...@intel.com Signed-off-by: Daniel Vetter

[Intel-gfx] [DMC-REDESIGN-PATCHES 02/12] drm/i915/gen9: csr_init after runtime pm enable

2015-08-04 Thread Animesh Manna
As skl is fully dependent on dmc to go to low power state (dc5/dc6) which requires a trigger from rpm and to ensure the dmc firmware is available for runtime pm support rpm-reference-count is used by not releasing the rpm reference acquire when starting the firmware loader work. So moved the

[Intel-gfx] [DMC-REDESIGN-PATCHES 07/12] drm/i915/gen9: Simplify csr loading failure printing.

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com If we really want to we can be more verbose here, but we really don't need an entire function for this. Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil Kamath sunil.kam...@intel.com Signed-off-by: Daniel Vetter

[Intel-gfx] [DMC-REDESIGN-PATCHES 08/12] drm/i915/gen9: extract parse_csr_fw

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com The loader function will get a bit more complicated soon, extract the parsing code to make the control flow clearer. While doing that just use dev_priv-csr.dmc_payload as the indicator for whether it all suceeded or not. Also restrict the forced

[Intel-gfx] [DMC-REDESIGN-PATCHES 10/12] drm/i915/gen9: Use dev_priv in csr functions

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@intel.com As all csr firmware related opertion are not using any any data structures of drm framework level, so better to use dev_priv instead of dev. it's a new style! :) Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil

[Intel-gfx] [DMC-REDESIGN-PATCHES 01/12] drm/i915: use correct power domain for csr loading

2015-08-04 Thread Animesh Manna
From: Daniel Vetter daniel.vet...@ffwll.ch Grabbing a runtime pm reference with intel_runtime_pm_get will only prevent device D3. But dmc firmware is required even earlier (namely for the skl power well 2). Hence we need to grab a rpm reference higher up in the hierarchy. For simplicity just

Re: [Intel-gfx] [PATCH] drm/i915: Postpone plane readout until after encoder readout

2015-08-04 Thread Patrik Jakobsson
On Mon, Aug 3, 2015 at 4:36 PM, Maarten Lankhorst maarten.lankho...@linux.intel.com wrote: Hey, Op 31-07-15 om 15:04 schreef Patrik Jakobsson: When reading out hw state for planes we disable inactive planes which in turn triggers an update of the watermarks. The update depends on the

[Intel-gfx] [RFC 4/8] drm/i915: Forward periodic and CS based OA reports sorted acc to timestamps

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com The periodic reports and the RCS based reports are collected in two separate buffers. While forwarding to userspace, these have to be sent to single perf event ringbuffer. From a userspace perspective, it is good to have the reports in the single buffer

[Intel-gfx] [RFC 0/8] Introduce framework to forward multi context OA snapshots

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This is the updated patch series(v3 - changes listed at end), which adds support for capturing OA counter snapshots for multiple contexts, by inserting MI_REPORT_PERF_COUNT commands into CS, and forwarding these snapshots to userspace using perf

[Intel-gfx] [RFC 1/8] drm/i915: Introduce global id for contexts

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com The current context user handles are specific to drm file instance. There are some usecases, which may require a global id for the contexts. For e.g. a system level GPU profiler tool may lean upon the global context ids to associate the performance

[Intel-gfx] [RFC 2/8] drm/i915: Introduce mode for capture of multi ctx OA reports synchronized with RCS

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch introduces a mode of capturing OA counter reports belonging to multiple contexts, which can be mapped back to individual contexts. The OA reports captured in this way are synchronized with Render command stream. There may be usecases wherein

Re: [Intel-gfx] [PATCH] tools/null_state/gen9: Send atleast one valid component in VF state

2015-08-04 Thread Ben Widawsky
On Fri, Jul 31, 2015 at 04:27:07PM +0100, Arun Siluvery wrote: A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled. Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Arun

[Intel-gfx] [PATCH] drm/i915: fix stolen bios_reserved checks

2015-08-04 Thread Paulo Zanoni
I started digging this when I noticed that the BDW code was just reserving 1mb by coincidence since it was reading reserved fields. Then I noticed we didn't have any values set for SNB and earlier, and that the HSW sizes were wrong. After that, I noticed that the reserved area has a specific

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use CPU mapping for userspace dma-buf mmap()

2015-08-04 Thread Tiago Vignatti
On 07/31/2015 06:02 PM, Chris Wilson wrote: The first problem is that llc does not guarrantee that the buffer is cache coherent with all aspects of the GPU. For scanout and similar writes need to be WC. if (obj-has_framebuffer_references) would at least catch where the fb is made before the

[Intel-gfx] [RFC 3/8] drm/i915: Add mechanism for forwarding CS based OA counter snapshots through perf

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch adds the mechanism for forwarding the CS based OA snapshots through the perf event interface. The OA snapshots will be captured in a gem buffer object. The metadata information (ctx global id, as of now) pertaining to snapshot is maintained in

[Intel-gfx] [RFC 6/8] drm/i915: Insert commands for capture of OA counters in the ring

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch adds the routines which insert commands for capturing OA snapshots into the ringbuffer of RCS engine. The command MI_REPORT_PERF_COUNT can be used to capture snapshots of OA counters, which is inserted at BB boundaries. While inserting the

[Intel-gfx] [RFC 7/8] drm/i915: Add support for having pid output with OA report

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch introduces flags and adds support for having pid output with the OA reports generated through the RCS commands. When the userspace expresses its interest in listening to the pid through an oa_attr field during event init, the OA reports

[Intel-gfx] [RFC 5/8] drm/i915: Handle event stop and destroy for commands in flight

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com In the periodic OA sampling mode, the event stop would stop forwarding samples to userspace, and disables OA synchronously. The buffer is destroyed eventually in event destroy callback. But when we have in flight RPC commands scheduled on GPU (like in

[Intel-gfx] [RFC 8/8] drm/i915: Add support to add execbuffer tags to OA counter reports

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch enables userspace to specify tags (per workload), provided via execbuffer ioctl, which could be added to OA reports, to help associate reports with the corresponding workloads. There may be multiple stages within a single context, from a

[Intel-gfx] [RFC 6/8] drm/i915: Add support for forwarding pid in timestamp sample metadata through perf

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch introduces flags and adds support for having pid output with the timestamp samples and forwarding them through perf. When the userspace expresses its interest in listening to the pid through a gen pmu attr field during event init, the samples

[Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com The current perf PMU driver is specific for collection of OA counter statistics (which may be done in a periodic or asynchronous way). Since this enables us (and limits us) to render ring, we have no means for collection of data pertaining to other rings.

[Intel-gfx] [RFC 0/8] Introduce framework for forwarding generic non-OA performance

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This is an updated patch set (v3 - changes list at end), which builds upon the multi context OA patch set introduced earlier at: http://lists.freedesktop.org/archives/intel-gfx/2015-August/072949.html The OA unit, as such, is specific to render ring and

[Intel-gfx] [RFC 3/8] drm/i915: Handle event stop and destroy for GPU commands submitted

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch handles the event stop and destroy callbacks taking into account the fact that there may be commands scheduled on GPU which may utilize the destination buffer. The event stop would just set the event state, and stop forwarding data to

[Intel-gfx] [RFC 4/8] drm/i915: Insert commands for capturing timestamps in the ring

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch adds the routines through which one can insert commands in the ringbuf for capturing timestamps, which are used to insert these commands around the batchbuffer. While inserting the commands, we keep a reference of associated request. This will

[Intel-gfx] [RFC 2/8] drm/i915: Add mechanism for forwarding the timestamp data through perf

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch adds the mechanism for forwarding the timestamp data to userspace using the Gen PMU perf event interface. The timestamps will be captured in a gem buffer object. The metadata information (ctx global id right now) pertaining to snapshot is

[Intel-gfx] [RFC 5/8] drm/i915: Add support for forwarding ring id in sample metadata through perf

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch introduces flags and adds support for having ring id output with the timestamp samples and forwarding them through perf. When the userspace expresses its interest in listening to the ring id through a gen pmu attr field during event init, the

[Intel-gfx] [RFC 8/8] drm/i915: Support for retrieving MMIO register values alongwith timestamps through perf

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch adds support for retrieving MMIO register values alongwith timestamps and forwarding them to userspace through perf. The userspace can request upto 8 MMIO register values to be dumped. The addresses of upto 8 MMIO registers can be passed

[Intel-gfx] [RFC 7/8] drm/i915: Add support for forwarding execbuffer tags in timestamp sample metadata

2015-08-04 Thread sourab . gupta
From: Sourab Gupta sourab.gu...@intel.com This patch enables userspace to specify tags (per workload), provided via execbuffer ioctl, which could be added to timestamps samples, to help associate samples with the corresponding workloads. There may be multiple stages within a single context, from

[Intel-gfx] [BXT DMC PATCHES 2/3] drm/i915/bxt: Modified HAS_CSR, added support for BXT

2015-08-04 Thread Animesh Manna
Modified HAS_CSR macro defination which earlier only supported for skl, now added support for BXT. v1: Initial version. v2: Instaed of skylake/broxton check added gen9 check alone based on review comment from Sunil. Cc: Vetter, Daniel daniel.vet...@intel.com Cc: Damien Lespiau

[Intel-gfx] [BXT DMC PATCHES 1/3] drm/i915/bxt: Path added of dmc firmware ver1 for BXT.

2015-08-04 Thread Animesh Manna
Broxton also has dmc to manage low-power display engine state. Path of the firmware added in intel_csr.c. Naming convention followed as platform_dmc_api-version.bin v1: Initial version. v2: Commit description added based on review comment from Sunil. Cc: Damien Lespiau damien.lesp...@intel.com

[Intel-gfx] [BXT DMC PATCHES 3/3] drm/i915/bxt: Stepping info added for bxt.

2015-08-04 Thread Animesh Manna
Added stepping info in intel_csr.c which is required to extract specific firmware from packaged dmc firmware. Stepping info is aligned with current bspec info. Cc: Vetter, Daniel daniel.vet...@intel.com Cc: Damien Lespiau damien.lesp...@intel.com Cc: Imre Deak imre.d...@intel.com Cc: Sunil

[Intel-gfx] [BXT DMC PATCHES 0/3] Extended dmc support for broxton.

2015-08-04 Thread Animesh Manna
This patches will extend the support for broxton. Earlier these patches are sent part of Redesign of dmc firmware loading patch series. http://lists.freedesktop.org/archives/intel-gfx/2015-July/072331.html To make it simple, bxt specific patches are seperated out and based on review comments

[Intel-gfx] [drm-intel:topic/kerneldoc 5/5] DockBook: Warning(include/drm/drm_modeset_lock.h:47): Incorrect use of kernel-doc format: * Contended lock: if a lock is contended you should only call

2015-08-04 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/kerneldoc head: 86fea2bafc9b25f0915dd46039305ec3bfb0aaf4 commit: 86fea2bafc9b25f0915dd46039305ec3bfb0aaf4 [5/5] scripts/kernel-doc Allow struct arguments documentation in struct body reproduce: make htmldocs All warnings (new ones prefixed

Re: [Intel-gfx] [BXT DMC PATCHES 1/3] drm/i915/bxt: Path added of dmc firmware ver1 for BXT.

2015-08-04 Thread Vivi, Rodrigo
Reviewed-by: Rodrigo Vivi rodrigo.v...@intel.com On Tue, 2015-08-04 at 22:02 +0530, Animesh Manna wrote: Broxton also has dmc to manage low-power display engine state. Path of the firmware added in intel_csr.c. Naming convention followed as platform_dmc_api-version.bin v1: Initial

[Intel-gfx] [PATCH igt] tests/gem_mmap_wc: SKIP if the Kernel is too old for the getparam flag

2015-08-04 Thread Paulo Zanoni
If the Kernel is too old, getparam will return -EINVAL. Just SKIP on this case. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89739 Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Paulo Zanoni paulo.r.zan...@intel.com --- tests/gem_mmap_wc.c | 5 - 1 file changed, 4

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915:gen9: Add disable gather at set shader w/a

2015-08-04 Thread Ben Widawsky
On Tue, Aug 04, 2015 at 11:21:53AM +0100, Arun Siluvery wrote: This WA is implemented in init_context as well as WA batch init. There are also some dependent bits need to be set in other registers for this to be complete. v2: behaviour of disable gather at set shader bit can be specified by

Re: [Intel-gfx] [REGRESSION] Re: i915 driver crashes on T540p if docking station attached

2015-08-04 Thread Daniel Vetter
On Mon, Aug 03, 2015 at 12:25:11PM -0400, Theodore Ts'o wrote: On Mon, Aug 03, 2015 at 05:27:29PM +0200, Daniel Vetter wrote: Ok I updated fixes-stuff with just 2 patches which seem to be enough to fix it. Plus a patch to convert Linus' hack into something we can keep plus a drive-by

Re: [Intel-gfx] [PATCH] drm/i915/gen9: Update null batch to follow VF state restriction

2015-08-04 Thread Ben Widawsky
On Fri, Jul 31, 2015 at 04:28:45PM +0100, Arun Siluvery wrote: Atleast one component of one valid vertex element must be enabled. Cc: Ben Widawsky benjamin.widaw...@intel.com Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Arun Siluvery arun.siluv...@linux.intel.com ---