From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Michel_D=E4nzer?= Subject: Re: Radeon: [TTM] Failed to find memory space for buffer [...] eviction Date: Mon, 11 Aug 2014 16:40:13 +0900 Message-ID: <53E8735D.4090402@daenzer.net> References: <877g2jm9jn.fsf@schwinge.name> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0352898155==" Return-path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by gabe.freedesktop.org (Postfix) with ESMTP id A57D66E366 for ; Mon, 11 Aug 2014 00:40:24 -0700 (PDT) In-Reply-To: <877g2jm9jn.fsf@schwinge.name> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Thomas Schwinge , dri-devel@lists.freedesktop.org Cc: Thomas Hellstrom , wolfgang.rupprecht@gmail.com List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0352898155== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cwlHtQqwg4tNkSkvSqPlaDGAVQBfGtfux" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cwlHtQqwg4tNkSkvSqPlaDGAVQBfGtfux Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 08.08.2014 21:48, Thomas Schwinge wrote: >=20 > I recetly repurposed a BlueMedia OPTIMA II system, Biostar MCP6P M2+ > mainboard, AMD Athlon II X2 215 with 2700 MHz, 8 GiB RAM, Xen setup, fo= r > use as a desktop machine (the Xen dom0, specifically). I put in a > Sapphire Radeon HD 4350 card where I'm connecting the DVI output to a > portrait-oriented (1200x1920) and the VGA output to a landscape-oriente= d > (1440x900) monitor. I'm running Debian GNU/Linux testing with the > Cinnamon desktop environment (Gnome Shell derivate of Gnome 2). This i= s > being used as a development and all-purpose system, that is, several > virtual desktops, with mostly full-screen terminal/Emacs/web browser > processes running. This is working nicely. >=20 > However, what happens after (irregularely) several hours of usage is th= at > any interactions involving the desktop get executed very sluggishly > (initially about 1 s of delay, later getting worse), which makes this > unworkable. Once this happens, I see the following in dmesg, repeating= > every once in a while: >=20 > [96450.514927] [TTM] Failed to find memory space for buffer 0xffff8= 8015daef048 eviction > [96450.514934] [TTM] No space for ffff88015daef048 (65536 pages, 26= 2144K, 256M) > [96450.514936] [TTM] placement[0]=3D0x00410002 (1) > [96450.514938] [TTM] has_type: 1 > [96450.514939] [TTM] use_type: 1 > [96450.514940] [TTM] flags: 0x0000000A > [96450.514941] [TTM] gpu_offset: 0x20000000 > [96450.514942] [TTM] size: 262144 > [96450.514943] [TTM] available_caching: 0x00070000 > [96450.514944] [TTM] default_caching: 0x00010000 > [96450.514947] [TTM] 0x00000000-0x00000001: 1: used > [96450.514949] [TTM] 0x00000001-0x00000011: 16: used > [96450.514951] [TTM] 0x00000011-0x00000111: 256: used > [96450.514952] [TTM] 0x00000111-0x00000121: 16: used > [96450.514953] [TTM] 0x00000121-0x00000122: 1: used > [96450.514955] [TTM] 0x00000122-0x00000222: 256: used > [96450.514956] [TTM] 0x00000222-0x0000030f: 237: free > [96450.514957] [TTM] 0x0000030f-0x00000313: 4: used > [96450.514958] [TTM] 0x00000313-0x000061c0: 24237: free > [96450.514960] [TTM] 0x000061c0-0x000161c0: 65536: used > [96450.514961] [TTM] 0x000161c0-0x000242fe: 57662: free > [96450.514962] [TTM] 0x000242fe-0x000342fe: 65536: used > [96450.514963] [TTM] 0x000342fe-0x0003d80c: 38158: free > [96450.514965] [TTM] 0x0003d80c-0x0003d90c: 256: used > [96450.514966] [TTM] 0x0003d90c-0x0003ff94: 9864: free > [96450.514967] [TTM] 0x0003ff94-0x0003ffa4: 16: used > [96450.514969] [TTM] 0x0003ffa4-0x00040000: 92: free > [96450.514970] [TTM] total: 262144, used 131894 free 130250 Looks like it's failing to evict a buffer object (BO) of size 256MB, presumably from VRAM. AFAICT there's only 256MB of GTT available, is this an AGP card? If so, does radeon.agpmode=3D-1 on the kernel command line help? If not, increasing the GTT size further using radeon.gartsize=3D1024 or even larger powers of two might help. Though I wonder if one of the apps you're running really needs a BO of size 256MB, or maybe just thinks it's a good idea to use a texture of the maximum size supported by OpenGL... --=20 Earthling Michel D=E4nzer | http://www.amd.co= m Libre software enthusiast | Mesa and X developer --cwlHtQqwg4tNkSkvSqPlaDGAVQBfGtfux Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iD8DBQFT6HNfWoGvjmrbsgARAkLzAJ0d2huWtkYY4A/xNVfkGVS0W9OH/QCeIQQw /f65i+fYJZcWi1SUwF8c4vY= =8FbF -----END PGP SIGNATURE----- --cwlHtQqwg4tNkSkvSqPlaDGAVQBfGtfux-- --===============0352898155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0352898155==--