Hi Chris,

I'm afraid I don't understand the protocol/library/guarantees well
enough to interpret what you're saying with 100% confidence.

The behaviour that I'm seeing is not consistent with one app DOSing
itself. Chromium goes black, I restart Chromium (with the same tabs
open), it's still black. I kill and restart the X server, restart
Chromium again (with the same tabs open), and now it works again (for
~8-24 hours until the same thing happens again).

I think you're saying that individual clients are allowed to allocate
pixmaps out of the (very) limited mmaped space that is video RAM for
this card and shared between app apps. And it's possible for a client to
leak this space (it seems that maybe AWN or some of its applets does
this), which eventually results in a DoS for other X apps (gnome-
terminal, chromium) and makes the desktop unusable.

My view is that if clients can do this, it represents a violation of X's
responsibility to maintain stability of the desktop for all clients, in
a way that doesn't seem to be consistent with the behaviour of X's
behaviour with any other graphics driver.

If clients can quite easily exhaust that resource, I don't think they
should be allowed to allocate it at all. Why does the X server allow
clients to allocate direct mapping pixmaps? What if the X server managed
the graphics card's mapped memory, and decided for itself which pixmaps
are actually mapped into the limited space available?

One of the reasons that I prefer X over for example Windows is that it
has always tried to protect itself against badly behaved apps crashing
the desktop. If that is no longer the case, it annoys me quite a bit. Do
you think this is a deeper bug in X that needs to be fixed?

Cheers, Chris.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1053959

Title:
  Corrupt display after a while (after resume?) on intel graphics

Status in X.org xf86-video-intel:
  Fix Released
Status in “xserver-xorg-video-intel” package in Ubuntu:
  New

Bug description:
  I'm using a Thinkpad X201 with Intel graphics:

  chris@lap-x201:~$ lspci -vvv -s 00:02.0
  00:02.0 VGA compatible controller: Intel Corporation Core Processor 
Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 215a
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 42
        Region 0: Memory at f2000000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at 1800 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

  chris@lap-x201:~$ lspci -vvvn -s 00:02.0
  00:02.0 0300: 8086:0046 (rev 02) (prog-if 00 [VGA controller])
        Subsystem: 17aa:215a
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 42
        Region 0: Memory at f2000000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at 1800 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

  I usually notice this problem after several days of use, which would
  normally include several suspend and resume cycles and
  (dis)connections of an external monitor.

  chris@lap-x201:~$ lsb_release -rd
  Description:  Ubuntu 12.04.1 LTS
  Release:      12.04

  chris@lap-x201:~$ apt-cache policy xserver-xorg-video-intel
  xserver-xorg-video-intel:
    Installed: 2:2.17.0-1ubuntu4.1
    Candidate: 2:2.17.0-1ubuntu4.1
    Version table:
   *** 2:2.17.0-1ubuntu4.1 0
          500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main i386 
Packages
          100 /var/lib/dpkg/status
       2:2.17.0-1ubuntu4 0
          500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

  
  [ 75101.039] (II) intel(0): [DRI2] Setup complete
  [ 75101.039] (II) intel(0): [DRI2]   DRI driver: i965
  [ 75101.039] (II) intel(0): Allocated new frame buffer 1280x800 stride 5120, 
tiled
  [ 75101.050] (II) UXA(0): Driver registered support for the following 
operations:
  [ 75101.050] (II)         solid
  [ 75101.050] (II)         copy
  [ 75101.050] (II)         composite (RENDER acceleration)
  [ 75101.050] (II)         put_image
  [ 75101.050] (II)         get_image
  [ 75101.050] (==) intel(0): Backing store disabled
  [ 75101.050] (==) intel(0): Silken mouse enabled
  [ 75101.050] (II) intel(0): Initializing HW Cursor
  [ 75101.333] (II) intel(0): RandR 1.2 enabled, ignore the following RandR 
disabled message.
  [ 75101.336] (==) intel(0): DPMS enabled
  [ 75101.336] (==) intel(0): Intel XvMC decoder enabled
  [ 75101.336] (II) intel(0): Set up textured video
  [ 75101.341] (II) intel(0): [XvMC] xvmc_vld driver initialized.
  [ 75101.341] (II) intel(0): direct rendering: DRI2 Enabled
  [ 75101.341] (==) intel(0): hotplug detection: "enabled"

  [ 75101.363] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
  [ 75101.363] (II) AIGLX: enabled GLX_INTEL_swap_event
  [ 75101.363] (II) AIGLX: enabled GLX_SGI_swap_control and 
GLX_MESA_swap_control
  [ 75101.363] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
  [ 75101.363] (II) AIGLX: Loaded and initialized i965
  [ 75101.363] (II) GLX: Initialized DRI2 GL provider for screen 0
  [ 75101.364] (II) intel(0): Setting screen physical size to 338 x 211

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: xserver-xorg-video-intel 2:2.17.0-1ubuntu4.1
  Uname: Linux 3.6.0-030600rc6-generic i686
  .tmp.unity.support.test.0:
   
  ApportVersion: 2.0.1-0ubuntu12
  Architecture: i386
  CompizPlugins: 
[core,composite,opengl,compiztoolbox,decor,grid,clone,regex,resize,animation,gnomecompat,snap,workarounds,vpswitch,fadedesktop,imgpng,mousepoll,move,place,ezoom,session,staticswitcher,fade,cube,scale,gears]
  CompositorRunning: compiz
  Date: Fri Sep 21 11:44:24 2012
  DistUpgraded: 2012-08-25 13:19:45,909 DEBUG enabling apt cron job
  DistroCodename: precise
  DistroVariant: ubuntu
  EcryptfsInUse: Yes
  ExtraDebuggingInterest: Yes, even including gdb or git bisection work if 
needed
  GraphicsCard:
   Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] 
(rev 02) (prog-if 00 [VGA controller])
     Subsystem: Lenovo Device [17aa:215a]
  MachineType: LENOVO 3323DAG
  ProcEnviron:
   LANGUAGE=en_GB:en
   TERM=xterm
   PATH=(custom, user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.6.0-030600rc6-generic 
root=UUID=3d626876-a6a6-4378-b989-3acdf40c39c7 ro quiet splash resume=/dev/sda5 
vt.handoff=7
  SourcePackage: xserver-xorg-video-intel
  UdevDb: Error: [Errno 2] No such file or directory
  UpgradeStatus: Upgraded to precise on 2012-08-25 (26 days ago)
  dmi.bios.date: 12/17/2010
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 6QET62WW (1.32 )
  dmi.board.name: 3323DAG
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: 
dmi:bvnLENOVO:bvr6QET62WW(1.32):bd12/17/2010:svnLENOVO:pn3323DAG:pvrThinkPadX201:rvnLENOVO:rn3323DAG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 3323DAG
  dmi.product.version: ThinkPad X201
  dmi.sys.vendor: LENOVO
  version.compiz: compiz 1:0.9.7.8-0ubuntu1.4
  version.libdrm2: libdrm2 2.4.32-1ubuntu1
  version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.3+8.0.2-0ubuntu3.2
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.3+8.0.2-0ubuntu3.2
  version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10.7
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1.2
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 
1:6.14.99~git20111219.aacbd629-0ubuntu2
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4.1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:0.0.16+git20111201+b5534a1-1build2

To manage notifications about this bug go to:
https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1053959/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to