Re: [Intel-gfx] [PATCH 4/4] drm/i915: use current mode if the size matches the preferred mode

2014-10-22 Thread Jesse Barnes
On Tue, 21 Oct 2014 16:53:02 +0200 Daniel Vetter wrote: > On Thu, Oct 09, 2014 at 12:57:45PM -0700, Jesse Barnes wrote: > > From: Kristian Høgsberg > > > > The BIOS may set a native mode that doesn't quite match the preferred > > mode timings. It should be

Re: [Intel-gfx] v3.17, i915 vs nouveau: possible recursive locking detected

2014-10-18 Thread Jesse Barnes
On Thu, 16 Oct 2014 13:47:38 +0200 Daniel Vetter wrote: > We need ww mutexes and need to rewrite i915 a bit fo fix this all. > I.e. known issue. As long as your userspace isn't nasty nothing bad > will ever happen though. So do we already have a bug open with a good description of the issue? Eve

[Intel-gfx] [PATCH 4/4] drm/i915: use current mode if the size matches the preferred mode

2014-10-09 Thread Jesse Barnes
From: Kristian Høgsberg The BIOS may set a native mode that doesn't quite match the preferred mode timings. It should be ok to use however if it uses the same size, so try to avoid a mode set in that case. Signed-off-by: Kristian Høgsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm

[Intel-gfx] [PATCH 3/4] drm: add drm_mode_same_size function

2014-10-09 Thread Jesse Barnes
From: Kristian Høgsberg Like mode_equal but w/o the clock checks. Useful for checking if modes are close enough to re-use to avoid a boot time mode set for example. Signed-off-by: Kristian Høgsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_modes.c | 8 include/drm

[Intel-gfx] [PATCH 1/4] drm/i915: preserve SSC if previously set v3

2014-10-09 Thread Jesse Barnes
) v3: trust BIOS configuration over VBT like we do for DP (Jani) Reported-by: Kristian Høgsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/4] drm/i915: preserve swizzle settings if necessary v4

2014-10-09 Thread Jesse Barnes
framebuffer (Daniel) check display swizzle setting in detect_bit_6_swizzle (Daniel) use gen6 as cutoff point (Daniel) v4: fixup swizzle preserve again, had wrong init order (Daniel) Reported-by: Kristian Høgsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h| 2 ++

[Intel-gfx] [PATCH] drm/i915: use delayed work for resume hotplug v4

2014-10-09 Thread Jesse Barnes
Gets the detect code (which may take awhile) out of the resume path, speeding things up a bit. v2: use a delayed work queue instead (Daniel) v3: cancel delayed work at unload and suspend time (Jesse) v4: make delayed work comment less scary (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu

Re: [Intel-gfx] [PATCH] drm/i915: use delayed work for resume hotplug v2

2014-10-09 Thread Jesse Barnes
On Thu, 9 Oct 2014 11:11:32 +0100 Chris Wilson wrote: > On Wed, Oct 08, 2014 at 07:32:12AM -0700, Jesse Barnes wrote: > > On Wed, 8 Oct 2014 07:43:34 +0100 > > Chris Wilson wrote: > > > > > On Tue, Oct 07, 2014 at 01:25:23PM -0700, Jesse Barnes wrote: > >

Re: [Intel-gfx] [PATCH] drm/i915: use delayed work for resume hotplug v2

2014-10-08 Thread Jesse Barnes
On Wed, 8 Oct 2014 07:43:34 +0100 Chris Wilson wrote: > On Tue, Oct 07, 2014 at 01:25:23PM -0700, Jesse Barnes wrote: > > Gets the detect code (which may take awhile) out of the resume path, > > speeding things up a bit. > > > > v2: use a delayed work queue instead (

[Intel-gfx] [PATCH] drm/i915: use delayed work for resume hotplug v2

2014-10-07 Thread Jesse Barnes
Gets the detect code (which may take awhile) out of the resume path, speeding things up a bit. v2: use a delayed work queue instead (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_dma.c | 10 ++ drivers/gpu/drm/i915/i915_drv.c | 8 ++-- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm: Implement O_NONBLOCK support on /dev/dri/cardN

2014-10-07 Thread Jesse Barnes
har __user > *buffer, e->destroy(e); > } > > - return total; > + return total ?: -EAGAIN; > } > EXPORT_SYMBOL(drm_read); I'd prefer "total" to be spelled out after the ? (is this just a GNU thing or does recent C implicitly use the first opera

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Add IS_BDW_GT3 macro.

2014-09-29 Thread Jesse Barnes
0x00F0) == 0x0020) > #define IS_HSW_ULT(dev) (IS_HASWELL(dev) && \ >(INTEL_DEVID(dev) & 0xFF00) == 0x0A00) > #define IS_ULT(dev) (IS_HSW_ULT(dev) || IS_BDW_ULT(dev)) Looks correct based on the configs I&#x

Re: [Intel-gfx] [PATCH] Revert "drm/i915/bdw: BDW Software Turbo"

2014-09-29 Thread Jesse Barnes
On Mon, 29 Sep 2014 09:52:38 -0700 Rodrigo Vivi wrote: > On Mon, Sep 29, 2014 at 9:38 AM, Daniel Vetter wrote: > > On Mon, Sep 29, 2014 at 08:48:53AM -0700, Jesse Barnes wrote: > >> On Mon, 29 Sep 2014 15:11:51 +0200 > >> Daniel Vetter wrote: >

Re: [Intel-gfx] [PATCH] Revert "drm/i915/bdw: BDW Software Turbo"

2014-09-29 Thread Jesse Barnes
On Mon, 29 Sep 2014 15:11:51 +0200 Daniel Vetter wrote: > This reverts commit c76bb61a71083b2d90504cc6d0dda2047c5d63ca. > > It's apparently too broken so that Rodrigo submitted a patch to add a > config option for it. Given that the design is also ... suboptimal and > that I've only merged this

[Intel-gfx] [PATCH] drm/i915/skl: fetch, enable/disable pfit as needed v2

2014-09-25 Thread Jesse Barnes
This moved around on SKL, so we need to make sure we read/write the correct regs. v2: fixup WIN_POS offsets (Paulo) zero out WIN_POS reg at disable time (Paulo) Signed-off-by: Jesse Barnes Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_reg.h | 12 +++ drivers/gpu/drm

Re: [Intel-gfx] [PATCH 75/89] drm/i915/skl: fetch, enable/disable pfit as needed

2014-09-25 Thread Jesse Barnes
On Tue, 23 Sep 2014 17:50:29 -0300 Paulo Zanoni wrote: > 2014-09-04 8:27 GMT-03:00 Damien Lespiau : > > From: Jesse Barnes > > > > This moved around on SKL, so we need to make sure we read/write the > > correct regs. > > > > Signed-off-by: Jesse Ba

Re: [Intel-gfx] [RFC] drm/i915/edp: use max lanes and clock for edp

2014-09-11 Thread Jesse Barnes
* Use the maximum clock and number of lanes the > >> eDP panel > >> + * advertizes being capable of. Typically these > >> values > >> + * correspond to the native resolution of the > >> panel. > >> + */ > >&

Re: [Intel-gfx] i915.fastboot bug report - not working on coreboot

2014-09-11 Thread Jesse Barnes
On Tue, 26 Aug 2014 13:09:54 -0400 Charles Devereaux wrote: > Hello > > I'm trying to use i915.fastboot on a Thinkpad X60t. The bios has been > replaced by coreboot, which supports native video init. > > The goal is to boot to a console on a debian in less than 2 seconds > (kernel > + systemd),

Re: [Intel-gfx] [PATCH 3/3] drm/i915/hdmi: Cache EDID for a detection cycle

2014-09-11 Thread Jesse Barnes
On Tue, 2 Sep 2014 13:45:37 +0300 Ville Syrjälä wrote: > On Tue, Sep 02, 2014 at 09:24:48AM +0100, Chris Wilson wrote: > > As we may query the edid multiple times following a detect, record > > the EDID found during output discovery and reuse it. This is a > > separate issue from caching the outp

Re: [Intel-gfx] [PATCH 08/16] drm/i915: remove unused restore_gtt_mappings optimization during suspend

2014-09-11 Thread Jesse Barnes
On Thu, 11 Sep 2014 14:59:35 +0300 Imre Deak wrote: > On Thu, 2014-09-11 at 08:49 +0100, Chris Wilson wrote: > > On Wed, Sep 10, 2014 at 06:17:01PM +0300, Imre Deak wrote: > > > Since correctness wins over optimal code and since the optimization > > > > Optimal code is also correct ;-) s/optimal

Re: [Intel-gfx] [PATCH] drm/i915: add cherryview specfic forcewake in execlists_elsp_write

2014-09-09 Thread Jesse Barnes
On Tue, 09 Sep 2014 21:45:08 +0530 Deepak S wrote: > > On Monday 08 September 2014 08:10 PM, Daniel Vetter wrote: > > On Mon, Sep 08, 2014 at 05:14:23PM +0300, Ville Syrjälä wrote: > >> On Mon, Sep 08, 2014 at 05:02:43PM +0300, Ville Syrjälä wrote: > >>> On Tue, Sep 09, 2014 at 07:14:16PM +0530,

Re: [Intel-gfx] [PATCH] drm/i915: Restore resume irq ordering comment

2014-09-08 Thread Jesse Barnes
On Mon, 8 Sep 2014 18:28:20 +0200 Daniel Vetter wrote: > This was lost in > > commit e11aa362308f5de467ce355a2a2471321b15a35c > Author: Jesse Barnes > Date: Wed Jun 18 09:52:55 2014 -0700 > > drm/i915: use runtime irq suspend/resume in freeze/thaw > > whi

Re: [Intel-gfx] [PATCH] drm/i915: Fix irq enable tracking in driver load

2014-09-05 Thread Jesse Barnes
gt; self-checks fire and complain. > > > > To fix that set the tracking boolen before enabling the irqs with > > drm_irq_install. Quoting the discussion with Jesse why that's safe: > > > > On Tue, Aug 26, 2014 at 11:18 PM, Jesse Barnes > > wrote: > >

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 18:59:55 +0200 Daniel Vetter wrote: > On Thu, Sep 4, 2014 at 6:24 PM, Jesse Barnes wrote: > > On Thu, 4 Sep 2014 17:59:18 +0200 > > Daniel Vetter wrote: > > > >> On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes > >> wrote: > >>

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 17:59:18 +0200 Daniel Vetter wrote: > On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes > wrote: > >> diff --git a/drivers/gpu/drm/i915/i915_irq.c > >> b/drivers/gpu/drm/i915/i915_irq.c > >> index 9eb303c1b621..76bc4d0de5a4 100644 > >

Re: [Intel-gfx] [PATCH 86/89] drm/i915: only reset media, blt, and render engines on GPU hangs

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 13:29:06 +0100 Damien Lespiau wrote: > On Thu, Sep 04, 2014 at 03:03:27PM +0300, Jani Nikula wrote: > > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > > From: Jesse Barnes > > > > > > No need to mess with display. > > > > W

Re: [Intel-gfx] [PATCH 2/2] drm/i915: allow sync points within batches

2014-09-03 Thread Jesse Barnes
On Wed, 3 Sep 2014 21:41:02 +0200 Daniel Vetter wrote: > On Wed, Sep 3, 2014 at 9:01 PM, Jesse Barnes wrote: > > On Wed, 3 Sep 2014 17:08:53 +0100 > > Chris Wilson wrote: > >> On Wed, Sep 03, 2014 at 08:41:06AM -0700, Jesse Barnes wrote: > >> > On Wed, 3

Re: [Intel-gfx] [PATCH 2/2] drm/i915: allow sync points within batches

2014-09-03 Thread Jesse Barnes
On Wed, 3 Sep 2014 08:01:55 +0100 Chris Wilson wrote: > On Tue, Sep 02, 2014 at 02:32:41PM -0700, Jesse Barnes wrote: > > Use a new reloc type to allow userspace to insert sync points within > > batches before they're submitted. The corresponding fence fds are > > re

[Intel-gfx] [PATCH 2/2] drm/i915: allow sync points within batches

2014-09-02 Thread Jesse Barnes
Use a new reloc type to allow userspace to insert sync points within batches before they're submitted. The corresponding fence fds are returned in the offset field of the returned reloc tree, and can be operated on with the sync fence APIs. Signed-off-by: Jesse Barnes --- drivers/gpu/drm

[Intel-gfx] Updated fence patches

2014-09-02 Thread Jesse Barnes
This set includes a sketch of how we might allow fences to be emitted directly within a batch buffer. This gets rid of the need for flushing around fence operations, which can be a win, and lets userspace more finely control things. If it looks reasonable, we could drop the separate ioctl and jus

[Intel-gfx] [PATCH 1/2] drm/i915: Android sync points for i915 v2

2014-09-02 Thread Jesse Barnes
using Maarten's new interface Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/Kconfig | 2 + drivers/gpu/drm/i915/Makefile| 1 + drivers/gpu/drm/i915/i915_dma.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 10 ++ drivers/gpu/drm/i915/i915_gem.c | 15 +- drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-08-27 Thread Jesse Barnes
On Wed, 27 Aug 2014 10:43:37 +0200 Daniel Vetter wrote: > Now that vlv has runtime pm we kinda should check for that like on the > pch split platforms. Looks like this was simply lost in the vlv rpm > enabling. > > Cc: Paulo Zanoni > Cc: Imre Deak > Cc: Jesse Barnes &g

Re: [Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-27 Thread Jesse Barnes
On Wed, 27 Aug 2014 23:33:05 +0200 Daniel Vetter wrote: > On Wed, Aug 27, 2014 at 9:59 PM, Jesse Barnes > wrote: > > Yi, can you get this one run through testing on multiple platforms? We > > just want to make sure there's not some path we missed that's gonna

Re: [Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-27 Thread Jesse Barnes
Yi, can you get this one run through testing on multiple platforms? We just want to make sure there's not some path we missed that's gonna spew a warning with this change. Thanks, Jesse On Tue, 26 Aug 2014 22:51:13 +0200 Daniel Vetter wrote: > > On Tue, Aug 26, 2014 at 8:52

Re: [Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-26 Thread Jesse Barnes
On Tue, 26 Aug 2014 22:51:13 +0200 Daniel Vetter wrote: > > On Tue, Aug 26, 2014 at 8:52 PM, Jesse Barnes > wrote: > > On Tue, 26 Aug 2014 09:23:54 +0200 > > Daniel Vetter wrote: > > > >> On Mon, Aug 25, 2014 at 04:24:55PM -0700, Jesse Barnes wrote: &g

Re: [Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-26 Thread Jesse Barnes
On Tue, 26 Aug 2014 21:03:11 +0200 Oliver Hartkopp wrote: > On 26.08.2014 20:52, Jesse Barnes wrote: > > On Tue, 26 Aug 2014 09:23:54 +0200 > > Daniel Vetter wrote: > > >>> This happens in irq_postinstall before we've set the pm._irqs_disabled > >>

Re: [Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-26 Thread Jesse Barnes
On Tue, 26 Aug 2014 09:23:54 +0200 Daniel Vetter wrote: > On Mon, Aug 25, 2014 at 04:24:55PM -0700, Jesse Barnes wrote: > > This happens in irq_postinstall before we've set the pm._irqs_disabled flag, > > but shouldn't warn. So add a nowarn variant to allow this to h

[Intel-gfx] [PATCH] drm/i915/ilk: special case enabling of PCU_EVENT interrupt

2014-08-25 Thread Jesse Barnes
This happens in irq_postinstall before we've set the pm._irqs_disabled flag, but shouldn't warn. So add a nowarn variant to allow this to happen w/o a backtrace and keep the rest of the IRQ tracking code happy. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_ir

Re: [Intel-gfx] [PATCH 00/68] Broadwell 48b addressing and prelocations (no relocs)

2014-08-25 Thread Jesse Barnes
> Well I admit to not having read the patches over the terrible wifi > here, but I presumed Ben's patches did implement softpin. I guess I've > made a mess of all of this now. In any case I still want to see > relative improvements over what we have since the prelocated stuff > l

Re: [Intel-gfx] 3.17.0-rc1: WARNING: CPU: 1 PID: 1 at drivers/gpu/drm/i915/i915_irq.c:139 ironlake_enable_display_irq+0x7f/0x90()

2014-08-25 Thread Jesse Barnes
On Mon, 25 Aug 2014 20:29:27 +0200 Oliver Hartkopp wrote: > Hi Jesse, > > since the i915 stuff for 3.17 was merged I always get this > warning on my core i7 with internal Intel HD graphics. > > Intel(R) Core(TM) i7 CPU M 640 @ 2.80GHz > > As this warning is triggered by the code which w

Re: [Intel-gfx] [PATCH v3] drm/i915/bdw: BDW Software Turbo

2014-08-14 Thread Jesse Barnes
e time on this either. So we're left with this patch, which does improve things for most cases, or no patch, which leaves things universally bad. Unless someone wants to pick up the additional work and testing of using a timer scheme, making sure we don't have needless wakeups, an

Re: [Intel-gfx] Usage of _PAGE_PCD et al in i915 driver

2014-08-13 Thread Jesse Barnes
ave an x86 compatible MMU in the GPU itself, so re-using the defines makes sense. I suppose with your work you'll move them and make them a bit more opaque? If so, we'll still want a way to get at them directly, or access your mapping f

Re: [Intel-gfx] [PATCH 04/15] drm/i915: honour forced connector modes

2014-08-06 Thread Jesse Barnes
coded connector > config that tries to enable a connector (disabling is easy!). > > Based on earlier patches by Jesse Barnes. > > v2: Remove Jesse's patch > > Reported-by: Ville Syrjälä > Signed-off-by: Chris Wilson > Cc: Jesse Barnes > Cc: Ville Syrjälä &

Re: [Intel-gfx] [PATCH 11/15] drm/i915: Set M2_N2 registers during mode set

2014-08-05 Thread Jesse Barnes
l_dp_set_m_n() > > Signed-off-by: Vandana Kannan > Cc: Daniel Vetter > Cc: Jesse Barnes > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/intel_display.c | 28 +--- > drivers/gpu/drm/i915/intel_dp.c | 18 +++--- > driv

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 5 Aug 2014 19:43:22 +0200 Daniel Vetter wrote: > On Tue, Aug 5, 2014 at 7:09 PM, Jesse Barnes wrote: > >> >> >> Then we need similar flags for vblank events and pageflips to do the > >> >> >> same (obviously those are drm core patches) and it

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 5 Aug 2014 18:08:16 +0200 Daniel Vetter wrote: > On Tue, Aug 5, 2014 at 6:05 PM, Jesse Barnes wrote: > > On Tue, 5 Aug 2014 17:08:22 +0200 > > Daniel Vetter wrote: > > > >> On Tue, Aug 5, 2014 at 4:59 PM, Jesse Barnes > >> wrote: > >>

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 5 Aug 2014 18:08:16 +0200 Daniel Vetter wrote: > On Tue, Aug 5, 2014 at 6:05 PM, Jesse Barnes wrote: > > But yes, I want the Android guys to try this out too. I've already > > pinged them internally to check things out. Probably the biggest > > remaining ope

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 5 Aug 2014 17:08:22 +0200 Daniel Vetter wrote: > On Tue, Aug 5, 2014 at 4:59 PM, Jesse Barnes wrote: > >> This doesn't really look like the interface I'd expected. Imo we just > >> need to add a flag to execbuf so that userspace can tell the kernel

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 05 Aug 2014 10:09:56 +0200 Maarten Lankhorst wrote: > op 05-08-14 01:18, Jesse Barnes schreef: > > Expose an ioctl to create Android fences based on the Android sync point > > infrastructure (which in turn is based on DMA-buf fences). Just a > > sketch at this point

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-05 Thread Jesse Barnes
On Tue, 5 Aug 2014 09:44:00 +0200 Daniel Vetter wrote: > On Tue, Aug 5, 2014 at 1:18 AM, Jesse Barnes wrote: > > +#define DRM_IOCTL_I915_GEM_FENCE DRM_IOWR > > (DRM_COMMAND_BASE + DRM_I915_GEM_FENCE, struct drm_i915_gem_fence) > > > >

[Intel-gfx] [PATCH] drm/i915: Android sync points for i915 v2

2014-08-04 Thread Jesse Barnes
using Maarten's new interface Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/Kconfig | 2 + drivers/gpu/drm/i915/Makefile| 1 + drivers/gpu/drm/i915/i915_dma.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 10 ++ drivers/gpu/drm/i915/i915_gem.c | 15 +- drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH] drm/i915: Skip Stolen Memory first page.

2014-08-01 Thread Jesse Barnes
e ringbuffers and whatever else we allocate out of stolen at early boot. We might be able to avoid that by doing stolen allocations top down, or by reserving the displayed fb even if we can't allocate an obj for it, only freeing it after our first mode set. Can you file a bug or JIRA for tha

Re: [Intel-gfx] [PATCH 00/43] Execlists v5

2014-08-01 Thread Jesse Barnes
e and I'm afraid we'll run into issues that don't exist with the execlist path if we stick with the legacy submission path (we may have already hit one in fact). -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing l

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915

2014-08-01 Thread Jesse Barnes
On Fri, 01 Aug 2014 10:04:55 +0100 Tvrtko Ursulin wrote: > Hi Jesse, > > On 07/31/2014 07:58 PM, Jesse Barnes wrote: > > Expose an ioctl to create Android fences based on the Android sync point > > infrastructure (which in turn is based on DMA-buf fences). Just a > &g

[Intel-gfx] [PATCH] drm/i915: Android sync points for i915

2014-07-31 Thread Jesse Barnes
associated buffer 2) re-use a common API so userspace doesn't have to impedance mismatch between different driver implementations too much 3) allow applications and libraries to use explicit synchronization if they choose by exposing fences directly Signed-off-by: Jesse B

[Intel-gfx] [RFC] Sync points/fences for i915

2014-07-31 Thread Jesse Barnes
This hasn't seen any testing yet, but I'm still interested in any bugs people see in review, I'll fix them up. If there are no major objections, I'll add some tests and a man page to libdrm for this and we can move forward into the brave new world of fences, giving userspace a lot more rope to han

Re: [Intel-gfx] [PATCH] drm/i915: freeze display before the interrupts and GT

2014-07-29 Thread Jesse Barnes
this patch, > with the exception that its original patch, when applied to the > current tree, procduces a WARN. > > Related commits: > > commit daa390e5ee45cc051d6bf37b296901f2f92b002d > Author: Jesse Barnes > drm/i915: don't warn if IRQs are disabled when

Re: [Intel-gfx] [PATCH 06/40] drm/i915: Add cdclk change support for chv

2014-07-29 Thread Jesse Barnes
On Tue, 29 Jul 2014 19:59:26 +0200 Daniel Vetter wrote: > On Tue, Jul 29, 2014 at 09:51:03AM -0700, Jesse Barnes wrote: > > On Sat, 28 Jun 2014 02:03:57 +0300 > > ville.syrj...@linux.intel.com wrote: > > > > > From: Ville Syrjälä > > > > > >

Re: [Intel-gfx] [PATCH 34/40] drm/i915: Add DP training pattern 3 for CHV

2014-07-29 Thread Jesse Barnes
I915_WRITE(intel_dp->output_reg, DP | > DP_LINK_TRAIN_PAT_IDLE_CPT); > } else { > - DP &= ~DP_LINK_TRAIN_MASK; > + if (IS_CHERRYVIEW(dev)) > + DP &= ~DP_LINK_TRAIN_MASK_CHV; > + else > + DP &

Re: [Intel-gfx] [PATCH 29/40] drm/i915: Refactor Broadwell PIPE_CONTROL emission into a helper.

2014-07-29 Thread Jesse Barnes
_emit(ring, flags); > - intel_ring_emit(ring, scratch_addr); > - intel_ring_emit(ring, 0); > - intel_ring_emit(ring, 0); > - intel_ring_emit(ring, 0); > - intel_ring_advance(ring); > - > - return 0; > - > + return gen8_emit_pi

Re: [Intel-gfx] [PATCH 27/40] drm/i915: Split a few long debug prints

2014-07-29 Thread Jesse Barnes
or=%d, B: > plane=%d, cursor=%d, SR: plane=%d, cursor=%d\n", > + DRM_DEBUG_KMS("Setting FIFO watermarks - A: plane=%d, cursor=%d, " > + "B: plane=%d, cursor=%d, SR: plane=%d, cursor=%d\n", > planea_wm, cursora_wm, &

Re: [Intel-gfx] [PATCH 14/40] drm/i915: Override display PHY TX FIFO reset master on chv

2014-07-29 Thread Jesse Barnes
+ > + val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW11(ch)); > + val &= ~DPIO_LEFT_TXFIFO_RST_MASTER; > + val |= DPIO_RIGHT_TXFIFO_RST_MASTER; > + val |= DPIO_LANEDESKEW_STRAP_OVRD; > + vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW11(ch), val); &g

Re: [Intel-gfx] [PATCH 12/40] drm/i915: Clarify CHV swing margin/deemph bits

2014-07-29 Thread Jesse Barnes
_hdmi_pre_enable(struct intel_encoder > *encoder) > > for (i = 0; i < 4; i++) { > val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW2(ch, i)); > - val &= ~DPIO_SWING_MARGIN_MASK; > - val |= 102 << DPIO_SWIN

Re: [Intel-gfx] [PATCH 11/40] drm/i915: Call intel_{dp, hdmi}_prepare for chv

2014-07-29 Thread Jesse Barnes
intel_hdmi_prepare(encoder); > + > mutex_lock(&dev_priv->dpio_lock); > > /* program left/right clock distribution */ Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 09/40] drm/i915: Split chv_update_pll() apart

2014-07-29 Thread Jesse Barnes
->config.dpll_hw_state.dpll |= DPLL_INTEGRATED_CRI_CLK_VLV; > - > - crtc->config.dpll_hw_state.dpll_md = > - (crtc->config.pixel_multiplier - 1) << > DPLL_MD_UDI_MULTIPLIER_SHIFT; > - > bestn = crtc->config.dpll.n; > bestm2_frac

Re: [Intel-gfx] [PATCH 08/40] drm/i915: Leave DPLL ref clocks on

2014-07-29 Thread Jesse Barnes
PLL_SSC_REF_CLOCK_CHV | DPLL_REFA_CLK_ENABLE_VLV; > if (pipe != PIPE_A) > val |= DPLL_INTEGRATED_CRI_CLK_VLV; > I915_WRITE(DPLL(pipe), val); Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH 07/40] drm/i915: Disable cdclk changes for chv until Punit is ready

2014-07-29 Thread Jesse Barnes
> u32 val; > int divider; > > + /* FIXME: Punit isn't quite ready yet */ > + if (IS_CHERRYVIEW(dev)) > + return 40; > + > mutex_lock(&dev_priv->dpio_lock); > val = vlv_cck_read(dev_priv, CCK_DISPLAY_CL

Re: [Intel-gfx] [PATCH 06/40] drm/i915: Add cdclk change support for chv

2014-07-29 Thread Jesse Barnes
int req_cdclk = valleyview_calc_cdclk(dev_priv, max_pixclk); > > - if (req_cdclk != dev_priv->vlv_cdclk_freq) > - valleyview_set_cdclk(dev, req_cdclk); > + if (req_cdclk != dev_priv->vlv_cdclk_freq) { > + if (IS_CHERRYVIEW(dev)) > + cherryview_set

Re: [Intel-gfx] [PATCH] drm/i915: s/seqno/request/ tracking inside objects

2014-07-29 Thread Jesse Barnes
On Tue, 29 Jul 2014 12:41:26 +0200 Daniel Vetter wrote: > On Tue, Jul 29, 2014 at 08:29:53AM +0100, Chris Wilson wrote: > > On Mon, Jul 28, 2014 at 01:44:12PM -0700, Jesse Barnes wrote: > > > > @@ -3038,44 +3203,35 @@ out: > > > > */ > > > &

Re: [Intel-gfx] [PATCH] drm/i915: s/seqno/request/ tracking inside objects

2014-07-28 Thread Jesse Barnes
t does this comment mean? How does VEBOX break this? Does it not have semaphore support or something? > @@ -3038,44 +3203,35 @@ out: > */ > int > i915_gem_object_sync(struct drm_i915_gem_object *obj, > - struct intel_engine_cs *to) > + str

Re: [Intel-gfx] [PATCH v2] drm/i915/bdw: BDW Software Turbo

2014-07-24 Thread Jesse Barnes
tp://blog.ffwll.ch > _______ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx > -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [RFC 13/44] drm/i915: Added scheduler hook when closing DRM file handles

2014-07-23 Thread Jesse Barnes
On Wed, 23 Jul 2014 16:10:32 +0100 John Harrison wrote: > On 02/07/2014 19:20, Jesse Barnes wrote: > > On Thu, 26 Jun 2014 18:24:04 +0100 > > john.c.harri...@intel.com wrote: > > > >> From: John Harrison > >> > >> The scheduler decouples th

Re: [Intel-gfx] [PATCH 1/2] drm/i915: extract backlight minimum brightness from VBT

2014-07-22 Thread Jesse Barnes
On Tue, 24 Jun 2014 18:27:39 +0300 Jani Nikula wrote: > Reviewed-by: Jesse Barnes > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/intel_bios.c | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --gi

Re: [Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-07-22 Thread Jesse Barnes
On Mon, 30 Jun 2014 08:05:34 -0700 Jesse Barnes wrote: > On Sat, 28 Jun 2014 16:45:03 +0300 > Jani Nikula wrote: > > >> +/* Scale user_level in range [0..user_max] to [0..hw_max], clamping the > > >> result > > >> + * to [hw_min..hw_max]. */ > &g

Re: [Intel-gfx] [PATCH v2] Displayport compliance testing

2014-07-22 Thread Jesse Barnes
On Tue, 22 Jul 2014 22:53:44 +0200 Daniel Vetter wrote: > On Tue, Jul 22, 2014 at 10:48 PM, Jesse Barnes > wrote: > > Are you saying > > you'll reject this approach entirely? > > I'm saying that I don't see terrible lot of value in adding a bunch of &

Re: [Intel-gfx] [PATCH 10/12] drm/i915: Update link training automated test function for Displayport compliance

2014-07-22 Thread Jesse Barnes
On Tue, 22 Jul 2014 22:44:54 +0200 Daniel Vetter wrote: > On Tue, Jul 22, 2014 at 10:40 PM, Jesse Barnes > wrote: > >> > + /* Set link rate directly */ > >> > + intel_dp->link_bw = rxdata[0]; > >> > + /* Preserve 7:5 when setting lane cou

Re: [Intel-gfx] [PATCH v2] Displayport compliance testing

2014-07-22 Thread Jesse Barnes
On Tue, 22 Jul 2014 13:48:45 -0700 Jesse Barnes wrote: > On Tue, 22 Jul 2014 08:41:11 +0200 > Daniel Vetter wrote: > > > On Mon, Jul 14, 2014 at 12:10:35PM -0700, Todd Previte wrote: > > > >This patch set adds the foundational support for Displayport compli

Re: [Intel-gfx] [PATCH v2] Displayport compliance testing

2014-07-22 Thread Jesse Barnes
n the link training paths which we desperately need. Having some additional user level tests would be great, but that's a much bigger and different task than simply implementing what's required for the DP compliance test. Asking Todd to take on a huge new task just because he posted this series is a big request. Are you saying you'll reject this approach entirely? -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 10/12] drm/i915: Update link training automated test function for Displayport compliance

2014-07-22 Thread Jesse Barnes
rain functions, it looks like messing with the intel_dp->foo fields will roughly do what Todd wants, which is to simply try a re-train with a different set of params, ignoring the actual fb and pipe configuration. Or is that what you had in mind? You'd like to see valid data and mode timings

Re: [Intel-gfx] [PATCH 4/4] drm/i915: set pm._irqs_disabled at IRQ init time

2014-07-14 Thread Jesse Barnes
On Mon, 14 Jul 2014 14:47:07 -0300 Paulo Zanoni wrote: > 2014-07-14 14:26 GMT-03:00 Daniel Vetter : > > On Mon, Jul 14, 2014 at 12:23:11PM -0300, Paulo Zanoni wrote: > >> 2014-06-20 13:29 GMT-03:00 Jesse Barnes : > >> > Before we've installed the handler,

Re: [Intel-gfx] [PATCH 2/4] drm/i915: add helper for checking whether IRQs are enabled

2014-07-14 Thread Jesse Barnes
On Mon, 14 Jul 2014 12:19:54 -0300 Paulo Zanoni wrote: > 2014-07-14 12:06 GMT-03:00 Paulo Zanoni : > > 2014-06-20 13:29 GMT-03:00 Jesse Barnes : > >> Now that we use the runtime IRQ enable/disable functions in our suspend > >> path, we can simply check the pm._irqs_di

Re: [Intel-gfx] [PATCH v4] drm/i915: Force GPU Freq to lowest while suspending.

2014-07-14 Thread Jesse Barnes
v_priv->rps.work); > > + > > + /* Force GPU to min freq during suspend */ > > + gen6_rps_idle(dev_priv); > > } > > > > void intel_disable_gt_powersave(struct drm_device *dev) > > Hi Jesse, > > Please review the patch Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915/chv: Drop WaGsvBringDownFreqInRc6

2014-07-14 Thread Jesse Barnes
gt; vlv_set_rps_idle(dev_priv); > > else > > gen6_set_rps(dev_priv->dev, > > dev_priv->rps.min_freq_softlimit); > > Hi Jesse, > > can you please review this patch? Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v4 1/2] drm/i915: Set M2_N2 registers during mode set

2014-07-11 Thread Jesse Barnes
c_config *pipe_config, > @@ -837,7 +839,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode > *mode, > int intel_format_to_fourcc(int format); > void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); > > - > /* intel_dp.c */ > void intel_dp_init(struct drm_device *dev, int output_reg, enum port port); > bool intel_dp_init_connector(struct intel_digital_port *intel_dig_port, A few whitespace issues and one gen8 check got left in, but otherwise looks fine. We could probably do some additional cleanups on top too, like making the transcoder m_n function look more like the dp one (unless there are cases when we need to pass around a m_n struct separate from the one in the intel_crtc, I didn't check). Anyway, this one looks ok. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/3] drm/crtc: Add property for aspect ratio

2014-07-09 Thread Jesse Barnes
2,7 @@ extern int drm_mode_create_dvi_i_properties(struct > drm_device *dev); > extern int drm_mode_create_tv_properties(struct drm_device *dev, int > num_formats, >char *formats[]); > extern int drm_mode_create_scaling_mode_property(stru

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Set M2_N2 registers during mode set

2014-07-09 Thread Jesse Barnes
drivers/gpu/drm/i915/intel_drv.h > @@ -315,6 +315,7 @@ struct intel_crtc_config { > > /* m2_n2 for eDP downclock */ > struct intel_link_m_n dp_m2_n2; > + bool has_drrs; > > /* >* Frequence the dpll for the port should run at. Differs from th

Re: [Intel-gfx] [PATCH 4/4] drm/i915: remove i915_rstdby_delays debugfs entry

2014-07-09 Thread Jesse Barnes
_list[] = > { > {"i915_gem_hws_blt", i915_hws_info, 0, (void *)BCS}, > {"i915_gem_hws_bsd", i915_hws_info, 0, (void *)VCS}, > {"i915_gem_hws_vebox", i915_hws_info, 0, (void *)VECS}, > - {"i915_rstdby_delays", i915_rst

Re: [Intel-gfx] [PATCH 3/4] drm/i915: remove i915_gfxec debugfs entry

2014-07-09 Thread Jesse Barnes
880,6 @@ static const struct drm_info_list i915_debugfs_list[] = > { > {"i915_drpc_info", i915_drpc_info, 0}, > {"i915_emon_status", i915_emon_status, 0}, > {"i915_ring_freq_table", i915_ring_freq_table, 0}, > - {"i915_gfxec"

Re: [Intel-gfx] [PATCH 1/4] drm/i915: remove i915_delayedfreq_table debugfs entry

2014-07-09 Thread Jesse Barnes
On Wed, 9 Jul 2014 15:10:43 +0300 Mika Kuoppala wrote: > CHV hard hangs on reading these registers. As these have not > been used since cantiga & ilk, remove the debugfs entry. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=80893 > Suggested-by: Jesse Barn

Re: [Intel-gfx] [PATCH 1/4] drm/i915: don't warn if IRQs are disabled when shutting down display IRQs

2014-07-07 Thread Jesse Barnes
On Mon, 7 Jul 2014 18:48:47 -0300 Paulo Zanoni wrote: > (documenting what we discussed on IRC) > > 2014-06-20 13:29 GMT-03:00 Jesse Barnes : > > This was always the case on our suspend path, but it was recently > > exposed by the change to use our runtime IRQ disable routin

Re: [Intel-gfx] [PATCH] drm/i915: Revert "drm/i915: Reject the pin ioctl on gen6+"

2014-07-07 Thread Jesse Barnes
llowing the pin ioctl as root is such a problem? You need to come up with an alternative proposal and we need to get it implemented in some reasonable amount of time if we're not going to just do the simple thing that's already been shown to work... IOW don't plug you

Re: [Intel-gfx] WAs in init_clock_gating?

2014-07-07 Thread Jesse Barnes
7;s unreasonable to use a macro that checks a global list for whether to apply a given WA. They'll be scattered all over, but at least it'll be easy to see: 1) whether we implement a given workaround and 2) which platforms & steppings it applies to based on the table. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] ResettRe: [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-07-03 Thread Jesse Barnes
s an excellent idea. > > However I am still curious to _why_ it has to be done in the first place. The display part of the GPU is partly on the PCH, and it's possible to mix & match them a bit, so we have this detection code to figure things out. In some cases, the PCH display portion may not even be present, so we look for that too. Practically speaking, we could probably assume specific CPU/PCH combos, as I don't think they're generally mixed across generations, though SNB and IVB did have compatible sockets, so there is the possibility of mixing CPT and PPT PCHs, but those are register identical as far as the graphics driver is concerned, so even that should be safe. Beyond that, the other MCH data we need to look at is mirrored into the GPU's MMIO space on current gens. On older gens, we do need to poke at the memory controller a bit to get some info (see intel_setup_mchbar()), but that's not true of newer stuff. Looks like we only short circuit that on VLV though; we could probably do it on SNB+. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Aggressively downclock Baytrail

2014-07-03 Thread Jesse Barnes
On Thu, 3 Jul 2014 16:59:17 +0100 Chris Wilson wrote: > On Thu, Jul 03, 2014 at 08:49:22AM -0700, Jesse Barnes wrote: > > On Thu, 3 Jul 2014 15:29:26 +0100 > > Chris Wilson wrote: > > > > > Baytrail uses the RPS wait-boosting mechanism of Sandybridge+

Re: [Intel-gfx] [PATCH] drm/i915: Check hangcheck is functioning before indefinite waits

2014-07-03 Thread Jesse Barnes
On Thu, 3 Jul 2014 16:51:11 +0100 Chris Wilson wrote: > On Thu, Jul 03, 2014 at 08:44:20AM -0700, Jesse Barnes wrote: > > On Thu, 3 Jul 2014 08:09:01 +0100 > > Chris Wilson wrote: > > > > > Since we rely on hangcheck to wait up and kick us out of an indefinite

Re: [Intel-gfx] [PATCH] drm/i915: Aggressively downclock Baytrail

2014-07-03 Thread Jesse Barnes
he change (well you did mix in a cleanup to set_rps_thresholds), I just want us to get better at collecting numbers for this stuff... -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http:

Re: [Intel-gfx] [PATCH] drm/i915: Check hangcheck is functioning before indefinite waits

2014-07-03 Thread Jesse Barnes
} > > + i915_check_hangcheck(dev); > + > io_schedule_timeout(1); > > if (dev_priv->mm.interruptible && signal_pending(current)) { Are there any bugs associated with this? i915_rearm_hangcheck() or something mig

Re: [Intel-gfx] [RFC 18/44] drm/i915: Added scheduler debug macro

2014-07-02 Thread Jesse Barnes
.) do { } while (0) > #define DRM_DEBUG_KMS(fmt, args...) do { } while (0) > #define DRM_DEBUG_PRIME(fmt, args...)do { } while (0) > +#define DRM_DEBUG_SCHED(fmt, args...) do { } while (0) > #define DRM_DEBUG(fmt, arg...)

Re: [Intel-gfx] [RFC 17/44] drm/i915: Prelude to splitting i915_gem_do_execbuffer in two

2014-07-02 Thread Jesse Barnes
ing, intel_ring_get_seqno(ring), flags); > > - i915_gem_execbuffer_move_to_active(&eb->vmas, ring); > i915_gem_execbuffer_retire_commands(dev, file, ring, batch_obj); > > err: I'd like Chris to take a look too, but it looks safe afaict. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [RFC 16/44] drm/i915: Alloc early seqno

2014-07-02 Thread Jesse Barnes
l_engine_cs *ring); > static inline void intel_ring_emit(struct intel_engine_cs *ring, > u32 data) > { This ought to be ok even w/o the scheduler, we'll just pick up the lazy_seqno later on rather than allocating a new one at ring_begin ri

<    1   2   3   4   5   6   7   8   9   10   >