Re: [PATCH] Add intel drm blacklist to intel_opregion_present detect

2010-07-12 Thread Matthew Garrett
* that opregion won't work on Poulsbo as is (even Intel's driver doesn't implement it), so there's no way this patch can make things any worse. On the other hand, if anyone ships an OS with this hack *and* a native psb driver, I'm going to look sad for some time. -- Matthew Garrett | mj

Re: [PATCHES] radeon kms pm patches

2010-03-27 Thread Matthew Garrett
looking for other potential issues. -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune

[PATCH 2/4] radeon: perform memory reclocking in atomic context

2010-03-22 Thread Matthew Garrett
This is fast enough and rare enough that it's worth making sure that it happens in the vblank, which means doing it in irq context. The alternative is visual corruption and potential machine crashes. Signed-off-by: Matthew Garrett m...@redhat.com --- drivers/gpu/drm/radeon/r100.c

[PATCH 4/4] radeon: Run engine reclocking during vblank

2010-03-22 Thread Matthew Garrett
Reclocking the engine during screen refresh can cause corruption on some hardware. Do it during vblank instead, and make sure that we're really in vblank. Signed-off-by: Matthew Garrett m...@redhat.com --- drivers/gpu/drm/radeon/r100.c| 54 + drivers/gpu

[PATCH 1/4] radeon: Allow execution of scripts in atomic context

2010-03-22 Thread Matthew Garrett
We want to perform radeon memory reclocking in interrupt context, so need to ensure that we don't do anything that may sleep. Add an alternate entry point to the atom interpreter that flags things appropriately and make behaviour conditional on that. Signed-off-by: Matthew Garrett m...@redhat.com

[PATCH 3/4] radeon: Reclock r520 memory by hand

2010-03-22 Thread Matthew Garrett
The r520 atom tables sleep for long enough that it's impossible to reclock memory during an interrupt. Implement this by hand instead in order to avoid the delay. Signed-off-by: Matthew Garrett m...@redhat.com --- drivers/gpu/drm/radeon/r500_reg.h|4 ++- drivers/gpu/drm/radeon/r520.c

Re: ACPI _LID failures

2010-03-20 Thread Matthew Garrett
pretty strong evidence that Windows doesn't depend on lid state, unfortunately. -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed

Re: [Q] How to tell we're using the KMS (during suspend/resume) outside the graphics driver

2010-03-11 Thread Matthew Garrett
On Wed, Mar 10, 2010 at 10:15:26PM +0100, Rafael J. Wysocki wrote: On Wednesday 10 March 2010, Matthew Garrett wrote: As far as the ACPI video driver goes, acpi_get_physical_pci_device() will give you something to work with. Hmm. Did you mean acpi_get_physical_device()? Ah

Re: [Q] How to tell we're using the KMS (during suspend/resume) outside the graphics driver

2010-03-11 Thread Matthew Garrett
themselves, and then walk all active console drivers. There'd need to be a way for fb drivers to tell fbcon that they can handle it. -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel Studio Eval Try

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
and userspace would break. You asked that it be merged anyway, and now you're unhappy because the interface has changed and userspace has broken? -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
a new libdrm, will it then work with the _old_ kernel too? F-12 continues to ship the -nv driver, which will work fine with any kernel version as long as nouveau is disabled. -- Matthew Garrett | mj...@srcf.ucam.org

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
On Thu, Mar 04, 2010 at 10:55:57AM -0800, Linus Torvalds wrote: On Thu, 4 Mar 2010, Matthew Garrett wrote: When you asked that nouveau was merged, people explicitly told you that the reason it hadn't been was because the interface was unstable and userspace would break. You asked

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
On Thu, Mar 04, 2010 at 11:14:11AM -0800, Linus Torvalds wrote: On Thu, 4 Mar 2010, Matthew Garrett wrote: If you'd made it clear that you wanted the interface to be stable before it got merged, I suspect that it simply wouldn't have been merged until the interface was stable

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
because they're paid to, who's going to do it and what functionality is going to be delayed as a result? -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel Studio Eval Try the new software tools

Re: [git pull] drm request 3

2010-03-04 Thread Matthew Garrett
the job of supporting multiple interfaces out to userspace would be much more tractable here. -- Matthew Garrett | mj...@srcf.ucam.org -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Matthew Garrett
On Thu, Feb 04, 2010 at 08:17:05AM +0100, Ingo Molnar wrote: btw., i just found another bug activated via this same commit, a boot hang after DRM init: The commit in question didn't cause the hang, so reverting it isn't the appropriate fix. -- Matthew Garrett | mj...@srcf.ucam.org

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Matthew Garrett
that config and then enable Radeon KMS under staging, do you get the hang? -- Matthew Garrett | mj...@srcf.ucam.org -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Matthew Garrett
On Thu, Feb 04, 2010 at 07:12:18PM +0100, Ingo Molnar wrote: * Matthew Garrett mj...@srcf.ucam.org wrote: The reason the option was in staging (as has been mentioned before) was because the ABI wasn't felt to be stable enough. Upstream is now willing to commit to that stability, so now

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Matthew Garrett
and a new kernel, how is that in any plausible way a regression? What's regressed? -- Matthew Garrett | mj...@srcf.ucam.org -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Matthew Garrett
is counterproductive. -- Matthew Garrett | mj...@srcf.ucam.org -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose

[PATCH] acpi: Export EDID blocks to the kernel

2010-01-12 Thread Matthew Garrett
. Also add support for ensuring that devices with legacy IDs are supported. Signed-off-by: Matthew Garrett m...@redhat.com --- drivers/acpi/video.c | 110 ++ include/acpi/video.h | 16 +++ 2 files changed, 118 insertions(+), 8 deletions(-) diff

Re: [Nouveau] [Discussion] User controls for PowerManagement

2010-01-12 Thread Matthew Garrett
that kind of thing. Anything else sounds like overengineering. -- Matthew Garrett | mj...@srcf.ucam.org -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app

Re: drm/*/kms: how to prepare driver for modesetting

2009-12-03 Thread Matthew Garrett
exclusive hw access, thus we need to take cs lock but also the lock which is protecting modesetting (iirc there is one). If a modeset results in a second display being activated, we need to clock back up. vblank-driven reclocking doesn't work so well with multihead. -- Matthew Garrett | mj

Re: [PATCH] drm/radeon/kms: add dynamic engine reclocking

2009-12-03 Thread Matthew Garrett
that makes it spin rather than sleep? -- Matthew Garrett | mj...@srcf.ucam.org -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth

Re: [RFC] drm/i915: support zero flicker boot

2009-10-22 Thread Matthew Garrett
Unfortunately it's basically a requirement for us to come up in VGA text mode right now - otherwise printk doesn't do anything until after i915 is up, which is a little excessive. Does the hardware absolutely require the LVDS be killed for programming? -- Matthew Garrett | mj...@srcf.ucam.org

Re: Power management in KMS

2009-09-09 Thread Matthew Garrett
a small number of cases where we can't reconfigure a power management state on the fly - the number of PCIe lanes is an example of this. Changing it simply takes too long, and we drop several frames in the process. The right kind of interface for that does require some thought. -- Matthew Garrett

Re: DRM drivers with closed source user-space: WAS [Patch 0/3] Resubmit VIA Chrome9 DRM via_chrome9 for upstream

2009-07-20 Thread Matthew Garrett
with qcserial), or is it a pragmatic issue? What about specialised hardware drivers that only have closed applications? -- Matthew Garrett | mj...@srcf.ucam.org -- Enter the BlackBerry Developer Challenge This is your

Re: DRM drivers with closed source user-space: WAS [Patch 0/3] Resubmit VIA Chrome9 DRM via_chrome9 for upstream

2009-07-20 Thread Matthew Garrett
on a closed component. -- Matthew Garrett | mj...@srcf.ucam.org -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications

Re: [RFC] [intel-gfx] :The backlight issue when KMS is used

2009-04-07 Thread Matthew Garrett
On Tue, Apr 07, 2009 at 11:45:11AM +0800, yakui_zhao wrote: On Sat, 2009-04-04 at 00:29 +0800, Matthew Garrett wrote: Right. I'd imagine it as i915 loading and calling is_acpi_backlight(). If that returns false, it should register a backlight device and also a notifier. If a machine

Re: [RFC] [intel-gfx] :The backlight issue when KMS is used

2009-04-07 Thread Matthew Garrett
On Tue, Apr 07, 2009 at 03:25:23PM +0800, yakui_zhao wrote: On Tue, 2009-04-07 at 13:57 +0800, Matthew Garrett wrote: No, since in UMS mode the X server handles the backlight registers. If so, there is no change about the backlight flowchart in UMS mode. And only when the KMS mode is used

Re: [RFC] [intel-gfx] :The backlight issue when KMS is used

2009-04-07 Thread Matthew Garrett
happens if the platform driver gets loaded before i915? -- Matthew Garrett | mj...@srcf.ucam.org -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational

Re: [RFC] [intel-gfx] :The backlight issue when KMS is used

2009-04-03 Thread Matthew Garrett
device and also a notifier. If a machine-specific platform device (like thinkpad_acpi or dell_laptop or whatever) then loads, i915 should unregister its driver and leave it up to the machine-specific one. The DDX would then use the backlight device under all circumstances. -- Matthew Garrett | mj

Re: [patch 0/5] Intel Poulsbo/Morrestown DRM driver and DRM core changes

2009-03-20 Thread Matthew Garrett
On Thu, Mar 19, 2009 at 09:27:19AM -0700, Greg KH wrote: But how do I get my laptop that I currently have right now up and running properly with linux in a better-than-800x600-framebuffer mode? You don't, because there's no working X driver. -- Matthew Garrett | mj...@srcf.ucam.org

Re: [patch 0/5] Intel Poulsbo/Morrestown DRM driver and DRM core changes

2009-03-20 Thread Matthew Garrett
On Thu, Mar 19, 2009 at 12:02:54PM -0700, Greg KH wrote: On Thu, Mar 19, 2009 at 06:53:38PM +, Matthew Garrett wrote: On Thu, Mar 19, 2009 at 09:27:19AM -0700, Greg KH wrote: But how do I get my laptop that I currently have right now up and running properly with linux in a better

Re: VRAM vs suspend.

2008-05-31 Thread Matthew Garrett
solving regardless. You'll also reduce power consumption if you don't need to keep the VRAM powered. -- Matthew Garrett | [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual

[PATCH] Add opregion support for Intel hardware

2008-05-28 Thread Matthew Garrett
this in anyway, since it's required for backlight control to work properly on some new platforms. Signed-off-by: Matthew Garrett [EMAIL PROTECTED] --- diff --git a/linux-core/Makefile.kernel b/linux-core/Makefile.kernel index 7a477a1..fb8722a 100644 --- a/linux-core/Makefile.kernel +++ b/linux-core

Re: [PATCH] Add opregion support for Intel hardware

2008-05-28 Thread Matthew Garrett
On Wed, May 28, 2008 at 03:28:27PM +0300, Daniel Stone wrote: Can has copyright and licence? Uhm. Yeah, Good point. Hong, I'm guessing your original code was copyright Intel and under the standard drm licensing? -- Matthew Garrett | [EMAIL PROTECTED