libXxf86dga: Changes to 'master'

Zhenyu Wang zhen at kemper.freedesktop.org
Wed Apr 18 04:45:50 EEST 2007


 src/XF86DGA.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b3d86af10895f30ffb2999c28c5864b2be8681f6
Author: Wang Zhenyu <zhenyu.z.wang at intel.com>
Date:   Wed Apr 18 09:35:56 2007 +0800

    Fix sign extension bug on x86_64 system.
    
    In XF86DGAGetVideoLL(), we pass offset param as 'int' type, but
    later we cast it to 'unsigned long' in calling MapPhysAddress().
    This causes page table error on x86_64 system like below:
    
    dga: Corrupted page table at address 2b9712b1b000
    PGD 702a4067 PUD 6f830067 PMD 6f864067 PTE ffffffff80040027
    Bad pagetable: 000f [1] SMP
    CPU 0
    Modules linked in: i915 drm dm_mirror dm_mod video button battery asus_acpi ac parport_pc parport nvram uhci_hcd ehci_hcd snd_hda_intel snd_hda_codec snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss pcspkr snd_pcm i2c_i801 i2c_core e1000 snd_timer snd soundcore snd_page_alloc
    Pid: 2509, comm: dga Not tainted 2.6.21-rc6 #2
    RIP: 0033:[<0000003d119754a0>]  [<0000003d119754a0>]
    RSP: 002b:00007fff98f0d4c8  EFLAGS: 00010202
    RAX: 0000000000008000 RBX: 0000000000000001 RCX: 00002b9712b1b000
    RDX: 0000000000200000 RSI: 0000000000000071 RDI: 00002b9712b1b000
    RBP: 0000000000000000 R08: 7171717171717171 R09: 0000000000000000
    R10: 0000000000000000 R11: 0000003d119753e0 R12: 0000000000000000
    R13: 00007fff98f0d730 R14: 0000000000503010 R15: 0000000000000000
    FS:  00002b9712b19f60(0000) GS:ffffffff8060d000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 00002b9712b1b000 CR3: 000000006ffdb000 CR4: 00000000000006e0
    Process dga (pid: 2509, threadinfo ffff8100718de000, task ffff81006ffd67a0)
    
    RIP  [<0000003d119754a0>]
     RSP <00007fff98f0d4c8>
    
    This patch requires latest xf86dgaproto to build.




More information about the xorg-commit mailing list