From: Daniel Vetter Subject: Re: [PATCH] drm: Fix drm_crtc vs. drm_plane type bug in plane->reset() handling Date: Mon, 11 Aug 2014 14:25:43 +0200 Message-ID: <20140811122543.GB10500@phenom.ffwll.local> References: <1407759154-18489-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 515A06E3CE for ; Mon, 11 Aug 2014 05:25:32 -0700 (PDT) Received: by mail-wi0-f179.google.com with SMTP id f8so4091834wiw.12 for ; Mon, 11 Aug 2014 05:25:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1407759154-18489-1-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: ville.syrjala@linux.intel.com Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Aug 11, 2014 at 03:12:34PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > s/struct drm_crtc/struct drm_plane/ in drm_mode_config_reset() so that we > actually dereference the correct type of structure when calling the > plane->reset() hook. > = > Imre mentioned that his VLV was crashing there on resume. I deciced to ha= ve > a quick look at the code and immediately spotted the problem. > = > The problem was introduced when the plane->reset() hook was added here: > commit 2aaa4b6f6f6be8c23de8ae60ee30e5d6059c3c64 > Author: Daniel Vetter > Date: Tue Jul 29 15:32:37 2014 +0200 > = > drm: Add a plane->reset hook > = > Cc: Daniel Vetter > Signed-off-by: Ville Syrj=E4l=E4 Oops, thanks for tracking this down. Squashed into the relevant commit in topic/core-stuff. -Daniel > --- > drivers/gpu/drm/drm_crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c > index 23c9c9f..f09b752 100644 > --- a/drivers/gpu/drm/drm_crtc.c > +++ b/drivers/gpu/drm/drm_crtc.c > @@ -4664,7 +4664,7 @@ out: > void drm_mode_config_reset(struct drm_device *dev) > { > struct drm_crtc *crtc; > - struct drm_crtc *plane; > + struct drm_plane *plane; > struct drm_encoder *encoder; > struct drm_connector *connector; > = > -- = > 1.8.5.5 > = -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch