Re: Debug statements inside xfree video driver ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 








On Sun, Jun 29, 2008 at 9:54 PM, Marc Aurele La France <tsi@xxxxxxxxxxx> wrote:
On Sun, 29 Jun 2008, vishnuvaradan vishnuvaradan wrote:

Iam trying to integrate the xfree video driver for my PMC graphics card ..
while configuring and running the driver access some illegal memory area and
iam geting oops kernel access bad area..

I need to debug the video driver.. ( reg its IOBASE,mem base etc)
I added printf inside the driver but it is not coming in var/log

Please give idea how to add some debug statements(with variable values)
inside the  video  driver such that it will come in var/log ...???

The server closes stdout as part of its initialisation.  You could use stderr instead, but it is preferable to use the xf86Msg() family of functions. These are documented in section 18.1 of the DESIGN document.

    Still, I could not find where my video driver access bad area.
    As said earlier iam using the PMC graphics card along with a base board.
    while integrating the frame buffer driver for the graphics,  based on our architecture
    FOR I/o READ/WRITE ACCESS I should use as
    outb(val,port) as outb(val, 0xF2000000+port)
    inb(val,port)   as inb(val, 0xF2000000+ port)

    I have modified the direct I/O accessing in the xfree in my video driver ...
    Shall i need to modify the same in compiler.h inside programs/Xserver/hw/xfree86/common ??
   
    I suspect the problem is closely related to I/o issue only....
  
    I have attached the log file and the serial port messages for ur reference  .. 

   Please shed me some light to solve the issue..
   
  Thanks a lot
  

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 10e3,0148 card 10e3,0000 rev 01 class 06,80,00 hdr 00
(II) PCI: 00:02:0: chip 10b5,6520 card 0000,0000 rev cb class 06,04,00 hdr 01
(II) PCI: 01:03:0: chip 126f,0720 card 0101,0101 rev c1 class 03,00,00 hdr 00
(II) PCI: 01:04:0: chip 1131,1561 card 1131,1561 rev 11 class 0c,03,10 hdr 80
(II) PCI: 01:04:1: chip 1131,1561 card 1131,1561 rev 11 class 0c,03,10 hdr 80
(II) PCI: 01:04:2: chip 1131,1562 card 1131,1562 rev 11 class 0c,03,20 hdr 80
(II) PCI: End of PCI scan
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:2:0), (0,1,1), BCTRL: 0x0400 (VGA_EN is cleared)
(II) Bus 1 non-prefetchable memory range:
        [0] -1  0       0x9bf00000 - 0x9fffffff (0x4100000) MX[B]
(II) Bus 1 prefetchable memory range:
        [0] -1  0       0x9be00000 - 0x9befffff (0x100000) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
        [0] -1  0       0x00000000 - 0x00ffffff (0x1000000) IX[B]
(II) Bus 0 non-prefetchable memory range:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(--) PCI:*(1:3:0) Silicon Motion, Inc. SM720 Lynx3DM rev 193, Mem @ 0x9c000000/2
6
(WW) Open ACPI failed (/proc/acpi/event) (No such file or directory)
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Addressable bus resource ranges are
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
        [1] -1  0       0x00000000 - 0x00ffffff (0x1000000) IX[B]
(II) OS-reported resource ranges:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x00ffffff - 0x00ffffff (0x1) IX[B]
        [3] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
        [0] -1  0       0x9bffdf00 - 0x9bffdfff (0x100) MX[B]
        [1] -1  0       0x9bffe000 - 0x9bffefff (0x1000) MX[B]
        [2] -1  0       0x9bfff000 - 0x9bffffff (0x1000) MX[B]
        [3] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [4] -1  0       0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
(II) Active PCI resource ranges after removing overlaps:
        [0] -1  0       0x9bffdf00 - 0x9bffdfff (0x100) MX[B]
        [1] -1  0       0x9bffe000 - 0x9bffefff (0x1000) MX[B]
        [2] -1  0       0x9bfff000 - 0x9bffffff (0x1000) MX[B]
        [3] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [4] -1  0       0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
(II) OS-reported resource ranges after removing overlaps with PCI:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x00ffffff - 0x00ffffff (0x1) IX[B]
        [3] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x9bffdf00 - 0x9bffdfff (0x100) MX[B]
        [3] -1  0       0x9bffe000 - 0x9bffefff (0x1000) MX[B]
        [4] -1  0       0x9bfff000 - 0x9bffffff (0x1000) MX[B]
        [5] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [6] -1  0       0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
        [7] -1  0       0x00ffffff - 0x00ffffff (0x1) IX[B]
        [8] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) Silicon Motion: driver (version 1.3.1) for Silicon Motion Lynx chipsets:
        Lynx, LynxE, Lynx3D, LynxEM, LynxEM+, Lynx3DM, Cougar3DR, MSOC
(II) VGA: Generic VGA driver (version 4.0) for chipsets: generic
(II) Primary Device is: PCI 01:03:0
(II) Inside probe......
(--) Chipset Lynx3DM found
(II) resource ranges after xf86ClaimFixedResources() call:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x9bffdf00 - 0x9bffdfff (0x100) MX[B]
        [3] -1  0       0x9bffe000 - 0x9bffefff (0x1000) MX[B]
        [4] -1  0       0x9bfff000 - 0x9bffffff (0x1000) MX[B]
        [5] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [6] -1  0       0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
        [7] -1  0       0x00ffffff - 0x00ffffff (0x1) IX[B]
        [8] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) resource ranges after probing:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x9bffdf00 - 0x9bffdfff (0x100) MX[B]
        [3] -1  0       0x9bffe000 - 0x9bffefff (0x1000) MX[B]
        [4] -1  0       0x9bfff000 - 0x9bffffff (0x1000) MX[B]
        [5] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [6] -1  0       0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
        [7] 0   0       0x000a0000 - 0x000affff (0x10000) MS[B]
        [8] 0   0       0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [9] 0   0       0x000b8000 - 0x000bffff (0x8000) MS[B]
        [10] -1 0       0x00ffffff - 0x00ffffff (0x1) IX[B]
        [11] -1 0       0x00000000 - 0x00000000 (0x1) IX[B]
        [12] 0  0       0x000003b0 - 0x000003bb (0xc) IS[B]
        [13] 0  0       0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Inside preinit
(==) Silicon Motion(0): Depth 16, (==) framebuffer bpp 16
(==) Silicon Motion(0): RGB weight 565
(==) Silicon Motion(0): Default visual is TrueColor
(==) Silicon Motion(0): Using Hardware Cursor
(II) Silicon Motion(0): No legacy BIOS found -- trying PCI
(II) xf86ReadPciBios: modifying membase[-1] for device 1:3:0
(EE) Silicon Motion(0): Cannot read V_BIOS (5)
(--) Silicon Motion(0): Chipset: "Lynx3DM"
(II) Silicon Motion(0):

Inside Map mem
(II) Silicon Motion(0): Physical MMIO at 0x9C000000
(II) Silicon Motion(0): Logical MMIO at 0x30048000 - 0x30247fff
(II) Silicon Motion(0): DPR=0x30048000, VPR=0x30048800, IOBase=0x30108000
(II) Silicon Motion(0): DataPort=0x30148000 - 0x30247fff
(II) Silicon Motion(0): Physical frame buffer at 0x9C200000
(II) Silicon Motion(0): Logical frame buffer at (nil) - 0xffffffff
(II) Silicon Motion(0): Cursor Offset: FFFFFC00 Reserved: FFFFF800
(II) Silicon Motion(0):

after cursor offset
(II) Silicon Motion(0): TFT Panel Size = 800x600
(II) Silicon Motion(0):
 Modified  Before vgahwgetiobase....
(II) Silicon Motion(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is
 0x0000
(II) Silicon Motion(0):
 Modified After vgahwgetiobase....
        SMI_PreInit vgaCRIndex=3d4, vgaIOBase=3d0, MMIOBase=0x30048000
(II) Silicon Motion(0): I2C bus "I2C bus" initialized.
(--) Silicon Motion(0): No DDC signal
(II) Silicon Motion(0): I2C device "I2C bus:ddc2" registered at address 0xA0.
(II) Silicon Motion(0): Raw EDID data:
         00 ff ff ff ff ff ff 00 4e ae 74 05 4b 57 19 06
         12 09 01 01 0c 1e 17 4f e8 f8 49 a3 52 4b 98 24
         11 48 4c ff fe 80 71 90 61 51 61 4f 71 86 45 4f
         61 59 01 01 01 01 30 2a 80 60 41 84 2b 30 20 80
         28 00 2c e1 10 00 00 10 f6 20 00 50 41 00 Oops: kernel access of bad ar
ea, sig: 11 [#1]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: 00000000
REGS: df429e90 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 48004442  XER: 00000000
TASK = dfe3d910[768] 'X' THREAD: df428000
GPR00: 00000102 DF429F40 DFE3D910 00000005 1028FF60 40000000 00000000 40000000
GPR08: 1FBF3A3C C0004DFC 00009032 21104B74 1FE3DAE0 1035CA50 10350000 10350000
GPR16: 10336ED4 00000004 10350000 7F9C4DE4 10350000 00000000 7F9C4960 1036BD28
GPR24: 00000045 7F9C4960 7F9C47A8 30018730 00000000 7F9C4644 0FECA73C 1028FF60
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[DF429F40] [C0004754] ret_from_syscall+0x0/0x38 (unreliable)
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
25 30
         20 40 24 00 2c e1 10 00 00 10 c3 1e 00 20 41 00
         20 30 10 60 13 00 2c e1 10 00 00 1e ea 24 80 78
         41 84 25 30 28 80 24 00 2c e1 10 00 00 10 00 cb
(II) Silicon Motion(0): I2C device "I2C bus:ddc2" removed.
(II) Silicon Motion(0): Manufacturer: SUN  Model: 574  Serial#: 102324043
(II) Silicon Motion(0): Year: 1999  Week: 18
(II) Silicon Motion(0): EDID Version: 1.1
(II) Silicon Motion(0): Analog Display Input,  Input Voltage Level: 0.700/0.300
V
(II) Silicon Motion(0): Sync:  Separate  Composite
(II) Silicon Motion(0): Max H-Image Size [cm]: horiz.: 30  vert.: 23
(II) Silicon Motion(0): Gamma: 1.79
(II) Silicon Motion(0): DPMS capabilities: StandByOops: kernel access of bad are
a, sig: 11 [#2]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: 10022FEC
REGS: dfbe9e90 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 42000462  XER: 00000000
TASK = dfcfe840[764] 'rcS' THREAD: dfbe8000
GPR00: 00000182 DFBE9F40 DFCFE840 00000405 100BB5B0 42000000 1F423385 40000000
GPR08: 1FB972EC C0004DFC 00009032 21104B74 1FCFEA10 100BF044 0FFFE500 00000001
GPR16: 7F8FF80C 10000000 7F8FF948 10000000 00000001 7F8FF7E7 7F8FF9D0 00000002
GPR24: 100C06E8 10010000 00000002 00000001 00000000 00000000 100B0000 00000000
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[DFBE9F40] [C0004754] ret_from_syscall+0x0/0x38 (unreliable)
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Oops: kernel access of bad area, sig: 11 [#3]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: 3000B5FC
REGS: dfa57e90 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 44222462  XER: 00000000
TASK = dfcb9340[753] 'rcS' THREAD: dfa56000
GPR00: 00000182 DFA57F40 DFCB9340 00000405 30027BC0 0A000000 0036E387 40000000
GPR08: 1FA5809C C0004DFC 00009032 21104B74 1FCB9510 100BF044 0FFFE500 100B0000
GPR16: 7F8FF80C 00000000 00000000 30017000 100B0000 300171AC 1000ABC9 099FBECC
GPR24: 00000001 7FAF1798 00000001 30017D58 00000000 10012C5C 300272E4 7FAF1700
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[DFA57F40] [C0004754] ret_from_syscall+0x0/0x38 (unreliable)
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Oops: kernel access of bad area, sig: 11 [#4]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: 00000000
REGS: dec89db0 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 4490C1BC  XER: 00000000
TASK = dfe3d910[778] 'init' THREAD: dec88000
GPR00: 00000182 DEC89E60 DFE3D910 00000405 3001C048 42000000 1FA61285 40000000
GPR08: 1FA5A070 C0004DFC 00009032 21104B74 1FE3DAE0 1001F2F8 0FFFE500 00000001
GPR16: 7F8FF80C 10000000 7F8FF948 10000000 00000001 7F8FF7E7 7F8FF9D0 10018274
GPR24: 7F8FF9D4 10010000 7F8FF9D4 000002F0 7F8FF760 00800040 DFCB8D70 00000000
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[DEC89E60] [FFFFFFFF] 0xffffffff (unreliable)
[DEC89F20] [FFFFFFFF] 0xffffffff
[DEC89F40] [C0004814] ret_from_fork+0x50/0x58
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Oops: kernel access of bad area, sig: 11 [#5]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: 00000000
REGS: dfa55e90 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 44002462  XER: 00000000
TASK = dfcb8d70[752] 'init' THREAD: dfa54000
GPR00: 00000182 DFA55F40 DFCB8D70 00000405 3001C04C 0A000000 1FA61387 40000000
GPR08: 1FDB2070 C0004DFC 00009032 21104B74 1FCB8F40 1001F2F8 0FFFE500 00000001
GPR16: 7F8FF80C 10000000 7F8FF948 10000000 00000001 7F8FF7E7 7F8FF9D0 10018274
GPR24: 7F8FF9D4 10010000 0000030A 000002F0 7F8FF760 000002F0 0FFEA73C 7F8FF770
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[DFA55F40] [C0004754] ret_from_syscall+0x0/0x38 (unreliable)
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Oops: kernel access of bad area, sig: 11 [#6]
PREEMPT
NIP: 21104B74 LR: C0004DFC CTR: C003FE34
REGS: c09e3e90 TRAP: 0400   Not tainted  (2.6.16-CORNET)
MSR: 40009032 <EE,ME,IR,DR>  CR: 48002422  XER: 20000000
TASK = c09e1770[1] 'init' THREAD: c09e2000
GPR00: 00000182 C09E3F40 C09E1770 00000405 1001A4C8 0A000000 1FDDE387 40000000
GPR08: 00372068 C0004DFC 00009032 21104B74 009E1940 1001F2F8 0FFFE500 00000001
GPR16: FFFFFFFF 00000000 007FFF00 10010000 00000000 00000001 01000000 007FFEC0
GPR24: 10010000 7F8FFB84 10000000 7F8FFB80 00000000 00000023 1001A4C8 00000000
NIP [21104B74] 0x21104b74
LR [C0004DFC] ret_from_except+0x0/0x14
Call Trace:
[C09E3F40] [C0004754] ret_from_syscall+0x0/0x38 (unreliable)
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Kernel panic - not syncing: Attempted to kill init!

Attachment: XFree86.0.log
Description: Binary data


[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux