[Intel-gfx] Page-Fault in intel 2.7.1

Lampersperger Andreas lampersperger.andreas at heidenhain.de
Mon May 18 15:04:46 CEST 2009


Hi all,

I encountered a page_fault in i830_allocate_memory_bo(..) 
in i380_memory.c:829:

mem->bo = dri_bo_alloc (pI830->bufmgr, name, size, align);

where pI830->bufmgr has a null-value.

You can reproduce this error with just starting a Xorg
and then "xsetroot -d :0 -solid steelblue"
(Xorg version 1.6.1, Kernel-Version 2.6.29.2-rt11, Intel i915 Chipset)

I attached a patch, which works for me.

Thanks for considering my mail/patch
Andreas

Index: xf86-video-intel-2.7.1/src/i830_driver.c
===================================================================
--- xf86-video-intel-2.7.1.orig/src/i830_driver.c
+++ xf86-video-intel-2.7.1/src/i830_driver.c
@@ -2966,6 +2966,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr 
    pScrn = xf86Screens[pScreen->myNum];
    pI830 = I830PTR(pScrn);
 
+   if (!pI830->bufmgr)
+	   I830PreInit(pScrn, 0);
+
    if (!pI830->use_drm_mode)
        hwp = VGAHWPTR(pScrn);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pagefault_xsetroot
Type: application/octet-stream
Size: 462 bytes
Desc: pagefault_xsetroot
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090518/878e2629/attachment.obj>
-------------- next part --------------
-------------------------------------------------------------------------------------------------------
Registergericht: Traunstein / Registry Court: HRB 275 – Sitz / Head Office: Traunreut
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),
Michael Grimm, Matthias Fauser

E-Mail Haftungsausschluss / E-Mail Disclaimer: http://www.heidenhain.de/disclaimer



More information about the Intel-gfx mailing list