RADEON(0): [drm] Failed to open DRM device: No such file or directory error
StompDagger1@yahoo.com
stompdagger1 at yahoo.com
Sat Mar 15 07:41:01 PDT 2014
On Saturday, March 15, 2014 3:33 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
On Sat, Mar 15, 2014 at 4:34 AM, StompDagger1 at yahoo.com
<stompdagger1 at yahoo.com> wrote:
> here is a simple test case that reproduces the issue on my machine:
> dagg at NCC-5001-D ~/workspace $ cat open_example.c
> #include <unistd.h>
> #include <fcntl.h>
> #include <stdio.h>
> #include <errno.h>
> #include <string.h>
>
> int main()
> {
> char *param1 = "ok";
> char *param2 = ".";
> int filedesc = open("/dev/dri/card1", O_RDWR, 0);
> if (filedesc) {
> param1 = "ERROR: ";
> param2 = strerror(errno);
> }
> printf("fd = %d, status = %s%s\n", filedesc, param1, param2);
> close(filedesc);
>
> return 0;
> }dagg at NCC-5001-D ~/workspace $ gcc open_example.c -o open_example &&
> ./open_example
> fd = -1, status = ERROR: Invalid argument
>
Does booting with radeon.runpm=0 on the kernel command line in grub
fix it? If so, it should be fixed with these patches:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9babd35ad72af631547c7ca294bc2e931cc40e58
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7848865914c6a63ead674f0f5604b77df7d3874f
Alex
Greetings Alex, it work with radeon.runpm=0, I'll test the patches now and report back.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20140315/a087b54e/attachment.html>
More information about the xorg
mailing list