<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt"><div style="display: block;" class="yahoo_quoted"><font face="Arial" size="2">On Monday, March 24, 2014 2:23 PM, Fred <heitkamp@ameritech.net> 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"><div id="yiv4615946017"><div>
    <div class="yiv4615946017moz-cite-prefix">On 03/15/14 04:34,
      <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-abbreviated" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a> wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt;">here is a simple test
        case that reproduces the issue on my machine:<br clear="none">
        dagg@NCC-5001-D ~/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">
        }dagg@NCC-5001-D ~/workspace $ gcc open_example.c -o
        open_example && ./open_example <br clear="none">
        fd = -1, status = ERROR: Invalid argument<br clear="none">
        <div class="yiv4615946017yahoo_quoted" style="display:block;"> <br clear="none">
          <br clear="none">
          <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 dir="ltr"> <font face="Arial" size="2"> On Friday,
                  March 14, 2014 4:22 PM, <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-rfc2396E" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">"StompDagger1@yahoo.com"</a>
                  <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-rfc2396E" ymailto="mailto:stompdagger1@yahoo.com" target="_blank" href="mailto:stompdagger1@yahoo.com"><stompdagger1@yahoo.com></a> wrote:<br clear="none">
                </font> </div>
              <div class="yiv4615946017y_msg_container">
                <div id="yiv4615946017">
                  <div>
                    <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt;">
                      <div class="yiv4615946017yahoo_quoted" style="display:block;"><font face="Arial" size="2">On Tuesday, March 11, 2014 8:45 AM,
                          <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-rfc2396E" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">"StompDagger1@yahoo.com"</a>
                          <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-rfc2396E" ymailto="mailto:stompdagger1@yahoo.com" target="_blank" href="mailto:stompdagger1@yahoo.com"><stompdagger1@yahoo.com></a> wrote:<br clear="none">
                        </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="yiv4615946017y_msg_container">
                              <div class="yiv4615946017yqt4047487418" id="yiv4615946017yqt30079">
                                <div id="yiv4615946017">
                                  <div>
                                    <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt;">
                                      <div class="yiv4615946017yqt6353500749" id="yiv4615946017yqtfd77593">
                                        <div class="yiv4615946017yahoo_quoted" style="display:block;"><font face="Arial" size="2">>On
                                            Tuesday, March 11, 2014 5:16
                                            AM, Michel Dänzer
                                            <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-rfc2396E" ymailto="mailto:michel@daenzer.net" target="_blank" href="mailto:michel@daenzer.net"><michel@daenzer.net></a>
                                            wrote:<br clear="none">
                                          </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="yiv4615946017y_msg_container">>On
                                                Mon, 2014-03-10 at 08:23
                                                -0700, <a rel="nofollow" shape="rect" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a>
                                                wrote:
                                                <div class="yiv4615946017yqt6550552023" id="yiv4615946017yqtfd90884">><br clear="none">
                                                  >> <br clear="none">
                                                  >> <br clear="none">
                                                  >> >On
                                                  Monday, March 10, 2014
                                                  5:58 AM, Michel Dänzer
                                                  <<a rel="nofollow" shape="rect" ymailto="mailto:michel@daenzer.net" target="_blank" href="mailto:michel@daenzer.net">michel@daenzer.net</a>><br clear="none">
                                                  >> wrote:<br clear="none">
                                                  >> <br clear="none">
                                                  >> >On Sam,
                                                  2014-03-08 at 11:41
                                                  -0800, <a rel="nofollow" shape="rect" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a>
                                                  wrote:<br clear="none">
                                                  >> ><br clear="none">
                                                  >> >>
                                                  >On Sat, Mar 8,
                                                  2014 at 2:56 AM, <a rel="nofollow" shape="rect" ymailto="mailto:StompDagger1@yahoo.com" target="_blank" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a><br clear="none">
                                                  >> >> ><br clear="none">
                                                  >> >>
                                                  >> [    51.829]
                                                  (EE) RADEON(0): [drm]
                                                  Failed to open DRM
                                                  device for<br clear="none">
                                                  >> >>
                                                  >>
                                                  pci:0000:06:00.0: No
                                                  such file or directory<br clear="none">
                                                  >> ><br clear="none">
                                                  >> >'No such
                                                  file or directory'
                                                  sounds like something
                                                  is deleting<br clear="none">
                                                  >> >your
                                                  /dev/dri/card* files,
                                                  or not creating them
                                                  in the first place.<br clear="none">
                                                  >> >Maybe
                                                  check your udev setup.<br clear="none">
                                                  >> ><br clear="none">
                                                  >> >If it
                                                  only happens with a
                                                  3.13 kernel but not
                                                  with a 3.12 one,<br clear="none">
                                                  >> another<br clear="none">
                                                  >> >option is
                                                  to bisect the kernel.<br clear="none">
                                                  .> <br clear="none">
                                                  .> Greetings
                                                  Michel,<br clear="none">
                                                  .> <br clear="none">
                                                  .> dri node do
                                                  exists, see:<br clear="none">
                                                  >> <a rel="nofollow" shape="rect" ymailto="mailto:dagg@NCC-5001-D" target="_blank" href="mailto:dagg@NCC-5001-D">dagg@NCC-5001-D</a>
                                                  ~ $ ll /dev/dri<br clear="none">
                                                  >> total 0<br clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  0 Mar
                                                  10 09:27 card0<br clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  1 Mar
                                                  10 09:27 card1<br clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  2 Mar
                                                  10 09:27 card2<br clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 64 Mar
                                                  10 09:27 controlD64<br clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 65 Mar
                                                  10 09:27 controlD65<br clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 66 Mar
                                                  10 09:27 controlD66<br clear="none">
                                                  >> <br clear="none">
                                                  >> I think that
                                                  the way to find the
                                                  cause on my part is to
                                                  check the<br clear="none">
                                                  >> origin of
                                                  that msg in Xorg.log.<br clear="none">
                                                  >> <br clear="none">
                                                  >> is that a
                                                  xserver msg or
                                                  xf86-video-ati msg?</div>
                                                ><br clear="none">
                                                ><br clear="none">
                                                >The message is from
                                                the radeon driver, but
                                                it's because drmOpen()
                                                in<br clear="none">
                                                >libdrm fails. It
                                                would indeed be
                                                interesting to track
                                                down where the 'No<br clear="none">
                                                >such file or
                                                directory' error
                                                originates from.<br clear="none">
                                                <br clear="none">
                                                will do, when I'll have
                                                more info, I'll update.<br clear="none">
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <br clear="none">
                              Greetings Michel,<br clear="none">
                              <br clear="none">
                              I've tried to track the source if that
                              error, I've enabled dbg prints in libdrm
                              and found this:<br clear="none">
                              (II) [KMS] Kernel modesetting enabled.<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card0<br clear="none">
                              drmOpenDevice: open result is 11, (OK)<br clear="none">
                              drmOpenByBusid: Searching for BusID
                              pci:0000:06:00.0<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card0<br clear="none">
                              drmOpenDevice: open result is 11, (OK)<br clear="none">
                              drmOpenByBusid: drmOpenMinor returns 11<br clear="none">
                              drmOpenByBusid: drmGetBusid reports
                              pci:0000:00:02.0<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card1<br clear="none">
                              drmOpenDevice: open result is -1, (Invalid
                              argument)<br clear="none">
                              drmOpenByBusid: drmOpenMinor returns -22<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card2<br clear="none">
                              drmOpenDevice: open result is -1, (Invalid
                              argument)<br clear="none">
                              <br clear="none">
                              looking in the code I see this:<br clear="none">
                                  fd = open(buf, O_RDWR, 0);<br clear="none">
                                  drmMsg("drmOpenDevice: open result is
                              %d, (%s)\n",<br clear="none">
                                              fd, fd < 0 ?
                              strerror(errno) : "OK");<br clear="none">
                                  if (fd >= 0)<br clear="none">
                                      return fd;<br clear="none">
                              <br clear="none">
                              I think that the issue might be that the
                              file cannot be opened for that mode as the
                              path is printed above and it is ok.<br clear="none">
                              <br clear="none">
                              any ideas what might it be?<br clear="none">
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br clear="none">
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    I had a similar problem over the last weeks using kernel 3.13.x  Not
    sure it happened before with older kernels.<br clear="none">
    I am using a "from scratch" distro.  It's using systemd and
    glibc-2.19, with relatively recent Xorg and Mesa development.<br clear="none">
    I have a Radeon 4870.  I don't think it's the video card.<br clear="none">
    Tentatively what happens is I lose the /dev/dri/card0 and the
    display goes black.  I get "no usable screens found" in the
    Xorg.0.log file. <br clear="none">
    Anyway what seems to be causing the problem is If I leave a music CD
    in the CD drive, upon booting, timing issues or something cause the
    dri/card0 device to go away.   There are a lot of messages in the
    kernel log, where it's  trying to find out about the music CD.<br clear="none">
    X seems to come up fine with no music CD in the drive.<br clear="none">
    <br clear="none">
    Fred<br clear="none">
    <br clear="none">
    <br clear="none">
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt;">
        <div class="yiv4615946017yahoo_quoted" style="display:block;">
          <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="yiv4615946017y_msg_container">
                <div class="yiv4615946017yqt4047487418" id="yiv4615946017yqt97083">_______________________________________________<br clear="none">
                  <a rel="nofollow" shape="rect" ymailto="mailto:xorg@lists.x.org" target="_blank" href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>:
                  X.Org support<br clear="none">
                  Archives: <a rel="nofollow" shape="rect" target="_blank" href="http://lists.freedesktop.org/archives/xorg">http://lists.freedesktop.org/archives/xorg</a><br clear="none">
                  Info: <a rel="nofollow" shape="rect" target="_blank" href="http://lists.x.org/mailman/listinfo/xorg">http://lists.x.org/mailman/listinfo/xorg</a><br clear="none">
                  Your subscription address: %(user_address)s</div>
                <div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd73610"><br clear="none">
                <br clear="none">
              </div></div><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd13444">
            </div></div><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd96418">
          </div></div><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd17911">
        </div></div><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd81355">
      </div></div><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd28785">
      <br clear="none">
      <fieldset class="yiv4615946017mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
<a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-abbreviated" ymailto="mailto:xorg@lists.x.org" target="_blank" href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>: X.Org support
Archives: <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-freetext" target="_blank" href="http://lists.freedesktop.org/archives/xorg">http://lists.freedesktop.org/archives/xorg</a>
Info: <a rel="nofollow" shape="rect" class="yiv4615946017moz-txt-link-freetext" target="_blank" href="http://lists.x.org/mailman/listinfo/xorg">http://lists.x.org/mailman/listinfo/xorg</a>
Your subscription address: %(user_address)s</pre>
    </div></blockquote><div class="yiv4615946017yqt5474415555" id="yiv4615946017yqtfd20269">
    <br clear="none">
  </div></div></div>Greetings Fred,<br><br>not sure how the cd is relevant for the issue but following patches fixes the issue on my setup:<br><pre class="bz_comment_text" id="comment_text_16"><a href="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=9babd35ad72af631547c7ca294bc2e931cc40e58</a>
<a href="http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7848865914c6a63ead674f0f5604b77df7d3874f">http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7848865914c6a63ead674f0f5604b77df7d3874f</a></pre><br></div>  </div> </div>  </div> </div></body></html>