Re: [Intel-gfx] [PATCH] drm/i915/uc: Add explicit DISABLED state for firmware

2019-08-16 Thread Chris Wilson
Quoting Michal Wajdeczko (2019-08-16 00:48:32) > diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c > b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c > index d056e1f4bd6d..ce828ae3ea03 100644 > --- a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c > +++ b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c > @@ -206,

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gen11: Add Wa_1604278689:icl,ehl

2019-08-16 Thread Chris Wilson
Quoting Patchwork (2019-08-16 00:52:20) > Possible regressions > > * igt@i915_selftest@live_hangcheck: > - fi-icl-u3: [PASS][1] -> [DMESG-FAIL][2] >[1]: > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6714/fi-icl-u3/igt@i915_selftest@live_hangcheck.html >[2]: >

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Wrappers for display register waits

2019-08-16 Thread Chris Wilson
Quoting Daniele Ceraolo Spurio (2019-08-16 02:23:43) > To reduce the number of explicit dev_priv->uncore calls in the display > code ahead of the introduction of dev_priv->de_uncore, this patch > introduces a wrapper for one of the main usages of it, the register > waits. When we transition to the

Re: [Intel-gfx] [PATCH] RFC: drm/i915: Switch obj->mm.lock lockdep annotations on its head

2019-08-16 Thread Daniel Vetter
On Thu, Aug 15, 2019 at 9:35 PM Tang, CQ wrote: > > > > > -Original Message- > > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > > Of Daniel Vetter > > Sent: Wednesday, August 14, 2019 12:25 PM > > To: Intel Graphics Development > > Cc: Daniel Vetter ; Vetter,

[Intel-gfx] [PATCH v2] drm/i915/uc: Add explicit DISABLED state for firmware

2019-08-16 Thread Michal Wajdeczko
We really need to have separate NOT_SUPPORTED state (for lack of hardware support) and DISABLED state (to indicate user decision) as we will have to take special steps even if GuC firmware is now disabled but hardware exists and could have been previously used. v2: fix logic (Chris/CI) Signed-off

[Intel-gfx] [CI] drm/i915: Extract intel_frontbuffer active tracking

2019-08-16 Thread Chris Wilson
Move the active tracking for the frontbuffer operations out of the i915_gem_object and into its own first class (refcounted) object. In the process of detangling, we switch from low level request tracking to the easier i915_active -- with the plan that this avoids any potential atomic callbacks as

Re: [Intel-gfx] [PATCH 1/8] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Mika Kuoppala
Chris Wilson writes: > If we only call process_csb() from the tasklet, though we lose the > ability to bypass ksoftirqd interrupt processing on direct submission > paths, we can push it out of the irq-off spinlock. > > The penalty is that we then allow schedule_out to be called concurrently > wit

Re: [Intel-gfx] [PATCH 5/4] dma-fence: Have dma_fence_signal call signal_locked

2019-08-16 Thread Koenig, Christian
Am 15.08.19 um 21:29 schrieb Chris Wilson: > Quoting Chris Wilson (2019-08-15 20:03:13) >> Quoting Daniel Vetter (2019-08-15 19:48:42) >>> On Thu, Aug 15, 2019 at 8:46 PM Chris Wilson >>> wrote: Quoting Daniel Vetter (2019-08-14 18:20:53) > On Sun, Aug 11, 2019 at 10:15:23AM +0100, Chris

[Intel-gfx] [PATCH 04/39] drm/i915: Do not unmask PSR interruption in IRQ postinstall

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza No need to unmask PSR interrutpion if PSR is not enabled, better move the call to intel_psr_enable_source(). Cc: Rodrigo Vivi Cc: Dhinakaran Pandiyan Signed-off-by: José Roberto de Souza Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_psr.c

[Intel-gfx] [PATCH 01/39] drm/i915/tgl: do not use DDIC

2019-08-16 Thread Lucas De Marchi
On both A0 and A2 machines DDIC is not working. VBT reports the port as being present. In BIOS configuration it seems to be disabled and can't be enabled. The symptom we have is while enabling the combo phy, PORT_COMP_DW* return 0x, which is invalid per register definition. During initial

[Intel-gfx] [PATCH 00/39] Tiger Lake batch 3

2019-08-16 Thread Lucas De Marchi
After switching to smaller series and getting the patches applied, it's time to go with a bigger series again to get a bigger context of patches coming. If needed I can split the series or delegate to the original author to handle the reviews. This should also give a warning-free driver load, so w

[Intel-gfx] [PATCH 07/39] drm/i915: Guard and warn if more than one eDP panel is present

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza Now that is allowed to have PSR enabled in any port from BDW+, lets guard intel_psr_init_dpcd() against multiple eDP panels and warn about it. For now we will keep just one instance of PSR. Cc: Dhinakaran Pandiyan Cc: Rodrigo Vivi Signed-off-by: José Roberto de Sou

[Intel-gfx] [PATCH 08/39] drm/i915/tgl: Change PSR2 transcoder restriction

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza Tiger Lake has eDP-capable transcoders rather than a transcoder dedicated to eDP. Transcoder A is the one where we have PSR2. Actually transcoder B also supports PSR2 but only with software tracking that is not implemented. Cc: Dhinakaran Pandiyan Cc: Rodrigo Vivi S

[Intel-gfx] [PATCH 03/39] drm/i915: Add transcoder restriction to PSR2

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza According to PSR2_CTL definition on BSpec there is only one instance of PSR2_CTL also ICL display overview state that PSR2 is only supported in EDP transcoder, so now that is possible to have PSR in any transcoder lets add this hardware restriction. BSpec: 7713 BSpec:

[Intel-gfx] [PATCH 02/39] drm/i915/psr: Make PSR registers relative to transcoders

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza PSR registers are a mess, some have the full address while others just have the additional offset from psr_mmio_base. For BDW+ psr_mmio_base is nothing more than TRANSCODER_EDP_OFFSET + 0x800 and using it makes more difficult for people with an PSR register address or

[Intel-gfx] [PATCH 05/39] drm/i915/psr: Only handle interruptions of the transcoder in use

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza It was enabling and checking PSR interruptions in every transcoder while it should keep the interruptions on the non-used transcoders masked. This also already prepares for future when more the one PSR instance will be allowed. Cc: Dhinakaran Pandiyan Signed-off-by:

[Intel-gfx] [PATCH 09/39] drm/i915: Do not read PSR2 register in transcoders without PSR2

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza This fix unclaimed access warnings: [ 245.525788] [ cut here ] [ 245.525884] Unclaimed read from register 0x62900 [ 245.526154] WARNING: CPU: 0 PID: 1234 at drivers/gpu/drm/i915/intel_uncore.c:1100 __unclaimed_reg_debug+0x40/0x50 [i915] [

[Intel-gfx] [PATCH 10/39] drm/i915/tgl: PSR link standby is not supported anymore

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza According to BSpc if link standby is set on TGL+, PSR will not be enabled. Vendors should not use panels that requires link standby and even if they do, panel should assert a PSR error that will cause PSR to be disabled. BSpec: 50434 Signed-off-by: José Roberto de Sou

[Intel-gfx] [PATCH 12/39] drm/i915/tgl: Add maximum resolution supported by PSR2 HW

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza TGL PSR2 HW supports a bigger resolution, so lets add it Cc: Dhinakaran Pandiyan Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_psr.c | 5 - 1 file changed, 4 insertions(+), 1 deleti

[Intel-gfx] [PATCH 11/39] drm/i915/tgl: Access the right register when handling PSR interruptions

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza For older gens PSR IIR and IMR had a fixed address that was not relative to anything, but from TGL those registers moved to each transcoder offset. So here adding a new macro and a new PSR irq handler with the transcoder parameter. Cc: Dhinakaran Pandiyan Cc: Rodrig

[Intel-gfx] [PATCH 06/39] drm/i915/bdw+: Enable PSR in any eDP port

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza From BDW+ the PSR registers moved from DDIA to transcoder, so any port with a eDP panel connected can have PSR, so lets remove this limitation. Cc: Dhinakaran Pandiyan Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza Signed-off-by: Lucas De Marchi --- driver

[Intel-gfx] [PATCH 19/39] drm/i915/tgl: Implement Wa_1406941453

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry Enable Small PL for power benefit. Signed-off-by: Michel Thierry Signed-off-by: Lucas De Marchi Reviewed-by: Stuart Summers Reviewed-by: Radhakrishna Sripada Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 7 +++ drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 18/39] drm/i915/tgl: Introduce initial Tiger Lake workarounds

2019-08-16 Thread Lucas De Marchi
Add empty workaround hooks for Tiger Lake. The workarounds will be added on separate patches. We were already applying WaRsForcewakeAddDelayForAck, which is indeed still valid, so also update the comment. Cc: Daniele Ceraolo Spurio Signed-off-by: Lucas De Marchi Reviewed-by: Radhakrishna Sripada

[Intel-gfx] [PATCH 14/39] drm/i915: Add for_each_new_intel_connector_in_state()

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza The same macro as for_each_new_connector_in_state() but it uses intel/i915 types instead of the drm ones. Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/display/intel_display.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 15/39] drm: Add for_each_oldnew_intel_crtc_in_state_reverse()

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza Same as for_each_oldnew_intel_crtc_in_state() but iterates in reverse order. Cc: Rodrigo Vivi Cc: Ville Syrjälä Signed-off-by: José Roberto de Souza Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display.h | 10 ++ 1 file changed, 1

[Intel-gfx] [PATCH 16/39] drm/i915: Disable pipes in reverse order

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza Disable CRTC/pipes in reverse order because some features (MST in TGL+) requires master and slave relationship between pipes, so it should always pick the lowest pipe as master as it will be enabled first and disable in the reverse order so the master will be the last

[Intel-gfx] [PATCH 13/39] drm/i915/mst: Do not hardcoded the crtcs that encoder can connect

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza Tiger Lake has up to 4 pipes so the mask would need to be 0xf instead of 0x7. Do not hardcode the mask so it allows the fake MST encoders to connect to all pipes no matter how many the platform has. Iterating over all pipes to keep consistent with intel_ddi_init(). C

[Intel-gfx] [PATCH 17/39] drm/i915/tgl: Select master transcoder in DP MST

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza On TGL the blending of all the streams have moved from DDI to transcoder, so now every transcoder working over the same MST port must send its stream to a master transcoder and master will send to DDI respecting the time slots. So here it is picking the lowest pipe/tr

[Intel-gfx] [PATCH 22/39] drm/i915/tgl: implement WaProgramMgsrForCorrectSliceSpecificMmioReads

2019-08-16 Thread Lucas De Marchi
From my tests this workaround is needed otherwise we read the wrong number of slices later on. It's sent as a FIXME since I couldn't find any documentation saying this applies to TGL. Fix the following warning: [ 82.905527] WARN_ON_ONCE((mcr & mcr_slice_subslice_mask) != default_mcr_s_ss_ select

[Intel-gfx] [PATCH 21/39] drm/i915/tgl: Do not apply WaIncreaseDefaultTLBEntries from GEN12 onwards

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry Workaround no longer needed (plus L3_LRA_1_GPGPU doesn't exist). Cc: Daniele Ceraolo Spurio Cc: Michal Wajdeczko Cc: Daniele Ceraolo Spurio Signed-off-by: Michel Thierry Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 in

[Intel-gfx] [PATCH 27/39] drm/i915/tgl: add Gen12 default indirect ctx offset

2019-08-16 Thread Lucas De Marchi
From: Daniele Ceraolo Spurio Gen12 uses a new indirect ctx offset. Bspec: 11740 Cc: Joonas Lahtinen Cc: Radhakrishna Sripada Signed-off-by: Daniele Ceraolo Spurio Reviewed-by: Lucas De Marchi Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_lrc.c | 4 drivers/gpu/d

[Intel-gfx] [PATCH 24/39] drm/i915/tgl: move DP_TP_* to transcoder

2019-08-16 Thread Lucas De Marchi
Gen 12 onwards moves the DP_TP_* registers to be transcoder-based rather than port-based. This add the new register address and changes the functions that are used with DDI on gen 12 to use the new registers. On MST the master transcoder is the one to be used. Cc: Rodrigo Vivi Cc: Ville Syrjälä

[Intel-gfx] [PATCH 20/39] drm/i915/tgl: Enable VD HCP/MFX sub-pipe power gating

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry HCP/MFX power gating is disabled by default, turn it on for the vd units available. User space will also issue a MI_FORCE_WAKEUP properly to wake up proper subwell. During driver load, init_clock_gating happens after device_info_init_mmio read the vdbox disable fuse register

[Intel-gfx] [PATCH 23/39] drm/i915/tgl: Register state context definition for Gen12

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry Gen12 has subtle changes in the reg state context offsets (some fields are gone, some are in a different location), compared to previous Gens. The simplest approach seems to be keeping Gen12 (and future platform) changes apart from the previous gens, while keeping the regist

[Intel-gfx] [PATCH 25/39] drm/i915/tgl: Implement TGL DisplayPort training sequence

2019-08-16 Thread Lucas De Marchi
From: José Roberto de Souza On TGL some registers moved from DDI to transcoder and the DisplayPort training sequence has a separate BSpec page. I started adding 'ifs' to the original intel_ddi_pre_enable_dp() but it was becoming really hard to follow, so a new and cleaner function for TGL was ad

[Intel-gfx] [PATCH 26/39] HACK: drm/i915/tgl: Gen12 render context size

2019-08-16 Thread Lucas De Marchi
From: Daniele Ceraolo Spurio Re-use Gen11 context size for now. [ Lucas: add HACK since this is a temporary patch that needs to be confirmed: we need to check BSpec 46255 and recompute ] Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_

[Intel-gfx] [PATCH 28/39] drm/i915/tgl: add GEN12_MAX_CONTEXT_HW_ID

2019-08-16 Thread Lucas De Marchi
From: Daniele Ceraolo Spurio Like Gen11, Gen12 has 11 available bits for the ctx id field. However, the last value (0x7FF) is reserved to indicate "invalid context", so we need to reduce the maximum number of contexts by 1 compared to Gen11. Cc: Joonas Lahtinen Signed-off-by: Daniele Ceraolo Sp

[Intel-gfx] [PATCH 35/39] drm/i915/tgl: Gen-12 display loses Yf tiling and legacy CCS support

2019-08-16 Thread Lucas De Marchi
From: Dhinakaran Pandiyan Yf tiling was removed in gen-12, make the necessary to changes to not expose the modifier to user space. Gen-12 display also is incompatible with pre-gen12 Y-tiled compression, so do not expose I915_FORMAT_MOD_Y_TILED_CCS. Bspec: 29650 Cc: Daniel Vetter Cc: Ville Syrj

[Intel-gfx] [PATCH 34/39] drm/i915/tgl: Add perf support on TGL

2019-08-16 Thread Lucas De Marchi
From: Lionel Landwerlin The design of the OA unit has been split into several units. We now have a global unit (OAG) and a render specific unit (OAR). This leads to some changes on how we program things. Some details : OAR: - has its own set of counter registers, they are per-context saved

[Intel-gfx] [PATCH 29/39] drm/i915/tgl: Report valid VDBoxes with SFC capability

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry In Gen11, only even numbered "logical" VDBoxes are hooked up to a SFC (Scaler & Format Converter) unit. This is not the case in Tigerlake, where each VDBox can access a SFC. We will use this information to decide when the SFC units need to be reset and also pass it to the al

[Intel-gfx] [PATCH 33/39] drm/i915/perf: add a parameter to control the size of OA buffer

2019-08-16 Thread Lucas De Marchi
From: Lionel Landwerlin The way our hardware is designed doesn't seem to let us use the MI_RECORD_PERF_COUNT command without setting up a circular buffer. In the case where the user didn't request OA reports to be available through the i915 perf stream, we can set the OA buffer to the minimum si

[Intel-gfx] [PATCH 32/39] drm/i915/tgl/perf: use the same oa ctx_id format as icl

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry Compared to Icelake, Tigerlake's MAX_CONTEXT_HW_ID is smaller by one, but since we just use the upper 32 bits of the lrc_desc, it's guaranteed OA will use the correct one. v2: rebase (Umesh) Signed-off-by: Michel Thierry Cc: Lionel Landwerlin Reviewed-by: Lionel Landwerli

[Intel-gfx] [PATCH 36/39] drm/framebuffer/tgl: Format modifier for Intel Gen-12 render compression

2019-08-16 Thread Lucas De Marchi
From: Dhinakaran Pandiyan Gen-12 has a new compression format, add a new modifier for userspace to indicate that. Cc: Ville Syrjälä Cc: Daniel Vetter Signed-off-by: Dhinakaran Pandiyan Signed-off-by: Lucas De Marchi --- include/uapi/drm/drm_fourcc.h | 10 ++ 1 file changed, 10 inser

[Intel-gfx] [PATCH 37/39] drm/i915/tgl: Gen-12 render decompression

2019-08-16 Thread Lucas De Marchi
From: Dhinakaran Pandiyan Gen-12 decompression is supported with Y-tiled main surface. The CCS is linear and has 4 bits of data for each main surface cache line pair, a ratio of 1:256. Gen-12 display decompression is incompatible with buffers compressed by earlier GPUs, so make use of a new modif

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gtt: Fold gen8 insertions into one

2019-08-16 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Fold gen8 insertions into one URL : https://patchwork.freedesktop.org/series/65258/ State : success == Summary == CI Bug Log - changes from CI_DRM_6712_full -> Patchwork_14030_full Summary ---

[Intel-gfx] [PATCH 30/39] drm/i915/tgl: Move GTCR register to cope with GAM MMIO address remap

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry GAM registers located in the 0x4xxx range have been relocated to 0xCxxx; this is to make space for global MOCS registers. HSD: 399379 Cc: Daniele Ceraolo Spurio Signed-off-by: Michel Thierry Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h |

[Intel-gfx] [PATCH 31/39] drm/i915/tgl: Updated Private PAT programming

2019-08-16 Thread Lucas De Marchi
From: Michel Thierry Gen12 removes the target-cache and age fields from the private PAT because MOCS now have the capability to set these itself. Only memory-type field should be programmed in the ppat, the reminded bits are reserved. Since now there are only 4 possible combinations, we could se

[Intel-gfx] [PATCH 38/39] drm/framebuffer/tgl: Format modifier for Intel Gen-12 media compression

2019-08-16 Thread Lucas De Marchi
From: Dhinakaran Pandiyan Gen-12 display can decompress surfaces compressed by the media engine, add a new modifier as the driver needs to know the surface was compressed by the media or render engine. Cc: Ville Syrjälä Signed-off-by: Dhinakaran Pandiyan Signed-off-by: Lucas De Marchi --- in

[Intel-gfx] [PATCH 39/39] drm/i915/tgl: Gen-12 media compression

2019-08-16 Thread Lucas De Marchi
From: Dhinakaran Pandiyan Gen-12 display can decompress surfaces compressed by the media engine. Detect the modifier corresponding to media compression to enable decompression for YUV and ARGB packed formats. A new modifier is added so that the driver can distinguish between media and render comp

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Michal Hocko
On Thu 15-08-19 17:13:23, Jason Gunthorpe wrote: > On Thu, Aug 15, 2019 at 09:35:26PM +0200, Michal Hocko wrote: > > > > The last detail is I'm still unclear what a GFP flags a blockable > > > invalidate_range_start() should use. Is GFP_KERNEL OK? > > > > I hope I will not make this muddy again ;

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/uc: Add explicit DISABLED state for firmware (rev2)

2019-08-16 Thread Patchwork
== Series Details == Series: drm/i915/uc: Add explicit DISABLED state for firmware (rev2) URL : https://patchwork.freedesktop.org/series/65278/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6715 -> Patchwork_14044 Summary -

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Michal Hocko
On Thu 15-08-19 15:15:09, Andrew Morton wrote: > On Thu, 15 Aug 2019 10:44:29 +0200 Michal Hocko wrote: > > > > I continue to struggle with this. It introduces a new kernel state > > > "running preemptibly but must not call schedule()". How does this make > > > any sense? > > > > > > Perhaps a

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Michal Hocko
On Thu 15-08-19 22:16:43, Daniel Vetter wrote: > On Thu, Aug 15, 2019 at 9:35 PM Michal Hocko wrote: [...] > > > The last detail is I'm still unclear what a GFP flags a blockable > > > invalidate_range_start() should use. Is GFP_KERNEL OK? > > > > I hope I will not make this muddy again ;) > > inv

[Intel-gfx] [PATCH] drm/i915: Use the associated uncore for the vm

2019-08-16 Thread Chris Wilson
We store the gt&uncoree to use in the address space, so use it! Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 208bd25163c

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Extract intel_frontbuffer active tracking

2019-08-16 Thread Patchwork
== Series Details == Series: drm/i915: Extract intel_frontbuffer active tracking URL : https://patchwork.freedesktop.org/series/65289/ State : success == Summary == CI Bug Log - changes from CI_DRM_6715 -> Patchwork_14045 Summary ---

Re: [Intel-gfx] [PATCH 1/8] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-08-16 08:50:29) > Chris Wilson writes: > > static inline struct i915_request * > > execlists_schedule_in(struct i915_request *rq, int idx) > > { > > - struct intel_context *ce = rq->hw_context; > > - int count; > > + struct intel_context * const ce = rq->

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/uc: Fini hw even if GuC is not running (rev2)

2019-08-16 Thread Patchwork
== Series Details == Series: drm/i915/uc: Fini hw even if GuC is not running (rev2) URL : https://patchwork.freedesktop.org/series/65140/ State : success == Summary == CI Bug Log - changes from CI_DRM_6712_full -> Patchwork_14033_full Summa

[Intel-gfx] [PATCH 1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Chris Wilson
If we only call process_csb() from the tasklet, though we lose the ability to bypass ksoftirqd interrupt processing on direct submission paths, we can push it out of the irq-off spinlock. The penalty is that we then allow schedule_out to be called concurrently with schedule_in requiring us to hand

[Intel-gfx] [PATCH 2/3] drm/i915/gt: Mark context->active_count as protected by timeline->mutex

2019-08-16 Thread Chris Wilson
We use timeline->mutex to protect modifications to context->active_count, and the associated enable/disable callbacks. Due to complications with engine-pm barrier there is a path where we used a "superlock" to provide serialised protect and so could not unconditionally assert with lockdep that it w

[Intel-gfx] [PATCH 3/3] drm/i915: Markup expected timeline locks for i915_active

2019-08-16 Thread Chris Wilson
As every i915_active_request should be serialised by a dedicated lock, i915_active consists of a tree of locks; one for each node. Markup up the i915_active_request with what lock is supposed to be guarding it so that we can verify that the serialised updated are indeed serialised. Signed-off-by:

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Dynamically allocate s0ix struct for VLV

2019-08-16 Thread Jani Nikula
On Thu, 15 Aug 2019, Daniele Ceraolo Spurio wrote: > This is only required for a single platform so no need to reserve the > memory on all of them. > > This removes the last direct dependency of i915_drv.h on i915_reg.h > (apart from the i915_reg_t definition). > > Signed-off-by: Daniele Ceraolo

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Tiger Lake batch 3

2019-08-16 Thread Patchwork
== Series Details == Series: Tiger Lake batch 3 URL : https://patchwork.freedesktop.org/series/65290/ State : warning == Summary == $ dim checkpatch origin/drm-tip 2f6d4ad3eda1 drm/i915/tgl: do not use DDIC c0c2c6e584ca drm/i915/psr: Make PSR registers relative to transcoders -:427: WARNING:LO

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Dynamically allocate s0ix struct for VLV

2019-08-16 Thread Chris Wilson
Quoting Jani Nikula (2019-08-16 10:35:08) > On Thu, 15 Aug 2019, Daniele Ceraolo Spurio > wrote: > > @@ -1622,7 +1560,7 @@ struct drm_i915_private { > > u32 suspend_count; > > bool power_domains_suspended; > > struct i915_suspend_saved_registers regfile; > > - struct vlv_s0i

Re: [Intel-gfx] [PATCH 5/6] drm/i915: Introduce i915_reg_types.h

2019-08-16 Thread Michal Wajdeczko
On Fri, 16 Aug 2019 03:23:42 +0200, Daniele Ceraolo Spurio wrote: With the introduction of display uncore, we want to categorize registers between display and non-display. To help us getting it right, it will be useful to move the display registers to a new file that can be used without inclu

[Intel-gfx] [PATCH] drm/i915/gtt: Fold gen8 insertions into one

2019-08-16 Thread Mika Kuoppala
As we give page directory pointer (lvl 3) structure for pte insertion, we can fold both versions into one function by teaching it to get pdp regardless of top level. v2: naming and asserts (Chris) Cc: Chris Wilson Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_gem_gtt.c | 96 ++

Re: [Intel-gfx] linux-next: build warning after merge of the drm-misc tree

2019-08-16 Thread Laurent Pinchart
Hello, On Fri, Aug 16, 2019 at 08:23:54AM +0200, Daniel Vetter wrote: > On Fri, Aug 16, 2019 at 6:48 AM Sam Ravnborg wrote: > > > Hi all, > > > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > > allmodconfig) produced this warning: > > > > > > warning: same module names

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Tiger Lake batch 3

2019-08-16 Thread Patchwork
== Series Details == Series: Tiger Lake batch 3 URL : https://patchwork.freedesktop.org/series/65290/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915/tgl: do not use DDIC Okay! Commit: drm/i915/psr: Make PSR registers relative to transcoders O

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Fold gen8 insertions into one

2019-08-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-08-16 10:47:54) > As we give page directory pointer (lvl 3) structure > for pte insertion, we can fold both versions into > one function by teaching it to get pdp regardless > of top level. > > v2: naming and asserts (Chris) > > Cc: Chris Wilson > Signed-off-by: Mika

[Intel-gfx] [PATCH] drm/i915: Sanitize PHY state during display core uninit

2019-08-16 Thread Imre Deak
To work around a DMC/Punit issue on ICL where the driver's ICL_PORT_COMP_DW8/IREFGEN PHY setting is lost when entering/exiting DC6 state, make sure to reinit the PHY whenever disabling DC states. Similarly the driver's PHY/DBUF/CDCLK settings should have been preserved across DC5/6 transitions, so

[Intel-gfx] ✓ Fi.CI.BAT: success for Tiger Lake batch 3

2019-08-16 Thread Patchwork
== Series Details == Series: Tiger Lake batch 3 URL : https://patchwork.freedesktop.org/series/65290/ State : success == Summary == CI Bug Log - changes from CI_DRM_6716 -> Patchwork_14046 Summary --- **SUCCESS** No regressions fo

Re: [Intel-gfx] Linux Kernel 5.2.8 (uvc or i915? <<<)

2019-08-16 Thread Laurent Pinchart
Hi Randy, On Thu, Aug 15, 2019 at 08:10:03PM -0700, Randy Dunlap wrote: > [adding mailing lists etc. with Nathaniel's test info] > > On 8/15/19 7:21 PM, Nathaniel Russell wrote: > > Well i surpressed the uvcvideo driver and you are right Randy it > > definitely is not the uvcvideo driver. There i

[Intel-gfx] [PATCH] drm/i915/buddy: tidy up i915_buddy_fini

2019-08-16 Thread Matthew Auld
If we are leaking nodes don't hide it. Also stop trying to be "defensive" and instead embrace Kasan et al. Signed-off-by: Matthew Auld Cc: Chris Wilson --- drivers/gpu/drm/i915/i915_buddy.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_buddy

Re: [Intel-gfx] [PATCH] drm/i915: Use the associated uncore for the vm

2019-08-16 Thread Matthew Auld
On Fri, 16 Aug 2019 at 09:31, Chris Wilson wrote: > > We store the gt&uncoree to use in the address space, so use it! > > Signed-off-by: Chris Wilson Reviewed-by: Matthew Auld ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.fre

Re: [Intel-gfx] [PATCH] drm/i915/buddy: tidy up i915_buddy_fini

2019-08-16 Thread Chris Wilson
Quoting Matthew Auld (2019-08-16 11:03:26) > If we are leaking nodes don't hide it. Also stop trying to be > "defensive" and instead embrace Kasan et al. If you want to go even further, record the stacks of each allocator. As we are using kmalloc of each node and operate like a cache, we can do s

Re: [Intel-gfx] [PATCH] drm/i915: Convert a few more bland dmesg info to be device specific

2019-08-16 Thread Jani Nikula
On Thu, 15 Aug 2019, Chris Wilson wrote: > Looking around the GT initialisation, we have a few log messages we > think are interesting enough present to the user (such as the amount of L4 > cache) and a few to inform them of the result of actions or conflicting > HW restrictions (i.e. quirks). The

Re: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

2019-08-16 Thread Shankar, Uma
>-Original Message- >From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of >Lucas >De Marchi >Sent: Thursday, August 15, 2019 5:25 AM >To: intel-gfx@lists.freedesktop.org >Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC > >The current SKUs added for Tiger

[Intel-gfx] ✓ Fi.CI.IGT: success for Revert "ALSA: hda - Drop unsol event handler for Intel HDMI codecs"

2019-08-16 Thread Patchwork
== Series Details == Series: Revert "ALSA: hda - Drop unsol event handler for Intel HDMI codecs" URL : https://patchwork.freedesktop.org/series/65267/ State : success == Summary == CI Bug Log - changes from CI_DRM_6712_full -> Patchwork_14034_full ==

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Dynamically allocate s0ix struct for VLV

2019-08-16 Thread Jani Nikula
On Fri, 16 Aug 2019, Chris Wilson wrote: > Quoting Jani Nikula (2019-08-16 10:35:08) >> On Thu, 15 Aug 2019, Daniele Ceraolo Spurio >> wrote: >> > @@ -1622,7 +1560,7 @@ struct drm_i915_private { >> > u32 suspend_count; >> > bool power_domains_suspended; >> > struct i915_suspend

[Intel-gfx] [PATCH] drm/i915: Only emit the 'send bug report' once for a GPU hang

2019-08-16 Thread Chris Wilson
Use a locked xchg to ensure that the global log message giving instructions on how to send a bug report is emitted precisely once. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gpu_error.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Use the associated uncore for the vm

2019-08-16 Thread Patchwork
== Series Details == Series: drm/i915: Use the associated uncore for the vm URL : https://patchwork.freedesktop.org/series/65291/ State : success == Summary == CI Bug Log - changes from CI_DRM_6716 -> Patchwork_14047 Summary --- **SU

[Intel-gfx] [PATCH 2/2] drm/i915/buddy: use kmemleak_update_trace

2019-08-16 Thread Matthew Auld
Since nodes are cached in a free-list, and potentially marked as free without actually being destroyed, thus allowing them to be opportunistically re-allocated, we should apply kmemleak_update_trace every time a node is given a new owner and marked as allocated, to aid in debugging. Suggested-by:

[Intel-gfx] [PATCH 1/2] drm/i915/buddy: tidy up i915_buddy_fini

2019-08-16 Thread Matthew Auld
If we are leaking nodes don't hide it. Also stop trying to be "defensive" and instead embrace Kasan et al. Signed-off-by: Matthew Auld Cc: Chris Wilson --- drivers/gpu/drm/i915/i915_buddy.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_buddy

[Intel-gfx] [PATCH v3 2/5] drm/i915/wopcm: Check WOPCM layout separately from calculations

2019-08-16 Thread Michal Wajdeczko
We can do WOPCM partitioning using rough estimates and limits and perform detailed check as separate step. v2: oops! s/max/min v3: consolidate overflow checks (Daniele) Signed-off-by: Michal Wajdeczko Cc: Daniele Ceraolo Spurio Cc: Chris Wilson --- drivers/gpu/drm/i915/intel_wopcm.c | 97

[Intel-gfx] [PATCH v3 4/5] drm/i915/wopcm: Update error messages

2019-08-16 Thread Michal Wajdeczko
All WOPCM error messages are device specific, so use device specific error functions. Signed-off-by: Michal Wajdeczko Cc: Chris Wilson --- drivers/gpu/drm/i915/intel_wopcm.c | 44 -- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v3 0/5] More WOPCM fixes

2019-08-16 Thread Michal Wajdeczko
More WOPCM fixes v3: consolidate overflow checks (Daniele) Michal Wajdeczko (4): drm/i915/wopcm: Check WOPCM layout separately from calculations drm/i915/wopcm: Try to use already locked WOPCM layout drm/i915/wopcm: Update error messages drm/i915/wopmc: Fix SPDX tag location Michał Winia

[Intel-gfx] [PATCH v3 3/5] drm/i915/wopcm: Try to use already locked WOPCM layout

2019-08-16 Thread Michal Wajdeczko
If WOPCM layout is already locked in HW we shouldn't continue with our own partitioning as it could be likely different and we will be unable to enforce it and fail. Instead we should try to reuse what is already programmed, maybe there will be a fit. This should enable us to reload driver with sl

[Intel-gfx] [PATCH v3 1/5] drm/i915/uc: Move FW size sanity check back to fetch

2019-08-16 Thread Michal Wajdeczko
From: Michał Winiarski While we need to know WOPCM size to do this sanity check, it has more to do with FW than with WOPCM. Let's move the check to fetch phase, it's not like WOPCM is going to grow in the meantime. v2: rebased v3: use __intel_uc_fw_get_upload_size (Daniele) Signed-off-by: Micha

[Intel-gfx] [PATCH v3 5/5] drm/i915/wopmc: Fix SPDX tag location

2019-08-16 Thread Michal Wajdeczko
Move SPDX tag to first line, and update year to 2019. Signed-off-by: Michal Wajdeczko Cc: Chris Wilson --- drivers/gpu/drm/i915/intel_wopcm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_wopcm.c b/drivers/gpu/drm/i915/intel_wopcm.c index e

Re: [Intel-gfx] [PATCH 2/2] drm/i915/buddy: use kmemleak_update_trace

2019-08-16 Thread Chris Wilson
Quoting Matthew Auld (2019-08-16 11:53:57) > Since nodes are cached in a free-list, and potentially marked as free > without actually being destroyed, thus allowing them to be > opportunistically re-allocated, we should apply kmemleak_update_trace > every time a node is given a new owner and marked

Re: [Intel-gfx] [PATCH 1/2] drm/i915/buddy: tidy up i915_buddy_fini

2019-08-16 Thread Chris Wilson
Quoting Matthew Auld (2019-08-16 11:53:56) > If we are leaking nodes don't hide it. Also stop trying to be > "defensive" and instead embrace Kasan et al. > > Signed-off-by: Matthew Auld > Cc: Chris Wilson > --- > drivers/gpu/drm/i915/i915_buddy.c | 7 +-- > 1 file changed, 1 insertion(+), 6

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock URL : https://patchwork.freedesktop.org/series/65294/ State : warning == Summary == $ dim checkpatch origin/drm-tip 03b058860a18 drm/i915/execlists: Lift process_csb() ou

Re: [Intel-gfx] [PATCH v3 4/5] drm/i915/wopcm: Update error messages

2019-08-16 Thread Chris Wilson
Quoting Michal Wajdeczko (2019-08-16 11:55:00) > All WOPCM error messages are device specific, so use > device specific error functions. > > Signed-off-by: Michal Wajdeczko > Cc: Chris Wilson Reviewed-by: Chris Wilson -Chris ___ Intel-gfx mailing list

Re: [Intel-gfx] [PATCH v3 5/5] drm/i915/wopmc: Fix SPDX tag location

2019-08-16 Thread Chris Wilson
Quoting Michal Wajdeczko (2019-08-16 11:55:01) > Move SPDX tag to first line, and update year to 2019. > > Signed-off-by: Michal Wajdeczko > Cc: Chris Wilson Reviewed-by: Chris Wilson Head, bury thyself in the sand. -Chris ___ Intel-gfx mailing list

[Intel-gfx] ✓ Fi.CI.IGT: success for Revert "ALSA: hda: Add codec on bus address table lately"

2019-08-16 Thread Patchwork
== Series Details == Series: Revert "ALSA: hda: Add codec on bus address table lately" URL : https://patchwork.freedesktop.org/series/65271/ State : success == Summary == CI Bug Log - changes from CI_DRM_6712_full -> Patchwork_14036_full Su

Re: [Intel-gfx] [PATCH v3 2/5] drm/i915/wopcm: Check WOPCM layout separately from calculations

2019-08-16 Thread Chris Wilson
Quoting Michal Wajdeczko (2019-08-16 11:54:58) > +static inline bool __check_layout(struct drm_i915_private *i915, u32 > wopcm_size, > + u32 guc_wopcm_base, u32 guc_wopcm_size, > + u32 guc_fw_size, u32 huc_fw_size) > +{ > + cons

Re: [Intel-gfx] [PATCH v3 2/5] drm/i915/wopcm: Check WOPCM layout separately from calculations

2019-08-16 Thread Michal Wajdeczko
On Fri, 16 Aug 2019 13:21:03 +0200, Chris Wilson wrote: Quoting Michal Wajdeczko (2019-08-16 11:54:58) +static inline bool __check_layout(struct drm_i915_private *i915, u32 wopcm_size, + u32 guc_wopcm_base, u32 guc_wopcm_size, +

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock URL : https://patchwork.freedesktop.org/series/65294/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6716 -> Patchwork_14048 =

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Chris Wilson
Quoting Patchwork (2019-08-16 12:26:55) > * igt@gem_sync@basic-store-each: > - fi-cfl-8109u: [PASS][1] -> [INCOMPLETE][2] >[1]: > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6716/fi-cfl-8109u/igt@gem_s...@basic-store-each.html >[2]: > https://intel-gfx-ci.01.org/tree/drm-t

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

2019-08-16 Thread Maxime Ripard
Hi Daniel, Dave, Here's this week drm-misc-next PR. Maxime drm-misc-next-2019-08-16: drm-misc-next for 5.4: UAPI Changes: Cross-subsystem Changes: Core Changes: - dma-buf: add reservation_object_fences helper, relax reservation_object_add_shared_fence, remove reser

Re: [Intel-gfx] [PATCH 1/3] drm/i915/execlists: Lift process_csb() out of the irq-off spinlock

2019-08-16 Thread Mika Kuoppala
Chris Wilson writes: > If we only call process_csb() from the tasklet, though we lose the > ability to bypass ksoftirqd interrupt processing on direct submission > paths, we can push it out of the irq-off spinlock. > > The penalty is that we then allow schedule_out to be called concurrently > wit

  1   2   >