steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

ATI Driver doesn't seem to have access to RAM (shown in big picture mode)

Open boombatower opened this issue 13 years ago • 41 comments

Assume this is ATI driver issue so I will cross-post in their forum, but the big picture mode doesn't seem to think I have much ram when the card has 6GB (7970 Ghz 6GB).

image

Processor Information:
    Vendor:  GenuineIntel
    Speed: 3501 Mhz
    8 logical processors
    4 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    "openSUSE 12.2 (x86_64)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.7.6-22-desktop
    X Server vendor:  The X.Org Foundation
    X Server release:  11302000

Video Card:
    Driver:  ATI Technologies Inc. AMD Radeon HD 7900 Series 

    Driver Version:  4.2.12002 Compatibility Profile Context 9.012
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 59 Hz
    VendorID Not Detected
    DeviceID Not Detected
    Number of Monitors:  3
    Number of Video Cards Not Detected
    Primary Display Resolution:  2560 x 1600
    Desktop Resolution: 6400 x 1600
    Primary Display Size: 25.24" x 15.75"  (29.72" diag)
                                            64.1cm x 40.0cm  (75.5cm diag)
    Primary VRAM Not Detected

Sound card:
    Audio device: Realtek ALC892

Memory:
    RAM:  32190 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  202061 Mb
    Largest Free Hard Disk Block:  189114 Mb

boombatower avatar Feb 06 '13 10:02 boombatower

http://devgurus.amd.com/thread/160348

boombatower avatar Feb 06 '13 11:02 boombatower

Odd, I thought #1140 would have cured the memory detection problems.

johndrinkwater avatar Feb 06 '13 11:02 johndrinkwater

Based on referenced issue I also ran lspci

lspci -v -s 01:00.0
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Tahiti XT [Radeon HD 7970] (prog-if 00 [VGA controller])
        Subsystem: Advanced Micro Devices [AMD] nee ATI Device 3000
        Flags: bus master, fast devsel, latency 0, IRQ 57
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f7e00000 (64-bit, non-prefetchable) [size=256K]
        I/O ports at e000 [size=256]
        Expansion ROM at f7e40000 [disabled] [size=128K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [150] Advanced Error Reporting
        Capabilities: [270] #19
        Capabilities: [2b0] Address Translation Service (ATS)
        Capabilities: [2c0] #13
        Capabilities: [2d0] #1b
        Kernel driver in use: fglrx_pci

Not sure if that is part of the problem as my card has 6GB of RAM.

boombatower avatar Feb 12 '13 09:02 boombatower

Ha, that's the exact same amount it's telling me I have, and I have a Radeon HD 4850 with 1 GB.

You know, this might explain why we're getting such poor performance from Valve's games, if the system can only use a quarter gigabyte of our video memory...

EDIT: lshw and lspci both report only 256 megs of video memory for me as well, so whatever's going on is probably not limited to the Steam client.

@boombatower Where on AMD's site did you cross-post this? I'm registered there and I wanted to weigh in on this.

stevethepocket avatar Apr 09 '13 07:04 stevethepocket

Never really got much of a response, although it wasn't that good of a post.

http://devgurus.amd.com/thread/160348 (linked above)

Just updated to 13.4 driver and still seeing this same issue.

boombatower avatar Apr 29 '13 03:04 boombatower

+1, AMD Catalyst 13.4, AMD Radeon HD 7660G, Opensuse 12.3

https://gist.github.com/jgkamat/3c2dae8c2cc9ef9946c8

jgkamat avatar May 07 '13 03:05 jgkamat

It might help to know that pulling up System Information tells me "Primary VRAM Not Detected". I dunno, is that the graphics driver's problem, or something with Linux itself? As far as I know, the graphics driver only concerns the GPU, but it might be going through that to find out how much VRAM I have.

stevethepocket avatar May 07 '13 19:05 stevethepocket

Im thinking that the VRAM not being detected is a major performance concern...

Its probably the reason why I can run all settings high in TF2 windows, but I have to run all settings at min TF2 windows to get no input lag...

jgkamat avatar May 07 '13 22:05 jgkamat

I can confirm this is still happening as well with 13.4. I bumped amd thread.

boombatower avatar Jun 03 '13 09:06 boombatower

Im not trying to bump this, but you can set your video ram inside xorg.conf in the devices section like:

/etc/X11/xorg.conf

Section "Device"
    Driver "radeon" # or whichever other driver you use
    VideoRam 32768 # 32 MB
    #other stuff
EndSection

kylescottmcgill avatar Jun 14 '13 15:06 kylescottmcgill

@kylescottmcgill Out of curiosity, will that do anything to improve performance issues caused by games failing to detect VRAM, or will it just make lshw and lspci report the correct values?

stevethepocket avatar Jun 17 '13 18:06 stevethepocket

@stevethepocket I will admit, i haven't attempted to play anything on Linux with Steam but will give it a go later on tonight. But what i can confirm is that with more resources being reported, more resources are being used, and limitations such as the above are also lifted. Keep in mind YMMV when dealing with these sorts of things. I will report back later with some results.

kylescottmcgill avatar Jun 17 '13 20:06 kylescottmcgill

OK, I think I have a development. Apparently neither lspci nor lshw are supposed to report VRAM; for that, we have to pull up /var/log/Xorg.0.log and look for "Video RAM". Sure enough, we have these lines:

[    15.709] (--) fglrx(0): Video RAM: 1048576 kByte, Type: GDDR3
[    15.709] (II) fglrx(0): Video RAM override, using 1024000 kB instead of 1048576 kB

The second line is because I tried that trick @kylescottmcgill mentioned, using "1024000" because I wasn't sure if a gigabyte meant 1024 times 1024 or not in this case.

The problem, then, would seem to be with Steam, not the driver, if X can accurately gauge the VRAM size.

stevethepocket avatar Aug 30 '13 22:08 stevethepocket

I also experience this issue. Both with fglrx drivers on HD7850 and open source radeon driver for HD5650

mhess126 avatar Nov 06 '13 09:11 mhess126

Same with my ATI HD4770 with OSS driver, Steam can't detect VRAM, Big Picture reports 256MB although my card has 512MB.

bootkiller avatar Nov 07 '13 18:11 bootkiller

I'm having the vram issue now, is there a fix yet?

baos780 avatar Jul 27 '14 03:07 baos780

I know this much; it's not caused by the Radeon driver. Steam still reports this after removing it and upgrading to the latest open source driver.

stevethepocket avatar Jul 27 '14 03:07 stevethepocket

I'd just like to be able to get reasonable fps, say 60? I have dual radeon R9 270 in crossfire.

fglrx 14.6 Beta

Processor Information:
    Vendor:  AuthenticAMD
    CPU Family:  0x15
    CPU Model:  0x2
    CPU Stepping:  0x0
    CPU Type:  0x0
    Speed:  4000 Mhz
    8 logical processors
    8 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Debian GNU/Linux 7.6 (wheezy) (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.2.0-4-amd64
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11204000
    X Window Manager:  Mutter
    Steam Runtime Version:  steam-runtime-release_2014-04-15

Video Card:
    Driver:  ATI Technologies Inc. AMD Radeon R9 200 Series

    Driver Version:  4.4.12967 Compatibility Profile Context 14.20
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x1002
    DeviceID:  0x6811
    Number of Monitors:  1
    Number of Logical Video Cards:  2
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 0.63" x 0.35"  (0.71" diag)
                                            1.6cm x 0.9cm  (1.8cm diag)
    Primary VRAM Not Detected

Sound card:
    Audio device: AV200

Memory:
    RAM:  16002 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_CA.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  910547 Mb
    Largest Free Hard Disk Block:  506837 Mb

Installed software:

Recent Failure Reports:

baos780 avatar Jul 27 '14 03:07 baos780

removed debian, installed ubuntu. used the fglrx out of the box(not fglrx-updates). at some points I saw 100-120fps. Still have the video ram error with steam and I think it could really help performance.

so, same system, different os:

Processor Information:
    Vendor:  AuthenticAMD
    CPU Family:  0x15
    CPU Model:  0x2
    CPU Stepping:  0x0
    CPU Type:  0x0
    Speed:  4000 Mhz
    8 logical processors
    8 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Ubuntu 14.04.1 LTS (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.13.0-32-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11501000
    X Window Manager:  GNOME Shell
    Steam Runtime Version:  steam-runtime-release_2014-04-15

Video Card:
    Driver:  ATI Technologies Inc. AMD Radeon R9 200 Series

    Driver Version:  4.3.12798 Compatibility Profile Context 13.35.1005
    OpenGL Version: 4.3
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x1002
    DeviceID:  0x6811
    Number of Monitors:  1
    Number of Logical Video Cards:  2
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 0.63" x 0.35"  (0.71" diag)
                                            1.6cm x 0.9cm  (1.8cm diag)
    Primary VRAM Not Detected

Sound card:
    Audio device: AV200

Memory:
    RAM:  15949 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_CA.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  910419 Mb
    Largest Free Hard Disk Block:  501703 Mb

Installed software:

Recent Failure Reports:

baos780 avatar Jul 30 '14 03:07 baos780

From the Steam community:

There is AFAIK no unified way of determing VRAM, that's why the GLX_MESA_query_renderer OpenGL extension was introduced last year. The free drivers do already support it, but it seems Steam is not using it, yet. As VRAM is only being accessed through a MMU, one can only get the size of the memory window being used without directly interacting with the driver.

So apparently this would be an easy fix if Valve were still paying attention to bug reports. I assume the same fix would have to be done on their games as well.

stevethepocket avatar Aug 09 '14 18:08 stevethepocket