LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2014, 01:37 PM   #1
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Rep: Reputation: Disabled
A10-7850k GPU - Video RAM not available


Hi,
As the subject says I'm havin problems to assign RAM to my iGPU/ to utilize this RAM.

First of my hardware:
ASRock FM2A88M Extreme4+
A10-7850k
G.Skill RipjawsX DDR3-2400MHz 8GB (2x 4096)

and Software:
Fedora 20 x86_64
3.14.4-200
Mesa 10.1.3

The game Guacamelee runs with ~5FPS (if nothing else is running) and shows me:
Memory Status:
System Ram : 4269801472
Available System Ram : 4269801472
Used System Ram : 4260757504
Reserved System Ram : 34209792
Video Ram : 0
Available Video Ram : 0
Used Video Ram : 0
Audio Ram : 25165824
Available Audio Ram : 21417032
Used Audio Ram : 3748792
Max Used Audio Ram : 3748792
Total Alloc Count : 26328

It's the same with other games and because of this output I thought it would be a problem with the Video RAM.

When I run it at 2400MHz lspci -v -s 00:01.0 shows me:
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation Device 130f
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=8M]
I/O ports at f000 [size=256]
Memory at ff700000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at ff740000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel modules: radeon

Since 2133 are recommend I thought this could be the problem (although others got it to work with 2400MHz) and changed it in the BIOS, but it remains the same.
Even though I have 2048MB assigned to the GPU.

Since I "lost" my RAM (i.e top shows less total memory) when I assigned more to the GPU I'm not sure if that's the problem. So could it be something else why I can barely run any games or do you think I'm at least on the right track?
Hope you can help me and sorry for my english. It's not my mother tongue.
 
Old 05-31-2014, 01:25 PM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Do you have the radeon microcode installed?
 
Old 05-31-2014, 03:51 PM   #3
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for your answer.

Yes, I have some Kaveri files in /lib/firmware/radeon. But I'm not so sure anymore if it's really just the RAM. I tried Xonotic today and it won't even start, because "Your system currently is not capable of hardware accelerated 3D."
So any idea what it could be, that the GPU get detected but won't work probably? I don't have any other GPU so it can't be that the wrong one is in use. And while the open source drivers are slower it should be at least better than this as Phoronix and others show.
 
Old 05-31-2014, 09:06 PM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
What does the following command return:
Code:
glxinfo | grep Open
?
 
Old 05-31-2014, 09:14 PM   #5
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)
OpenGL version string: 2.1 Mesa 10.1.3
OpenGL shading language version string: 1.30
OpenGL extensions:
 
Old 05-31-2014, 09:26 PM   #6
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Something seems to be wrong with your driver setup.
Now i dont know what exactly should you get for radeonsi (the driver that is used by your card), but you seem to be running software rendering.
Run this:
Code:
dmesg | grep '\[drm\]'
 
Old 05-31-2014, 09:31 PM   #7
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
How do you see that something is wrong?

Here is the output:
Code:
[    1.889148] [drm] Initialized drm 1.1.0 20060810
[    1.914707] [drm] VGACON disable radeon kernel modesetting.
[   28.473523] [drm] VGACON disable radeon kernel modesetting.

Last edited by chasako; 05-31-2014 at 09:50 PM.
 
Old 05-31-2014, 10:19 PM   #8
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by chasako View Post
How do you see that something is wrong?
You should have something like:
Code:
OpenGL renderer string: Gallium 0.4 on AMD ARUBA
but something else instead of ARUBA (this is my card), maybe kaveri or something, the code name of your video card.
And you should have:
Code:
OpenGL vendor string: X.Org
Quote:
Originally Posted by chasako View Post
Here is the output:
Code:
[    1.889148] [drm] Initialized drm 1.1.0 20060810
[    1.914707] [drm] VGACON disable radeon kernel modesetting.
[   28.473523] [drm] VGACON disable radeon kernel modesetting.
Now this isnt right. "radeon kernel modesetting" MUST be enabled, along with dpm for APUs to work right.
Make sure you have "radeon.dpm=1 radeon.modeset=1" in your kernel boot options.

From what i see you need:
-enable kms (Kernel Mode Setting)
-enable dpm (Dynamic Power Management - essential for APU integrated graphics performance with OSS drivers) - this might be enabled, but better make sure it is
-make sure you actually have the corresponding firmware file

Now if you have the /etc/default/grub file, edit it with root (sudo) rights, find the line that begins with GRUB_CMDLINE_LINUX_DEFAULT, make it look like this (if you have other options there, you can keep them too):
Code:
GRUB_CMDLINE_LINUX_DEFAULT="radeon.dpm=1 radeon.modeset=1"
Save then run:
Code:
sudo update-grub
Then reboot.
After that, run again:
Code:
dmesg | grep '\[drm\]'
 
1 members found this post helpful.
Old 05-31-2014, 10:37 PM   #9
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
It didn't work. It's exactly the same output.

Only things I changed from your instructions:
I used "GRUB_CMDLINE_LINUX" because I don't have a "GRUB_CMDLINE_LINUX_DEFAULT" line
I did grub2-mkconfig, which uses settings from /etc/default/grub (don't have update-grub)

Does it have to be at a special place in the line?
 
Old 05-31-2014, 11:07 PM   #10
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by chasako View Post
Does it have to be at a special place in the line?
No. It can be anywhere.


Maybe you can try this -
Go to tty1, log in, stop your graphic display manger service (whatever that you use), stop any service that might be affceted by forced reboot then:
Code:
modprobe -r -v radeon drm
modprobe -v drm debug=1
modprobe -v radeon modeset=1
Then restart the the gdm (lightdm, gdm3, kdm, whatever you have) service, log in.
Then dmesg to see if anything changed.

If the screen goes dark at the first command you can try typing blindly. If stays that way, reboot with either with one press on power button (if it works) or alt+printscreen+reisub (the last part is a key sequence pressed one after another while holding alt+printscreen pressed, reboots the computer but prevents file system errors).

Last edited by gradinaruvasile; 05-31-2014 at 11:12 PM.
 
Old 06-01-2014, 07:30 AM   #11
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
I stopped kdm, but got "modprobe: FATAL: Module drm is in use." after the first command. Tried do find xorg and other similiar things to stop them but found nothing helpful. So any idea what else I should stop?

And do you have some examples for services that might be affected by forced reboot? Because my common sense tells me that any of them could be.. NetworkManager, bluetooth,audit?
 
Old 06-01-2014, 08:07 AM   #12
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Try those commands without drm, only radeon.
 
Old 06-01-2014, 08:43 AM   #13
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
At the second one I get "modprobe: FATAL: Module debug=1 not found".... but yeah.. No surprise because the argument is missing, right? So skip this step? Then at the third one I get a dark screen. If I try to start kdm again it won't work (saw after the reboot, that it was in fact my last command, so it just didn't work).
 
Old 06-01-2014, 11:57 AM   #14
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by chasako View Post
At the second one I get "modprobe: FATAL: Module debug=1 not found".... but yeah.. No surprise because the argument is missing, right? So skip this step? Then at the third one I get a dark screen. If I try to start kdm again it won't work (saw after the reboot, that it was in fact my last command, so it just didn't work).
Well it should be:
Code:
modprobe -r -v radeon
modprobe -v radeon modeset=1
 
Old 06-01-2014, 01:08 PM   #15
chasako
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes, but then I get a black screen
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: AMD A10-7850K Radeon R7 Graphics Comparison LXer Syndicated Linux News 0 01-16-2014 03:40 AM
LXer: Video: AllWinner (ARM) A10 boots Linux in just 1.2 seconds LXer Syndicated Linux News 0 04-24-2013 02:50 PM
Will a PCI 6200 128MB GPU be faster than onboard 6150 using sys ram? sniff Linux - Hardware 1 07-08-2008 08:31 AM
Size of GPU RAM on Thinkpad R40 0p3r4 Linux - Laptop and Netbook 0 06-20-2006 05:49 AM
How can I scan my hardware to know what it is? (I want info on my CPU, GPU and RAM) brynjarh Linux - Hardware 6 02-28-2006 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration