Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Mar 2008 11:58:30 +0100
From:      =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org, =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>
Subject:   Re: Kernel crash on Asus A7N8X-X
Message-ID:  <1204714710.47ce7cd612d4c@imp.free.fr>
In-Reply-To: <47CE61CC.3030809@FreeBSD.org>
References:  <1204671599.47cdd46f6b1e2@imp.free.fr> <47CE61CC.3030809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Selon Kris Kennaway <kris@FreeBSD.org>:

> Frédéric PRACA wrote:
> > Hello dear hackers,
> > I own a Asus A7N8X-X motherboard (NForce2 chipset) with a Radeon 9600 video
> > card. After upgrading from 6.3 to 7.0, I launched xorg which crashed the
> kernel.
> > After looking in the kernel core dump, I found that the
> agp_nvidia_flush_tlb
> > function of /usr/src/sys/pci/agp_nvidia.c crashed on the line 377. The loop
> > fails from the beginning (when i==0). I commented out the two last loops
> and it
> > seems to work now but as I didn't understand what is this code for, I'd
> like to
> > have some explanation about it and want to know if someone got the same
> problem.
>
> Usually it's a good idea to show the data that led to your conclusions
> (backtraces, etc), not just your conclusions.  Sometimes there is more
> going on than is immediately apparent.
For sure, sorry.
Here's what I got from kgdb :
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
There is no member named pathname.
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc05b49ac in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc05b4b74 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc06f9858 in vm_fault (map=0xc1054000, vaddr=3570491392,
fault_type=Variable "fault_type" is not available.
)
    at /usr/src/sys/vm/vm_fault.c:275
#4  0xc0765be5 in trap_pfault (frame=0xd61f1a48, usermode=0, eva=3570491392)
    at /usr/src/sys/i386/i386/trap.c:801
#5  0xc0766502 in trap (frame=0xd61f1a48) at /usr/src/sys/i386/i386/trap.c:490
#6  0xc07545bb in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc0776ed7 in agp_nvidia_flush_tlb (dev=0xc2a3b100, offset=-1029891720)
    at /usr/src/sys/pci/agp_nvidia.c:377
#8  0xc06bb9dd in agp_generic_bind_memory (dev=0xc2a3b100, mem=0xc2fe7cc0,
    offset=0) at agp_if.h:76
#9  0xc06bb001 in agp_bind_memory (dev=0xc2a3b100, handle=0xc2fe7cc0,
    offset=0) at agp_if.h:128
#10 0xc04bd1bf in drm_agp_bind_memory (handle=0xc2fe7cc0, start=0)
    at /usr/src/sys/dev/drm/drm_agpsupport.c:456
#11 0xc04bd4dd in drm_agp_bind (dev=0xc2aad000, request=0xd61f1b68)
    at /usr/src/sys/dev/drm/drm_agpsupport.c:331
#12 0xc04bd591 in drm_agp_bind_ioctl (kdev=0xc2ac3400, cmd=2148033590,
    data=0xc2c309d0 "À|þÂ", flags=67, p=0xc2ed7a50, filp=0x17497)
    at /usr/src/sys/dev/drm/drm_agpsupport.c:348
#13 0xc04c25e8 in drm_ioctl (kdev=0xc2ac3400, cmd=2148033590,
    data=0xc2c309d0 "À|þÂ", flags=67, p=0xc2ed7a50)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/sys/dev/drm/drm_drv.c:911
#14 0xc0585ad6 in giant_ioctl (dev=0xc2ac3400, cmd=2148033590,
    data=0xc2c309d0 "À|þÂ", fflag=67, td=0xc2ed7a50)
    at /usr/src/sys/kern/kern_conf.c:349
#15 0xc0552517 in devfs_ioctl_f (fp=0xc2c3fd38, com=2148033590,
    data=0xc2c309d0, cred=0xc4e62400, td=0xc2ed7a50)
    at /usr/src/sys/fs/devfs/devfs_vnops.c:494
#16 0xc05e9b43 in kern_ioctl (td=0xc2ed7a50, fd=8, com=2148033590,
    data=0xc2c309d0 "À|þÂ") at file.h:266
#17 0xc05e9ca4 in ioctl (td=0xc2ed7a50, uap=0xd61f1cfc)
    at /usr/src/sys/kern/sys_generic.c:570
#18 0xc0765f0a in syscall (frame=0xd61f1d38)
    at /usr/src/sys/i386/i386/trap.c:1035
#19 0xc0754620 in Xint0x80_syscall ()
    at /usr/src/sys/i386/i386/exception.s:196
#20 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 7
#7  0xc0776ed7 in agp_nvidia_flush_tlb (dev=0xc2a3b100, offset=-1029891720)
    at /usr/src/sys/pci/agp_nvidia.c:377
warning: Source file is more recent than executable.

377                     temp = ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)];
(kgdb) list
372
373             ag_virtual = (volatile u_int32_t *)sc->gatt->ag_virtual;
374
375             /* Flush TLB entries. */
376             /*for(i = 0; i < 32 + 1; i++)
377                     temp = ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)];
378             for(i = 0; i < 32 + 1; i++)
379                     temp = ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)];
380     */
381             return (0);
(kgdb) print i
$1 = 0
(kgdb) print *ag_virtual
$2 = 299405313
(kgdb) print ag_virtual
$3 = (volatile u_int32_t *) 0xd4d05000
(kgdb) print *sc
$4 = {agp = {as_aperture = 0xc2a34dc0, as_aperture_rid = 16,
    as_maxmem = 461373440, as_allocated = 8388608,
    as_state = AGP_ACQUIRE_KERNEL, as_memory = {tqh_first = 0xc2fe7cc0,
      tqh_last = 0xc2fe7cc0}, as_nextid = 2, as_isopen = 0,
    as_devnode = 0xc2a3c300, as_lock = {lock_object = {
        lo_name = 0xc07d15d1 "agp lock", lo_type = 0xc07d15d1 "agp lock",
        lo_flags = 16973824, lo_witness_data = {lod_list = {stqe_next = 0x0},
          lod_witness = 0x0}}, mtx_lock = 3270343248, mtx_recurse = 0}},
  initial_aperture = 67108864, gatt = 0xc2a39990, dev = 0xc2a3b100,
  mc1_dev = 0xc2a2ae00, mc2_dev = 0xc2a2ae80, bdev = 0xc2a3b380,
  wbc_mask = 2147483648, num_dirs = 1, num_active_entries = 16384,
  pg_offset = 0}
(kgdb) print sc->gatt
$5 = (struct agp_gatt *) 0xc2a39990
(kgdb) print ESC[1@*
$6 = {ag_entries = 16384, ag_virtual = 0xd4d05000, ag_physical = 17563648}
(kgdb) quit

Code seems to be commented out because I updated my source to try.
Hope it helps a little.

Fred



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