[Intel-gfx] [PATCH] Replace x allocator functions with direct libc calls

2010-05-12 Thread Keith Packard
The server no longer supports the allocator wrapping functions. Signed-off-by: Keith Packard kei...@keithp.com --- src/drmmode_display.c | 20 +- src/i810_dga.c |4 +- src/i810_dri.c | 50 src/i810_driver.c

Re: [Intel-gfx] CUDA port for intel graphics

2010-06-23 Thread Keith Packard
On Wed, 23 Jun 2010 00:14:39 -0700, Gregory Diamos gregory.dia...@gatech.edu wrote: 1. Is there an interface for writing directly to the GPU ring buffer that is exposed by the driver? If not, would it be straightforward to add such an interface? Take a look at 'drm' in the mesa git

Re: [Intel-gfx] [PATCH] Destroy screen pixmap on screen close.

2010-07-02 Thread Keith Packard
On Fri, 02 Jul 2010 09:24:07 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: This looks like the responsibility of miCloseScreen(). Are we failing to chain up properly? I don't think miCloseScreen (or fbCloseScreen) can do this -- before we're called, rendering may not have been finished,

Re: [Intel-gfx] [PATCH] drm/i915: be sure panel is powered up in eDP configs

2010-07-14 Thread Keith Packard
On Wed, 14 Jul 2010 15:40:56 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28739. We need to enable power to the panel with the AUX VDD bit in order to properly detect the eDP attached panel, and we also need to turn the panel on in

Re: [Intel-gfx] [PATCH] Move registration of vsync fd from pre-init to screen-init

2010-08-18 Thread Keith Packard
Jack marty...@comcast.net Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Keith Packard kei...@keithp.com Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpD06RpFALGL.pgp Description: PGP signature ___ Intel-gfx

Re: [Intel-gfx] [PATCH v2] glx: Fix use after free in DrawableGone

2010-09-28 Thread Keith Packard
On Thu, 23 Sep 2010 09:04:11 -0400, Kristian Høgsberg k...@bitplanet.net wrote: Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- Chris Wilson points out that we were still accessing c-next after free. Here's an updated version that fixes that. I've merged this patch (and attempted

[Intel-gfx] [PATCH 1/2] drm/i915: vblank status not valid while training display port

2010-10-03 Thread Keith Packard
. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/intel_dp.c | 19 +-- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 1a51ee0..9ab8708 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/2] drm/i915: Use pipe state to tell when pipe is off

2010-10-03 Thread Keith Packard
only do this when we're not about to wait for the pipe to turn off. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/intel_display.c | 62 +- drivers/gpu/drm/i915/intel_drv.h |1 - 2 files changed, 38 insertions(+), 25 deletions

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Use pipe state to tell when pipe is off

2010-10-03 Thread Keith Packard
On Sun, 3 Oct 2010 08:10:48 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Do these fixes help with the DP issues you've been seeing, Keith? Seems like the first one shouldn't change behavior since we ought to time out on waiting on vblank in that case, and the timeout is the same as

[Intel-gfx] [PATCH] drm/i915: mark display port DPMS state as 'ON' when enabling output

2010-10-03 Thread Keith Packard
The display port DPMS state is tracked internally in the display port driver so that when a hotplug event comes along, the driver can know whether to try retraining the link. This doesn't work well if the driver never sets the DPMS state to ON when the output is enabled. Signed-off-by: Keith

[Intel-gfx] [PATCH] intel: Listen for hotplug uevents

2010-10-03 Thread Keith Packard
. Signed-off-by: Keith Packard kei...@keithp.com --- configure.ac |5 ++ src/Makefile.am|4 +- src/intel.h| 11 + src/intel_driver.c | 114 4 files changed, 132 insertions(+), 2 deletions(-) diff --git

Re: [Intel-gfx] [PATCH] drm/i915: mark display port DPMS state as ON when enabling output

2010-10-03 Thread Keith Packard
On Sun, 03 Oct 2010 22:05:13 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: It appears that all users (crtc and encoders) are tracking dpms_mode, in one form or another. Should we move this to core? Sounds like a good idea. Would you prefer to do that yourself? Is there any hardware

[Intel-gfx] [PATCH] intel: Listen for hotplug uevents (V2)

2010-10-03 Thread Keith Packard
. V2: missed a #ifdef HAVE_UDEV around some udev-specific declarations Signed-off-by: Keith Packard kei...@keithp.com --- configure.ac |5 ++ src/Makefile.am|4 +- src/intel.h| 12 + src/intel_driver.c | 114 4

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Use pipe state to tell when pipe is off

2010-10-03 Thread Keith Packard
On Mon, 4 Oct 2010 06:33:01 +1000, Dave Airlie airl...@gmail.com wrote: don't you do this already? both radeon/nouveau handle DP replug fine, I thought Intel would have been where I stole the code from. There was a one-line bug. Patch already posted. -- keith.pack...@intel.com

[Intel-gfx] [PATCH] drm/i915: avoid struct mutex output_poll mutex lock loop on unload

2010-10-03 Thread Keith Packard
Cancel the output polling work proc before acquiring the struct mutex to avoid acquiring the work proc mutex with the struct mutex held. This avoids inverting the lock order seen when the work proc runs. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH] drm/i915: Free hardware status page on unload when physically mapped

2010-10-06 Thread Keith Packard
A physically mapped hardware status page is allocated at driver load time but was never freed. Call the existing code to free this page at driver unload time on hardware which uses this kind. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/i915_dma.c |3 +++ 1 files

[Intel-gfx] [PATCH] drm/i915: Fix restore of 965 fence regs since the register tracing change.

2010-11-17 Thread Keith Packard
when we only needed a single copy, but as 64-bit access requires its own version, it makes sense to just split them out for each size. Signed-off-by: Eric Anholt e...@anholt.net Signed-off-by: Keith Packard kei...@keithp.com --- On Thu, 18 Nov 2010 10:05:00 +0800, Eric Anholt e...@anholt.net wrote

Re: [Intel-gfx] [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.

2010-11-20 Thread Keith Packard
On Sat, 20 Nov 2010 16:17:40 +0100, Matthias Hopf mh...@suse.de wrote: I know, I know. The patch is (one of) the results of the Novell-HP-Intel workshop in Taipei this week. It turned out that rev07 is too unstable. Keith and Eric can probably comment on this. Better than I can. There's a

Re: [Intel-gfx] i915: display doesn't get on back after returning from standby in 2.6.27-rc*

2010-11-26 Thread Keith Packard
On Fri, 26 Nov 2010 11:45:38 +0300, Dan Carpenter erro...@gmail.com wrote: Where are the patches? I pulled drm-next but I don't see them. Looks like he hasn't merged them. I'm building drm-intel-next with this and another patch. I've pushed my bits to

[Intel-gfx] [PATCH 1/2] drm: Set connector DPMS status to ON in drm_crtc_helper_set_config

2010-11-26 Thread Keith Packard
When setting a new crtc configuration, force the DPMS state of all connectors to ON. Otherwise, they'll be left at OFF and a future mode set that disables the specified connector will not turn the connector off. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/drm_crtc_helper.c

[Intel-gfx] [PATCH 2/2] drm: record monitor status in output_poll_execute

2010-11-26 Thread Keith Packard
In order to correctly report monitor connected status changes, the previous monitor status must be recorded in the connector-status value instead of being discarded. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/drm_crtc_helper.c |7 --- 1 files changed, 4 insertions

Re: [Intel-gfx] [PATCH 2/2] drm: record monitor status in output_poll_execute

2010-12-05 Thread Keith Packard
On Sun, 5 Dec 2010 13:27:43 +0100, Florian Mickler flor...@mickler.org wrote: On Fri, 26 Nov 2010 10:45:59 -0800 Keith Packard kei...@keithp.com wrote: In order to correctly report monitor connected status changes, the previous monitor status must be recorded in the connector-status

Re: [Intel-gfx] [PATCH 2/2] drm: record monitor status in output_poll_execute

2010-12-08 Thread Keith Packard
On Wed, 08 Dec 2010 17:08:04 +, Chris Wilson ch...@chris-wilson.co.uk wrote: On Wed, 8 Dec 2010 17:34:24 +0100, Florian Mickler flor...@mickler.org wrote: Does that mean that the kernel regression will not be fixed/worked-around for old userspace? I think there is some confusion in

Re: [Intel-gfx] [PATCH] drm: Aggressively disable vblanks

2010-12-20 Thread Keith Packard
On Mon, 20 Dec 2010 14:00:54 -0500, Andy Lutomirski l...@mit.edu wrote: Enabling and disabling the vblank interrupt (on devices that support it) is cheap. So disable it quickly after each interrupt. So, the concern (and reason for the original design) was that you might lose count of vblank

Re: [Intel-gfx] [PATCH] drm: Aggressively disable vblanks

2010-12-20 Thread Keith Packard
On Mon, 20 Dec 2010 22:34:12 -0500, Andrew Lutomirski l...@mit.edu wrote: But five seconds is a *long* time, and anything short enough that the interrupt actually gets turned off in normal use risks the same race. Right, so eliminating any race seems like the basic requirement. Can that be

Re: [Intel-gfx] [PATCH] drm/i915: no LVDS on Intel SandyBridge SDVs

2010-12-21 Thread Keith Packard
On Tue, 21 Dec 2010 11:36:44 +, Chris Wilson ch...@chris-wilson.co.uk wrote: I think once upon a time I found a reliable method in the docs: intel_lvds_ddc_probe(). However that only seemed to work over GMBUS... That probably depends on the panel having DDC, which many don't, right? Maybe

Re: [Intel-gfx] [PATCH] drm/i915: no LVDS on Intel SandyBridge SDVs

2010-12-21 Thread Keith Packard
On Tue, 21 Dec 2010 19:55:15 +, Chris Wilson ch...@chris-wilson.co.uk wrote: The test we do is simply whether the LVDS i2c pins are addressable. That requires differentiating between an IO error and a NAK, which at present is only possible using GMBUS. The reference to this method I found

Re: [Intel-gfx] [PATCH] drm/i915: Recognise non-VGA display devices

2011-01-20 Thread Keith Packard
On Thu, 20 Jan 2011 15:07:07 +, Chris Wilson ch...@chris-wilson.co.uk wrote: + if (dev_priv-is_vga) { + /* If we have 1 VGA cards with a single output, + * then disable the radeon VGA resources. + */ Why does this say 'radeon'? --

Re: [Intel-gfx] Difference in dot clock between xserver 1.5.2 and 1.9.4 - intel driver

2011-02-28 Thread Keith Packard
On Mon, 28 Feb 2011 03:54:24 -0800 (PST), SD sd.dom...@yahoo.com wrote: (II) intel(0): using SSC reference clock of 96 MHz That's the spread-spectrum clock reference value; it forms the basis From which the actual dot clock is computed using a PLL. It is *not* the actual dot clock. [

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Remove surplus POSTING_READs before wait_for_vblank

2011-03-18 Thread Keith Packard
On Fri, 18 Mar 2011 08:02:03 +, Chris Wilson ch...@chris-wilson.co.uk wrote: ... as wait_for_vblank (and friends) will do a flush of the MMIO writes anyway. This one seems reasonable. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgppxraae0dbT.pgp

Re: [Intel-gfx] [PATCH 2/8] drm/i915: skip redundant operations whilst enabling pipes and planes

2011-03-18 Thread Keith Packard
On Fri, 18 Mar 2011 08:02:04 +, Chris Wilson ch...@chris-wilson.co.uk wrote: If the pipe or plane is already enabled, then we do not need to enable it again and can skip the delay. This should mention that you're also skipping the operation on disable. Otherwise, Reviewed-by: Keith

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Flush the plane enable using the DSPCNTR latch

2011-03-18 Thread Keith Packard
This comment is misleading -- the patch replaces a call to intel_wait_for_vblank with a call to intel_flush_display_plane. From my reading of the docs, enable requires two actions: 1) DSPACNTR with enable going from 0-1 2) wait for vblank At disable, three actions are required: 1) DSPACNTR

Re: [Intel-gfx] [PATCH 6/8] drm: Fix use-after-free in drm_gem_vm_close()

2011-03-18 Thread Keith Packard
On Fri, 18 Mar 2011 08:02:08 +, Chris Wilson ch...@chris-wilson.co.uk wrote: As we may release the last reference, we need to store the device in a local variable in order to unlock afterwards. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpHcqpgV3keH.pgp

Re: [Intel-gfx] [PATCH 7/8] drm/i915: Re-enable self-refresh

2011-03-18 Thread Keith Packard
(mask (mask - 1)) == 0 is easier to reason about. But, your fix is also correct as it finds the lowest bit set in 'mask' and checks to see if that is the same as mask. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpK3403Fm1hC.pgp Description: PGP signature

Re: [Intel-gfx] [PATCH 01/15] drm/i915: Enable use of GPU semaphores to sync page-flips on SNB

2011-03-22 Thread Keith Packard
Might be nice to have the patch message mention that the bulk of this patch is simply renaming and moving i915_gem_execbuffer_sync_rings. In fact, doing this in two patches would make the actual change a whole lot easier to find. -- keith.pack...@intel.com pgpogFDNCbIgt.pgp Description: PGP

Re: [Intel-gfx] [PATCH 2/4] drm/i915: save/restore DSPARB only for chips before gen4 but not for G33

2011-03-22 Thread Keith Packard
On Wed, 23 Mar 2011 10:21:07 +0800, Zhenyu Wang zhen...@linux.intel.com wrote: DSPARB is reserved on G33 and not available on Gen6. Does this fix a reported problem? Or just spec compliance? -- keith.pack...@intel.com pgpSsTjeknBqr.pgp Description: PGP signature

Re: [Intel-gfx] xf86-video-intel: 3 commits - src/intel_display.c src/intel_dri.c src/intel.h

2011-03-24 Thread Keith Packard
On Thu, 24 Mar 2011 02:02:56 +0100, Julien Cristau jcris...@debian.org wrote: Hi Keith, a couple suggestions below from a quick look over these patches. Thanks for your review! static void intel_vblank_handler(int fd, unsigned int frame, unsigned int tv_sec, -

Re: [Intel-gfx] [PATCH] drm/i915/lvds: Always return connected in the absence of better information

2011-03-24 Thread Keith Packard
Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpS0hlmwj2Q7.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] xf86-video-intel: 3 commits - src/intel_display.c src/intel_dri.c src/intel.h

2011-03-24 Thread Keith Packard
On Thu, 24 Mar 2011 19:31:03 +0100, Julien Cristau jcris...@debian.org wrote: This will cause a double free as the blit_fallback path does it too. Argh! So we need to check before we reference the buffers and set swap_info to NULL. This code is too twisty... @@ -955,11 +960,16 @@

Re: [Intel-gfx] xf86-video-intel: 3 commits - src/intel_display.c src/intel_dri.c src/intel.h

2011-03-24 Thread Keith Packard
On Fri, 25 Mar 2011 00:57:10 +0100, Julien Cristau jcris...@debian.org wrote: With that change, Reviewed-by: Julien Cristau jcris...@debian.org Thanks for catching my bugs before they caused any damage... Pushed. ec133ab..7ccbec8 master - master -- keith.pack...@intel.com

Re: [Intel-gfx] [PATCH] drm/i915: Reset GMBUS controller after NAK

2011-03-30 Thread Keith Packard
On Wed, 30 Mar 2011 17:59:51 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: I'm not even sure we need the first posting read. Maybe it should be a wait_for(I915_READ(GMBUS1 + reg_offset) GMBUS_SW_CLR_INT, 100) to be clearer that we are simply giving the hardware the chance to assert

Re: [Intel-gfx] [PATCH 1/2] drm/i915/crt: Remove 0xa0 probe for CRT

2011-04-04 Thread Keith Packard
On Mon, 4 Apr 2011 07:26:44 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Following the fix to reset the GMBUS controller after a NAK, we finally utilize the 0xa0 probe for a CRT connection. And discover that it is useless as it simply detects the presence of the controller and not the

Re: [Intel-gfx] [PATCH 2/2] drm/i915/crt: Explicitly return false if connected to a digital monitor

2011-04-04 Thread Keith Packard
On Mon, 4 Apr 2011 07:26:45 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Rather than proceed on to the next test, return the result from detecting a connection but to a digital panel and include some debug output as to why. I'm worried that this will falsely reject some monitors with

Re: [Intel-gfx] [PATCH 1/2] drm/i915/crt: Remove 0xa0 probe for CRT

2011-04-04 Thread Keith Packard
On Tue, 5 Apr 2011 10:19:16 +1000, Dave Airlie airl...@gmail.com wrote: On Tue, Apr 5, 2011 at 2:26 AM, Keith Packard kei...@keithp.com wrote: On Mon, 04 Apr 2011 16:29:55 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Yes. I'm saying that that the controller accepts a write to port

Re: [Intel-gfx] [PATCH 1/2] drm/i915/crt: Remove 0xa0 probe for CRT

2011-04-04 Thread Keith Packard
On Mon, 4 Apr 2011 07:26:44 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Following the fix to reset the GMBUS controller after a NAK, we finally utilize the 0xa0 probe for a CRT connection. And discover that it is useless as it simply detects the presence of the controller and not the

Re: [Intel-gfx] [PATCH 2/5] drm/i915/crt: Explicitly return false if connected to a digital monitor

2011-04-05 Thread Keith Packard
On Tue, 5 Apr 2011 10:24:15 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Rather than proceed on and return false by default, return the result from detecting a connection but to a digital panel and include some debug output as to why. This comment does not match the patch anymore;

Re: [Intel-gfx] [PATCH 5/5] drm/i915/gmbus: Reset the controller on initialisation

2011-04-05 Thread Keith Packard
On Tue, 5 Apr 2011 10:24:18 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Toggle the Software Clear Interrupt bit which resets the controller to clear any prior BUS_ERROR condition before we begin to use the controller in earnest. We do this in two places now, do we want to share the

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Initialise g4x watermarks for disabled pipes

2011-04-05 Thread Keith Packard
On Tue, 05 Apr 2011 22:12:19 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Indeed, I started by setting them to zero in the caller. Decided that there was some precedent to use the guard_size as the minimum value for unused planes (and so perhaps the unused planes on the unused pipes)

Re: [Intel-gfx] [PATCH] drm/i915: Clear any errors recorded before i915.ko is loaded

2011-04-05 Thread Keith Packard
On Tue, 5 Apr 2011 23:00:46 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: This looks like it fixes two bugs: 1) What if there is an error recorded before we start and so we immediately service an IIR/EIR upon intalling the IRQ. Did we generate that error during initialisation or was

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Initialise g4x watermarks for disabled pipes

2011-04-06 Thread Keith Packard
On Wed, 06 Apr 2011 09:02:22 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Looks like we can now indeed merge g4x_compute_wm0 and ironlake_compute_wm0 and ignore the off-values for gen5+. They do seem surprisingly similar at this point... So fix the use of uninitialised values for

Re: [Intel-gfx] [PATCH] drm/i915: Sanitize the output registers after resume

2011-04-12 Thread Keith Packard
paths) instead. Note that intel_sanitize_modesetting does not do anything on PCH hardware yet. Otherwise, this looks like a reasonable plan. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpiMvU9734pI.pgp Description: PGP signature

Re: [Intel-gfx] force wake reference counting (another try)

2011-04-12 Thread Keith Packard
On Tue, 12 Apr 2011 18:31:51 -0700, Ben Widawsky b...@bwidawsk.net wrote: I think we have no other option since the first thing that i915_driver_irq_handler() does is read IIR, which according to the limited knowledge I have requires forcewake. I think the eventual plan will be to figure out

Re: [Intel-gfx] [PATCH 01/13] drm/i915: Rename agp_type to cache_level

2011-04-14 Thread Keith Packard
On Thu, 14 Apr 2011 10:03:35 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: ... to clarify just how we use it inside the driver. We still need to translate through agp_type for interface into the fake AGP driver. agp_type has some really confusing semantics... - obj-agp_type =

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Attach a fb to the load-detect pipe

2011-04-19 Thread Keith Packard
On Tue, 19 Apr 2011 21:32:02 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: We need to ensure that we feed valid memory into the display plane attached to the pipe when switching the pipe on. Otherwise, the display engine may read through an invalid PTE and so throw an PGTBL_ER

Re: [Intel-gfx] [PATCH] drm/i915/dp: Be paranoid in case we disable a DP before it is attached

2011-04-20 Thread Keith Packard
On Wed, 20 Apr 2011 16:42:08 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Given that the hardware may be left in a random condition by the BIOS, it is conceivable that we then attempt to clear the DP_PIPEB_SELECT bit without us ever enabling/attaching the DP encoder to a pipe. Thus

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Simplify return value from intel_get_load_detect_pipe

2011-04-20 Thread Keith Packard
On Wed, 20 Apr 2011 10:22:17 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: + + if (!drm_crtc_helper_set_mode(crtc, mode, 0, 0, crtc-fb)) { + DRM_DEBUG_KMS(failed to set mode on load-detect pipe\n); + return false; + }

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Don't store temporary load-detect variables in the generic encoder

2011-04-20 Thread Keith Packard
them inside the common encoder structure. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpIyuZ6gZHYI.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Pass the saved adjusted_mode when adding to the load-detect crtc

2011-04-20 Thread Keith Packard
On Wed, 20 Apr 2011 10:22:20 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Reviewed-by: Keith Packard kei...@keithp.com (this might be separately tested to see if it might fix some TV load detection issues?) -- keith.pack

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Pass the saved adjusted_mode when adding to the load-detect crtc

2011-04-20 Thread Keith Packard
On Wed, 20 Apr 2011 20:38:54 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: On Wed, 20 Apr 2011 11:23:01 -0700, Keith Packard kei...@keithp.com wrote: On Wed, 20 Apr 2011 10:22:20 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Signed-off-by: Chris Wilson ch...@chris

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Attach a fb to the load-detect pipe

2011-04-20 Thread Keith Packard
On Wed, 20 Apr 2011 19:55:10 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: I'll spin up a patch for a temporary buffer and see what you think. Ok. I'd love to be able to use that code path all of the time, but I don't like the thought of the cost of a temporary allocation every time you

Re: [Intel-gfx] Pending i915 fixes

2011-04-21 Thread Keith Packard
On Thu, 21 Apr 2011 22:18:15 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Whilst this may appear to be a big batch, it is actually only a few bug fixes from the last couple of weeks broken down into small steps. Do you think any of these are needed in .39? -- keith.pack...@intel.com

Re: [Intel-gfx] [PATCH] drm/i915: fix intel_crtc_get_clock pipe reads after cleanup

2011-04-22 Thread Keith Packard
On Fri, 22 Apr 2011 22:22:28 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: fp = FP0(pipe); else fp = FP1(pipe); + fp = I915_READ(fp); Please use different variables for the offset vs the value... -- keith.pack...@intel.com pgpaGbAUtaJf4.pgp

Re: [Intel-gfx] [PATCH] fix interrupt request miss problem in bsd ring for g4x

2011-04-26 Thread Keith Packard
On Tue, 26 Apr 2011 18:12:52 +0800, Feng, Boqun boqun.f...@intel.com wrote: Signed-off-by: Feng, Boqun boqun.f...@intel.com Please add a description here of what the bug was and how this fixes it. -- keith.pack...@intel.com pgph19eyUhT0a.pgp Description: PGP signature

Re: [Intel-gfx] [PATCH 07/16] drm/i915: add PantherPoint PCH ID

2011-04-27 Thread Keith Packard
On Tue, 26 Apr 2011 16:38:45 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: We can treat PantherPoint as CougarPoint as far as display goes. I'll note in passing that pch_type is never set to PCH_IBX explicitly, which only works because PCH_IBX is zero. -- keith.pack...@intel.com

Re: [Intel-gfx] [PATCH 11/16] drm/i915: manual FDI training for Ivy Bridge

2011-04-27 Thread Keith Packard
On Tue, 26 Apr 2011 16:38:49 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: A0 stepping chips need to use manual training, but the bits have all moved. So fix things up so we can at least train FDI for VGA links. This patch should be before the auto-train patch so that we don't have a

Re: [Intel-gfx] [PATCH 1/2] drm/i915:merge ring_put/get_irq into bsd_ring_put/get_irq

2011-04-27 Thread Keith Packard
On Wed, 27 Apr 2011 15:41:18 +0800, Feng, Boqun boqun.f...@intel.com wrote: Remove ring_put_irq/ring_get_irq:drivers/gpu/drm/i915/intel_ringbuffer.c , they are only used by bsd_ring_put_irq/bsd_ring_get_irq. Expand the code in bsd_ring_put_irq/bsd_ring_get_irq. Why is this change useful? --

Re: [Intel-gfx] [PATCH 1/2] drm/i915:merge ring_put/get_irq into bsd_ring_put/get_irq

2011-04-27 Thread Keith Packard
On Thu, 28 Apr 2011 10:06:51 +0800, Feng, Boqun boqun.f...@intel.com wrote: I have discussed this with Chris in my earlier patch. This change is a clean-up, since ring_put_irq and ring_get_irq are only used by bsd_ring_put_irq and bsd_ring_get_irq. And once this change is made, it is

Re: [Intel-gfx] [PATCH 01/19] drm/i915: make FDI training a display function

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:47 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Rather than branching in ironlake_pch_enable, add a new train_fdi function to the display function pointer struct and use it instead. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Reviewed-by: Keith

Re: [Intel-gfx] [PATCH 02/19] drm/i915: split irq handling into per-chipset functions

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:48 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Set the IRQ handling functions in driver load so they'll just be used directly, rather than branching over most of the code in the chipset functions. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack

Re: [Intel-gfx] [PATCH 03/19] drm/i915: split enable/disable vblank code into chipset specific functions

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:49 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: This makes the Ironlake+ code trivial and generally simplifies things. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com

Re: [Intel-gfx] [PATCH 04/19] drm/i915: add IS_GEN7 macro to cover Ivy Bridge and later

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:50 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Note: IS_GEN* are for render related checks. Display and other checks should use IS_MOBILE, IS_$CHIPSET or test for specific features. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Reviewed-by: Keith

Re: [Intel-gfx] [PATCH 05/19] drm/i915: add IS_IVYBRIDGE macro for checks

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:51 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: I don't see a patch in this series that sets this value from the PCI ids. Is that still pending? -- keith.pack...@intel.com pgpfAzxA46ANr.pgp Description: PGP signature

Re: [Intel-gfx] [PATCH 06/19] drm/i915: Ivy Bridge has split display and pipe control

2011-04-28 Thread Keith Packard
...@virtuousgeek.org Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgp0rmuIHa20e.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 07/19] drm/i915: add swizzle/tiling support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:53 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Treat it like Ironlake and Sandy Bridge. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Should use gen = 5? -- keith.pack...@intel.com pgptprXAz4FhS.pgp Description: PGP signature

Re: [Intel-gfx] [PATCH 08/19] drm/i915: manual FDI training for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:54 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: + if (IS_GEN6(dev)) { + temp = ~FDI_LINK_TRAIN_NONE; + temp |= FDI_LINK_TRAIN_NONE | FDI_TX_ENHANCE_FRAME_ENABLE; + } else if (IS_IVYBRIDGE(dev)) { + temp =

Re: [Intel-gfx] [PATCH 09/19] drm/i915: automatic FDI training support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:55 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Ivy Bridge supports auto-training on the CPU side, so add a separate training function to handle it. Let's leave this out of the kernel until we have hardware that actually uses it. -- keith.pack...@intel.com

Re: [Intel-gfx] [PATCH 10/19] drm/i915: treat Ivy Bridge watermarks like Sandy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:56 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: - if (IS_GEN6(dev)) { + if (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) { IS_GEN6 for SNB and IS_IVYBRIDGE for IVB? More consistency, please. -- keith.pack...@intel.com pgpPesA8nYOAV.pgp

Re: [Intel-gfx] [PATCH 11/19] drm/i915: interrupt vblank support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:57 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: - if (IS_G4X(dev) || IS_GEN5(dev) || IS_GEN6(dev)) { + if (IS_G4X(dev) || IS_GEN5(dev) || IS_GEN6(dev) || IS_IVYBRIDGE(dev)) { IS_G4X || gen = 5 ? Otherwise, this looks good (seems like it's just bit

Re: [Intel-gfx] [PATCH 13/19] drm/i915: untested DP support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:59 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Treat it like Sandy Bridge in a few places. gen = 6? -- keith.pack...@intel.com pgpqFHB2q8tev.pgp Description: PGP signature ___ Intel-gfx mailing list

Re: [Intel-gfx] [PATCH 14/19] drm/i915: ring support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:13:00 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Use Sandy Bridge paths in a few places. gen = 6 ? -- keith.pack...@intel.com pgp6Bmd9mjsyL.pgp Description: PGP signature ___ Intel-gfx mailing list

Re: [Intel-gfx] [PATCH 17/19] drm/i915: add Ivy Bridge PCI IDs and driver feature structs

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:13:03 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: There are several variants, set feature bits appropriately for both mobile and desktop parts. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack

Re: [Intel-gfx] [PATCH 18/19] drm/i915: set IBX pch type explicitly

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:13:04 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: This is a little less confusing than relying on the implicit zeroing of the dev_priv. Thanks. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpFuOeuyyxOq.pgp Description: PGP

Re: [Intel-gfx] [PATCH 13/19] drm/i915: untested DP support for Ivy Bridge

2011-05-01 Thread Keith Packard
On Sun, 01 May 2011 17:26:11 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Perhaps if you do the s/IS_GEN6/IS_SNADYBRIDGE/ fixes first it will become much clearer? :) The only question is one of regressions; getting the cleanups tested in isolation from the IVB patches. That seems

Re: [Intel-gfx] [PATCH 04/13] drm/i915: Introduce i915_gem_object_finish_gtt()

2011-05-04 Thread Keith Packard
On Thu, 14 Apr 2011 10:03:38 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: + obj-base.write_domain = ~I915_GEM_DOMAIN_GTT; + obj-base.write_domain = ~I915_GEM_DOMAIN_GTT; I'll bet you want to modify the read_domain as well. -- keith.pack...@intel.com pgp2NzoJuMYNT.pgp

Re: [Intel-gfx] [PATCH 07/13] drm/i915: Mark the cursor and the overlay as being part of the display planes

2011-05-04 Thread Keith Packard
On Thu, 14 Apr 2011 10:03:41 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -5360,7 +5360,7 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc, goto fail_locked;

Re: [Intel-gfx] [PATCH 11/13] drm/i915: Prevent mmap access through the GTT of snooped pages

2011-05-04 Thread Keith Packard
On Thu, 14 Apr 2011 10:03:45 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: The docs have a dire warning not to attempt to access snooped (the old style of cache sharing on pre-SandyBridge chipsets) pages through the GTT. Prevent userspace from doing so by sending them a SIGBUS if they

Re: [Intel-gfx] [PATCH 12/13] drm/i915: Prevent mixing of snooped and tiling modes for old chipsets

2011-05-04 Thread Keith Packard
On Thu, 14 Apr 2011 10:03:46 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Older chipsets do not support snooping (i.e. cache sharing between the CPU and GPU) on tiled surfaces. So prevent userspace from being silly should we one day expose the ability to change cache levels from

Re: [Intel-gfx] [PATCH 07/13] drm/i915: Mark the cursor and the overlay as being part of the display planes

2011-05-04 Thread Keith Packard
On Wed, 04 May 2011 19:28:35 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: to simply mark the device as uninterruptible for the duration. The code now does the latter. I'm good with that plan during modesetting, the question is whether the new users of this function should allow for

Re: [Intel-gfx] [PATCH 08/17] drm/i915: Move the tracking of dpms_mode down into crtc enable/disable

2011-05-04 Thread Keith Packard
On Thu, 21 Apr 2011 22:18:23 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: As we failed to update the dpms_mode after modeset, where it is presumed to have been changed to DRM_MODE_DPMS_ON by the upper layers the dpms state on the crtc became inconsistent with its actual active state.

Re: [Intel-gfx] [PATCH] drm/i915: Clear any errors recorded before i915.ko is loaded

2011-05-04 Thread Keith Packard
On Tue, 5 Apr 2011 23:00:46 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Something to think about... Missing SoB here... -- keith.pack...@intel.com pgpnCoAAssejC.pgp Description: PGP signature ___ Intel-gfx mailing list

[Intel-gfx] Sandy Bridge graphics programmers reference manuals available now

2011-05-06 Thread Keith Packard
Angela Gill (Visual Computing Group) and I (Keith Packard, Open Source Technology Center) are pleased to announce that HD Graphics Programmer's Reference Manuals for 2011 Intel Core Processor Family (Sandy Bridge) are now available at: http://intellinuxgraphics.org/documentation.html

Re: [Intel-gfx] [PATCH 1/7] drm/i915: color range only works on pre-ILK

2011-05-10 Thread Keith Packard
On Tue, 19 Apr 2011 12:12:35 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: ILK+ provides this feature in the transcoder and pipe configuration instead. This doesn't seem to add in a new implementation of this feature for ILK, just stops using the pre-ILK version on ILK. Please explain

Re: [Intel-gfx] [PATCH 4/7] drm/i915: split out Ironlake pipe bpp picking code

2011-05-10 Thread Keith Packard
On Tue, 19 Apr 2011 12:12:38 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Figuring out which pipe bpp to use is a bit painful. It depends on both the encoder and display configuration attached to a pipe. For instance, to drive a 24bpp framebuffer out to an 18bpp panel, we need to use

[Intel-gfx] [PATCH 1/2] drm/i915: Select correct pipe during TV detect

2011-05-12 Thread Keith Packard
Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/intel_tv.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 6b22c1d..876064c 100644 --- a/drivers/gpu/drm/i915/intel_tv.c

[Intel-gfx] [PATCH 2/2] drm/i915: TVDAC_STATE_CHG does not indicate successful load-detect

2011-05-12 Thread Keith Packard
Do not use this bit to indicate that load detection has completed, instead just wait for vblank, at which point the load registers will have been updated. Signed-off-by: Keith Packard kei...@keithp.com --- drivers/gpu/drm/i915/intel_tv.c | 40 +++--- 1 files

Re: [Intel-gfx] [PATCH 02/16] drm/i915: Refactor pwrite/pread to use single copy of get_user_pages

2011-05-12 Thread Keith Packard
On Thu, 12 May 2011 22:17:10 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: + pages = kmalloc(n*sizeof(struct page *), + GFP_KERNEL | __GFP_NORETRY | __GFP_NOWARN); + if (pages == NULL) { + pages = drm_malloc_ab(n, sizeof(struct page *)); +

Re: [Intel-gfx] [PATCH 03/16] drm/i915: s/addr ~PAGE_MASK/offset_in_page(addr)/

2011-05-12 Thread Keith Packard
On Thu, 12 May 2011 22:17:11 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Convert our open coded offset_in_page() to the common macro. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpjf0bivf3pS.pgp

Re: [Intel-gfx] [PATCH 09/16] drm/i915/gmbus: Reset the controller on initialisation

2011-05-12 Thread Keith Packard
On Thu, 12 May 2011 22:17:17 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: Toggle the Software Clear Interrupt bit which resets the controller to clear any prior BUS_ERROR condition before we begin to use the controller in earnest. Looks reasonable, except for the bad register offsets

Re: [Intel-gfx] [PATCH 05/16] drm/i915/tv: Use a direct pointer for tv_mode

2011-05-12 Thread Keith Packard
. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgp0mLAXjByJB.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 11/16] drm/i915: not finding a fence is a non-recoverable condition

2011-05-12 Thread Keith Packard
On Thu, 12 May 2011 22:17:19 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: - return -ENOSPC; + return -EDEADLK; Would be nice to have the kernel print out a debugging message at this point -- the only way to hit this is from a bug in user or kernel code. --

  1   2   3   4   5   6   7   >