<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Several games are unable to detect VRAM size"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=72575">72575</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Several games are unable to detect VRAM size
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>b.bellec@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/r600
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have a AMD CYPRESS (Radeon HD5870) with 1 Go VRAM but several games (Serious
Sam 3, Enemy Territory: QUAKE Wars, Unigine Benchmarks/Oil Rush) are unable do
detect the correct VRAM size.

System:
Fedora 19 x86-64
kernel 3.11.10-200.fc19.x86_64
libdrm 2.4.50-1.fc19
mesa 10.1.0-devel (git-1e71493)

I had this issue already since a long time (detected in ETQW with a
RV770/HD4850) but I was thinking it was a ETQW game bug. Now that there is more
Linux video game, I see that it's not specific to one game.


Here are differents outputs:

# dmesg |grep drm
[    1.106556] [drm] Initialized drm 1.1.0 20060810
[    1.129686] [drm] radeon kernel modesetting enabled.
[    1.129855] [drm] initializing kernel modesetting (CYPRESS 0x1002:0x6898
0x1043:0x0346).
[    1.129875] [drm] register mmio base: 0xF7E20000
[    1.129876] [drm] register mmio size: 131072
[    1.129960] [drm] Detected VRAM RAM=1024M, BAR=256M
[    1.129961] [drm] RAM width 256bits DDR
[    1.130034] [drm] radeon: 1024M of VRAM memory ready
[    1.130035] [drm] radeon: 512M of GTT memory ready.
[    1.130255] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    1.130537] [drm] enabling PCIE gen 2 link speeds, disable with
radeon.pcie_gen2=0
[    1.132744] [drm] Loading CYPRESS Microcode
[    1.133367] [drm] PCIE GART of 512M enabled (table at 0x000000000025D000).
[    1.133838] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    1.133839] [drm] Driver supports precise vblank timestamp query.
[    1.133875] [drm] radeon: irq initialized.
[    1.150324] [drm] ring test on 0 succeeded in 1 usecs
[    1.150381] [drm] ring test on 3 succeeded in 1 usecs
[    1.357267] [drm] ring test on 5 succeeded in 1 usecs
[    1.357269] [drm] UVD initialized successfully.
[    1.357414] [drm] ib test on ring 0 succeeded in 0 usecs
[    1.357431] [drm] ib test on ring 3 succeeded in 0 usecs
[    1.528619] [drm] ib test on ring 5 succeeded
[    1.528996] [drm] Radeon Display Connectors
[    1.528997] [drm] Connector 0:
[    1.528998] [drm]   DP-1
[    1.528999] [drm]   HPD5
[    1.529000] [drm]   DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c
0x645c
[    1.529000] [drm]   Encoders:
[    1.529001] [drm]     DFP1: INTERNAL_UNIPHY2
[    1.529002] [drm] Connector 1:
[    1.529003] [drm]   HDMI-A-1
[    1.529003] [drm]   HPD4
[    1.529004] [drm]   DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c
0x646c
[    1.529005] [drm]   Encoders:
[    1.529005] [drm]     DFP2: INTERNAL_UNIPHY2
[    1.529006] [drm] Connector 2:
[    1.529006] [drm]   DVI-I-1
[    1.529007] [drm]   HPD6
[    1.529008] [drm]   DDC: 0x6470 0x6470 0x6474 0x6474 0x6478 0x6478 0x647c
0x647c
[    1.529008] [drm]   Encoders:
[    1.529009] [drm]     DFP3: INTERNAL_UNIPHY
[    1.529010] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    1.529042] [drm] Internal thermal controller with fan control
[    1.537324] [drm] radeon: dpm initialized
[    1.577058] [drm] fb mappable at 0xE035F000
[    1.577060] [drm] vram apper at 0xE0000000
[    1.577060] [drm] size 7299072
[    1.577061] [drm] fb depth is 24
[    1.577062] [drm]    pitch is 6912
[    1.577121] fbcon: radeondrmfb (fb0) is primary device
[    1.587777] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[    1.587781] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:00.0 on
minor 0


SS3
========================================================
INF:  * Desktop settings...
INF:  Color depth: 32-bit
INF:  Desktop resolution: 1680 x 1050
INF:  Fullscreen on primary display
WRN:  [OpenGL] Unable to determine VRAM size... assuming 512 MB.
WRN:  [OpenGL] "GL_ARB_get_program_binary" extension is present but not used
because no binary formats are exposed.
INF:  
INF:  Gfx API: OpenGL
INF:  Resolution: 1680 x 1050
INF:  Vendor: ATI (0x1002)
INF:  Driver: X.Org (0x6898)
INF:  Renderer: Gallium 0.4 on AMD CYPRESS
INF:  Version: 3.0 Mesa 10.1.0-devel (git-1e71493)
INF:  Video memory size: 512 MB
INF:  Available for textures: 512 MB
INF:  Active GPU(s): 1
WRN:  Display driver is too old, please update it ASAP!



ETQW
========================================================
[...]
detecting video ram (set sys_videoRam on command line to override) ..
trying /proc/dri/0/umm
guess failed, return default low-end VRAM setting ( 128MB VRAM )
128 MB Video Memory
[...]


Unigine Valley
========================================================
---- System ----
System: Linux 3.11.10-200.fc19.x86_64 x86_64
CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz 3299MHz MMX SSE SSE2 SSE3 SSSE3
SSE41 SSE42 AVX HTT x4
GPU: Unknown GPU x1
System memory: 7954 MB
Video memory:  256 MB
Sync threads:  3
Async threads: 4</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>