<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt"><br><div style="display: block;" class="yahoo_quoted"><font face="Arial" size="2">On Saturday, March 15, 2014 3:33 PM, Alex Deucher <alexdeucher@gmail.com> wrote:<br> </font> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 8pt;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div class="y_msg_container">On Sat, Mar 15, 2014 at 4:34 AM, <a shape="rect" ymailto="mailto:StompDagger1@yahoo.com" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a><br clear="none"><<a shape="rect" ymailto="mailto:stompdagger1@yahoo.com" href="mailto:stompdagger1@yahoo.com">stompdagger1@yahoo.com</a>> wrote:<br clear="none">> here is a simple test case that
reproduces the issue on my machine:<br clear="none">> <a shape="rect" ymailto="mailto:dagg@NCC-5001-D" href="mailto:dagg@NCC-5001-D">dagg@NCC-5001-D</a> ~/workspace $ cat open_example.c<br clear="none">> #include <unistd.h><br clear="none">> #include <fcntl.h><br clear="none">> #include <stdio.h><br clear="none">> #include <errno.h><br clear="none">> #include <string.h><br clear="none">><br clear="none">> int main()<br clear="none">> {<br clear="none">> char *param1 = "ok";<br clear="none">> char *param2 = ".";<br clear="none">> int filedesc = open("/dev/dri/card1", O_RDWR, 0);<br clear="none">> if (filedesc) {<br clear="none">> param1 = "ERROR: ";<br clear="none">>
param2 = strerror(errno);<br clear="none">> }<br clear="none">> printf("fd = %d, status = %s%s\n", filedesc, param1, param2);<br clear="none">> close(filedesc);<br clear="none">><br clear="none">> return 0;<br clear="none">> }<a shape="rect" ymailto="mailto:dagg@NCC-5001-D" href="mailto:dagg@NCC-5001-D">dagg@NCC-5001-D</a> ~/workspace $ gcc open_example.c -o open_example &&<br clear="none">> ./open_example<br clear="none">> fd = -1, status = ERROR: Invalid argument<br clear="none">><br clear="none"><br clear="none">Does booting with radeon.runpm=0 on the kernel command line in grub<br clear="none">fix it? If so, it should be fixed with these patches:<br clear="none"><a shape="rect"
href="http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9babd35ad72af631547c7ca294bc2e931cc40e58" target="_blank">http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9babd35ad72af631547c7ca294bc2e931cc40e58</a><br clear="none"><a shape="rect" href="http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7848865914c6a63ead674f0f5604b77df7d3874f" target="_blank">http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7848865914c6a63ead674f0f5604b77df7d3874f</a><br clear="none"><br clear="none">Alex<br clear="none"><br clear="none">Greetings Alex, it work with radeon.runpm=0, I'll test the patches now and report back. </div> </div> </div> </div> </div></body></html>