Re: i915kms.ko not loading

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 5 Sep 2013 11:57:59 -0400
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
Received on Thu Sep 05 2013 - 14:20:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC