login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
Re: [RFC] full suspend/resume support for i915 DRM driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: Jesse Barnes <jbarnes@...>
Cc: Pavel Machek <pavel@...>, <dri-devel@...>, <linux-kernel@...>
Subject:
Re: [RFC] full suspend/resume support for i915 DRM driver
Date: Wednesday, October 24, 2007 - 5:22 pm
On Wednesday, 24 October 2007 17:18, Jesse Barnes wrote:
quoted text
> On Wednesday, October 24, 2007 6:35:14 am Pavel Machek wrote: > > Hi! > > > > > We seem to see a lot of bug reports along the lines of, "my machine > > > resumes but I can't see X" or, "I can see X but only with a bright > > > flashlight", etc. These sorts of problems are due to the fact that > > > the X server isn't designed to do full state save/restore, and none > > > of the available kernel drivers do it on its behalf. > > > > > > Since intelfb and the rest of the Intel drivers are fairly incompatible, > > > this patch makes the DRM bind to the PCI device so it can register real > > > suspend/resume handlers. Those handlers take care of saving and > > > restoring enough state for X to come back reliably on at least one of my > > > problematic test machines, but text mode still has trouble (still > > > debugging VGA state save/restore, including trying to save/restore > > > actual VRAM contents for possible hibernate support). > > > > > > How does this approach look? Is a new DRM driver flag a good thing for > > > similar situations with other drivers? Thoughts? > > > > Looks okay to me... from very quick look. > > > > > + if (!i915_pipe_enabled(dev, pipe)) > > > + return; > > > + > > > + if (pipe == PIPE_A) > > > + array = dev_priv->savePaletteA; > > > > coding style, we probably want save_palette_A. > > Yeah, I tried not to pull over uglies from the X code but I guess I forgot > this bit. I should also update the copyright. > > > > + unsigned long reg = pipe == PIPE_A ? PALETTE_A : PALETTE_B; > > > > Uff. Mixing = and == and ? in one expression is evil. > > I could put parens around it if you think that would help, or just move it to > a new line...
I'd use parens around "pipe == PIPE_A". Greetings, Rafael -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Thu Oct 18, 5:01 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Pavel Machek
, (Wed Oct 24, 9:35 am)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Wed Oct 24, 11:18 am)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Rafael J. Wysocki
, (Wed Oct 24, 5:22 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Thu Oct 25, 7:53 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Greg KH
, (Fri Oct 26, 12:59 am)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Fri Oct 26, 12:57 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Kay Sievers
, (Fri Oct 26, 1:10 pm)
Re: fixing up DRM device model usage
, Jesse Barnes
, (Fri Oct 26, 2:40 pm)
Re: fixing up DRM device model usage
, Kay Sievers
, (Fri Oct 26, 3:08 pm)
Re: fixing up DRM device model usage
, Jesse Barnes
, (Fri Oct 26, 5:31 pm)
Re: fixing up DRM device model usage
, Kay Sievers
, (Sat Oct 27, 5:12 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Fri Oct 26, 2:12 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Kay Sievers
, (Fri Oct 26, 2:21 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Fri Oct 19, 10:51 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Tue Oct 23, 12:15 am)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Adrian Bunk
, (Wed Oct 24, 4:17 pm)
Re: [RFC] full suspend/resume support for i915 DRM driver
, Jesse Barnes
, (Wed Oct 24, 5:07 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
David Miller
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
799 guests
online.
Online users
strcmp
roundtheruggedd
ernestogordon37
Syndicate