Skip to contentSkip to conversation

drm/gma500 : Suspend/resume issues

DISCUSSION Guillaume Clément 2 participants 3 messages May 16, 2012 – May 17, 2012

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 6 lines

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.

#2 lore raw
Quoted 11 lines · On Thu, 17 May 2012 01:36:29 +0200 Guillaume Clément <[email protected]>…
Quoted 6 lines

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