From: Meelis Roos <mroos@linux.ee>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: i865, drm_modeset_lock_all: BUG: unable to handle kernel NULL pointer dereference at 00000104
Date: Tue, 23 Aug 2016 14:35:03 +0300 (EEST) [thread overview]
Message-ID: <alpine.LRH.2.20.1608231433350.17020@math.ut.ee> (raw)
In-Reply-To: <20160823091151.GE20834@nuc-i3427.alporthouse.com>
> Looks like an incorrect call to drm_encoder_cleanup() from the error
> path. If we hit the error path we have never called drm_encoder_init.
> Please try:
>
> diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c
> index 47bdf9dad0d3..b9e5a63a7c9e 100644
> --- a/drivers/gpu/drm/i915/intel_dvo.c
> +++ b/drivers/gpu/drm/i915/intel_dvo.c
> @@ -554,7 +554,6 @@ void intel_dvo_init(struct drm_device *dev)
> return;
> }
>
> - drm_encoder_cleanup(&intel_encoder->base);
> kfree(intel_dvo);
> kfree(intel_connector);
> }
It works - the BUG is gone.
Now I get just
[drm:__intel_set_cpu_fifo_underrun_reporting [i915]] *ERROR* pipe A underrun
[ 10.499523] agpgart-intel 0000:00:00.0: Intel 865 Chipset
[ 10.499623] agpgart-intel 0000:00:00.0: detected gtt size: 131072K total, 131072K mappable
[ 10.499928] agpgart-intel 0000:00:00.0: detected 16384K stolen memory
[ 10.500939] [drm] Memory usable by graphics device = 128M
[ 10.501029] [drm] Replacing VGA console driver
[ 10.502804] Console: switching to colour dummy device 80x25
[ 10.504746] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 10.504760] [drm] Driver supports precise vblank timestamp query.
[ 11.210224] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 11.237197] [drm] RC6 disabled, disabling runtime PM support
[ 11.237407] [drm] initialized overlay support
[ 11.362560] [drm:__intel_set_cpu_fifo_underrun_reporting [i915]] *ERROR* pipe A underrun
[ 11.418776] i915 0000:00:02.0: No connectors reported connected with modes
[ 11.418792] [drm] Cannot find any crtc or sizes - going 1024x768
[ 11.421148] fbcon: inteldrmfb (fb0) is primary device
[ 11.448292] Console: switching to colour frame buffer device 128x48
[ 11.458643] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
--
Meelis Roos (mroos@linux.ee)
next prev parent reply other threads:[~2016-08-23 10:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-23 9:58 Meelis Roos
2016-08-23 9:11 ` Chris Wilson
2016-08-23 11:35 ` Meelis Roos [this message]
2016-08-23 10:10 ` Chris Wilson
2016-08-23 11:46 ` Meelis Roos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.20.1608231433350.17020@math.ut.ee \
--to=mroos@linux.ee \
--cc=chris@chris-wilson.co.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®