All of lore.kernel.org
 help / color / mirror / Atom feed
* drm/gma500 : Suspend/resume issues
@ 2012-05-16 23:25 Guillaume Clément
  2012-05-16 23:36 ` Guillaume Clément
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Clément @ 2012-05-16 23:25 UTC (permalink / raw)
  To: dri-devel

Hello,

On my Poulsbo-enabled machine, I cannot do suspend/resume since the gma500_gfx 
has left staging. I'm currently testing on linux-3.4-rc7.

After some debugging, I found out what the issue is. The crash occurs in 
psb_save_display_registers at the following lines : 

        list_for_each_entry(connector, &dev->mode_config.connector_list, head){
                connector->funcs->save(connector);
        }



It appears that connector->funcs->save is NULL : 

static const struct drm_connector_funcs psb_intel_sdvo_connector_funcs = {                                                                                                                          
        .dpms = drm_helper_connector_dpms,                                                                                                                                                          
        .detect = psb_intel_sdvo_detect,                                                                                                                                                            
        .fill_modes = drm_helper_probe_single_connector_modes,                                                                                                                                      
        .set_property = psb_intel_sdvo_set_property,                                                                                                                                                
        .destroy = psb_intel_sdvo_destroy,                                                                                                                                                          
};                                                                                                                                                                                                  

The staging version used to define a "save" function (psb_intel_sdvo_save). Was 
it broken ? If not, should we insert it back ? 


Either way, if I add an empty "save" function, suspend works again (but at the 
moment, resume still doesn't work, I'm still trying to work on that).

If I just add a "if (connector->funcs->save)", this also fixes the crash.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drm/gma500 : Suspend/resume issues
  2012-05-16 23:25 drm/gma500 : Suspend/resume issues Guillaume Clément
@ 2012-05-16 23:36 ` Guillaume Clément
  2012-05-17 13:57   ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Clément @ 2012-05-16 23:36 UTC (permalink / raw)
  To: dri-devel


> Either way, if I add an empty "save" function, suspend works again (but at
> the moment, resume still doesn't work, I'm still trying to work on that).
> 
> If I just add a "if (connector->funcs->save)", this also fixes the crash.
> 

Actually, the resume problem is exactly the same as the suspend problem.

After adding an empty "resume" function in the connector function, suspend and 
resume both work properly.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drm/gma500 : Suspend/resume issues
  2012-05-16 23:36 ` Guillaume Clément
@ 2012-05-17 13:57   ` Alan Cox
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2012-05-17 13:57 UTC (permalink / raw)
  To: Guillaume Clément; +Cc: dri-devel

On Thu, 17 May 2012 01:36:29 +0200
Guillaume Clément <gclement@baobob.org> wrote:

> 
> > Either way, if I add an empty "save" function, suspend works again (but at
> > the moment, resume still doesn't work, I'm still trying to work on that).
> > 
> > If I just add a "if (connector->funcs->save)", this also fixes the crash.
> > 
> 
> Actually, the resume problem is exactly the same as the suspend problem.
> 
> After adding an empty "resume" function in the connector function, suspend and 
> resume both work properly.

Fix added for suspend/resume and the cursor.

I've pushed the cursor fix as a follow up patch rather than rebasing the
patch set.

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-17 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 23:25 drm/gma500 : Suspend/resume issues Guillaume Clément
2012-05-16 23:36 ` Guillaume Clément
2012-05-17 13:57   ` Alan Cox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.