Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 11:57:59 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Alexander <vsityz@gmail.com>
Cc:        =?utf-8?q?Jean-S=C3=A9bastien?= =?utf-8?q?_P=C3=A9dron?= <jean-sebastien.pedron@dumbbell.fr>, freebsd-current@freebsd.org
Subject:   Re: i915kms.ko not loading
Message-ID:  <201309051157.59462.jhb@freebsd.org>
In-Reply-To: <5228A745.5030905@gmail.com>
References:  <521E52A6.6040205@gmail.com> <201309051030.53839.jhb@freebsd.org> <5228A745.5030905@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, September 05, 2013 11:46:13 am Alexander wrote:
> 05.09.2013 17:30, John Baldwin wrote:
> > On Thursday, September 05, 2013 10:08:21 am Alexander wrote:
> > [ ..cut ..]
> >>> Hmm, 'p *dev'?
> >>>
> >>>
> >> (kgdb) p *dev
> >> No symbol "dev" in current context.
> > Please go back to frame 6 first and then run 'p *dev'.
> >
> (kgdb) frame 6
> #6  0xffffffff810402a6 in intel_parse_bios (dev=0xfffff80005dca800) at
> /usr/src/sys/modules/drm2/i915kms/../../../dev/drm2/i915/intel_bios.c:287
> 287        switch (INTEL_INFO(dev)->gen) {
> (kgdb) p *dev
> = 0x0, sg = 0x0, ctx_bitmap = 0x0, dev_private = 0xfffff80005dca840,

dev_private isn't NULL at least.  INTEL_INFO is this:

i915_drv.h:#define INTEL_INFO(dev)      (((struct drm_i915_private *) (dev)-
>dev_private)->info)

Can you stay at frame 6 and do:

'set $dp = (struct drm_i915_private *)dev->dev_private'
'p *$dp'
'p *$dp->info'

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309051157.59462.jhb>