Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-24 Thread stompdagg...@yahoo.com
On Monday, March 24, 2014 2:23 PM, Fred  wrote:
 
On 03/15/14 04:34, stompdagg...@yahoo.com wrote:

here is a simple test case that reproduces the issue on my machine:
>dagg@NCC-5001-D ~/workspace $ cat open_example.c
>#include 
>#include 
>#include 
>#include 
>#include 
> 
>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@NCC-5001-D ~/workspace $ gcc open_example.c -o
open_example && ./open_example 
>fd = -1, status = ERROR: Invalid argument
>
>
>
>
>On Friday, March 14, 2014 4:22 PM, "stompdagg...@yahoo.com" 
> wrote:
> 
>On Tuesday, March 11, 2014 8:45 AM, "stompdagg...@yahoo.com" 
> wrote:
> 
>>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer  wrote:
> 
>>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote: 
>>
>>> 
>>> 
>>> >On
  Monday, March 10, 2014
  5:58 AM, Michel Dänzer
  
>>> wrote:
>>> 
>>> >On Sam,
  2014-03-08 at 11:41
  -0800, stompdagg...@yahoo.com 
wrote:
>>> >
>>> >>
  >On Sat, Mar 8,
  2014 at 2:56 AM, 
stompdagg...@yahoo.com
>>> >> >
>>> >>
  >> [    51.829]
  (EE) RADEON(0): [drm]
  Failed to open DRM
  device for
>>> >>
  >>
  pci::06:00.0: No
  such file or directory
>>> >
>>> >'No such
  file or directory'
  sounds like something
  is deleting
>>> >your
  /dev/dri/card* files,
  or not creating them
  in the first place.
>>> >Maybe
  check your udev setup.
>>> >
>>> >If it
  only happens with a
  3.13 kernel but not
  with a 3.12 one,
>>> another
>>> >option is
  to bisect the kernel.
>.> 
>.> Greetings
  Michel,
>.> 
>.> dri node do
  exists, see:
>>> dagg@NCC-5001-D ~ $ ll /dev/dri
>>> total 0
>>> crw-rw+ 1
  root video 226,  0 Mar
  10 09:27 card0
>>> crw-rw+ 1
  root video 226,  1 Mar
  10 09:27 card1
>>> crw-rw+ 1
  root video 226,  2 Mar
  10 09:27 card2
>>> crw-rw  1
  root video 226, 64 Mar
  10 09:27 controlD64
>>> crw-rw  1
  root video 226, 65 Mar
  10 09:27 controlD65
>>> crw-rw  1
  root video 226, 66 Mar
  10 09:27 controlD66
>>> 
>>> I think that
  the way to find the
  cause on my part is to
  check the
>>> origin of
  that msg in Xorg.log.
>>> 
>>> is that a
  xserver msg or
  xf86-video-ati msg?
>
>>
>>The message is from
the radeon driver, but
it's because drmOpen()
in
>>libdrm fails. It
would indeed be
interesting to track
  

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-24 Thread Fred

On 03/15/14 04:34, stompdagg...@yahoo.com wrote:

here is a simple test case that reproduces the issue on my machine:
dagg@NCC-5001-D ~/workspace $ cat open_example.c
#include 
#include 
#include 
#include 
#include 

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@NCC-5001-D ~/workspace $ gcc open_example.c -o open_example && 
./open_example

fd = -1, status = ERROR: Invalid argument


On Friday, March 14, 2014 4:22 PM, "stompdagg...@yahoo.com" 
 wrote:
On Tuesday, March 11, 2014 8:45 AM, "stompdagg...@yahoo.com" 
 wrote:
>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer 
 wrote:
>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com 
 wrote:

>
>>
>>
>> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
mailto:mic...@daenzer.net>>

>> wrote:
>>
>> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com 
 wrote:

>> >
>> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com 


>> >> >
>> >> >> [51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> >> >> pci::06:00.0: No such file or directory
>> >
>> >'No such file or directory' sounds like something is deleting
>> >your /dev/dri/card* files, or not creating them in the first place.
>> >Maybe check your udev setup.
>> >
>> >If it only happens with a 3.13 kernel but not with a 3.12 one,
>> another
>> >option is to bisect the kernel.
.>
.> Greetings Michel,
.>
.> dri node do exists, see:
>> dagg@NCC-5001-D  ~ $ ll /dev/dri
>> total 0
>> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
>> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
>> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
>> crw-rw  1 root video 226, 64 Mar 10 09:27 controlD64
>> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
>> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
>>
>> I think that the way to find the cause on my part is to check the
>> origin of that msg in Xorg.log.
>>
>> is that a xserver msg or xf86-video-ati msg?
>
>
>The message is from the radeon driver, but it's because drmOpen() in
>libdrm fails. It would indeed be interesting to track down where the 'No
>such file or directory' error originates from.

will do, when I'll have more info, I'll update.

Greetings Michel,

I've tried to track the source if that error, I've enabled dbg prints 
in libdrm and found this:

(II) [KMS] Kernel modesetting enabled.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: Searching for BusID pci::06:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports pci::00:02.0
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (Invalid argument)
drmOpenByBusid: drmOpenMinor returns -22
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: open result is -1, (Invalid argument)

looking in the code I see this:
fd = open(buf, O_RDWR, 0);
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
fd, fd < 0 ? strerror(errno) : "OK");
if (fd >= 0)
return fd;

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.


any ideas what might it be?

I had a similar problem over the last weeks using kernel 3.13.x  Not 
sure it happened before with older kernels.
I am using a "from scratch" distro.  It's using systemd and glibc-2.19, 
with relatively recent Xorg and Mesa development.

I have a Radeon 4870.  I don't think it's the video card.
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.
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.

X seems to come up fine with no music CD in the drive.

Fred



___
xorg@lists.x.org : X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s




___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


___
xorg@lists.x.org: X.Org s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-15 Thread stompdagg...@yahoo.com


On Saturday, March 15, 2014 4:41 PM, "stompdagg...@yahoo.com" 
 wrote:
 


On Saturday, March 15, 2014 3:33 PM, Alex Deucher  wrote:
 
On Sat, Mar 15, 2014 at 4:34 AM, stompdagg...@yahoo.com
 wrote:
> here is a simple test case that
 reproduces the issue on my machine:
> dagg@NCC-5001-D ~/workspace $ cat open_example.c
> #include 
> #include 
> #include 
> #include 
> #include 
>
> 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@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. 

combination of both patches (the first was existing already in 3,13,6) the gpus 
are working again.

Thanks!
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-15 Thread stompdagg...@yahoo.com


On Saturday, March 15, 2014 3:33 PM, Alex Deucher  wrote:
 
On Sat, Mar 15, 2014 at 4:34 AM, stompdagg...@yahoo.com
 wrote:
> here is a simple test case that reproduces the issue on my machine:
> dagg@NCC-5001-D ~/workspace $ cat open_example.c
> #include 
> #include 
> #include 
> #include 
> #include 
>
> 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@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. ___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-15 Thread Alex Deucher
On Sat, Mar 15, 2014 at 4:34 AM, stompdagg...@yahoo.com
 wrote:
> here is a simple test case that reproduces the issue on my machine:
> dagg@NCC-5001-D ~/workspace $ cat open_example.c
> #include 
> #include 
> #include 
> #include 
> #include 
>
> 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@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

>
> On Friday, March 14, 2014 4:22 PM, "stompdagg...@yahoo.com"
>  wrote:
> On Tuesday, March 11, 2014 8:45 AM, "stompdagg...@yahoo.com"
>  wrote:
>>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer 
>> wrote:
>>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote:
>>
>>>
>>>
>>> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
>>> wrote:
>>>
>>> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
>>> >
>>> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>>> >> >
>>> >> >> [51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>>> >> >> pci::06:00.0: No such file or directory
>>> >
>>> >'No such file or directory' sounds like something is deleting
>>> >your /dev/dri/card* files, or not creating them in the first place.
>>> >Maybe check your udev setup.
>>> >
>>> >If it only happens with a 3.13 kernel but not with a 3.12 one,
>>> another
>>> >option is to bisect the kernel.
> .>
> .> Greetings Michel,
> .>
> .> dri node do exists, see:
>>> dagg@NCC-5001-D ~ $ ll /dev/dri
>>> total 0
>>> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
>>> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
>>> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
>>> crw-rw  1 root video 226, 64 Mar 10 09:27 controlD64
>>> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
>>> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
>>>
>>> I think that the way to find the cause on my part is to check the
>>> origin of that msg in Xorg.log.
>>>
>>> is that a xserver msg or xf86-video-ati msg?
>>
>>
>>The message is from the radeon driver, but it's because drmOpen() in
>>libdrm fails. It would indeed be interesting to track down where the 'No
>>such file or directory' error originates from.
>
> will do, when I'll have more info, I'll update.
>
> Greetings Michel,
>
> I've tried to track the source if that error, I've enabled dbg prints in
> libdrm and found this:
> (II) [KMS] Kernel modesetting enabled.
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 11, (OK)
> drmOpenByBusid: Searching for BusID pci::06:00.0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 11, (OK)
> drmOpenByBusid: drmOpenMinor returns 11
> drmOpenByBusid: drmGetBusid reports pci::00:02.0
> drmOpenDevice: node name is /dev/dri/card1
> drmOpenDevice: open result is -1, (Invalid argument)
> drmOpenByBusid: drmOpenMinor returns -22
> drmOpenDevice: node name is /dev/dri/card2
> drmOpenDevice: open result is -1, (Invalid argument)
>
> looking in the code I see this:
> fd = open(buf, O_RDWR, 0);
> drmMsg("drmOpenDevice: open result is %d, (%s)\n",
> fd, fd < 0 ? strerror(errno) : "OK");
> if (fd >= 0)
> return fd;
>
> 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.
>
> any ideas what might it be?
>
> ___
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
>
>
>
> ___
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-15 Thread stompdagg...@yahoo.com
here is a simple test case that reproduces the issue on my machine:
dagg@NCC-5001-D ~/workspace $ cat open_example.c
#include 
#include 
#include 
#include 
#include 
 
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@NCC-5001-D ~/workspace $ gcc open_example.c -o open_example && 
./open_example 
fd = -1, status = ERROR: Invalid argument




On Friday, March 14, 2014 4:22 PM, "stompdagg...@yahoo.com" 
 wrote:
 
On Tuesday, March 11, 2014 8:45 AM, "stompdagg...@yahoo.com" 
 wrote:
 
>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer  wrote:
 
>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote:
>
>> 
>> 
>> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
>> wrote:
>> 
>> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
>> >
>> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>> >> >
>> >> >> [    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> >> >> pci::06:00.0: No such file or directory
>> >
>> >'No such file or directory' sounds like something is deleting
>>
 >your /dev/dri/card* files, or not creating them in the first place.
>> >Maybe check your udev setup.
>> >
>> >If it only happens with a 3.13 kernel but not with a 3.12 one,
>> another
>> >option is to bisect the kernel.
.> 
.> Greetings Michel,
.> 
.> dri node do exists, see:
>> dagg@NCC-5001-D ~ $ ll /dev/dri
>> total 0
>> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
>> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
>> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
>>
 crw-rw  1 root video 226, 64 Mar 10
 09:27 controlD64
>> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
>> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
>> 
>> I think that the way to find the cause on my part is to check the
>> origin of that msg in Xorg.log.
>> 
>> is that a xserver msg or xf86-video-ati msg?>
>
>The message is from the radeon driver, but it's because drmOpen() in
>libdrm fails. It would indeed be interesting to track down where the 'No
>such file or directory' error originates from.

will do, when I'll have more info, I'll update.

Greetings Michel,

I've tried to track the source if that error,
 I've enabled dbg prints in libdrm and found this:
(II) [KMS] Kernel modesetting enabled.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: Searching for BusID pci::06:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports pci::00:02.0
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (Invalid argument)
drmOpenByBusid: drmOpenMinor returns -22
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: open result is -1, (Invalid argument)

looking in the code I see this:
    fd = open(buf, O_RDWR, 0);
    drmMsg("drmOpenDevice: open result is %d, (%s)\n",
    fd, fd < 0 ? strerror(errno) :
 "OK");
    if (fd >= 0)
    return fd;

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.

any ideas what might it be?


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-14 Thread stompdagg...@yahoo.com
On Tuesday, March 11, 2014 8:45 AM, "stompdagg...@yahoo.com" 
 wrote:
 
>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer  wrote:
 
>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote:
>
>> 
>> 
>> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
>> wrote:
>> 
>> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
>> >
>> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>> >> >
>> >> >> [    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> >> >> pci::06:00.0: No such file or directory
>> >
>> >'No such file or directory' sounds like something is deleting
>>
 >your /dev/dri/card* files, or not creating them in the first place.
>> >Maybe check your udev setup.
>> >
>> >If it only happens with a 3.13 kernel but not with a 3.12 one,
>> another
>> >option is to bisect the kernel.
.> 
.> Greetings Michel,
.> 
.> dri node do exists, see:
>> dagg@NCC-5001-D ~ $ ll /dev/dri
>> total 0
>> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
>> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
>> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
>> crw-rw  1 root video 226, 64 Mar 10
 09:27 controlD64
>> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
>> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
>> 
>> I think that the way to find the cause on my part is to check the
>> origin of that msg in Xorg.log.
>> 
>> is that a xserver msg or xf86-video-ati msg?>
>
>The message is from the radeon driver, but it's because drmOpen() in
>libdrm fails. It would indeed be interesting to track down where the 'No
>such file or directory' error originates from.

will do, when I'll have more info, I'll update.

Greetings Michel,

I've tried to track the source if that error, I've enabled dbg prints in libdrm 
and found this:
(II) [KMS] Kernel modesetting enabled.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: Searching for BusID pci::06:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports pci::00:02.0
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (Invalid argument)
drmOpenByBusid: drmOpenMinor returns -22
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: open result is -1, (Invalid argument)

looking in the code I see this:
    fd = open(buf, O_RDWR, 0);
    drmMsg("drmOpenDevice: open result is %d, (%s)\n",
    fd, fd < 0 ? strerror(errno) : "OK");
    if (fd >= 0)
    return fd;

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.

any ideas what might it be?
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-10 Thread stompdagg...@yahoo.com
>On Tuesday, March 11, 2014 5:16 AM, Michel Dänzer  wrote:
 
>On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote:
>
>> 
>> 
>> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
>> wrote:
>> 
>> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
>> >
>> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>> >> >
>> >> >> [    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> >> >> pci::06:00.0: No such file or directory
>> >
>> >'No such file or directory' sounds like something is deleting
>> >your /dev/dri/card* files, or not creating them in the first place.
>> >Maybe check your udev setup.
>> >
>> >If it only happens with a 3.13 kernel but not with a 3.12 one,
>> another
>> >option is to bisect the kernel.
.> 
.> Greetings Michel,
.> 
.> dri node do exists, see:
>> dagg@NCC-5001-D ~ $ ll /dev/dri
>> total 0
>> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
>> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
>> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
>> crw-rw  1 root video 226, 64 Mar 10 09:27 controlD64
>> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
>> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
>> 
>> I think that the way to find the cause on my part is to check the
>> origin of that msg in Xorg.log.
>> 
>> is that a xserver msg or xf86-video-ati msg?>
>
>The message is from the radeon driver, but it's because drmOpen() in
>libdrm fails. It would indeed be interesting to track down where the 'No
>such file or directory' error originates from.

will do, when I'll have more info, I'll update.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-10 Thread Michel Dänzer
On Mon, 2014-03-10 at 08:23 -0700, stompdagg...@yahoo.com wrote:
> 
> 
> >On Monday, March 10, 2014 5:58 AM, Michel Dänzer 
> wrote:
> 
> >On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
> >
> >> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
> >> >
> >> >> [51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
> >> >> pci::06:00.0: No such file or directory
> >
> >'No such file or directory' sounds like something is deleting
> >your /dev/dri/card* files, or not creating them in the first place.
> >Maybe check your udev setup.
> >
> >If it only happens with a 3.13 kernel but not with a 3.12 one,
> another
> >option is to bisect the kernel.
> 
> Greetings Michel,
> 
> dri node do exists, see:
> dagg@NCC-5001-D ~ $ ll /dev/dri
> total 0
> crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
> crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
> crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
> crw-rw  1 root video 226, 64 Mar 10 09:27 controlD64
> crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
> crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66
> 
> I think that the way to find the cause on my part is to check the
> origin of that msg in Xorg.log.
> 
> is that a xserver msg or xf86-video-ati msg?

The message is from the radeon driver, but it's because drmOpen() in
libdrm fails. It would indeed be interesting to track down where the 'No
such file or directory' error originates from.


-- 
Earthling Michel Dänzer|  http://www.amd.com
Libre software enthusiast  |Mesa and X developer

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-10 Thread stompdagg...@yahoo.com



>On Monday, March 10, 2014 5:58 AM, Michel Dänzer  wrote:
 
>On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:
>
>> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>> >
>> >> [    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> >> pci::06:00.0: No such file or directory
>
>'No such file or directory' sounds like something is deleting
>your /dev/dri/card* files, or not creating them in the first place.
>Maybe check your udev setup.
>
>If it only happens with a 3.13 kernel but not with a 3.12 one, another
>option is to bisect the kernel.

Greetings Michel,

dri node do exists, see:
dagg@NCC-5001-D ~ $ ll /dev/dri
total 0
crw-rw+ 1 root video 226,  0 Mar 10 09:27 card0
crw-rw+ 1 root video 226,  1 Mar 10 09:27 card1
crw-rw+ 1 root video 226,  2 Mar 10 09:27 card2
crw-rw  1 root video 226, 64 Mar 10 09:27 controlD64
crw-rw  1 root video 226, 65 Mar 10 09:27 controlD65
crw-rw  1 root video 226, 66 Mar 10 09:27 controlD66

I think that the way to find the cause on my part is to check the origin of 
that msg in Xorg.log.

is that a xserver msg or xf86-video-ati msg?
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-09 Thread Michel Dänzer
On Sam, 2014-03-08 at 11:41 -0800, stompdagg...@yahoo.com wrote:

> >On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
> >
> >> [51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
> >> pci::06:00.0: No such file or directory

'No such file or directory' sounds like something is deleting
your /dev/dri/card* files, or not creating them in the first place.
Maybe check your udev setup.

If it only happens with a 3.13 kernel but not with a 3.12 one, another
option is to bisect the kernel.


-- 
Earthling Michel Dänzer|  http://www.amd.com
Libre software enthusiast  |Mesa and X developer

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-08 Thread stompdagg...@yahoo.com
>On Saturday, March 8, 2014 9:01 PM, Alex Deucher  wrote:
 
>On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
>
> wrote:
>> greetings,
>>
>> since I've updated my kernel to 3.13.x I'm unable to start X on my radeon
>> cards.
>>
>> the setup works great in kernel 3.12.8, here is part of Xorg log for that
>> adaper:
>> [    51.782] (II) [KMS] Kernel modesetting enabled.
>> [    51.782] (II) RADEON(0): RADEONPreInit_KMS
>> [    51.782] (II) RADEON(0): Creating default Display subsection in Screen
>> section
>>         "Default Screen Section" for depth/fbbpp 24/32
>> [    51.782] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
>> [    51.782] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp
>> pixmaps)
>> [    51.782] (==) RADEON(0): Default visual is TrueColor
>> [    51.782] (==) RADEON(0): RGB weight 888
>> [    51.782] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
>> [    51.782] (--) RADEON(0): Chipset: "ATI Radeon HD 3600 XT" (ChipID =
>> 0x9598)
>> [    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
>> pci::06:00.0: No such file or directory
>> [    51.829] (EE) RADEON(0): Kernel modesetting setup failed
>> [    51.829] (II) RADEON(0): RADEONFreeScreen
>> [    51.829] (II) UnloadModule: "radeon"
>> [    51.829] (EE) Screen(s) found, but none have a usable configuration.
>> [    51.829] (EE)
>> Fatal server error:
>> [    51.829] (EE) no screens found(EE)
>> [    51.829] (EE)
>> Please consult the The X.Org Foundation support
>>          at http://wiki.x.org
>>
>> is that a X bug? what is the right place to debug it, X or xf86-video-ati?>
>
>There's some problems with your kernel.  Check your dmesg output and
>make sure the radeon kernel driver loaded properly.  Depending on your
>setup you may be missing the necessary firmware files from your
>initrd.
>
>Alex

Greetings Alex,

I've double checked both my kernel config and dmesg but haven't found any 
issue, I might be missing it thought.
my fw files are built into the kernel,

here are some outputs:
dmesg: http://bpaste.net/show/186582/
kernel config: http://bpaste.net/show/186583/
lspci: http://bpaste.net/show/186584/

note that my setup is a multiseat setup and both of my radeon cards are showing 
the same symptoms.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-08 Thread Alex Deucher
On Sat, Mar 8, 2014 at 2:56 AM, stompdagg...@yahoo.com
 wrote:
> greetings,
>
> since I've updated my kernel to 3.13.x I'm unable to start X on my radeon
> cards.
>
> the setup works great in kernel 3.12.8, here is part of Xorg log for that
> adaper:
> [51.782] (II) [KMS] Kernel modesetting enabled.
> [51.782] (II) RADEON(0): RADEONPreInit_KMS
> [51.782] (II) RADEON(0): Creating default Display subsection in Screen
> section
> "Default Screen Section" for depth/fbbpp 24/32
> [51.782] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
> [51.782] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp
> pixmaps)
> [51.782] (==) RADEON(0): Default visual is TrueColor
> [51.782] (==) RADEON(0): RGB weight 888
> [51.782] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
> [51.782] (--) RADEON(0): Chipset: "ATI Radeon HD 3600 XT" (ChipID =
> 0x9598)
> [51.829] (EE) RADEON(0): [drm] Failed to open DRM device for
> pci::06:00.0: No such file or directory
> [51.829] (EE) RADEON(0): Kernel modesetting setup failed
> [51.829] (II) RADEON(0): RADEONFreeScreen
> [51.829] (II) UnloadModule: "radeon"
> [51.829] (EE) Screen(s) found, but none have a usable configuration.
> [51.829] (EE)
> Fatal server error:
> [51.829] (EE) no screens found(EE)
> [51.829] (EE)
> Please consult the The X.Org Foundation support
>  at http://wiki.x.org
>
> is that a X bug? what is the right place to debug it, X or xf86-video-ati?

There's some problems with your kernel.  Check your dmesg output and
make sure the radeon kernel driver loaded properly.  Depending on your
setup you may be missing the necessary firmware files from your
initrd.

Alex
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


RADEON(0): [drm] Failed to open DRM device: No such file or directory error

2014-03-07 Thread stompdagg...@yahoo.com
greetings,

since I've updated my kernel to 3.13.x I'm unable to start X on my radeon cards.

the setup works great in kernel 3.12.8, here is part of Xorg log for that 
adaper:
[    51.782] (II) [KMS] Kernel modesetting enabled.
[    51.782] (II) RADEON(0): RADEONPreInit_KMS
[    51.782] (II) RADEON(0): Creating default Display subsection in Screen 
section
    "Default Screen Section" for depth/fbbpp 24/32
[    51.782] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
[    51.782] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp 
pixmaps)
[    51.782] (==) RADEON(0): Default visual is TrueColor
[    51.782] (==) RADEON(0): RGB weight 888
[    51.782] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
[    51.782] (--) RADEON(0): Chipset: "ATI Radeon HD 3600 XT" (ChipID = 0x9598)
[    51.829] (EE) RADEON(0): [drm] Failed to open DRM device for 
pci::06:00.0: No such file or directory
[    51.829] (EE) RADEON(0): Kernel modesetting setup failed
[    51.829] (II) RADEON(0): RADEONFreeScreen
[    51.829] (II) UnloadModule: "radeon"
[    51.829] (EE) Screen(s) found, but none have a usable configuration.
[    51.829] (EE) 
Fatal server error:
[    51.829] (EE) no screens found(EE) 
[    51.829] (EE) 
Please consult the The X.Org Foundation support 
 at http://wiki.x.org

is that a X bug? what is the right place to debug it, X or xf86-video-ati?

Thanks.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s