← Back to team overview

ubuntu-x-swat team mailing list archive

Re: [Bug 682712] Re: x server crashes with: [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap a purgeable buffer

 

On Thu, Dec 02, 2010 at 11:10:06PM -0000, gene wrote:
> Bryce, do you know if gnome-session keeps any logs? 

Aside from ~/.xsession-errors and /var/log/gdm/ I don't know of anything
in gnome worth looking at for this bug.

> As far as what gdm is telling I see this:
> Fatal server error:
> Server is already active for display 0
>         If this server is no longer running, remove /tmp/.X0-lock
>         and start again.
> 
> which apparently is not related to the issue in question or dis it?

No, just means you tried starting X but it looked like there was another
X session already running.  Probably best to just reboot at that point.

> The other more recent gdm log has these:
> (WW) intel(0): i830_uxa_prepare_access: bo map failed
> ../../intel/intel_bufmgr_gem.c:941: Error preparing buffer map 598 (pixmap): Invalid argument

Interesting, yes that does sort of sound relevant.

I notice that the section of code that produces this warning has changed
significantly between maverick 2.9.0 and 2.9.1:

// maverick 2.9.0
   /* Kernel manages fences at GTT map/fault time */
        if (i830->kernel_exec_fencing) {
            if (bo->size < i830->max_gtt_map_size) {
                if (drm_intel_gem_bo_map_gtt(bo)) {
                    xf86DrvMsg(scrn->scrnIndex, X_WARNING,
                               "%s: bo map failed\n",
                               __FUNCTION__);
                    return FALSE;
                }
            } else {
              if (dri_bo_map(bo, access == UXA_ACCESS_RW) != 0) {
                    xf86DrvMsg(scrn->scrnIndex, X_WARNING,
                               "%s: bo map failed\n",
                               __FUNCTION__);
                    return FALSE;
                }
            }
            pixmap->devPrivate.ptr = bo->virtual;
        } else { /* or not... */
            if (drm_intel_bo_pin(bo, 4096) != 0)
                return FALSE;
            drm_intel_gem_bo_start_gtt_access(bo, access == UXA_ACCESS_RW);
            pixmap->devPrivate.ptr = i830->FbBase + bo->offset;
        }


// natty:
       if (!list_is_empty(&priv->batch) &&
            (access == UXA_ACCESS_RW || priv->batch_write))
                intel_batch_submit(scrn, FALSE);

        if (priv->tiling || bo->size <= intel->max_gtt_map_size)
                ret = drm_intel_gem_bo_map_gtt(bo);
        else
                ret = dri_bo_map(bo, access == UXA_ACCESS_RW);
        if (ret) {
                xf86DrvMsg(scrn->scrnIndex, X_WARNING,
                           "%s: bo map failed: %s\n",
                           __FUNCTION__,
                           strerror(-ret));
                return FALSE;
        }

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is the registrant for xf86-video-intel.
https://bugs.launchpad.net/bugs/682712

Title:
  x server crashes with: [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap a purgeable buffer



References