From: Guillaume =?ISO-8859-1?Q?Cl=E9ment?= Subject: drm/gma500 : Suspend/resume issues Date: Thu, 17 May 2012 01:25:52 +0200 Message-ID: <2087472.jo0s3cjpgZ@freya> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by gabe.freedesktop.org (Postfix) with ESMTP id EF9CA9E902 for ; Wed, 16 May 2012 16:25:49 -0700 (PDT) Received: from freya.localnet (unknown [IPv6:2a01:e35:8b3b:6a90:226:2dff:fe15:7da9]) (Authenticated sender: tortuxm@baobob.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 293BC1720C7 for ; Thu, 17 May 2012 01:25:47 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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.