[PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Jesse Barnes
ady, but that's the direction i915 will > move towards for the near future. Jesse is working on some patches > already. Yeah I'd like to get some feedback from Maarten on my bits so I can get them ready for upstream. I still need to add documentation and tests, but I'd like to make sure the interfaces and internals get acked first. Thanks, -- Jesse Barnes, Intel Open Source Technology Center

[Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-23 Thread Jesse Barnes
On Wed, 23 Jul 2014 11:47:15 +0200 Daniel Vetter wrote: > On Tue, Jul 22, 2014 at 9:14 PM, Jesse Barnes > wrote: > >> We don't have the code yet ready, but that's the direction i915 will > >> move towards for the near future. Jesse is working on some patches &

[PATCH v2 00/25] AMDKFD kernel driver

2014-07-23 Thread Jesse Barnes
ly the same trick Linux uses for ASID management on SPARC and ia64 (iirc on sparc anyway, maybe MIPS too): "allocate" a PASID everytime you need one, but don't tie it to the process at all, just use it as a counter that lets you know when you need to do a full TLB flush, then start the allocation process over. This lets you minimize TLB flushing and gracefully handles oversubscription. My current code doesn't bother though; context creation will fail if we run out of PASIDs on a given device. -- Jesse Barnes, Intel Open Source Technology Center

[PATCH 00/83] AMD HSA kernel driver

2014-07-23 Thread Jesse Barnes
they should provide their > own set of ioctl through their own platform. Yeah things are different enough that a uniform ioctl doesn't make sense. If/when all the vendors decide on a single standard, we can use that, but until then I don't see a nice way to share our doorbell & submission scheme with HSA, and I assume nvidia is the same. Using HSA as a basis for non-HSA systems seems like it would add a lot of complexity, since non-HSA hardware would have to intercept the queue writes and manage the submission requests etc as bytecodes in the kernel driver, or maybe as a shim layer library that wraps that stuff. Probably not worth the effort given that the command sets themselves are all custom as well, driven by specific user level drivers like GL, CL, and libva. -- Jesse Barnes, Intel Open Source Technology Center

[PATCH 5/5] drm/i915: enable fastboot by default

2014-06-05 Thread Jesse Barnes
Let them eat mincemeat pie. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c index d05a2af..081ab2f 100644 --- a/drivers/gpu/drm

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

2014-06-05 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

[PATCH 3/5] drm: add drm_mode_same_size function

2014-06-05 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

[PATCH 1/5] drm/i915: preserve SSC if previously set v2

2014-06-05 Thread Jesse Barnes
) Reported-by: Kristian H?gsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_display.c | 11 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h

[PATCH 2/5] drm/i915: preserve swizzle settings if necessary v3

2014-06-05 Thread Jesse Barnes
framebuffer (Daniel) check display swizzle setting in detect_bit_6_swizzle (Daniel) use gen6 as cutoff point (Daniel) Reported-by: Kristian H?gsberg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h| 1 + drivers/gpu/drm/i915/i915_gem.c| 3 +++ drivers/gpu/drm/i9

[PATCH 2/5] drm/i915: preserve swizzle settings if necessary v3

2014-06-10 Thread Jesse Barnes
On Tue, 10 Jun 2014 16:02:51 +0200 Daniel Vetter wrote: > On Thu, Jun 05, 2014 at 11:24:28AM -0700, Jesse Barnes wrote: > > Some machines (like MBAs) might use a tiled framebuffer but not enable > > display swizzling at boot time. We want to preserve that configuration >

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

2014-06-10 Thread Jesse Barnes
On Tue, 10 Jun 2014 16:05:36 +0200 Daniel Vetter wrote: > On Thu, Jun 05, 2014 at 11:24:30AM -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

[Intel-gfx] [PATCH 5/5] drm/i915: enable fastboot by default

2014-06-10 Thread Jesse Barnes
On Tue, 10 Jun 2014 16:07:44 +0200 Daniel Vetter wrote: > On Thu, Jun 05, 2014 at 11:24:31AM -0700, Jesse Barnes wrote: > > Let them eat mincemeat pie. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i915_params.c | 4 ++-- > > 1 fil

[Intel-gfx] [PATCH 5/5] drm/i915: enable fastboot by default

2014-06-10 Thread Jesse Barnes
On Tue, 10 Jun 2014 11:01:06 -0700 St?phane Marchesin wrote: > On Tue, Jun 10, 2014 at 10:31 AM, Jesse Barnes > wrote: > > On Tue, 10 Jun 2014 16:07:44 +0200 > > Daniel Vetter wrote: > > > >> On Thu, Jun 05, 2014 at 11:24:31AM -0700, Jesse Barnes wrote:

[PATCH 2/5] drm/i915: preserve swizzle settings if necessary v3

2014-06-10 Thread Jesse Barnes
On Tue, 10 Jun 2014 21:33:27 +0200 Daniel Vetter wrote: > On Tue, Jun 10, 2014 at 7:27 PM, Jesse Barnes > wrote: > > Yes, that's what I do below... I even added it to the changelog: > > http://patchwork.freedesktop.org/patch/27223/ > > > > Did you mis

[PATCH 2/5] drm/i915: preserve swizzle settings if necessary v3

2014-06-11 Thread Jesse Barnes
On Wed, 11 Jun 2014 11:23:26 +0200 Daniel Vetter wrote: > On Tue, Jun 10, 2014 at 12:45:38PM -0700, Jesse Barnes wrote: > > On Tue, 10 Jun 2014 21:33:27 +0200 > > Daniel Vetter wrote: > > > > > On Tue, Jun 10, 2014 at 7:27 PM, Jesse Barnes > > virtuousgeek.

[PATCH 2/5] drm/i915: preserve swizzle settings if necessary v3

2014-06-11 Thread Jesse Barnes
On Wed, 11 Jun 2014 17:39:29 +0200 Daniel Vetter wrote: > On Wed, Jun 11, 2014 at 5:13 PM, Jesse Barnes > wrote: > >> - If you have a machine which uses tiled framebuffers and enables > >> swizzling in the BIOS your code will a) drop the swizzle setup in > >>

[Intel-gfx] [PATCH 0/9] drm: More vblank on/off work

2014-06-26 Thread Jesse Barnes
enabled while disabling crtcs during > suspend Here's one that may be fixed by this series, needs testing though: https://bugs.freedesktop.org/show_bug.cgi?id=79054 -- Jesse Barnes, Intel Open Source Technology Center

Re: [PATCH] drm/i915: add fast boot support for Haswell

2013-08-05 Thread Jesse Barnes
mplicated, but you'll need docs for it. Charlie Huang ought to be able to get you the NDA docs that should have the info you need. Thanks, -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [git pull] drm tree for 3.12-rc1

2013-09-05 Thread Jesse Barnes
Gwenole or Sean may be able to help. > Because my shiny new 65W haswell is really nice and does a "make > allmodconfig" in half the time of my old machine, but the GPU side has > been something of a step backwards... Well we definitely don't want that

Re: [PATCH 17/20] drm/i915: Use adjusted_mode in the fastboot hack to disable pfit

2013-09-20 Thread Jesse Barnes
nd pfit state, we'll end up with a big fb scanned out into the wrong sized surface. To fix this properly, we need to hoist the checks up into compute_mode_changes (or above), check the actual pfit state and whether the platform allows pfit disable with pipe active, and only then update the pipesrc and pfit state, even on the flip path. On top of that, other state like info frames and audio state needs to be tracked and preserved for fastboot as applicable. Then we can remove the parameter hacks. -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 1/3] drm/i915: drop encoder hot_plug calls at resume

2014-05-20 Thread Jesse Barnes
We really just want to go detect displays again and fire off a hotplug event if things have changed, not go through full hotplug processing. Requested-by: Daniel Vetter Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 20 +--- 1 file changed, 1 insertion(+), 19

[PATCH 3/3] drm/i915: use async hpd_irq_event function on resume

2014-05-20 Thread Jesse Barnes
Gets the detect code (which may take awhile) out of the resume path, speeding things up a bit. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c

[PATCH 2/3] drm: add async version of hpd_irq_event

2014-05-20 Thread Jesse Barnes
In some cases, the callers of this function may not need the return value and delaying the uevent is ok. So add an async version of the function for use in those cases. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_probe_helper.c | 8 include/drm/drm_crtc_helper.h | 2 ++ 2

[PATCH 3/3] drm/i915: use async hpd_irq_event function on resume

2014-05-21 Thread Jesse Barnes
On Wed, 21 May 2014 08:52:34 +0200 Daniel Vetter wrote: > On Tue, May 20, 2014 at 03:25:35PM -0700, Jesse Barnes wrote: > > Gets the detect code (which may take awhile) out of the resume path, > > speeding things up a bit. > > > > Signed-off-by: Jesse Barnes > &

[Intel-gfx] [RFC] dpms handling on atomic drivers

2014-11-10 Thread Jesse Barnes
On Thu, 6 Nov 2014 19:35:51 -0500 Rob Clark wrote: > On Thu, Nov 6, 2014 at 6:29 PM, Daniel Vetter wrote: > > > > That aside I guess I need to elaborate on what makes dpms special in > > i915, and why there's a real difference between crtc->enable == true > > && ->active == false and crtc->enabl

[RFC PATCH] drm/fb: drop panic handling

2015-08-19 Thread Jesse Barnes
On 07/16/2015 01:27 AM, Daniel Vetter wrote: > On Thu, Jul 09, 2015 at 11:14:43PM +0200, Daniel Vetter wrote: >> On Thu, Jul 09, 2015 at 01:15:34PM +1000, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> This really doesn't seem to have much chance of working anymore, >>> >>> esp for irq context,

[Intel-gfx] [PATCH v2 12/22] drm/i915: Preserve SSC earlier

2015-08-31 Thread Jesse Barnes
BX(dev) || HAS_PCH_CPT(dev)) > - dev_priv->vbt.lvds_use_ssc = !!(I915_READ(PCH_DREF_CONTROL) & > - DREF_SSC1_ENABLE); > - > intel_modeset_init_hw(dev); > > intel_setup_overlay(dev); > Yeah looks good (and I'm having deja vu here; I thought I ran into the same ordering issue at one point in a report from krh, but I guess I never fixed it; didn't have test hw at the time). Reviewed-by: Jesse Barnes Thanks, Jesse

[Intel-gfx] [PATCH] drm/i915: don't try using training pattern 3 on pre-haswell

2014-10-30 Thread Jesse Barnes
= DP_LINK_BW_5_4 || intel_dp->use_tps3) > >> >> + if ((intel_dp->link_bw == DP_LINK_BW_5_4 || intel_dp->use_tps3) > >> >> && !HAS_DDI(dev)) > >> > > >> > CHV has pattern 3. > >> > >> Is "supports tps3" the same set of platforms as "supports 5.4 Gbps"? We > >> should abstract the check from intel_dp_max_link_bw. > > > > Not quite. HSW-ULX supports pattern 3 even though it doesn't do 5.4 Gbps. > > How about [1] instead? I forgot --in-reply-to, sorry. > > BR, > Jani. > > > [1] http://mid.gmane.org/1414573406-17071-1-git-send-email-jani.nikula at > intel.com Looks like we need something like that at least, assuming we're not hitting the link_bw == DP_LINK_BW_5_4 case. -- Jesse Barnes, Intel Open Source Technology Center

Question on UAPI for fences

2014-09-12 Thread Jesse Barnes
Though in Mesa I still haven't looked at how to handle server vs client side arb_sync with the scheduler and explicit fencing in place; might need some extra work there... -- Jesse Barnes, Intel Open Source Technology Center

[Intel-gfx] [git pull] drm for 4.3

2015-09-22 Thread Jesse Barnes
Cc'ing Maarten and Matt; I'm guessing this may be related to one of their recent patches. Jesse On 09/21/2015 11:48 AM, Dave Jones wrote: > On Mon, Sep 07, 2015 at 02:45:59PM -0400, Dave Jones wrote: > > On Fri, Sep 04, 2015 at 11:40:53PM +0100, Dave Airlie wrote: > > > > > > Hi Linus, > >

[Intel-gfx] [PATCH] drm/dp: Clarify automated test constant and add constant for FAUX test pattern

2013-12-17 Thread Jesse Barnes
> > > > Signed-off-by: Todd Previte > > Reviewed-by: Jani Nikula Did this ever go in? -- Jesse Barnes, Intel Open Source Technology Center

[drm-intel:drm-intel-fixes 15/18] drivers/gpu/drm/i915/intel_ringbuffer.c:1405:24: error: 'I915_GEM_SCRATCH_INDEX' undeclared

2012-10-04 Thread Jesse Barnes
On Wed, 3 Oct 2012 17:12:18 +0200 Daniel Vetter wrote: > On Wed, Oct 03, 2012 at 10:15:38PM +0800, Fengguang Wu wrote: > > Hi Jesse, > > > > FYI, kernel build failed on > > > > tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-fixes > > head: 2cb47a9c6d49f2961dcf57f69ff968e

[PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
People keep whining about this, but no one seems to send a patch. This *ought* to be safe now that we've dealt with the hw races in Mario's updated code, and fixed the bugs we know about in VT switch, DPMS, and multi-head configuraions. Signed-off-by: Jesse Barnes --- drive

[PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
Cc'ing Mario in case he wants a different value than 50ms. On Tue, 30 Oct 2012 14:09:12 -0500 Jesse Barnes wrote: > People keep whining about this, but no one seems to send a patch. This > *ought* to be safe now that we've dealt with the hw races in Mario's > updated

[PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
On Tue, 30 Oct 2012 20:20:44 +0100 Daniel Vetter wrote: > On Tue, Oct 30, 2012 at 8:09 PM, Jesse Barnes > wrote: > > People keep whining about this, but no one seems to send a patch. This > > *ought* to be safe now that we've dealt with the hw races in Mario's >

[PATCH] drm/fb helper: don't call drm_helper_connector_dpms directly

2012-09-07 Thread Jesse Barnes
w i915-specific > modeset code. > > Reported-by: Jesse Barnes > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_fb_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_f

[RFC 1/9] drm: add atomic fxns

2012-09-12 Thread Jesse Barnes
y callbacks. Having a transactional API just seems a little messier with both the atomic state and per-property state to track and rollback in the case of failure. -- Jesse Barnes, Intel Open Source Technology Center

[RFC 1/9] drm: add atomic fxns

2012-09-12 Thread Jesse Barnes
On Wed, 12 Sep 2012 12:35:01 -0500 Rob Clark wrote: > On Wed, Sep 12, 2012 at 11:57 AM, Jesse Barnes > wrote: > > On Sun, 9 Sep 2012 22:03:14 -0500 > > Rob Clark wrote: > > > >> From: Rob Clark > >> > >> The 'atomic' mechanism al

[dri-devel] [RFC] Try a bit harder to get output on the screen at panic time

2010-04-09 Thread Jesse Barnes
nyway, please test these out and let me know if they work for you. -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[dri-devel] [PATCH] drm: add locked variant of drm_fb_helper_force_kernel_mode

2010-04-09 Thread Jesse Barnes
Needed for panic and kdb, since we need to avoid taking the mode_config mutex. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_fb_helper.c | 42 +- 1 files changed, 36 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers

[dri-devel] [PATCH] fbcon: assume console is active if panicing

2010-04-09 Thread Jesse Barnes
This allows us to draw to the fbcon buffer in a panic situation, in case the low level driver can flip to it at panic time. Signed-off-by: Jesse Barnes --- drivers/video/console/fbcon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/console/fbcon.c b

[dri-devel] [PATCH] vt: try harder to print output when panicing

2010-04-09 Thread Jesse Barnes
At panic time (i.e. when oops_in_progress is set) we should try a bit harder to update the screen and make sure output gets to the VT, since some drivers are capable of flipping back to it. So make sure we try to unblank and update the display if called from a panic context. Signed-off-by: Jesse

Re: [PATCH] drm: add locked variant of drm_fb_helper_force_kernel_mode

2010-04-12 Thread Jesse Barnes
On Mon, 12 Apr 2010 10:05:00 +1000 Dave Airlie wrote: > On Sat, Apr 10, 2010 at 8:11 AM, Jesse Barnes > wrote: > > Needed for panic and kdb, since we need to avoid taking the mode_config > > mutex. > > One comment below. > > > > > Signed-off-by: Jes

Re: [PATCH] drm: add locked variant of drm_fb_helper_force_kernel_mode

2010-04-12 Thread Jesse Barnes
On Mon, 12 Apr 2010 10:05:00 +1000 Dave Airlie wrote: > On Sat, Apr 10, 2010 at 8:11 AM, Jesse Barnes > wrote: > > Needed for panic and kdb, since we need to avoid taking the mode_config > > mutex. > > One comment below. Updated patch below. -- Jesse Barnes, Inte

Re: [PATCH 1/2] drm: Make the HPD status updates debug logs more readable

2012-12-10 Thread Jesse Barnes
connector->base.id, > drm_get_connector_name(connector), > - old_status, connector->status); > + connector_status_str(old_status), > + connector_status_str(connector-&g

Re: [Intel-gfx] [PATCH 04/37] drm/i915: rework locking for intel_dpio|sbi_read|write

2012-12-12 Thread Jesse Barnes
*/ > @@ -3041,6 +3024,8 @@ static void lpt_program_iclkip(struct drm_crtc *crtc) > udelay(24); > > I915_WRITE(PIXCLK_GATE, PIXCLK_GATE_UNGATE); > + > + mutex_unlock(&dev_priv->dpio_lock); > } > > /* > @@ -4268,6 +4253,8 @@ static void vlv_update_pll(struct drm_crtc *crtc, > bool is_sdvo; > u32 temp; > > + mutex_lock(&dev_priv->dpio_lock); > + > is_sdvo = intel_pipe_has_type(crtc, INTEL_OUTPUT_SDVO) || > intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI); > > @@ -4351,6 +4338,8 @@ static void vlv_update_pll(struct drm_crtc *crtc, > temp |= (1 << 21); > intel_dpio_write(dev_priv, DPIO_DATA_CHANNEL2, temp); > } > + > + mutex_unlock(&dev_priv->dpio_lock); > } > > static void i9xx_update_pll(struct drm_crtc *crtc, Looks fine, I guess you could convert the wait_for_atomic_us to the non-atomic variant now that you have a mutex. Either way: Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 04/37] drm/i915: rework locking for intel_dpio|sbi_read|write

2012-12-12 Thread Jesse Barnes
On Wed, 12 Dec 2012 23:00:34 +0100 Daniel Vetter wrote: > On Wed, Dec 12, 2012 at 12:54:47PM -0800, Jesse Barnes wrote: > > On Wed, 12 Dec 2012 14:06:44 +0100 > > Daniel Vetter wrote: > > > > > Spinning for up to 200 us with interrupts locked out is not good. So &

Re: [PATCH libdrm 0/4] Manpages for libdrm

2013-01-09 Thread Jesse Barnes
tation. > > Other than that I only fixed typos and the small corrections you guys > mentioned. > Thanks for reviewing! I went ahead and pushed these finally. Can you just apply for an fdo account though so we can let you push things in the future? :) -- Jesse Barnes, Intel

Re: [PATCH libdrm 0/4] Manpages for libdrm

2013-01-10 Thread Jesse Barnes
On Thu, 10 Jan 2013 22:00:20 +0100 David Herrmann wrote: > Hi Jesse > > On Thu, Jan 10, 2013 at 1:22 AM, Jesse Barnes > wrote: > > On Fri, 28 Sep 2012 23:44:18 +0200 > > David Herrmann wrote: > > > >> Hi > >> > >> This is revisio

Re: [PATCH] man: fix manpage build instructions

2013-01-16 Thread Jesse Barnes
ocally. You can disable building manpages with > --disable-manpages so the quite expensive xsltproc procedure can be > skipped. > > Signed-off-by: David Herrmann > --- Seems to work here, pushed. Thanks David. -- Jesse Barnes, Intel

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-18 Thread Jesse Barnes
y machine. > > Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why > distcheck works here. But the patch looks fine. Thanks! Works here too. Pushed with David's reviewed-by. Thanks Thierry. -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-25 Thread Jesse Barnes
On Fri, 25 Jan 2013 16:54:11 +0100 David Herrmann wrote: > Hi Jesse > > On Fri, Jan 18, 2013 at 5:54 PM, Jesse Barnes > wrote: > > On Fri, 18 Jan 2013 17:01:59 +0100 > > David Herrmann wrote: > > > >> On Fri, Jan 18, 2013 at 5:00 PM, David

Re: [PATCH] drm/fb helper: don't call drm_helper_connector_dpms directly

2012-09-07 Thread Jesse Barnes
w i915-specific > modeset code. > > Reported-by: Jesse Barnes > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_fb_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_f

Re: [RFC 1/9] drm: add atomic fxns

2012-09-12 Thread Jesse Barnes
y callbacks. Having a transactional API just seems a little messier with both the atomic state and per-property state to track and rollback in the case of failure. -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [RFC 1/9] drm: add atomic fxns

2012-09-12 Thread Jesse Barnes
On Wed, 12 Sep 2012 12:35:01 -0500 Rob Clark wrote: > On Wed, Sep 12, 2012 at 11:57 AM, Jesse Barnes > wrote: > > On Sun, 9 Sep 2012 22:03:14 -0500 > > Rob Clark wrote: > > > >> From: Rob Clark > >> > >> The 'atomic' mechanism al

Re: [RFC 0/9] nuclear pageflip

2012-09-14 Thread Jesse Barnes
Rob's patchset goes further than that, but obviously not as far as you propose. OTOH, keeping things really simple and not very featureful means there are fewer points of failure, which is what I think callers would expect from a flip API... So where does that leave us? I'd propose we have a very simple, stripped down, single crtc flip ioctl, along with a big atomic mode set ioctl, and then perhaps a fancier multi-crtc flip ioctl. -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm: Destroy the planes prior to destroying the associated CRTC

2012-09-17 Thread Jesse Barnes
ug.cgi?id=54101 > Signed-off-by: Chris Wilson > Cc: Jesse Barnes > Cc: sta...@vger.kernel.org > --- > drivers/gpu/drm/drm_crtc.c |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c > ind

Adopt a libdrm man page

2012-09-17 Thread Jesse Barnes
to the current structure. Thanks, -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: Adopt a libdrm man page

2012-09-17 Thread Jesse Barnes
On Mon, 17 Sep 2012 23:13:57 +0200 David Herrmann wrote: > Hi Jesse > > On Mon, Sep 17, 2012 at 5:12 PM, Jesse Barnes > wrote: > > I just pushed some basic man page stuff to the libdrm repo, but won't > > have time to do any more pages for the next week or tw

Re: [PATCH libdrm 1/4] man: use automake man_MANS to allow multiple suffixes

2012-09-27 Thread Jesse Barnes
The current man-pages are simply moved and their header line is adjusted to > the > new man-page headers. > > Signed-off-by: David Herrmann > --- Yeah looks nice. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center

Re: [PATCH libdrm 2/4] man: add man/drm.7 overview page

2012-09-27 Thread Jesse Barnes
ifferences between the drivers so > +driver-depedent code is still needed. Many helpers are provided in > +.B libgbm > +(Graphics Buffer Manager) from the > +.IR mesa-project . > +For more information on DRM memory-management, see > +.BR drm-memory (7). > + > +.SH REPORTI

Re: [PATCH libdrm 3/4] man: add KMS overview page

2012-09-27 Thread Jesse Barnes
can your list of configured > + * connectors and CRTCs whether this CRTC is already > + * used. If it is, then simply continue the search > here. */ > + if (res->crtcs[j] "is unused") { > + drmModeFreeEncoder(enc); > + return res->crtcs[j]; > + } > + } > + > + drmModeFreeEncoder(enc); > + } > + > + /* cannot find a suitable CRTC */ > + return -ENOENT; > +} > +.fi > +.in > + > +.SH REPORTING BUGS > +Bugs in this manual should be reported to http://bugs.freedesktop.org under > +the "Mesa" product, with "Other" or "libdrm" as the component. > + > +.SH "SEE ALSO" > +.BR drm (7), > +.BR drm-memory (7), > +.BR drmModeGetResources (3), > +.BR drmModeGetConnector (3), > +.BR drmModeGetEncoder (3), > +.BR drmModeGetCrtc (3), > +.BR drmModeSetCrtc (3), > +.BR drmModeGetFB (3), > +.BR drmModeAddFB (3), > +.BR drmModeAddFB2 (3), > +.BR drmModeDirtyFB (3), > +.BR drmModeRmFB (3), > +.BR drmModePageFlip (3), > +.BR drmModeGetPlaneResources (3), > +.BR drmModeGetPlane (3), > +.BR drmModeSetPlane (3), > +.BR drmModeSetCursor (3), > +.BR drmModeMoveCursor (3), > +.BR drmSetMaster (3), > +.BR drmAvailable (3), > +.BR drmCheckModesettingSupported (3), > +.BR drmOpen (3) Could probably include a bit more sample code here, but that's no reason not to push. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH libdrm 4/4] man: add drm-memory man-page

2012-09-27 Thread Jesse Barnes
sted values and can be used now. */ > + > + /* create framebuffer object for the dumb-buffer */ > + ret = drmModeAddFB(fd, 1920, 1080, 24, 32, creq.pitch, creq.handle, > &fb); > + if (ret) { > + /* frame buffer creation failed; see "errno" */ > + ... > + } > + /* the framebuffer "fb" can now used for scanout with KMS */ > + > + /* prepare buffer for memory mapping */ > + memset(&mreq, 0, sizeof(mreq)); > + mreq.handle = creq.handle; > + ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &mreq); > + if (ret) { > + /* DRM buffer preparation failed; see "errno" */ > + ... > + } > + /* mreq.offset now contains the new offset that can be used with mmap() > */ > + > + /* perform actual memory mapping */ > + map = mmap(0, creq.size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, > mreq.offset); > + if (map == MAP_FAILED) { > + /* memory-mapping failed; see "errno" */ > + ... > + } > + > + /* clear the framebuffer to 0 */ > + memset(map, 0, creq.size); > +.fi > +.in > + > +.SH REPORTING BUGS > +Bugs in this manual should be reported to http://bugs.freedesktop.org under > +the "Mesa" product, with "Other" or "libdrm" as the component. > + > +.SH "SEE ALSO" > +.BR drm (7), > +.BR drm-kms (7), > +.BR drmAvailable (3), > +.BR drmOpen (3), > +.BR drm-intel (7), > +.BR drm-radeon (7), > +.BR drm-nouveau (7), > +.BR drm-prime (7) > diff --git a/man/drm-mm.7 b/man/drm-mm.7 > new file mode 100644 > index 000..258b5a3 > --- /dev/null > +++ b/man/drm-mm.7 > @@ -0,0 +1 @@ > +.so man7/drm-memory.7 > diff --git a/man/drm-ttm.7 b/man/drm-ttm.7 > new file mode 100644 > index 000..258b5a3 > --- /dev/null > +++ b/man/drm-ttm.7 > @@ -0,0 +1 @@ > +.so man7/drm-memory.7 Heh, this one highlights the lack of documentation we have for other libs like Mesa and libgbm. :) Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: FOSDEM2013: DevRoom or not?

2012-09-28 Thread Jesse Barnes
gt; So far there are three speakers who lined up, and my feeling is that > Matthieu and Marc lined up just so that the deadline and requirement > will be met. So only a single person is intending to come to fosdem and > has a topic he wants to talk about. > > Come on guys. Surely we can do better than that. I could come up with something, maybe people would be interested in hearing about some of our recent SoC work? I'd have to see what I could get approval for, but I could probably find *something* that's not still secret. :) -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [drm-intel:drm-intel-fixes 15/18] drivers/gpu/drm/i915/intel_ringbuffer.c:1405:24: error: 'I915_GEM_SCRATCH_INDEX' undeclared

2012-10-04 Thread Jesse Barnes
On Wed, 3 Oct 2012 17:12:18 +0200 Daniel Vetter wrote: > On Wed, Oct 03, 2012 at 10:15:38PM +0800, Fengguang Wu wrote: > > Hi Jesse, > > > > FYI, kernel build failed on > > > > tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-fixes > > head: 2cb47a9c6d49f2961dcf57f69ff968e

[PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
People keep whining about this, but no one seems to send a patch. This *ought* to be safe now that we've dealt with the hw races in Mario's updated code, and fixed the bugs we know about in VT switch, DPMS, and multi-head configuraions. Signed-off-by: Jesse Barnes --- drive

Re: [PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
Cc'ing Mario in case he wants a different value than 50ms. On Tue, 30 Oct 2012 14:09:12 -0500 Jesse Barnes wrote: > People keep whining about this, but no one seems to send a patch. This > *ought* to be safe now that we've dealt with the hw races in Mario's > updated

Re: [PATCH] drm: reduce default drm vblank off delay to 50ms

2012-10-30 Thread Jesse Barnes
On Tue, 30 Oct 2012 20:20:44 +0100 Daniel Vetter wrote: > On Tue, Oct 30, 2012 at 8:09 PM, Jesse Barnes > wrote: > > People keep whining about this, but no one seems to send a patch. This > > *ought* to be safe now that we've dealt with the hw races in Mario's >

Re: [PATCH 46/51] drm/i915: Add support for atomic modesetting completion events

2012-11-01 Thread Jesse Barnes
s the only one which will have 4 lanes, pipe B&C will only > have 2 each). > - afaik these kind of asymmetric constraints won't disappear anytime > soon, haswell definitely still has some. Yeah that's a good point... adding a virtual crtc layer would solve this and let us

Re: [PATCH 46/51] drm/i915: Add support for atomic modesetting completion events

2012-11-01 Thread Jesse Barnes
On Thu, 1 Nov 2012 19:07:02 +0200 Ville Syrjälä wrote: > On Thu, Nov 01, 2012 at 07:39:12AM -0700, Jesse Barnes wrote: > > On Thu, 1 Nov 2012 12:12:35 +0100 > > Daniel Vetter wrote: > > > > > On Thu, Oct 25, 2012 at 8:05 PM, wrote: > > > > From: Vill

Re: [PATCH] drm: reduce default drm vblank off delay to 50ms

2012-11-02 Thread Jesse Barnes
he future. > > Also, i take from Chris comments about patch [1/3] above that properly > implemented triple-buffering with correct timestamping and > synchronisation is impossible with the current X-Servers, because the > DRI2 invalidate event mechanism is racy and broken to the po

Re: [Intel-gfx] [PATCH 01/21] drm/i915: Enable digital port hotplug on PCH systems

2011-10-03 Thread Jesse Barnes
ic one's lack register addresses > for PCH regs ... > Reviewed-by: Daniel Vetter Yep, I like it too: Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 04/21] drm/i915: Only use VBT panel mode on eDP if no EDID is found

2011-10-03 Thread Jesse Barnes
the hardware when > the driver starts and use that if present. But, that might mean that > you'd get different modes depending on whether the machine booted with > the lid closed or open, which seems like a bad plan. More than that, I think eDP *requires* an EDID, and it sounds like even

Re: [Intel-gfx] [PATCH 05/21] drm/i915: Check eDP power when doing aux channel communications

2011-10-03 Thread Jesse Barnes
pp_status, > + I915_READ(PCH_PP_CONTROL)); > + } > +} I'd call it "intel_dp_assert_dp_power" or something more descriptive (or just assert_panel_power to match the other asserts in intel_display.c), but other than that this is a nice sanity c

Re: [Intel-gfx] [PATCH 16/21] drm/i915: edp_panel_on does not need to return a bool

2011-10-03 Thread Jesse Barnes
> /* Returns true if the panel was already on when called */ > -static bool ironlake_edp_panel_on (struct intel_dp *intel_dp) > +static void ironlake_edp_panel_on (struct intel_dp *intel_dp) > { Remove the comment too? -- Jesse Barnes, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH 10/21] drm/i915: Wrap DP EDID fetch functions to enable eDP panel power

2011-10-03 Thread Jesse Barnes
On Thu, 29 Sep 2011 18:09:42 -0700 Keith Packard wrote: > Talking to the eDP DDC channel requires that the panel be powered > up. Wrap both the EDID and modes fetch code with calls to turn the vdd > power on and back off. > These VDD AUX changes look good, ack on all of them. --

Re: [Intel-gfx] [PATCH 00/24] MacBook Air patch sequence (v2)

2011-10-03 Thread Jesse Barnes
ems pretty much the > same as people are getting under Mac OS. As long as you enable RC6. :) -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 9/9] drm/i915: Initialize PCH refclks at modeset init time

2011-10-03 Thread Jesse Barnes
nicer; did you get confirmation that the "wavy VGA" bug was fixed with this series? Overall seems like a good improvement over our old PCH refclk code... -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] PCH reference clock cleanups

2011-10-03 Thread Jesse Barnes
ver is ruining things, but I believe patch 7 > includes whitespace errors. Yay excellent. Now... is keeping the various refclks enabled costing us any power? IOW, should we be trying to disable them when everything has been DPMS'd off too? -- Jesse Barnes, Intel Open Source Technology Center __

Re: [Intel-gfx] PCH reference clock cleanups

2011-10-03 Thread Jesse Barnes
On Mon, 03 Oct 2011 16:18:48 -0700 Keith Packard wrote: > On Mon, 3 Oct 2011 14:14:23 -0700, Jesse Barnes > wrote: > > > Now... is keeping the various refclks enabled costing us any power? > > IOW, should we be trying to disable them when everything has been > >

Re: [PATCH v2 4/5] DRI2: Expose API to set drawable swap limit.

2011-10-06 Thread Jesse Barnes
On Thu, 15 Sep 2011 01:31:00 +0200 Mario Kleiner wrote: > On Sep 15, 2011, at 12:54 AM, Francisco Jerez wrote: > > > Mario Kleiner writes: > > > >> On Sep 14, 2011, at 6:02 PM, Keith Packard wrote: > >> > >>> On Wed, 14 Sep 2011 10:05:29 -0500, J

DRM planes and new fb creation ioctl

2011-10-25 Thread Jesse Barnes
I've given up waiting for someone to implement support for these ioctls on another platform before they're merged, but I have received a lot of feedback on the interfaces, and it sounds like they're ok. I've also fixed all the remaining issues I'm aware of on SNB platforms and things are working w

[PATCH 01/11] drm: add plane support

2011-10-25 Thread Jesse Barnes
Planes are a bit like half-CRTCs. They have a location and fb, but don't drive outputs directly. Add support for handling them to the core KMS code. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 236 +++- drivers/gpu/drm/drm_

[PATCH 02/11] drm: add an fb creation ioctl that takes a pixel format

2011-10-25 Thread Jesse Barnes
To properly support the various plane formats supported by different hardware, the kernel must know the pixel format of a framebuffer object. So add a new ioctl taking a format argument corresponding to a fourcc name from videodev2.h. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c

[PATCH 05/11] drm/i915: move pin & fence for plane past potential error paths

2011-10-25 Thread Jesse Barnes
This avoids the need to unpin on the error path. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_overlay2.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_overlay2.c b/drivers/gpu/drm/i915/intel_overlay2.c index 2e38b15

[PATCH 03/11] drm/i915: rename existing overlay support to "legacy"

2011-10-25 Thread Jesse Barnes
The old overlay block has all sorts of quirks and is very different than ILK+ video sprites. So rename it to legacy to make that clear and clash less with core overlay support. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c |2 +- drivers/gpu/drm/i915/i915_drv.h

[PATCH 04/11] drm/i915: add SNB video sprite support

2011-10-25 Thread Jesse Barnes
The video sprites support various video surface formats natively and can handle scaling as well. So add support for them using the new DRM core overlay support functions. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/Makefile |1 + drivers/gpu/drm/i915/i915_reg.h

[PATCH 08/11] drm/i915: overlay watermark hack

2011-10-25 Thread Jesse Barnes
--- drivers/gpu/drm/i915/intel_display.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 4f599ce..cd7e04d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i9

[PATCH 06/11] drm/i915: plane teardown fixes

2011-10-25 Thread Jesse Barnes
Make sure the object exists (it may not if the plane was previously disabled) and make sure we zero it out in the disable path to avoid trouble later. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_overlay2.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff

[PATCH 07/11] drm/i915: enable new overlay code on IVB too

2011-10-25 Thread Jesse Barnes
Split things out a little and add the IVB reg definitions. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h | 59 drivers/gpu/drm/i915/intel_overlay2.c | 168 ++-- 2 files changed, 216 insertions(+), 11 deletions(-) diff --git a

[PATCH 09/11] drm/i915: fix overlay fb object handling

2011-10-25 Thread Jesse Barnes
To avoid the object being destroyed before our disable hook is called, take a private reference on it. This will guarantee that we can still access the object at disable time. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_overlay2.c | 27 ++- 1 files

[PATCH 11/11] drm/i915: add sprite scaling support

2011-10-25 Thread Jesse Barnes
If the source and destination size are different, try to scale the sprite on the corresponding CRTC. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h |5 + drivers/gpu/drm/i915/intel_overlay2.c | 14 -- 2 files changed, 17 insertions(+), 2 deletions

[PATCH 10/11] drm/i915: clamp sprite to viewable area

2011-10-25 Thread Jesse Barnes
If we try to scan a sprite outside of the parent CRTC area, the display engine will underflow and potentially blank the framebuffer. So clamp the position + size to the viewable area. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_overlay2.c | 12 +++- 1 files changed, 11

Re: DRM planes and new fb creation ioctl

2011-10-25 Thread Jesse Barnes
On Tue, 25 Oct 2011 19:47:13 +0900 Joonyoung Shim wrote: > 10/25/2011 06:46 PM, Jesse Barnes 쓴 글: > > I've given up waiting for someone to implement support for these > > ioctls on another platform before they're merged, but I have > > received a lot of feedback o

Re: [PATCH 01/11] drm: add plane support

2011-10-25 Thread Jesse Barnes
On Tue, 25 Oct 2011 19:53:02 +0900 Joonyoung Shim wrote: > > +/** > > + * drm_plane - central DRM plane control structure > > + * @dev: DRM device this plane belongs to > > + * @kdev: kernel device > > + * @attr: kdev attributes > > + * @head: for list management > > + * @base: base mode object >

Re: [Intel-gfx] DRM planes and new fb creation ioctl

2011-10-25 Thread Jesse Barnes
On Tue, 25 Oct 2011 11:46:55 +0200 Jesse Barnes wrote: > I've given up waiting for someone to implement support for these > ioctls on another platform before they're merged, but I have received > a lot of feedback on the interfaces, and it sounds like they're ok. &

[PATCH] drm/i915: add SNB video sprite support

2011-10-25 Thread Jesse Barnes
The video sprites support various video surface formats natively and can handle scaling as well. So add support for them using the new DRM core overlay support functions. v2: collapse patches and fix plane disable vs unpin ordering bug Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915

[PATCH] drm/i915: add SNB video sprite support

2011-10-25 Thread Jesse Barnes
From 13efc0a405d522aad8250fce2dbd05fefb8b8ab0 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 22 Apr 2011 14:55:33 -0700 Subject: [PATCH] drm/i915: add SNB video sprite support The video sprites support various video surface formats natively and can handle scaling as well. So add support

Re: [PATCH 01/11] drm: add plane support

2011-10-25 Thread Jesse Barnes
On Tue, 25 Oct 2011 13:58:55 +0200 Daniel Vetter wrote: > On Tue, Oct 25, 2011 at 11:46:56AM +0200, Jesse Barnes wrote: > > Planes are a bit like half-CRTCs. They have a location and fb, but > > don't drive outputs directly. Add support for handling them to t

Re: [PATCH 01/11] drm: add plane support

2011-10-25 Thread Jesse Barnes
On Tue, 25 Oct 2011 14:26:07 +0100 Alan Cox wrote: > > As discussed with Jesse on irc, drm fb handling is fragile. Current > > rules: > > - fbs are not reference counted, hence when destroying we need to > > disable all crtcs (and now also planes) that use them. > > drm_framebuffer_cleanup does t

  1   2   3   4   5   6   7   8   9   10   >